body {
    font-family: 'mexican', Arial, Helvetica, sans-serif;
    margin: 0px;
    overflow: hidden;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("img/10_background/desert.svg");
    background-position: center;
    background-size: cover;
}

.d-none {
    display: none;
}

canvas {
    background-color: black;
    display: block;
    border: 6px solid #D5913C;
    border-radius: 6px;
}

.menu {
    height: 420px;
    width: 720px;
}

.menu img {
    height: 100%;
    width: 100%;
}

.btn {
    font-size: 25px;
    border: 5px solid black;
    border-radius: 30px;
    background-color: #f5ac2f;
    padding: 20px;
    transition: all .3s;
}

.btn:hover {
    cursor: pointer;
    transition: all .3s;
    background-color: #FFDF00;
}

.playbutton {
    position: absolute;
    top: 80px;
    left: calc(50% - 125px);
    padding-left: 60px;
    padding-right: 60px;
}

.go-back-menu {
    position: absolute;
    bottom: 25px;
    left: calc(50% - 562px/2);
    padding-left: 60px;
    padding-right: 60px;
}

.soundbutton, .keybutton {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setting-Container {
    width: 180px;
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 20px;
    right: 50px;
}

.setting-Container img {
    height: 48px;
    width: 48px;
}

.end-screen {
    height: 100vh;
    width: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gameover-image {
    animation: end-image 1.5s;
    height: 100%;
    width: 100%;
}

.keyboard-info {
    position: absolute;
    top: -440px;
    right: 0;
    height: 300px;
    width: 300px;
    padding-top: 140px;
    color: white;
    background-color: rgba(0, 0, 0, 0.418);
    z-index: 5;
    transition: all 1s ease-in-out;
    border-radius: 30px 0px 0px 30px;
}

.keyboard-info img {
    filter: invert(100%);
    width: 36px;
    opacity: 0.8;
    margin-right: 25px;
}

.instruction-cell {
    margin-bottom: 35px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    padding-left: 25px;
    font-size: 10px;
}

.rotate-phone {
    height: 100%;
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgba(157, 157, 157, 0.763);
    z-index: 999;
    text-align: center;
}

.rotate-phone img {
    width: 220px;
    opacity: 0.5;
}

.playbutton-section {
    width: 100%;
    position: absolute;
    display: none;
    bottom: 0px;
    align-items: center;
    justify-content: space-between;
}

.playbutton-section img {
    opacity: 0.6;
    height: 32px;
    padding: 5px;
    border: 2px solid black;
    border-radius: 5px;
}

.playbutton-section img:hover {
    opacity: 1;

}

.playbutton-container-left {
    margin-left: 30px;
}

.playbutton-container-right {
    margin-right: 30px;
}

@keyframes end-image {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.10);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width:1280px) {

    .playbutton {
        top: 70px;
        left: calc(50% - 78px);
        padding-left: 40px;
        padding-right: 40px;
    }

    .btn {
        font-size: 20px;
        border-radius: 20px;
    }

    .setting-Container {
        width: 150px;

    }

    .setting-Container img {
        height: 38px;
        width: 38px;
    }
}

@media (max-width:1024px) {
    .playbutton {
        top: 15px;
        left: calc(50% - 57px);
        padding: 12px;
    }

    .btn {
        font-size: 12px;
        border-radius: 16px;
        border: solid 3px;
    }

    .setting-Container {
        width: 100px;
        right: 25px;

    }

    .setting-Container img {
        height: 18px;
        width: 18px;
    }

    .go-back-menu {
        position: absolute;
        bottom: 25px;
        left: calc(50% - 233px/2);
        padding: 10px;
    }
}

@media (max-width:460px) {
    .playbutton {
        top: unset;
        bottom: 50px;
        left: calc(50% - 57px);
        padding: 10px;
    }

    .btn {
        font-size: 16px;
        border-radius: 16px;
        border: solid 3px;
    }

    .setting-Container {
        width: 125px;
        right: 30px;
    }

    .setting-Container img {
        height: 28px;
        width: 28px;
    }

}

@media (max-height:480px) {

    .keyboard-info {
        position: absolute;
        top: -440px;
        right: 0;
        height: 220px;
        width: 200px;
        padding-top: 110px;
        color: white;
        background-color: rgba(0, 0, 0, 0.418);
        z-index: 5;
        transition: all 1s ease-in-out;
        border-radius: 30px 0px 0px 30px;
    }

    .keyboard-info img {
        filter: invert(100%);
        width: 28px;
        opacity: 0.8;
        margin-right: 25px;
    }

    .instruction-cell {
        margin-bottom: 15px;
        opacity: 0.8;
        display: flex;
        align-items: center;
        padding-left: 10px;
        font-size: 6px;
    }

}

/* canvas responsive */

@media (max-width: 720px) {
    canvas {
        width: 100%;
    }

    .menu {
        width: 100%;
    }
}

@media (max-height: 480px) {
    canvas {
        width: 100%;
        height: 100vh;
        border: none;
    }

    .menu {
        height: 100%;
        width: 100%;

    }
}

/* Rotatate Smartphone */

@media (max-width: 480px) {
    .rotate-phone {
        display: flex;
    }
}

/* Playbuttons using */

@media screen and (max-width: 1024px) and (max-height: 1400px) {
    .playbutton-section {
        display: flex;
    }
}