The phrase “mad as a hatter” predates Alice in Wonderland. In the 18th century felt, which is used in many hats, was made with mercury, causing dementia in hat manufacturers. The foldable top hat was invented in 1840. It became popular for opera lovers, as it could be easily stored away during the performance.