body {
    align-content: center;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#game {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

#buttonContainer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    justify-content: space-between;
    width: 350px;
}

#buttonContainer button {
    margin: 10px;
}

#buttonContainer button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#spawnSoldier, #spawnRanger, #spawnTank {
    background-color: blue;
    display: none;
    padding: 30px;
    width: 70px;
    height: 80px;
}

.titleScreenTitle {
    position: absolute;
    top: 5%;
    left: 35%;
    max-width: 450px;
    color: white;
    font-size: 55px;
    text-align: center;
    opacity: 0.7;
}

.titleScreenP {
    position: absolute;
    top: 50%;
    left: 40%;
    color: white;
    font-size: 24px;
    text-align: center;
    cursor: pointer;
}

#gameContainer {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.hidden {
    display: none;
}

#instructionsBox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 20px;
    padding: 20px;
    display: none;
    overflow-y: auto;
    z-index: 3;
}

#instructionsBox .closeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
}