Dear BorinBoris,
I found a quick solution (creating a new parent element over existing parent and transforming it instead) and put it in your project. Is this what you need?
Hmm, that BorinBoris is too good. In addition to his solution, there are several ways so I will suggest one of mine. Try placing your Divs a little different and formatting as individuals.
There is no Z on the purple and red is set to -1.
I tend to think of Zs as layers of papers, 100 hundred of them. So if I want something to show on top, it is assigned a Z of 100. If I want one thing just under, it get a 50. Something under that, 25. This continues down to increments of 10. I don’t want anything less than 10 because if, and only if, I get my layers set and need to squeeze in another I have 9 layers left.
Moral, don’t be cheap with Zs because they are essentially limitless.