body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'boogaloo-regular';
    background-image: url('images/desert_background.jpg');
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    font-size: 32px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100vw;
    height: 100dvh;
}

button {
    cursor: pointer;
    background-color: transparent;
    border: none;
    padding-block: 0;
    padding-inline: 0;
}

.overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

@media screen and (orientation: landscape) {
    #pleaseRotateScreenImage {
        display: none;
    }
}

#header {
    display: flex;
}

#gameScreen {
    width: 720px;
    height: 480px;
    display: flex;
    background-image: url('images/intro_outro_screens/start/startscreen_1.png');
    background-size: 720px 480px;
    justify-content: center;
    position: relative;
    text-shadow: none;
    background-repeat: round;
    background-size: cover;
}

#pleaseRotateScreenImage {
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    flex-direction: column;
}

#pleaseRotateScreenImage p{
    color: white;
    font-size: 2rem;
    text-align: center;
}

#pleaseRotateScreenImage svg{
    fill: white;
}

#canvas {
    aspect-ratio: 3 / 2; 
    width: 100%;
    height: auto;
    max-height: 100%;
    background-color: #000; 
}

.endScreen {
    z-index: 1001;
    position: absolute;
    height: 100%;
    width: 100%;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
}

.endScreenBtn {
    bottom: 10%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 65px !important;
    font-size: 24px !important;
}

#gameOver {
    display: none;
}

#gameOver img {
    display: flex;
    width: 100%;
    height: 100%;
}

#gameOver button {
    bottom: 5%;
}

#gameWin {
    display: none;
}

#gameWin img {
    display: flex;
    width: 70%;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#reloadGameBtn {
    display: none;
    position: absolute;
    top: 373px;
    padding-bottom: 0;
}

@media only screen and (max-width: 720px) {
    canvas {
        width: 100%;
    }
}

@media only screen and (max-height: 480px) {
    canvas {
        height: 100vh;
    }
}

@font-face {
    font-family: 'boogaloo-regular';
    src: url(fonts/Boogaloo-Regular.ttf) format('truetype');
}

@media (max-height: 640px) {
    #header {
        display: none;
    }
}

.fullscreen {
    width: 100dvw !important;
    height: 100dvh !important;
    background-size: cover !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000; 
}

canvas.fullscreen {
    width: 100vdw !important;
    height: 100dvh !important;
    max-height: none;
}

@media (pointer: coarse) {
    
    #controlBtnSection {
        display: flex;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0px;
        left: 0;
    }

    #fullscreen {
        display: none !important;
    }

    #header {
        display: none;
    }
}

@media (pointer: fine) {
    #controlBtnSection {
        display: none;
    }

    #fullscreen {
        display: flex;
    }


    #pleaseRotateScreenImage {
        display: none;
    }

    #header {
        display: flex;
    }
}