Side note (for the pedantic reader): rotate: x … isn’t a real CSS property—normally you’d write transform: rotateX(…). If you keep the demo as‑is, browsers will just ignore that line, which is probably not what you want. But that’s a technical footnote you can address later when you actually flesh out the code.
Yet another AI telling me individual transform properties don't exist...