button:after{
    z-index:-10;
}

#resources .resource:hover{
    z-index: 1;
}

.inventory-item:hover {
    z-index: 1;
}


.person-assignment-token:hover {
    z-index:3;
}


.building.part-of-larger-building *,
.building.part-of-larger-building {
    z-index:-1;
}

#building .timer-wrap {
    z-index: 11;
}

#inventory-wrap{
    z-index: 80;
}

#message-list {
    z-index: 90;
}

#popup-visitor {
    z-index: 95;
}

#topscreen-bar{
    z-index: 100;
}

#game-creation-background {
    z-index:299;
}

#popup-settings-background,
#popup-adventure-choices-background {
    z-index: 299;
}

.moving-icon.animated,
.person-assignment-token.animated {
    z-index: 300;
}


#popup-settings,
#popup-settings-submenu,
#popup-game-create-or-load,
#popup-adventure-result,
#popup-adventure-choices,
#popup-standalone-reward {
    z-index:300;
}

#tooltip {
    z-index:2000;
}




.building {
    /*   This must never have a z-level, or the various tooltips, animated portraits flying around will be limited by it. */
}