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

html {

    font-family: 'zabars', Arial, Helvetica, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-image: url('img/canvasBackground.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    width: 100vw;
    height: 100vh;
    margin: 0;
}

h1 {
    text-align: center;
    font-size: 80px;
}

h2 {
    text-align: center;
    font-size: 180px;
}

p {
    text-align: center;
    font-size: 25px;
}

canvas {
    background-color: black;
    display: block;
    width: 100%;
    height: auto;
}

#game {
    z-index: 10;
}

#canvas_screen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#fullscreen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.moveButtons button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: orange;
    border-radius: 10px;
    margin-top: 10px;
    width: 90px;
    height: 30px;
    font-family: 'zabars', Arial, Helvetica, sans-serif;
    font-size: 25px;
    cursor: pointer;
}

.jump_and_throw button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: orange;
    border-radius: 10px;
    margin-top: 10px;
    width: 90px;
    height: 30px;
    font-family: 'zabars', Arial, Helvetica, sans-serif;
    font-size: 25px;
    cursor: pointer;
}

.jump_and_throw button img {
    width: 25px;
    height: auto;
}

button {
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: orange;
    border-radius: 10px;
    margin-top: 10px;
    width: 150px;
    height: 50px;
    font-family: 'zabars', Arial, Helvetica, sans-serif;
    font-size: 25px;
    cursor: pointer;
}

button img {
    width: 30px;
}

#startscreen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.startscreen_button {
    display: flex;
}


#startscreen img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
}

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

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

.game_description {
    font-family: 'Courier New', Courier, monospace;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.game_description p {
    padding: 5px;
    font-family: 'zabars', Arial, Helvetica, sans-serif;
    text-align: center;
}

.description_container {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
    height: 40px;
    padding: 5px;
}

.keyboard_img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile_button {
    display: none;
}

#endScreen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}

#endScreen img {
    max-width: 900px !important;
    height: auto;
}

.go_to_start_screen:hover {
    background-color: red;
}

.new_game_button:hover {
    background-color: red;
}

.mobile {
    display: none;
}

#speakerIcon {
    width: 50px;
    height: 50px;
}

.speaker-container {
    position: relative;
    display: inline-block;
}

.line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 45%, transparent 45%, transparent 55%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.line_mobile {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12%;
    height: 60%;
    background: linear-gradient(45deg, transparent 45%, transparent 45%, transparent 55%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.muted .line {
    background: linear-gradient(45deg, transparent 45%, red 45%, red 55%, transparent 55%);
}

.muted .line_mobile {
    background: linear-gradient(45deg, transparent 45%, red 45%, red 55%, transparent 55%);
}


/* CSS für das Overlay */
#orientationOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    z-index: 1000;
}




/* Smartphones ================== */
@media only screen and (max-width: 760px) {

    canvas {
        width: 100%;
    }

    h1 {
        display: none;
    }

    .startscreen {
        height: 80vh;
    }

    #startscreen img {
        width: 100%;
    }

    .footer {
        display: none;
    }

    .mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: -50px;
        position: fixed;
        bottom: 10px;
        z-index: 99;
    }

    .start_game {
        margin-top: 10px;
    }

    .moveButtons {
        display: flex;
        cursor: pointer;
    }

    .button_on_description {
        display: flex;
        gap: 20px;
        cursor: pointer;
    }

    .jump_and_throw {
        display: flex;
    }

    #endScreen img {
        max-width: 300px !important;
        height: auto;
    }

}

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

    h1 {
        display: none;
    }

    .startscreen {
        height: 80vh;
    }

    #startscreen img {
        width: 575px;
    }

    .footer {
        display: none;
    }

    .mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: -50px;
        position: fixed;
        bottom: 10px;
        z-index: 99;
    }

    .start_game {
        margin-top: 10px;
    }

    .moveButtons {
        display: flex;
    }

    .button_on_description {
        display: flex;
        gap: 20px;
    }

    .jump_and_throw {
        display: flex;
    }

    #endScreen img {
        max-width: 300px !important;
        height: auto;
    }

}