* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

::-webkit-scrollbar {
    width: 6px;
    background-color: #fff;
}

::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background-color: #d9d9d9;
}

::-webkit-scrollbar-track {
    border-radius: 20px;
    background-color: #fff;
}
img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
button:hover, button:focus {
    border: unset !important;
    overflow: unset;
    outline: unset;
}
.pc {
    display: block;
}
.mobile {
    display: none;
}
img.filter:hover {
    filter: brightness(1.2);
    cursor: pointer;
}
.nav-tabs .nav-item .nav-link:hover,
.nav-tabs .nav-item .nav-link:focus {
    border: unset;
}
.nav-tabs .nav-item .nav-link {
    text-transform: uppercase;
    margin: 0;
    border-top-left-radius: unset;
    border-top-right-radius: unset;
    border: unset;
}
.navbar-expand-lg .navbar-nav .account-item .account-logout {
    color: #ffffff87 !important;
}
.navbar-nav .account-item {
    color: #d54e27;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 !important;
}
.navbar-expand-lg .navbar-nav .account-item .account-info {
    color: #d54e27 !important;
}
.navbar-toggler button svg {
    display: flex;
    justify-content: center;
    align-items: center;
}
#toast-container>.toast-error {
    background-color: #BD362F;
}
#toast-container>.toast-success {
    background-color: #2fbd47;
}
.modal.show .modal-dialog {
    margin-top: 5px;
}
.toast.toast-error {
    scale: 0.85;
}
/* ---- Begin Header ---- */
header {
    width: 100%;
    position: fixed;
    z-index: 10;
}
.logo {
    max-width: 135px;
    position: absolute;
    border-radius: 24px;
    padding: 10px;
    background-color: #293137;
    left: 5%;
}
.navbar-collapse {
    flex-grow: unset;
}
.navbar-light {
    background: #293137;
}
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}
.nav-item {
    text-transform: uppercase;
    gap: 40px;
}
.navbar-expand-lg .navbar-nav .nav-link {
    opacity: 1;
    color: white !important;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    padding: 0 25px;
    border-right: 1px solid #38444c;
    cursor: pointer;
}
.navbar-expand-lg .navbar-nav .nav-item:last-child .nav-link {
    border-right: none;
}
.navbar-expand-lg .navbar-nav .nav-link span {
    color: #677c8a;
}
.navbar-expand-lg .navbar-nav .nav-link:hover {
    color: #d54e27 !important;
}
.navbar-toggler {
    display: flex;
    width: 100%;
    justify-content: right;
    border: unset;
}
.navbar-toggler button {
    background: unset;
    border: unset;
}
/* ---- End Header ---- */

/* ---- Begin Content ---- */
.content-wrapper {
    background: url(../../images/homepage/bg-banner.png) top center no-repeat;
    background-size: cover;
}
.content-wrapper .logo-wrapper {
    position: absolute;
    top: 10%;
    left: 5%;
}
.content-wrapper .logo-wrapper img {
    max-width: 250px;
}
.top-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    padding-top: 490px;
}
/* ---- End Content ---- */

/* ---- Begin Game ---- */
.game-block {
    width: 25%;
}
.game-block .action-btn {
    display: flex;
    justify-content: center;
    align-items: center;
}
.game-block .action-btn a {
    width: 50%;
}
.instruct-block {
    background: url(../../images/homepage/bg-instruct.jpg);
    padding: 8px;
    background-size: contain;
}
/* ---- End Game ---- */

/* ---- Begin New ---- */
.news-block {
    width: 50%;
    display: block;
    gap: 20px;
}
.hot-news {
    background-color: #efebe0;
    margin-top: 10px;
}
.news-block .tab-block {
    background: url(../../images/homepage/bg-news.png) no-repeat;
    background-size: cover;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}
