* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background-color: black;
}

#container {
    width: 100%;
    height: 100%;
    position: relative;
    background: url('../images/M3_H5.png');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

#game-box {
    width: 100%;
    height: 100%;
    /* aspect-ratio: 964 / 1820; */
    position: fixed;
    left: 0px;
    top: 0px;
    z-index: 1;
    user-select: none;
}

.z-index-999 {
    z-index: 999;
}

.game-screen {
    position: relative;
    width: 515px;
    height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-position: center top;
    background-size: 100%;
    user-select: none;
}

.bg-side-left .wrap-logo {
    position: absolute;
    top: 15px;
    right: 40px;
    display: flex;
    text-align: right;
}

.bg-side-left .wrap-logo a {
    display: block;
    width: 215px;
    height: 124px;
    background: url('../images/logo.png') no-repeat;
    background-size: 100%;
}

.bg-side-left .wrap-bg18-left {
    display: none;
    top: 150px;
    right: 45px;
    position: absolute;
    display: flex;
    text-align: right;
}

.bg-side-left .wrap-bg18-left img {
    /* display: none; */
    width: 100%;
    height: auto;
}

.top-social-row {
    position: absolute;
    top: 7px;
    left: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.top-social-row .wrap-bg18-right {
    display: block;
    position: relative;
    width: 202px;
    height: 145px;
}

.top-social-row .wrap-bg18-right img {
    width: 100%;
    height: auto;
}

.top-social-row .container_social {
    position: relative;
    top: 18px;
}

.top-social-row .star_img {
    position: absolute;
    transform: translate(25%, -20%);
    width: 218px;
    height: 19px;
    pointer-events: none;
    z-index: 0;
}


.menu {
    list-style: none;
    display: flex;
    gap: 0;
    margin-top: 8px;
}

.menu li a {
    display: block;
    width: 64.5px;
    height: 65px;
    background-image: url('../images/menu.png');
    background-repeat: no-repeat;
    background-size: 500% 200%;
}

.btn-home a {
    background-position: 0% 0%;
}

.btn-facebook a {
    background-position: 25% 0%;
}

.btn-group a {
    background-position: 50% 0%;
}

.btn-zalo a {
    background-position: 75% 0%;
}

.btn-discord a {
    background-position: 100% 0%;
}

.btn-home a:hover {
    background-position: 0% 100%;
}

.btn-facebook a:hover {
    background-position: 25% 100%;
}

.btn-group a:hover {
    background-position: 50% 100%;
}

.btn-zalo a:hover {
    background-position: 75% 100%;
}

.btn-discord a:hover {
    background-position: 100% 100%;
}

.bg-side-right .btn-recharge {
    position: absolute;
    width: 300px;
    height: 315px;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    top: 120px;
    background: url('../images/nap_the_thin.png') 0 0 no-repeat;
    background-size: 100%;
}

.bg-side-right .btn-recharge a {
    display: block;
    width: 100%;
    height: 100%;
}

.bg-side-right .btn-recharge a:hover {
    background: url('../images/nap_the_hover.png') no-repeat;
    background-size: 100%;
}

.dl-change-bg {
    animation: 0.8s linear infinite alternate dl-change-bg;
    -webkit-animation: 0.8s linear infinite alternate dl-change-bg;
}

@keyframes dl-change-bg {

    0%,
    100% {
        background-image: url('../images/nap_the_thin.png');
        background-position: 0;
    }

    50% {
        background-image: url('../images/nap_the_light.png');
        background-position: 0;
    }
}

@-webkit-keyframes dl-change-bg {

    0%,
    100% {
        background: url('../images/nap_the_thin.png');
        background-position: 0;
    }

    50% {
        background: url('../images/nap_the_light.png');
        background-position: 0;
    }
}

@keyframes btnGiftcode {
    from {
        background: url(../images/gift-h5.png) top left no-repeat;
        background-size: 100%;
    }
    to {
        background: url(../images/gift-effect-h5.png)  no-repeat;
        background-size: 100%;
    }
}
.bg-side-right .giftcode-use {
    position: absolute;
    width: 294px;
    height: 72px;
    left: 50%;
    transform: translateX(-50%);
    top: 450px;
    background: url('../images/gift-h5.png') left top no-repeat;
    animation: btnGiftcode 0.7s steps(10, end) infinite;
    animation-play-state: running;
}

.bg-side-right .giftcode-use:hover {
    background: url('../images/gift-hover-h5.png') left top no-repeat;
    /* animation-play-state: paused; */
    animation: none; /* Tắt animation */
}

.bg-side-right .giftcode-use a {
    display: block;
    width: 100%;
    height: 100%;
}

.bg-side-right .download-client {
    position: absolute;
    width: 367px;
    height: 50px;
    left: 50%;
    transform: translateX(-50%);
    top: 535px;
    background: url('../images/download.png');
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bg-side-right .download-client a {
    display: block;
    width: 100%;
    height: 100%;
}

.bg-side-right .download-client:hover {
    transform: translateX(-50%) scale(1.05);
    opacity: 0.9;
}

.bg-side-right .qr-code {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 605px;
    width: 276px;
    height: 343px;
    background: url('../images/code.png');
    background-size: 100%;
    background-repeat: no-repeat;
}

.qr-content {
    width: 180px;
    height: 180px;
    margin-top: 52px;
    margin-left: 45px;
    background: url('../images/qr-code-3.png');
    background-size: 100%;
}


.wrap-game-box {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    width: 100%;
    height: 100%;
}

.bg-side,
.bg-side {
    position: relative;
    z-index: 10;
    flex: 1;
    height: 100%;
}

.bg-side-left {
    position: relative;
    background: url("../images/bg-play-h5-left.png") right center no-repeat;
}

.bg-side-right {
    position: relative;
    width: 720px;
    height: 1680px;
    background: url("../images/bg-play-h5-right.png") left center no-repeat;
}

.game-box {
    width: 515px;
    height: 915px;
}

.wrap-game-box.reset-background .bg-side {
    background: none !important;
}

.wrap-game-box.reset-background .game-box {
    /* width: 100% !important; */ 
}