The magic is powered by Unicode, an international computing standard. It assigns a unique code to nearly every character and symbol, including phonetic and mathematical ones. The flipped letters you see are actually unique characters from this vast library.