.news-block .tab-block .nav-tabs {
    margin-left: 30px;
}
.news-block .tab-block .more-content {
    cursor: pointer;
    margin-right: 10px;
}
.news-block .tab-block .more-content a {
    text-decoration: unset;
    color: black;
    font-size: 13px;
}
.news-block .tab-block .more-content img {
    max-width: 20px;
}
.news-block .tab-content .tab-pane {
    padding: 5px 15px;
}
.news-block .tab-content .tab-pane .nav-post {
    display: flex;
    justify-content: space-between;
    padding: 4.6px 0;
    border-bottom: 1px dashed #878e88;
}
.news-block .tab-content .tab-pane .nav-post .nav-title {
    display: inline-block;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-block .tab-content .tab-pane .nav-post .nav-title a {
    color: black;
    text-decoration: unset;
}
.news-block .tab-content .tab-pane .nav-post:hover .nav-title a {
    color: #d54e27;
    cursor: pointer;
}
.news-block .tab-content .tab-pane .nav-post:last-child {
    border-bottom: unset;
}
.news-block .nav-tabs {
    border-bottom: unset;
}
.news-block .nav-tabs .nav-item .nav-link {
    padding: 0 20px;
    color: black;
    border-right: 1px solid #001c29;
    font-weight: bold;
    font-size: 13px;
}
.news-block .nav-tabs .nav-item:last-child .nav-link {
    border-right: unset;
}
.news-block .nav-tabs .nav-item .nav-link.active {
    background-color: unset;
    color: #7d0f00;
}
.slider-news {
    padding-bottom: 2px;
}
/* ---- End New ---- */

/* ---- Begin Community ---- */
.community-block {
    width: 25%;
    text-align: center;
}
.community-block .top-community {
    background: url(../../images/homepage/bg-community.png) no-repeat;
    background-size: contain;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 13px;
    padding: 3px 0;
}
.community-block .community-link, .community-block .community-gr {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}
.community-block .community-link, .community-block .community-gr a {
    padding-bottom: 2px;
}
.community-block .bot-community {
    margin-top: 10px;
}
.community-block .bot-community .hot-title {
    background: url(../../images/homepage/bg-hots.png) no-repeat;
    background-size: cover;
    padding: 7px 0;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 13px;
}
.community-block .bot-community .hot-contents {
    background-color: #efebe0;
    text-align: left;
    padding: 5px 15px;
}
.community-block .bot-community .hot-contents .hot-post {
    padding: 4.6px 0;
    border-bottom: 1px dashed #878e88;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 1;
}
.community-block .bot-community .hot-contents .hot-post a {
    color: black;
    text-decoration: unset;
}
.community-block .bot-community .hot-contents .hot-post:hover a {
    color: #d54e27;
    cursor: pointer;
}
.community-block .bot-community .hot-contents .hot-post:last-child {
    border-bottom: unset;
}
/* ---- End Community ---- */

/* ---- Begin Character ---- */
.character-wrapper .character-block {
    overflow: hidden;
    margin-top: 10px;
}
.character-wrapper .swiper {
    width: 100%;
    height: 100%;
}

.character-wrapper .swiper-wrapper-top {
    justify-content: center;
}
.character-wrapper .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.character-wrapper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-wrapper .swiper {
    width: 100%;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
}

.character-wrapper .swiper-slide {
    background-size: cover;
    background-position: center;
}

.character-wrapper .mySwiper2 {
    height: 80%;
    width: 100%;
}

.character-wrapper .mySwiper {
    height: 1%;
    box-sizing: border-box;
    background: url(../../images/homepage/bg-char.png) no-repeat;
    background-size: cover;
}

.character-wrapper .mySwiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.6;
}

.character-wrapper .mySwiper .swiper-slide-thumb-active {
    opacity: 1;
    filter: brightness(1.05);
}

.character-wrapper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ---- End Character ---- */

/* ---- Begin Footer ---- */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    color: #866232;
    gap: 20px;
}
footer img {
    max-width: 120px;
}
/* ---- End Footer ---- */

