@font-face {
    font-family: "SVN-Avo";
    src: url("../fonts/SVN-Avo.ttf");
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes zoomBtn1 {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.17);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes zoomBtn2 {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lightSweep {
    from {
        background-position: 150% 0;
    }

    to {
        background-position: 0% 0;
    }
}

@keyframes lightBlink {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.4);
    }

    100% {
        filter: brightness(1);
    }
}

* {
    box-sizing: border-box;
    font-family: "SVN-Avo";
}

::-webkit-scrollbar {
    display: none;
}

img {
    vertical-align: middle;
    border-style: none;
    height: 100%;
}

.transform-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.btn-zoom1 {
    animation: zoomBtn1 .6s ease-in-out infinite;
}

.btn-zoom2 {
    animation: zoomBtn2 .6s ease-in-out infinite;
}

.lightSweep::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(-45deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 60%);

    background-size: 300% 200%;
    animation: lightSweep 2.5s ease-in-out infinite;
}

.animation-blink {
    animation: lightBlink .8s ease-in-out infinite;
}

.btn-main {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 4.8vw; */
    cursor: pointer;
    width: fit-content;
    transition: 0.2s ease;
    width: 100%;
}

.btn-main:hover {
    filter: brightness(1.2);
}

.btn-sub {
    position: relative;
    border: 1px solid #DB2E16;
    color: #DB2E16;
    background-color: transparent;
    padding: 0.3vw;
    width: 6.8vw;
    cursor: pointer;
    text-transform: uppercase;
    white-space: nowrap;
    font-weight: bold;
    font-size: 1vw;
    text-align: center;
    z-index: 0;
    transition: all 0.25s ease-in-out;
}

.btn-sub::before {
    content: '';
    z-index: -1;
    position: absolute;
    inset: 0;
    background-color: #DB2E16;
    transform-origin: center right;
    transform: scaleX(0);
    transition: transform 0.25s ease-in-out;
}

.btn-sub:hover,
.btn-sub.active {
    color: #fff;
}

.btn-sub:hover::before,
.btn-sub.active::before {
    transform-origin: center left;
    transform: scaleY(1);
}

@media (max-width: 767px) {
    .btn-sub {
        padding: 1vw 1.2vw;
        width: 18vw;
        font-size: 2.4vw;
    }
}

/* LOADING */

.loading.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.loading {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading .spinner {
    animation: spin 1s linear infinite;
}

/* HEADER */

header .desk p:hover {
    cursor: pointer;
}

ul#ul-menu_mobile {
    opacity: 0;
    transition: 0.5s ease-in-out;
    transform: translateX(26vw);
}

ul#ul-menu_mobile.active {
    transform: translateX(0);
    opacity: 1;
    transition: 0.5s ease-in-out;
}

/* ul#ul-menu_mobile li {
    cursor: pointer
} */

ul#ul-menu_mobile hr {
    margin: 4px 0;
}

ul#ul-menu_mobile li a {
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    color: white;
    display: flex;
    align-items: center;
    cursor: pointer;
}

ul#ul-menu_mobile li a svg {
    margin: 0px 5px;
    width: 15px;
}

#btn-menu_mobile.active {
    position: relative;
    top: 0vw;
    width: 8vw;
    height: 8vw;
}

#btn-menu_mobile .item_menu {
    background-color: black;
    width: 8vw;
    height: 1.2vw;
    margin: 1vw 0vw;
    border-radius: 15px;
}

#btn-menu_mobile.active .top {
    position: absolute;
    top: 26%;
    transform: rotate(45deg);
    transition: 0.5s ease-in-out;
}

#btn-menu_mobile.active .center {
    display: none;
}

#btn-menu_mobile.active .bottom {
    position: absolute;
    top: 26%;
    transform: rotate(134deg);
    transition: 0.5s ease-in-out;
}

/* LANDING */

.landing {
    background-image: url(../images/bg-desk.webp);
    background-position: top;
    background-size: 100%;
    background-repeat: no-repeat;
    position: relative;
    margin-top: -12.8vw;
    /* padding-bottom: 10.5vw; */
    overflow-y: hidden;
}

@media (max-width: 767px) {
    .landing {
        background-image: url(../images/bg-mobi.webp);
        background-position: top;
        margin-top: -39vw;
    }
}

/* TAB 2 */

.tab2 .btn-support:hover {
    animation: jelly 0.5s;
}

@keyframes jelly {

    0%,
    100% {
        transform: scale(1, 1);
    }

    25% {
        transform: scale(0.9, 1.1);
    }

    50% {
        transform: scale(1.1, 0.9);
    }

    75% {
        transform: scale(0.95, 1.05);
    }
}

