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

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

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

h1 {
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.2);
    font-size: 40px;
    letter-spacing: 3px;
}

.links {
    font-size: 16px;
    text-align: center;
    color: rgba(0, 0, 0, 0.2);
}

.start-screen {
    background-image: url('img/9.Intro _ Outro Image/Start Screen/Opción 1.png');
    width: 100vw;
    height: 100vh;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.end-screen {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url('img/9.Intro _ Outro Image/_Game over_ screen/3.Game over.png');
}

.end-screen-button{
    cursor: pointer;
    color: black;
}

.controls {
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: bolder;
}

.mobile-buttons-div {
    position: relative;
    color: rgb(239, 79, 10);

}

.move {
    display: none;
}

.jumpNthrow {
    display: none;
}

.screen {
    cursor: pointer;
    position: fixed;
    top: 25px;
    left: 20px;
}

.play {
    cursor: pointer;
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 1;
}

.replay {
    cursor: pointer;
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 1;
}

.sound {
    cursor: pointer;
    position: fixed;
    top: 160px;
    left: 20px;
}

.please_turn_device {
    display: none;
}

@media only screen and (max-width: 860px) {

    .mobile-buttons-div {
        width: 100%;

    }

    canvas {
        width: 100%;
    }

    h1, p, a {
        display: none;
    }

    .move {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 999;
    }

    .jumpNthrow {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 40px;
        z-index: 999;
    }

    .screen {
        display: none;
    }

    .sound {
        cursor: pointer;
        position: fixed;
        top: 80px;
        z-index: 1;
    }

    .play {
        cursor: pointer;
        position: fixed;
        top: 30px;
        z-index: 1;
    }

    .replay {
        cursor: pointer;
        position: fixed;
        top: 30px;
        z-index: 1;
    }
}

@media only screen and (max-height: 680px) {

    .mobile-buttons-div {
        width: 100%;

    }

    canvas {
        height: 100vh;
        width: 100%;
    }

    h1, p, a {
        display: none;
    }

    .move {
        display: block;
        position: fixed;
        top: 80%;
        left: 20px;
        z-index: 1;
    }

    .jumpNthrow {
        display: block;
        position: fixed;
        top: 80%;
        right: 40px;
        z-index: 1;
    }

    .screen {
        display: none;
    }
}

@media screen and (orientation:portrait) {
    .please_turn_device {
        display: unset;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9;
        background-color: rgba(0, 0, 0, 0.95);
        color: red;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }

    h1 {
        display: block;
        font-size: 24px;
    }

}