body {
    min-height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('img/first_half_background_bg_d.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Zabars';
    font-size: 2em;
}

.game {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 720 / 480;
}

.fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    max-width: 100vw !important;
}

.fullscreenButton {
    background-image: url(img/icons/fullscreen.png);
    background-size: 35px;
    background-position: center;
    background-repeat: no-repeat;
}

.exitFullscreenButton {
    background-image: url(img/icons/exit_fullscreen.png) !important;
}

.gameActive {
    display: flex;
    justify-content: end;
    align-items: start;
}

.ingame-controls {
    align-items: start !important;
    justify-content: center !important;
}

.menuContainer {
    width: 720px;
    height: 480px;
    display: flex;
    justify-content: space-between;
    background-image: url(img/9_intro_outro_screens/start/startscreen_1.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.start {
    margin-top: 20px;
    margin-left: 20px;
    border-radius: 10px;
    background-color: rgb(243, 188, 70);
    width: 100px;
    height: 50px;
    font-family: 'Zabars';
    font-size: 30px;
    cursor: pointer;
}

.start:hover {
    background-color: rgb(255, 203, 92);
}

.settingsIcon {
    margin-top: 20px;
    margin-right: 20px;
    border-radius: 10px;
    background-color: rgb(243, 188, 70);
    cursor: pointer;
    width: 50px;
    height: 50px;
}

.settingsIcon:hover {
    background-color: rgb(255, 203, 92);
}

.setting {
    background-image: url(img/icons/info.png);
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
}

.soundOn {
    background-image: url(img/icons/sound_on.png);
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
}

.soundOff {
    background-image: url(img/icons/sound_off.png);
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
}

h1 {
    margin-top: -60px;
    text-shadow: 6px 6px 4px rgba(0, 0, 0, 0.5)
}

.instructions {
    width: 100vw;
    background-color: rgba(85, 85, 85, 0.671);
    display: flex;
    justify-content: space-between;
}

.move, .jump, .throwBottle {
    background-color: rgb(255, 203, 92);
    width: fit-content;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 10px;
    border: 1px solid black;
}

.context {
    height: 100%;
    width: 100%;
    padding-right: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.buttonsInGame {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: end;
    position: fixed;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 720 / 480;
}

.actionButtons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.actionButtons button {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 100%;
    background-color: rgb(243, 188, 70);
}

.moveLeft {
    background-image: url(img/icons/left.png);
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
}

.moveRight {
    background-image: url(img/icons/right.png);
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
}

.jumpHigh {
    background-image: url(img/icons/jump.png);
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
}

.throw {
    background-image: url(img/icons/bottle.png);
    background-size: 25px;
    background-position: center;
    background-repeat: no-repeat;
}

.instructions p {
    margin: 0;
}

.back {
    background-image: url(img/icons/back.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 20px;
    margin-left: 20px;
    border-radius: 10px;
    background-color: rgb(243, 188, 70);
    width: 100px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
}

.back:hover {
    background-color: rgb(255, 203, 92);
}

.gameoverWin {
    max-width: 720px;
    max-height: 480px;
    aspect-ratio: 720 / 480;
    background-image: url('img/5_background/first_half_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gameoverWin img {
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 720 / 480;
}

.gameoverWin div {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -90px;
}

.gameoverWin button {
    background-color: rgb(243, 188, 70);
    width: 150px;
    font-family: 'Zabars';
    height: 60px;
    font-size: 30px;
    cursor: pointer;
    border-radius: 10px;
}

.gameoverWin button:hover {
    background-color: rgb(255, 203, 92);
}

.in-game {
    position: absolute;
    top: 2%;
    right: 2%;
    z-index: 100;
}

/*.rotatePhone {
    position: fixed;
    aspect-ratio: 720 / 480;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgba(185, 185, 185, 0.788);
    z-index: 9999999999999 !important;
}*/

.rotatePhone {
    position: absolute;
    display: flex;
    flex-direction: column;
    background-color: rgba(185, 185, 185, 0.788);
    height: 100%;
    width: 100%;
    align-items: center;
    top: 0;
    left: 0;
    justify-content: center;
}

.rotatePhone p {
    text-align: center;
}

.rotatePhone img {
    width: 20%;
}

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

.d-none {
    display: none;
}

canvas {
    display: block;
}

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

    .menuContainer {
        width: 100%;
    }

    .game {
        width: 100%;
    }

    .gameoverWin {
        width: 100%;
    }

    .rotatePhone {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .d-none {
        display: none;
    }
}

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

    .menuContainer {
        height: 100vh;
    }

    .game {
        height: 100vh;
    }

    .gameoverWin {
        height: 100vh;
    }

    .buttonsInGame { 
        height: 100vh;
    }

    /*.rotatePhone {
        height: 100vh;
    }*/

    .rotatePhone {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .d-none {
        display: none;
    }
}