body {
    display: flex;
    margin: 0;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('img/desert.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'zabras', Arial, Helvetica, sans-serif;
}

:fullscreen, ::backdrop {
    background-color: rgba(255,255,255,0);
}

canvas {
    background-color: black;
    display: block;
}

.fullscreen {
    width: 100% !important;
    height: 100% !important;
}

h1 {
    letter-spacing: 3px;
    font-size: 64px;
}

.impressum {
    margin: 0 0 16px 0;
}

.impressumP {
    margin-bottom: 8px;
}

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

.start-screen-btns {
    text-align: center;
    font-size: 25px;
    height: 45px;
    cursor: pointer;
    color: white;
    background-color: #f5ad49;
    letter-spacing: 1.1px;
    border-radius: 10px;
    border: 1px solid white;
}

.start-screen-btns:hover {
    cursor: pointer;
    transition: 225ms ease-in-out;
    transform: scale(1.2);
}

#button-container {
    position: absolute;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 3;
    width: 100%;
    padding-top: 25px;
}

#start-btn {
    width: 100px;
}

#controls {
    width: 140px;
}

#story {
    width: 100px;
}

#game-container {
    position: relative;
}

.startscreen-container {
    position: relative;
}

.start-screen {
    width: 820px;
    height: 480px;
}

.sound-btn {
    right: 220px;
}

#mute-sound:hover {
    cursor: pointer;
    transition: 225ms ease-in-out;
    transform: scale(1.2);
}

#unmute-sound:hover {
    cursor: pointer;
    transition: 225ms ease-in-out;
    transform: scale(1.2);
}

.fullscreen-btn {
    right: 120px;
}

.fullscreen-btn:hover {
    cursor: pointer;
    transition: 225ms ease-in-out;
    transform: scale(1.2);
}

#mobile-btns-bottom {
    display: flex;
    position: absolute;
    bottom: 0;
    justify-content: space-between;
    width: 95%;
    margin-left: 10px;
    margin-bottom: 10px;
}

.mobile-btns-flex {
    display: flex;
    gap: 10px;
}

.mobile-btns {
    height: 40px;
    width: 40px;
    display: flex;
    border: 1px solid black;
    border-radius: 10px;
    padding: 2px
}

.death-screen {
    animation: grow 2s;
    animation-fill-mode: forwards;
}

.game-over-screen {
    width: 820px;
    height: 480px;
    border-radius: 10px;
}

.game-over-screen-img {
    width: 820px;
    height: 480px;
    border-radius: 10px;
}

.game-over-screen button {
    width: 240px;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    background-color: #fba73c;
}

#game-won-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#game-won-container div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-over-screen p{
    font-size: 25px;
    letter-spacing: 2px;
}

.restart-container {
    font-size: 32px;    
}

.game-over-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -50px;
}

.buttons {
    cursor: pointer;
    background-color: #fba73c;
    font-size: 20PX;
    font-weight: bold;
    color: white;
    padding: 10px;
    border-radius: 10px;
}

.buttons:hover {
    color: white;
    background-color: #ffbd00;
}

.ingame-btns {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 12px;
    padding: 5px;
    background: #ff9600;
    border-radius: 5px;
}

.controls {
    right: 25px;
}

.controls:hover {
    cursor: pointer;
    transition: all 225ms ease-in-out;
    transform: scale(1.2);
}

.controls-story-container {
    width: 820px;
    height: 560px;
    background-color: #ff9600;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    letter-spacing: 1.2px;
    z-index: 5;
}

.controls-story-container-back {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 35px;
    height: 35px;
}

.controls-story-container-back:hover {
    cursor: pointer;
    transition: all 225ms ease-in-out;
    transform: scale(1.2);
}

#story-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

#story-container p{
    padding: 20px;
    color: white;
    font-size: 25px;
    letter-spacing: 1.5px;
}

.game-controls{
    font-size: 35px;
    margin-top: 10px;
}

.keyboard-btn {
    font-size: 40px;
    display: flex;
    align-items: center;
}

.keyboard-btn img{
    width: 50px;
    height: 50px;
}

.control-explanation-container {
    display: flex;
    flex-direction: row;
    gap: 120px;
}

.control-icons {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.control-explanation {
    display: flex;
    flex-direction: column;
}

.control-explanation p {
    font-size: 40px;
}

.hide {
    opacity: 0;
}

#mobile {
    position: absolute;
    color: white;
    font-size: 35px;
    text-align: center;
    height: 100vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    letter-spacing: 5px;
}

.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 820px;
    height: 480px;
}

.loading-screen  img {
    padding-top: 15px;
    height: 50px;
    width: 150px;
    object-fit: contain;
}

.button-container-ingame {
    position: absolute;
    top: 10px;
    right: 30px;
}

@keyframes grow {
    from {
        font-size: 64px;
    }
    to {
        font-size: 128px;
    }
}


/* Smartphones ---------------- */
@media only screen and (max-width: 1366px) {
    canvas {
        width: 100%;
    }

    .mobile-style {
        width: 100%;
        height: 100%;
    }

    .game-controls {
        margin-bottom: 5px;
    }

    body {
        overflow: hidden;
    }

    .hide {
        opacity: 1;
    }
}

@media only screen and (max-height: 520px) {
    .mobile-height {
        height: 100% !important;
    }

    .keyboard-btn {
        font-size: 25px;
    }

    .keyboard-btn img {
        width: 25px;
        height: 25px;
    }

    .control-explanation p {
        font-size: 25px;
    }

    body {
        overflow: hidden;
    }

    .hide {
        opacity: 1;
    }
}

@media (max-width: 820px) and (orientation: portrait) {
    #mobile {
        display: flex !important;
        z-index: 11;
        align-items: center;
        justify-content: center;
    }
}

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