/* ---- Begin Sticky Bar ---- */
.sticky-bar-wrapper {
    position: fixed;
    top: 100px;
    right: 0;
    z-index: 15;
}
.sticky-bar-wrapper .sticky-bar-content a:hover {
    filter: brightness(120%);
}
.sticky-bar-wrapper .sticky-bar-pc {
    background-image: url(../../images/landing/bg-floatingright.png);
    background-size: 100% 100%;
    max-width: 210px;
    position: relative;
    z-index: 2;
    scale: 0.9;
}
.sticky-bar-wrapper .layer-sticky-bar {
    position: absolute;
    top: -103px;
}
.sticky-bar-wrapper .sticky-bar-pc .sticky-bar-content {
    width: 68%;
    margin: 0 auto;
    padding-bottom: 47px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sticky-bar-wrapper .sticky-bar-pc .sticky-bar-content .button-install-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}
.sticky-bar-wrapper .sticky-bar-pc .sticky-bar-content .button-action-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.sticky-bar-wrapper .sticky-bar-pc .sticky-bar-content {
    position: relative;
    top: 20px;
}
/* ---- End Sticky Bar ---- */

/* ---- Begin Register Modal ---- */
.login-bg, .login-action {
    display: none;
}
.login-action .popup-action-account {
    text-align: center;
    margin-bottom: 10px;
}
.login-action .popup-action-account a {
    color: #e96543;
    font-style: italic;
    text-decoration: unset;
    cursor: pointer;
}
.login-action .popup-action-account a:hover {
    color: #ed7e62;
}
.total-account {
    position: absolute;
    width: 100%;
    text-align: center;
    color: #04444b;
    text-transform: uppercase;
    bottom: 140px;
    font-size: 14px;
    font-weight: bold;
}
.total-account span {
    color: #b50c0c;
}
#popupRegisterSuccess {
    display: none;
}
#register-modal .modal-bg {
    position: relative;
}
#register-modal .modal-content {
    background-color: unset;
    border: none;
    position: absolute;
    margin-top: -70px;
}
#popupRegisterForm, #popupRegisterSuccess {
    width: 58%;
    margin: -45px auto 0;
    position: relative;
}
.bg-mb {
    display: none;
}
.register-modal .close {
    position: absolute;
    background-image: url(../../images/homepage/_sprites_7.png);
    background-position: 0 -409px;
    width: 62px;
    height: 64px;
    opacity: 1;
    scale: 0.6;
    z-index: 9999;
}
.register-modal .close:hover {
    opacity: 1 !important;
    filter: brightness(1.2);
}
#popupRegisterForm .close {
    right: -25%;
    top: -40%;
}
#popupRegisterForm.login-form .close {
    top: -120%;
}
#popupRegisterSuccess .close {
    top: -155%;
    right: -24%;
}
.input-group label {
    color: #912e21;
    text-transform: uppercase;
    width: 160px;
    text-align: left;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 0;
}
.input-group input {
    width: calc(100% - 210px);
    flex: 1;
    height: 26px;
    background-color: white;
    border: none;
    padding: 0 8px;
    font-size: 14px;
    border-radius: 2px;
    color: black;
    letter-spacing: 0.5px;
}
.input-group input:hover, .input-group input:focus {
    border: unset;
    outline: unset;
}
.input-form__login label {
    width: 150px;
}
.input-form__login input {
    width: calc(100% - 160px);
}
.input-group {
    margin-bottom: 14px;
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
}
.input-group label.error {
    color: #e96543;
    font-weight: unset;
    margin-top: 5px;
    text-align: right;
    display: block;
    position: absolute;
    top: 100%;
    width: 100%;
    left: 0;
    font-size: 11px;
}
.reload-icon {
    max-width: 20px !important;
    cursor: pointer;
}
#captcha-image img {
    height: 26px;
}

