#gameContainer {
    position: relative;
    width: 800px;
    height: 500px;
    margin: 20px auto;
}

#gameCanvas {
    background: #eee;
}

#towerMenu {
    position: absolute;
    top: 10px;
    left: 10px;
}

button.selected {
    border: 2px solid yellow;
    background-color: #ffff99;
}

#towerTooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px;
    font-size: 12px;
    white-space: pre-wrap;
    pointer-events: none;
    z-index: 3;
}

#healthBar {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 200px;
    height: 20px;
    background: gray;
}

#healthFill {
    height: 100%;
    background: green;
    transition: background 0.5s, width 0.5s;
}

#xpCounter {
    position: absolute;
    top: 40px;
    right: 10px;
}

#goldDisplay {
    position: absolute;
    top: 70px;
    right: 10px;
}

#waveIndicator {
    position: absolute;
    top: 100px;
    right: 10px;
}

#enemiesRemaining {
    position: absolute;
    top: 130px;
    right: 10px;
}

#tileCounter {
    position: absolute;
    top: 160px;
    right: 10px;
}

#startWave {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

#pause {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

#pauseOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#pauseMenu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    color: white;
    text-align: center;
    z-index: 2;
}

#pauseStats {
    margin-bottom: 10px;
}

#pauseMenu button {
    display: block;
    margin: 10px auto;
}

.hidden {
    display: none;
}