The idea
When positioned elements overlap, z-index decides which paints on top — higher values win. It only works on *positioned* elements. Box A and box B overlap; give A the higher z-index so it sits on top.
This level needs position and z-index — z-index only applies to positioned elements, and it controls which box paints on top.