.btn-submit-form {
    text-align: center;
    width: 35%;
    margin: 10px auto;
}
.btn-submit-form button {
    border: unset;
    background-color: unset;
}
.has-gift-code {
    display: none;
    margin-top: 10px;
}
.gift_code_register {
    background: url(../../images/homepage/register-code-bg.png) no-repeat center;
    background-size: cover;
    height: 65px;
    width: 80%;
    margin: 0 auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.group__info {
    color: #563417;
    font-size: 18px;
    text-align: center;
}
.group__info p {
    margin: 0;
}
#gift_code_register {
    color: #fff1d0;
    font-weight: bold;
    background: linear-gradient(to top, #ffdf86 0%, #fff1d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.popup_register_success .group__btn {
    display: flex;
    margin-top: 30px;
    gap: 10px;
}
.popupCommunity {
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.popupCommunity img {
    max-width: 50px;
}
.modal.fade .modal-dialog {
    display: flex;
    justify-content: center;
}
/* ---- End Register Modal ---- */

@media (min-width: 768px) and (max-width: 1440px) and (orientation: portrait) {
    /* ---- Begin Header ---- */
    .navbar-expand-lg .navbar-nav .nav-link {
        font-size: 12px;
    }
    .navbar {
        padding: 16px 0;
    }
    .navbar-toggler button:focus {
        outline: unset;
        outline: unset;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        font-size: 12px;
        text-align: left;
        padding: 0 30px;
    }
    .navbar-expand-lg .navbar-nav .nav-item .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid #38444c;
        border-right: unset;
        margin: 0 30px;
        line-height: 1.6;
    }
    .navbar-expand-lg .navbar-nav .nav-item:last-child .nav-link {
        padding-bottom: 40px;
        border-bottom: unset;
    }
    /* ---- End Header ---- */
}

@media (min-width: 768px) and (max-width: 1440px) and (orientation: landscape) {
    /* ---- Begin Header ---- */
    .navbar-expand-lg .navbar-nav .nav-link {
        font-size: 12px;
    }
    .navbar {
        padding: 12px 0;
    }
    .navbar-toggler button:focus {
        outline: unset;
        outline: unset;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        font-size: 12px;
        text-align: left;
        padding: 0 30px;
    }
    .navbar-expand-lg .navbar-nav .nav-item .nav-link {
        padding: 10px 0;
        border-right: unset;
        margin: 0 30px;
        line-height: 1.6;
    }
    .navbar-expand-lg .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: unset;
    }
    /* ---- End Header ---- */
}

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

}

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

}

@media only screen and (max-width: 599px) {
    #captcha_input {
        width: 100%;
    }
}

/* Màn hình rất nhỏ (Mobile dưới 400px) */
@media (max-width: 399px) {

}

/* Màn hình siêu nhỏ (tầm 320px) */
@media (max-width: 320px) {

}

@media (orientation: portrait) {
    * {
        font-size: 12px;
    }
    .pc {
        display: none !important;
    }
    .mobile {
        display: block !important;
    }
    /* ---- Begin Header ---- */
    .top-wrapper {
        padding-top: 360px;
    }
    .navbar-toggler button:focus {
        outline: unset;
        outline: unset;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        font-size: 12px;
        text-align: left;
        padding: 0 30px;
    }
    .navbar-expand-lg .navbar-nav .nav-item .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid #38444c;
        border-right: unset;
        margin: 0 30px;
        line-height: 1.6;
    }
    .navbar-expand-lg .navbar-nav .nav-item:last-child .nav-link {
        padding-bottom: 40px;
        border-bottom: unset;
    }
    /* ---- End Header ---- */
    .community-block .bot-community .hot-title {
        padding: 5px 0;
    }
    .content-wrapper .logo-wrapper {
        top: 3%;
        left: 5%;
    }
    .content-wrapper .logo-wrapper img {
        max-width: 200px;
    }
    .section-contact .section-information .information {
        font-size: 11px;
    }
    .container {
        margin: 0 auto;
        max-width: 90%;
    }
    .modal.fade .modal-dialog {
        max-width: 85%;
        margin: 0 auto;
    }
}
