.press-start-2p-regular {
    font-family: "Press Start 2P", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 10px;
}

body {
    font-family: "Press Start 2P";
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #f0f0f0;
    overflow: hidden;
}

.selection-box {
    position: absolute;
    border: 2px dashed #333;
    background-color: rgba(52, 152, 219, 0.2);
    pointer-events: none;
}

.item {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    transition: background-color 0.2s ease;
}

.power-up {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #2ecc71;
    border: 2px solid #27ae60;
    border-radius: 4px;
}

.wall {
    position: absolute;
    background-color: #7f8c8d;
    border: 2px solid #2c3e50;
    z-index: 1;
}

.wall.greyed {
    opacity: 0.5;
    pointer-events: none;
}

#timer,
#score {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#tutorial {
    font-size: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 30%;
    margin-right: 30%;
    margin-top: 10px;
    margin-bottom: 10px;
}

h1 {
    font-size: 35px;
}

h2 {
    font-size: 30px;
    margin-top: 10px;
}

h3 {
    font-weight: bold;
}

section {
    margin-top: 10px;
}

img {
    width: 50%;
}

button {
    margin-top: 10px;
    font-size: 25px;
}

#popupCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* clicks pass through */
    z-index: 999;
    /* above everything else */
}

/* base phase title styling */
#phaseTitle {
    position: absolute;
    top: 50px;
    /* sits just under the timer */
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
    /* clicks pass through */
    z-index: 1000;
    /* above everything */
}

/* collect-phase flash (dark ↔ light green) */
@keyframes flashPhaseCollect {

    0%,
    100% {
        color: darkgreen;
    }

    50% {
        color: lightgreen;
    }
}

#phaseTitle.collect-phase {
    animation: flashPhaseCollect 1s infinite;
}

/* dodge-phase flash (dark ↔ light purple) */
@keyframes flashPhaseDodge {

    0%,
    100% {
        color: indigo;
    }

    50% {
        color: plum;
    }
}

#phaseTitle.dodge-phase {
    animation: flashPhaseDodge 1s infinite;
}

.projectile-selection-box {
    position: absolute;
    border: 2px dashed purple;
    background-color: rgba(128, 0, 128, 0.2);
    pointer-events: none;
    z-index: 500;
    /* below your popupCanvas (1000+) but above units/projectiles */
}

.on-cooldown {
    opacity: 0.5;
    /* visually dim units on cooldown */
    pointer-events: none;
}