@media only screen and (max-width: 1180px) {
    
    
    #movement-box {
        background-color: rgba(0, 0, 0, 0.0);
    }

    #footer {
        width: 100px;
        height: 24px;
        border-radius: 999px;
        z-index: 200;
        bottom: 2px;
        left: 2px;
    }

    #footer a {
        font-size: 12px;
    }

    .game-name {
        font-size: 32px;
        color: #FFD907;
    }

    #mobile-info {
        display: flex;
        position: fixed;
        width: 100%;
        height: 100vh;
        z-index: 100;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 1);
        color: white;
        text-align: center;
        flex-direction: column;
    }

    #canvas-box {
        width: 100%;
        /* height: 100vh; */
    }

    canvas {
        width: 100%;
    }

    #movement-box {
        z-index: 1;
        position: absolute;
        bottom: 16px;
        width: 100%;
    }

    .controls-desktop {
        display: none;
    }

    .controls-mobile {
        display: flex;
        width: 100%;
        justify-content: space-between;
        padding: 0 64px;
        position: absolute;
        bottom: 16px;
    }

    .main-title {
        display: none;
    }

    .button-mobile {
        width: 50px;
        height: 50px;
        background-color: #FFD907;
        padding: 24px;
        border-radius: 999px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        color: black;
    }

    .left-right-hand {
        display: flex;
        gap: 16px;
    }

    #status-txt {
        font-size: 40px;
    }
}


@media only screen and (max-width: 650px) {
    .counter-box {
        margin: 0 0 8px 0;
        padding: 8px;
        width: 160px;
    }

    .counter-box img {
        width: 30px;
        height: 30px;
        object-fit: cover;
    }
}

@media only screen and (max-width: 560px) {
    #btn-box {
        margin-top: 32px;
    }

    .button-mobile {
        width: 40px;
        height: 40px;
     }

     #rules h2 {
        font-size: 26px;
        margin-top: 8px;
    }
    
    p {
        margin-bottom: 4px;
        font-size: 14px;
    }

    #rules {
        padding: 16px;
    }
}


@media (max-width: 460px) {
    #btn-box {
        margin-top: 24px;
    }

    .button {
        width: 40px;
        height: 40px;
        font-size: 32px;
    }

    .counter-box {
        margin: 0 0 8px 0;
        padding: 4px;
        width: 160px;
    }

    .counter-box img {
        width: 25px;
        height: 25px;
        object-fit: cover;
    }

    #rules h2 {
        font-size: 18px;
    }

    #rules {
        padding: 12px;
    }

    p {
        font-size: 12px;
    }

    .btn-back {
        top: 16px;
        right: 16px;
    }

    th img {
        width: 20px;
        object-fit: cover;
    }

    table tr td {
        height: 32px;
        text-align: center;
        border-bottom: 1px solid white;
        font-size: 14px;
    }

}

@media (max-width: 380px) {
    #btn-box {
        margin-top: 16px;
    }

    .button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    th img {
        width: 20px;
        object-fit: cover;
    }

    table tr td {
        height: 24px;
        text-align: center;
        border-bottom: 1px solid white;
        font-size: 14px;
    }
}

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

    canvas {
        height: 100vh;
    }

    /* #mobile-info {
        display: none;
    } */
}

