body {
    background-color: rgb(8, 44, 37);;
    margin: 0;
    font-family: "Audiowide", sans-serif;
}

#header {
    width: 500px;
    height: 100px;
    margin: auto;
    padding: 10px;
    color: white;
    font-size: 30px;
    display: flex;
    flex-direction: row;
}

#score {
    width: 300px;
    display: flex;
    justify-content: left;
    align-items: center;
}

#word {
    width: 200px;
    border: 5px solid rgba(43, 128, 98, 0.459);
    display: flex;
    justify-content: center;
    align-items: center;
}

#board {
    width: 800px;
    height: 800px;
    margin: auto;
    padding: 10px;
    border: 5px solid;
    background-image: url(../images/background2.png);
    background-size: cover;
    background-position: center bottom;
    position: relative;
}

.title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.title h1 {
    font-size: 50px;
}

.title img {
    height: 100px;
}

.instructions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px;
}

.instructions ul li {
    font-size: 20px;
}

h2, p {
    font-size: 30px;
}

.explorersimage {
    height: 300px;
}

.playagain-button, .touch-buttons button {
    width: 200px;
    height: 40px;
    font-family: inherit;
    font-size: 15px;
    background: rgb(254 152 181);
    border: none;
    border-radius: 4px;
    margin: 20px;
}

.playagain-button:hover, .playagain-button:active, .touch-buttons button:hover, .touch-buttons button:active {
    background: rgb(255 51 119);
    color: white;
    cursor: pointer;
}

.touch-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 15px 0;
    display: none;
}

.touch-buttons .right, .touch-buttons .left {
    width: 70px;
    height: 40px;
    font-family: inherit;
    font-size: 15px;
    background: rgb(254 152 181);
    border: none;
    border-radius: 4px;
    margin: 20px;
}

.overlay {
    background-color: rgba(10, 22, 18, 0.92);
    color: white;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    position: fixed;
    display: none;
}

.show-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.show-overlay p {
    text-align: center;
}

.player {
    background-image: url('../images/player1.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    transition: left 0.1s linear;
}

.player1 {
    background-image: url('../images/player1.png');
}

.player2 {
    background-image: url('../images/player2.png');
}

.selected-player {
    box-shadow: rgb(254 152 181) 0px 7px 29px 0px;
    border-radius: 10px;
}

.players {
    display: flex;
    flex-direction: row;
    gap: 50px;
    margin: 30px 0;
}

.obstacle {
    background-image: url('../images/obstacle2.png'); /* Change for a better one */
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
}

.object {
    position: absolute;
}

.object img {
    width: 100%;
    height: 100%;
}

.bullet {
    background-image: url('../images/arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
}

@media screen and (max-width: 767px) {
    #header {
        width: 80%;
        font-size: 20px;
    }

    #score {
        width: 60%;
    }

    #word {
        width: 40%;
    }

    #board {
        width: 80%;
        height: 550px;
    }

    .touch-buttons {
        display: flex;
    }

    .actions {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .instructions ul li {
        font-size: 15px;
    }

    .explorersimage {
        height: 150px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    #header {
        width: 80%;
        font-size: 20px;
    }

    #score {
        width: 60%;
    }

    #word {
        width: 40%;
    }

    #board {
        width: 80%;
        height: 700px;
    }

    .touch-buttons {
        display: flex;
    }
}

@media screen and (min-width: 1024px) and (max-width: 2560px) {
    #header {
        width: 80%;
        font-size: 20px;
    }

    #score {
        width: 60%;
    }

    #word {
        width: 40%;
    }

    #board {
        width: 80%;
        height: 600px;
    }
}