/* TAB 3 */

.tab3 .server-btn {
    background: url("../images/tab3/btn-chon-server.webp") no-repeat center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.tab3 .server-list {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 5;
    /* display: none; */
}

.tab3 .server-list.show {
    display: block;
}

.tab3 .server-item {
    padding: 8px 12px;
    color: white;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8vw;
}

.tab3 .server-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tab3 .server-item:last-child {
    border-bottom: none;
}

.tab3 .ranking-btn {
    width: 8.6vw;
    height: 3.75vw;
    border: none;
    cursor: pointer;
    color: white;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.2s;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.tab3 .ranking-btn:focus {
    outline: none;
}

.tab3 .ranking-btn:hover {
    transform: scale(1.05);
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.4));
}

.tab3 .ranking-btn.active {
    transform: scale(1.2);
    filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.5));
}

.tab3 .btn-cap-do {
    background-image: url("../images/tab3/bxh-capdo.webp");
}

.tab3 .btn-tai-phu {
    background-image: url("../images/tab3/bxh-taiphu.webp");
}

.tab3 .btn-bang-hoi {
    background-image: url("../images/tab3/bxh-banghoi.webp");
}

.tab3 .ranking-table {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
}

.tab3 .table-header {
    background: transparent;
    color: #000;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.tab3 .table-header th {
    padding: 0.5vw;
    text-align: center;
    font-size: 0.9vw;
    white-space: nowrap;
}

.tab3 .table-body tr:hover {
    background: rgba(139, 115, 85, 0.1);
}

.tab3 .table-body tr:nth-child(even) {
    background: transparent;
}

.tab3 .table-body tr:nth-child(odd) {
    background: #F7E6BA;
}

.tab3 .table-body td {
    padding: 0.44vw 0.5vw;
    text-align: center;
    font-size: 0.9vw;
    color: #000;
}

.tab3 .table-body td:first-child {
    padding: 0;
}

.tab3 .table-body td:last-child {
    border-right: none;
}

.tab3 .rank-icon {
    height: 2.4vw;
    display: flex;
    justify-content: center;
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.tab3 .rank-1 {
    background-image: url("../images/tab3/hang-1.webp");
}

.tab3 .rank-2 {
    background-image: url("../images/tab3/hang-2.webp");
}

.tab3 .rank-3 {
    background-image: url("../images/tab3/hang-3.webp");
}

.tab3 .rank-number {
    font-weight: bold;
    color: #000;
    font-size: 0.85vw;
}

.tab3 .page-btn {
    background: #fff;
    color: #DB2E16;
    width: 2.3vw;
    height: 2.3vw;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 0.9vw;
    margin: 0 0.5vw;
    /* transition: 0.35s ease-in-out; */
    border-radius: 50%;
}

.tab3 .page-btn.active {
    background: #DB2E16;
    color: #fff;
}

@media (max-width: 767px) {
    .tab3 .server-item {
        font-size: 3vw;
    }

    .tab3 .ranking-btn {
        width: 100%;
        height: 6.4vw;
    }

    .tab3 .table-header th,
    .tab3 .table-body td {
        padding: 2vw;
        font-size: 2.6vw;
    }

    .tab3 .rank-icon {
        height: 6.8vw;
    }

    .tab3 .rank-number {
        font-size: 2.6vw;
    }

    .tab3 .page-btn {
        width: 6vw;
        height: 6vw;
        font-size: 2.9vw;
    }
}

/* TAB 4 */

.tab4 .swiper-pagination-4 span:nth-child(-n+6) {
    align-items: center;
}

.tab4 .swiper-pagination-4 span:nth-child(-n+6) .bg-btn {
    top: -1.1vw;
}

.tab4 .swiper-pagination-bullet {
    width: 7.4vw !important;
    height: 7.4vw !important;
    background: transparent !important;
    opacity: 1 !important;
}

@media (max-width: 767px) {
    .tab4 .swiper-pagination-bullet {
        width: 18.4vw !important;
        height: 18.4vw !important;
    }

    .tab4 .swiper-pagination-4 span:nth-child(-n+6) .bg-btn {
        top: -2.8vw
    }
}

/* FOOTER */

footer.footer .content .main-content a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-family: 'SVN-Avo' !important;
}

footer.footer .content .main-content p {
    color: #fff;
    text-decoration: none;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: 'SVN-Avo' !important;
}

@media (max-width: 756px) {

    footer.footer .content .main-content a,
    footer.footer .content .main-content p {
        font-size: 2.5vw;
    }
}

/* SIDEBAR */

#sidebar-container.active {
    transform: translateX(84%);
}