body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    height: 100vh;
    background-image: url('img/desert.jpg');
    background-size: cover;
    background-position-y: -300px;
    background-repeat: no-repeat;
    background-position: center;
    font-family: 'zabras', Arial, Helvetica, sans-serif;
    font-size: 25px;
    text-shadow: 2px 2px 4px rgba(0, 8, 5, 0, 8);
}

.restartButton {
    --color: #fc7b04;
    font-family: inherit;
    width: 160px;
    height: 52px;
    line-height: 50px;
    margin: 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--color);
    z-index: 100;
    font-size: 20px;
    border-radius: 6px;
    color: var(--color);
    margin-top: -130px;
    cursor: pointer;
}

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

.startscreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.startButton {
    top: 5vh;
    --color: #fc7b04;
    font-family: inherit;
    width: 8em;
    height: 2.6em;
    line-height: 2.5em;
    position: fixed;
    border: 2px solid var(--color);
    z-index: 100;
    font-size: 20px;
    border-radius: 6px;
    color: var(--color);
    cursor: pointer;
    margin-left: -165px;
}

.infoButton {
    top: 5vh;
    --color: #fc7b04;
    font-family: inherit;
    width: 8em;
    height: 2.6em;
    line-height: 2.5em;
    margin-right: -180px;
    position: fixed;
    overflow: hidden;
    border: 2px solid var(--color);
    transition: color .5s;
    z-index: 100;
    font-size: 20px;
    border-radius: 6px;
    font-weight: 500;
    color: var(--color);
    cursor: pointer;
}

.startButton:hover,
.infoButton:hover {
    background-color: #ffce33;
}

.rightWalk {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 0 20px;
}

.infoButtonContainer {
    position: relative;
    height: 100%;
    width: 100%;
    top: 23px;
}

.infoframe {
    background-color: #b69882d9;
    z-index: 6;
    height: 340px;
    width: 40vw;
    align-items: center;
    border-radius: 15px;
    position: absolute;
    top: 30%;
}

.color {
    fill: #ffce33;
}

.closebutton {
    position: absolute;
    z-index: 99;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    right: 0;
    top: 0;
    cursor: pointer;
}

.rules {
    fill: #ffce33;
}

.closeButton {
    fill: #ffce33;
}


.infoframe {
    fill: #ffce33;
}

.infoframe img {
    height: 40px;
    width: 40px;
    display: flex;
    flex-direction: column;
}

.space {
    height: 40px;
    width: 70px;
}

.dJump {
    display: flex;
    gap: 40px;
}

.rightLeft {
    display: flex;
    gap: 50px;
}

.keyboardPhone {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin-top: -5%;
}

.containerButton {
    display: flex;
    margin-top: 19vh;
}

.keyboardPhone img {
    height: 40px;
    width: 40px;
}

.rulesGame {
    display: flex;
    gap: 20px;
    border-radius: 10px;
    width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.rules {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: rgb(7, 1, 1);
}

.rules img {
    height: 40px;
    width: 40px;
}

.fullscreen {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;

}

.soundMute button {
    --color: #fc7b04;
    font-family: inherit;
    width: 160px;
    height: 52px;
    line-height: 50px;
    margin: 5px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--color);
    transition: color .5s;
    font-size: 15px;
    border-radius: 6px;
    font-weight: 500;
    color: var(--color);
    position: absolute;
    top: 10px;
    right: 80px;
    cursor: pointer;
}

.soundMute button:hover {
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.1);
}

.mobilSound img {
    display: none;
}

.fullscreen img {
    height: 50px;
}

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

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

canvas {
    display: block;
}

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

    .containerButton {
        display: flex;
        margin-top: 68px;
    }

    .startButton {
        width: 100px;
        margin-left: -103px;
    }

    .infoButton {
        width: 100px;
    }

    .infoframe {
        height: 100%;
        width: 100%;
        border-radius: 37px;
    }

    .rulesGame {
        display: none;
    }

    .fullscreen {
        display: none;
    }
}

@media only screen and (max-width: 800px) and (orientation: portrait) {
    .flipPhone {
        display: block !important;
        background-color: #cb9665;
        position: absolute;
        z-index: 101;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100%;
        max-width: none;
        max-height: none;
        transform-origin: left top;
        transform: none;
        object-fit: contain;
    }

    .keyboardPhone {
        display: flex !important;
    }

    .rulesGame {
        display: none;
    }
}

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

    .fullscreen {
        display: none !important;
    }

    h1 {
        display: none;
    }

    .mobilSound {
        display: flex;
        z-index: 100;
        top: 0;
        right: 0;
    }

    .mobilSound {
        position: absolute;
        top: 5px;
        right: 0;
    }

    .mobilSound img {
        display: block;
        height: 30px;
        margin-right: 5px;
    }

    .muteButton {
        display: none;
    }

    .rulesGame {
        display: none;
    }

    .containerButton {
        margin-top: 15%;
    }

    .infoframe {
        height: 100%;
        width: 100%;
        border-radius: 0px;
        position: unset;
    }

    .soundMute button {
        right: 8px;
    }

    .restartButton {
        --color: #fc7b04;
        font-family: inherit;
        width: 160px;
        height: 52px;
        line-height: 50px;
        position: relative;
        overflow: hidden;
        border: 2px solid var(--color);
        z-index: 100;
        font-size: 20px;
        border-radius: 6px;
        color: var(--color);
        margin-top: -370px;
        cursor: pointer;
    }

}