Replace hardcoded z-indexes by CSS instructions

Allows overriding z-index of specific events by clients.