@font-face {
    font-family: 'Zabar';
    src: url('El Pollo Loco/fonts/zabars.ttf');
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-image: url('El Pollo Loco/img/background.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family:'Zabar', 'Raleway', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body::backdrop {
    background-image: url('El Pollo Loco/img/background.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.impressum {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-image: url('El Pollo Loco/img/background.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
}

.impressum a {
    text-decoration: none;
    color: white;
}

.privacy-policy {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    background-image: url('El Pollo Loco/img/background.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    padding: 100px 200px;
}

.privacy-policy a {
    text-decoration: none;
    color: white;
}

canvas {
    background-color: black;
    max-width: 100%;
    max-height: 100%;
    margin-bottom: 280px;
    display: block;
    border-radius: 16px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

h1 {
    color: black;
    font-size: 64px;
    letter-spacing: 4px;
}

.start-screen-container {
    height: 100vh;
    width: 100%;
    margin: 0;
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.start-screen {
    background-image: url('El Pollo Loco/img/9_intro_outro_screens/start/startscreen_1.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 500px;
    width: 800px;
    z-index: 2;
    margin-bottom: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px;
    padding: 4px 0 8px 0;
    box-sizing: border-box;
}

.start-button {
    background-color: rgba(255, 150, 0);
    font-weight: bold;
    width: 200px;
    height: 48px;
    font-size: 24px;
    border: none;
    border-radius: 16px;
    color: black;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    margin-block-start: -530px;
    z-index: 999;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/*.start-button:after {
    content: '';
    position: absolute;
    border: 1px solid #000000;
    bottom: 4px;
    left: 4px;
    width: calc(100% - 1px);
    height: calc(100% - 1px);
}*/

.start-button:hover:after {
    bottom: 2px;
    left: 2px;
}

.d-none {
    display: none !important;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.legal-container {
    position: absolute;
    display: flex;
    bottom: 28px;
    gap: 32px;
}

.legal-container a {
    color: white;
    text-decoration: none;
    font-size: 20px;
}

.legal-container a:hover {
    color: white;
    text-decoration: underline;
}

.game-over-screen-container {
    height: 100vh;
    margin: 0;
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-over-screen {
    background-image: url('El Pollo Loco/img/9_intro_outro_screens/game_over/game over!.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 480px;
    width: 720px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: end;
    border-radius: 16px;
    z-index: 5;
    gap: 8px;
}

.win-screen {
    background-image: url('El Pollo Loco/img/9_intro_outro_screens/win/won_1.png');
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center;
    height: 480px;
    width: 720px;
    z-index: 5;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: end;
    border-radius: 16px;
}

.buttons {
    height: 48px;
    width: 720px;
    margin-bottom: 40px;
    display: flex;
    align-items: end;
    justify-content: center;
}

.button {
    background-color: rgba(255, 150, 0);
    margin-right: 10px;
    border: none;
    color: black;
    padding: 18px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
}

.winLoseBtnHome {
    background-color: rgba(255, 150, 0);
    background-image: url('El Pollo Loco/img/other/home.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    margin-right: 10px;
    margin-top: 10px;
    border: none;
    color: black;
    padding: 18px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
}

.winLoseBtnRestart {
    background-color: rgba(255, 150, 0);
    background-image: url('El Pollo Loco/img/other/restart.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    margin-right: 10px;
    margin-top: 10px;
    border: none;
    color: black;
    padding: 18px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
}

.mute {
    background-image: url('El Pollo Loco/img/other/volume-xmark-solid.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;

}

.unmute {
    background-image: url('./img/10_buttons/volume-high-solid.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

.start {
    background-image: url('El Pollo Loco/img/other/play-solid.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
}

.fullscreen {
    background-image: url('El Pollo Loco/img/other/expand-solid.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}

.joystick {
    background-image: url('El Pollo Loco/img/other/joystick.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px;
}

.instructions {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 34px;
    font-weight: bold;
    /*margin-bottom: 10px;*/
}

.d-none {
    display: none;
}

.instructions-text {
    display: flex;
    align-items: center;
    gap: 16px;
}

.instructions img {
    height: 40px;
}

.space-key-img {
    height: 48px !important;
    width: 60px;
}

.mobile-button {
    height: 40px;
    width: 40px;
    margin-right: 10px;
    border: none;
    color: black;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    background-color: rgba(255, 150, 0);
}

.mobile-left {
    background-image: url('El Pollo Loco/img/other/left_arrow.png');
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center;
}

.mobile-right {
    background-image: url('El Pollo Loco/img/other/right_arrow.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px;
}

.mobile-up {
    background-image: url('El Pollo Loco/img/other/up_arrow.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px;
}

.mobile-throw {
    background-image: url('El Pollo Loco/img/6_salsa_bottle/2_salsa_bottle_on_ground.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px;
}

.orientation-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: grey;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.orientation-alert p {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
}

.orientation-alert img {
    width: 60%;
}

.mobileBtns {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    margin-left: 8px;
}

@media only screen and (max-height: 950px) {
    canvas {
        margin-bottom: 200px;
    }

    .start-screen {
        margin-bottom: 50px;
    }
}

@media only screen and (max-width: 950px) {
    .header {
        display: flex;
        align-items: center;
        flex-direction: unset;
        margin-top: 10px;
    }

    .buttons {
        width: unset;
    }
}

/*@media only screen and (max-width: 950px) {
    .header {
        margin-top: 20px;
    }
}*/

@media only screen and (max-width: 720px) {
    canvas {
        width: 95%;
        overflow-x: hidden;
        margin-top: 180px;
    }

    /*.game-over-screen {
        width: 100%;
        height: 100%;
        background-size: 120%;
        overflow-x: hidden;
    }*/

    .start-screen-container {
        width: 100vw;
        overflow-x: hidden;
    }

    .start-screen {
        width: 100%;
        background-size: 100%;
        margin-top: 15px; 
        overflow-x: hidden;
        border-radius: 0;
    }

    .start-button {
        margin-top: -350px;
        padding: 0;
    }

    .buttons {
        margin-top: 50px;
        margin-bottom: 160px;
    }

    .instructions {
        font-size: 16px;
        /*margin-bottom: 50px;*/
    }

    .instructions-buttons-left {
        margin-left: 8px;
    }

    .fullscreen {
        display: none;
    }

    h1 {
        display: none;
    }

    .header {
        display: flex;
        align-items: center;
        flex-direction: unset;
    }

    .buttons {
        height: 48px;
        width:auto;
        margin-bottom: 40px;
        display: flex;
        align-items: end;
        justify-content: center;
        margin-top: 20px;
    }
   
   
    

    .win-screen {
        display: flex;
        flex-direction: column;
        align-items: end;
        border-radius: 16px;
        width: 90%;
    }

    .game-over-screen {
        display: flex;
        flex-direction: column;
        align-items: end;
        border-radius: 16px;
        width: 95%;
        margin-bottom: 20px;
    }
    
}

@media only screen and (max-width: 670px) {
.header {
    margin-top: 30px;
}
}

@media only screen and (max-width: 670px) and (min-height: 450px) {
    .header {
        margin-top: 40px;
    }
    }

@media only screen and (max-width: 660px) {
   .orientation-alert {
       display: flex;
   }
}

@media only screen and (max-height: 480px) {
    canvas {
        height: 100vh;
        overflow-x: hidden;
        overflow-y: hidden;
        margin: 0;
        width: 100vw;
    }

    h1 {
        display: none;
    }

    .buttons {
        margin-top: 0;
    }

    .game-over-screen-container {
        height: 100vh;
        margin: 0;
        position: absolute;
        width: 100%;
        display: block;
    }

    .game-over-screen {
        width: 100%;
        height: 100%;
        background-size: 120%;
        overflow-x: hidden;
        flex-direction: column;
        align-items: end;
        justify-content: unset;
    }

    .start-screen-container {
        width: 100vw;
        height: 100vh;
        display: block;
    }

    .start-screen {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        background-size: 100%;
        margin: 0;
    }

    .instructions {
        font-size: 16px;
        margin-bottom: 0;
    }

    .instructions-buttons-left {
        margin-left: 8px;
    }

    .fullscreen {
        display: none;
    }

    .start-button {
        margin-top: -350px;
    }

    .instructions-text {
        display: none;
    }

    .instructions-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .win-screen {
        width: 100%;
        height: 100%;
        background-size: 70%;
    }
}

 .canvas-control {
    display: flex;
    flex-direction: column;
    align-items: center;
 }

.game-buttons {
    display: flex;
    margin-top: -280px;
    cursor: pointer;
    z-index: 5;
    padding-top: 16px;
}

.d-none {
    display: none;
}

/* Responsive adjustments if needed */
@media only screen and (max-width: 720px) {
    .game-buttons {
        align-items: center;
        cursor: pointer;
    }

}

@media only screen and (max-width: 810px) and (min-height: 600px) {
    .start-screen {
        background-size: 100% 500px;
        width: 98%;
    }
    
    /*canvas {
        width: 93%;
    }*/
}

@media only screen and (max-width: 770px) and (min-height: 820px) {
    .instructions {
        margin-bottom: 20px
    }
}

@media only screen and (max-width: 711px) and (min-height: 820px) {
    .instructions {
        margin-bottom: 30px
    }
}

@media only screen and (max-width: 680px) and (min-height: 820px) {
    .instructions {
        margin-bottom: 40px
    }
}


@media only screen and (max-width: 760px) {
    .winLoseBtnHome {
        margin-top: 25px;
        margin-right: 25px;
    }

    .winLoseBtnRestart {
        margin-right: 25px;
    }
}

@media only screen and (max-width: 720px) {
    .winLoseBtnHome {
        margin-top: 40px;
        margin-right: 10px;
    }

    .winLoseBtnRestart {
        margin-right: 10px;
    }
}


@media only screen and (max-width: 710px) {
    .winLoseBtnHome {
        margin-top: 50px;
        margin-right: 10px;
    }

    .winLoseBtnRestart {
        margin-right: 10px;
    }
}

