/*
Theme Name: Vntech68
Theme URI: Vntech68
Author: Vntech68
Author URI:  Vntech68
Description:
License: Vntech68
License URI: Vntech68
Text Domain: Vntech68
Tags: Thiết kế website, Web Chuẩn seo, Dịch vụ seo, Dịch vụ tên miền, Dịch vụ Hosting...
@charset "utf-8";

Version: 2.3
*/
/*menuu destop chú ý d? b? d?n r?ng auto c?a th? li thì tmf dòng css và b? .sf-menu li:     /* white-space: nowrap; */
/*** ESSENTIAL STYLES ***/
:root{
    --c-bg-1:#0b0e16;
    --c-bg-2:#141424;
    --c-cyan:#19c3ff;
    --c-pink:#ff7ec3;
    --c-text:#e9eef5;
    --c-text-dim:#c9d3e0;
}

div#wrapper {
    background: #070707;

}

.sf-menu, .sf-menu * {
    margin: 0;
    padding: 0;
    list-style: none;
}
.sf-menu li {
    position: relative;
}
.sf-menu ul {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    z-index: 99;
    text-align: left;
}
.sf-menu>li {
    display: inline-block;
}
.sf-menu li:hover > ul,
.sf-menu li.sfHover > ul {
    display: block;
}

.sf-menu ul ul {
    top: 0;
    left: 100%;
}

/*** DEMO SKIN ***/
.sf-menu ul {
    box-shadow: 2px 2px 6px rgba(0,0,0,.2);
    width: 220px;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 999;
    background: white;
}
.sf-menu ul li a{
    color: #333;
    font-weight: bold;
    display: block;
    border-left: none;
    padding: 10px 0;
    border-top: 1px dashed #1A9CD8;
}
.sf-menu ul li{
    width: 100%;
    display: block;
    padding: 0 10px;
}
.sf-menu a {
    padding: 10px 10px;
    text-decoration: none;
    zoom: 1; /* IE7 */
    font-weight: bold;
    font-family: Montserrat-Regular;
    font-size: 16px;
    line-height: 25px;
}
.logo_head img {
    max-width: 150px;
}
.sf-menu a {
    color: #31241d;
    font-weight: bold;
    text-decoration: none !important;
}
.sf-menu li {
    -webkit-transition: background .2s;
    transition: background .2s;
    position: relative;
}
.sf-menu li:hover,
.sf-menu li.sfHover {
    /* only transition out, not in */
    -webkit-transition: none;
    transition: none;
}

/*** arrows (for all except IE7) **/
.sf-arrows .sf-with-ul {
    padding-right: 2.5em;
    padding-right: 1em; /* no CSS arrows for IE7 (lack pseudo-elements) */
}
/* styling for both css and generated arrows */
.sf-arrows .sf-with-ul:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1em;
    margin-top: -3px;
    height: 0;
    width: 0;
    /* order of following 3 rules important for fallbacks to work */
    border: 5px solid transparent;
    border-top-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */
    border-top-color: rgba(255,255,255,.5);
}
.sf-arrows > li > .sf-with-ul:focus:after,
.sf-arrows > li:hover > .sf-with-ul:after,
.sf-arrows > .sfHover > .sf-with-ul:after {
    border-top-color: white; /* IE8 fallback colour */
}
/* styling for right-facing arrows */
.sf-arrows ul .sf-with-ul:after {
    margin-top: -5px;
    margin-right: -3px;
    border-color: transparent;
    border-left-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */
    border-left-color: rgba(255,255,255,.5);
}
.sf-arrows ul li > .sf-with-ul:focus:after,
.sf-arrows ul li:hover > .sf-with-ul:after,
.sf-arrows ul .sfHover > .sf-with-ul:after {
    border-left-color: white;
}
.top_head{
    background-color: #070707;
}
.main_mobile_menu {
    padding: 20px 0px;
}
ul#example>li>a {
    letter-spacing: 0.8px;
    padding: 8px 10px;
    line-height: 56px;

}

ul#example ul li{
    display: block;
}
ul#example>li>a:hover{
    color: #46d5ff;
}

.sf-menu ul li:first-child a{
    border: none;
}
ul#example ul li a{
    font-size: 15px;
}
figure.home-mvisual-img{
    width: 100%;
}
figure.home-mvisual-img img {
    width: 100%;
    height: auto;
}

.custom-left-menu a:hover{
    color: white;
}


.list_menu_mobile.navbar-cates .navbar-link{
    color: #fff;
    font-family: Montserrat-Regular;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none !important;
}
.list_menu_mobile.navbar-cates .navbar-link span {
    width: 50px;
    height: 2px;
    margin-bottom: 5px;
    background: white;
    display: block;
}
.main_mobile_menu .logo_head_mobile img {
    max-width: 300px;
    padding: 10px 0px;
}
.list_menu_mobile.navbar-cates .navbar-link {
    position: relative;
    top: 8px;
    right: 0px;
    float: right;
    cursor: pointer;
}
.list_menu_mobile.navbar-cates {
    margin-top: 0px;
}
span.navbar-toggle-icon img {
    max-width: 25px;
    float: right;
}
div#abc .mm-navbar {
    background: linear-gradient(45deg, #00d4ff, #ff6b9d);
}
div#abc .mm-navbar a{
    color: white;
    font-family: Montserrat-Regular;
    font-size: 16px;
    font-weight: bold;
}
div#abc{
    background: #37499C;
}
.main_mobile_menu {
    display: none;
}
div#main_slider img {
    width: 100%;
    height: auto;
}
div#main_slider{
    position: relative;
}
div#main_slider .item{
    position: relative;
}

/*
* And with max cross-browser enabled.
* Nobody should ever write this by hand.
* Use a preprocesser with autoprefixing.
*/
.is-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.is-flex > [class*=\'col-\'] {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.wr-img{
    position: relative;
    overflow: hidden;
}
.wr-img::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg);
}
.wr-img:hover::before {
    -webkit-animation: shine .75s;
    animation: shine .75s;
}
@-webkit-keyframes shine {
    100% {
        left: 125%;
    }
}
@keyframes shine {
    100% {
        left: 125%;
    }
}


/* Reset mặc định cho menu */
/* ===== Layout tổng ===== */
/* ===== Thanh topbar ===== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* đảm bảo 3 khối phân cách nhau */
    padding: 10px 20px;
    background-color: #070707; /* màu nền ví dụ */
}

/* ===== Logo bên trái ===== */
.menu_head_mb .logo_head img {
    display: block;
}

/* ===== Menu giữa ===== */
.menu_head_mb_desktop {
    flex: 1; /* chiếm toàn bộ khoảng giữa */
    display: flex;
    justify-content: center; /* căn giữa menu */
}

.main_menu ul.sf-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 14px;
}
.main_menu ul.sf-menu > li > a {
    display: inline-block;
    padding: 10px 12px;
    text-decoration: none;
    color: #e9eef5;
    position: relative;
}

/* Hover + Active gạch chân */
.main_menu ul.sf-menu > li > a:hover,
.main_menu ul.sf-menu > li.active > a {
    color: #46d5ff;
}
.main_menu ul.sf-menu > li > a:hover::after,
.main_menu ul.sf-menu > li.active > a::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 1px;
    height: 2px;
    background: linear-gradient(45deg, #00d4ff, #ff6b9d);
    transition: width 0.3s ease;
}
.main_menu ul.sf-menu > li > a:hover,
.main_menu ul.sf-menu > li.current-menu-item > a {
    color: #46d5ff;
}
.main_menu ul.sf-menu > li > a:hover::after,
.main_menu ul.sf-menu > li.current-menu-item > a::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 1px;
    height: 2px;
    background: linear-gradient(45deg, #00d4ff, #ff6b9d);
    transition: width 0.3s ease;
}

/* ===== CTA bên phải ===== */
.home-contact .cta-button {
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(45deg, #00d4ff, #ff6b9d);
    color: white;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(25, 195, 255, 0.35);
    transition: opacity 0.15s ease;
    font-family: Inter-Regular;
    font-size: 15px;
}
.home-contact .cta-button:hover {
    opacity: 0.95;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .menu_head_mb_desktop {
        justify-content: flex-start;
        width: 100%;
    }
    .main_menu ul.sf-menu {
        flex-direction: column;
        align-items: flex-start;
    }
    .home-contact {
        margin-top: 8px;
    }
}

.main_readmore_game_full {
    display: block;
    width: 100%;
    margin-top: 70px;
    text-align: center;
}

.main_readmore_game_full .cta-button{
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(45deg, #00d4ff, #ff6b9d);
    color: white;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(25, 195, 255, 0.35);
    transition: opacity 0.15s ease;
    font-family: Inter-Regular;
    font-size: 15px;
}
.main_readmore_game_full .cta-button:hover{
    background: linear-gradient(45deg, #00d4ff, #eab308);
}
/* Chân trang */
footer#contact{
    background: #070707;
    padding: 3rem 0 1rem;
    /*border-top: 1px solid #6c6868;*/
}

/* Footer layout: 4 → 2 → 1 cột */
.footer-content{
    margin: 0 auto;
    padding: 28px 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    color: #e9eef5;             /* nếu dùng nền tối */
}

/* Mỗi khối */
.footer-section h3{
    margin: 0 0 22px;
    line-height: 35px;
    font-size: 20px;
    font-weight: 700;
    color: #00d4ff;
    position: relative;
    font-family: Inter-Regular;
}
.footer-section h3::after{
    content:"";
    display:block;
    width: 32px; height: 2px;
    margin-top: 6px;
    border-radius: 2px;
    background: linear-gradient(90deg,#19c3ff,#ff7ec3);
}

.footer-content .footer-section p, .footer-content .footer-section{
    color: #c9d3e0;
    font-family: Inter-Regular;
    font-size: 16px;
    margin: 6px 0;
    line-height: 28px;
    color: #c9d3e0;

}
.footer-content .footer-section ul li{
    display: block;
    margin-bottom: 5px;
}
.footer-content .footer-section ul li a{
    color: #cfeaff;
    text-decoration: none;
    font-size: 15px;
    line-height: 27px;
    font-family: Inter-Regular;
}
.footer-content .footer-section ul li:hover a{
    color: #00d4ff;
}
.footer-section a:hover{
    color: #46d5ff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-family: Inter-Regular;

}
.footer-bottom p{
    margin-bottom: 0px;
}
/* Tablet: 2 cột */
@media (max-width: 992px){
    .footer-content{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: 1 cột */
@media (max-width: 600px){
    .footer-content{
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


/* slider */
/* === HERO === */
/* ===== HERO ===== */
.hero{
    position: relative;
    display: grid;
    place-items: center;                 /* căn giữa cả dọc + ngang */
    text-align: center;
    padding: clamp(56px, 8vh, 120px) 16px;
    min-height: 70svh;                   /* mobile: đủ cao nhưng không bắt buộc full */
    background:
            radial-gradient(900px 600px at 15% 5%, rgba(23,64,88,.35), transparent 60%),
            radial-gradient(900px 600px at 70% 95%, rgba(96,32,72,.35), transparent 60%),
            linear-gradient(180deg, var(--c-bg-1), var(--c-bg-2));
    color: var(--c-text);
    overflow: hidden;
}
.hero::before{
    content:"";
    position:absolute; inset:-20%;
    pointer-events:none;
    background: radial-gradient(60% 60% at 50% 40%, rgba(255,255,255,.06), transparent 70%);
}

.hero__inner{ max-width: 1100px; width:100%; }

/* Title */
.hero__title{
    margin: 0 0 18px;
    line-height: 1.18;
    font-weight: 800;
    font-size: clamp(28px, 5vw, 64px);
    letter-spacing:.3px;

}
.text-gradient{
    background: linear-gradient(90deg, var(--c-cyan), var(--c-pink));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Description (hỗ trợ cả class bị gõ nhầm) */
.hero-description,
.hero-descritpion{
    margin: 6px auto 0;
    max-width: 860px;
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.7;
    color: var(--c-text-dim);
    font-family: Inter-Regular;
}

/* Actions (buttons) */
.hero__actions{
    margin-top: 18px;
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.btn{
    display:inline-flex; align-items:center; justify-content:center;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration:none; font-weight:600; line-height:1.35;
    font-size: clamp(14px, 1.6vw, 16px);
    transition: transform .12s ease, opacity .15s ease, box-shadow .15s ease;
    white-space: normal; text-align:center; max-width:100%;
    border: 0px;
    font-family: Inter-Regular;
}
.btn--primary{
    color:#fff;
    background: linear-gradient(90deg, var(--c-cyan), var(--c-pink));
    box-shadow: 0 6px 18px rgba(25,195,255,.35);
    font-family: Inter-Regular;
}
.btn--primary:hover{ opacity:.95; transform: translateY(-1px); }
.btn--secondary{
    color:#e9eef5; background: rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.18); backdrop-filter: blur(4px);

}
.btn--secondary:hover{
    color:#fff; border-color:rgba(255,255,255,.28); transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(25,195,255,.35);
}
.text-gradient-white{
    background: linear-gradient(90deg, #b9a5a5, #03a9f4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* ===== Desktop: full height ===== */
@media (min-width: 992px){
    .hero{ height: 100vh; min-height: 100vh; padding: 0 16px; }
}

/* ===== Mobile tweaks ===== */
@media (max-width: 480px){
    .btn{ width:100%; }
}

/* Dịch vụ */
/* ===== Section wrapper ===== */
.services{
    padding: clamp(48px, 8vw, 96px) 16px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #e9eef5;

}

/* container riêng, không dùng bootstrap */
.services .container{
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Tiêu đề ===== */
.section-title{
    margin: 0 0 28px;
    text-align: center;
    font-weight: 800;
    font-size: clamp(24px, 4vw, 46px);
    letter-spacing: .3px;
    background: linear-gradient(90deg,#19c3ff,#7fd8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: Inter-Regular;
    letter-spacing: 0.8px;
}

/* ===== Lưới cards ===== */
.services-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 24px;

}

/* ===== Card ===== */
.service-card{
    position: relative;
    text-align: center;
    padding: 32px 28px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background:
            linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
            radial-gradient(120% 100% at 0% 0%, rgba(255,255,255,.04), transparent 60%);
    transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}

/* vệt glow dưới card khi hover */
.service-card::after{
    content:"";
    position:absolute; left:8%; right:8%; bottom:-6px; height:14px;
    border-radius: 50%;
    background: radial-gradient(60% 100% at 50% 0, rgba(25,195,255,.28), transparent 70%);
    filter: blur(6px);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
}

/* Hover: nổi nhẹ + phát sáng cyan */
.service-card:hover{
    transform: translateY(-6px);
    border-color: rgba(25,195,255,.35);
    box-shadow: 0 20px 60px rgba(25,195,255,.22);
}
.service-card:hover::after{
    opacity: 1;
    transform: translateY(4px);
}

/* Icon tròn */
.service-icon{
    width: 64px; height: 64px; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; line-height: 1;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 2px solid rgba(0,212,255,.75);
    box-shadow: 0 0 0 3px rgba(0,212,255,.08) inset, 0 2px 10px rgba(0,212,255,.18);
}

.service-card .services-sub-title{
    margin: 6px 0 12px;
    font-size: 22px; font-weight: 800;
    font-family: Inter-Regular;
}
.service-card p{
    margin: 0;
    color: #c9d3e0;
    line-height:28px;
    font-family: Inter-Regular;
    font-size: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 992px){
    .services-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
    .services-grid{ grid-template-columns: 1fr; }
    .service-card{ padding: 24px 20px; }
}
.main_header.fixed .logo_head img {
    max-width: 120px;
}
/* ===== Stats Section ===== */

.stats{
    background: linear-gradient(180deg,#152132,#19273b);
    border: 1px solid rgba(255,255,255,.06);
    /* border-radius: 16px; */
    padding: 50px 10px 50px 10px;
}

.stats-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: clamp(12px, 3vw, 28px);
    text-align: center;
}

.stat-item h3{
    margin: 0 0 8px;
    font-weight: 800;
    font-size: clamp(28px, 5vw, 52px);
    line-height: 1.05;
    background: linear-gradient(90deg,#19c3ff,#7fd8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* gradient text */

}
.stat-item p{
    margin: 0;
    color: #c9d3e0;
    font-size: clamp(12px, 1.6vw, 16px);
    font-family: Inter-Regular;
}

/* Responsive */
@media (max-width: 992px){
    .stats-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
    .stats-grid{
        grid-template-columns: 1fr;
    }
    .stats-grid .stat-item {
        margin-bottom: 50px;
    }
}

/* Game nổi bật */
/* ==== Section & container ==== */
.games-showcase{
    color: #e9eef5;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 120px 0px;
}
.games-showcase .container{
    max-width: 1200px;
    margin: 0 auto;
}

/* Tiêu đề */
.games-showcase .section-title{
    text-align:center;
    margin: 0 0 24px;
    font-weight: 800;
    font-size: clamp(24px, 4vw, 46px);
    letter-spacing: .3px;
    background: linear-gradient(90deg,#19c3ff,#7fd8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: Inter-Regular;
}

/* ==== Lưới 4-2-1 ==== */
.games-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr)); /* 4 khối/1 hàng */
    gap: 24px;
}

/* ==== Card ==== */
.game-card{
    display: flex; flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.02);
    transform: translateZ(0);
    will-change: transform, box-shadow, border-color;
    transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}
.game-card:hover{
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(25,195,255,.35);
    box-shadow: 0 18px 60px rgba(25,195,255,.18);
}

/* Phần ảnh/icon gradient */
.game-image{
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg,#ff7ec3, #19c3ff);
}

/* Phần nội dung */
.game-info{
    background: #1a2230; /* nền tối hơn */
    padding: 18px 20px 20px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.title-game-show{
    margin: 0 0 8px;
    font-weight: 800;
    font-size: 20px;
    font-family: Inter-Regular;
    line-height: 31px;
}
.title-game-show a{
    font-size: 20px;
    font-family: Inter-Regular;
    color: white !important;
    text-decoration: none;
}
.discription-game-show{
    margin: 0 0 12px;
    color: #c9d3e0;
    line-height: 1.7;
    font-family: Inter-Regular;
    font-size: 14px;
}

/* Tag thể loại (pill gradient) */
.game-genre{
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg,#19c3ff,#ff7ec3);
    box-shadow: 0 3px 10px rgba(25,195,255,.25);
}
.game-info ul {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 27px;
}
.game-info ul li a{
    padding: 7px 15px;
    border-radius: 999px;
    background: linear-gradient(45deg, #00d4ff, #eab308);
    color: white;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(25, 195, 255, 0.35);
    transition: opacity 0.15s ease;
    font-family: Inter-Regular;
    font-size: 12px;
}
.game-info ul li .play_game{
    background:none ;
    border: 1px solid white;
}
.game-info ul li .play_game:hover{
    background: linear-gradient(45deg, #eab308, #ef4444);
}
.game-info ul li .readmore:hover{
    background:none ;
    border: 1px solid white;
}
/* ========== Overlay & trạng thái mở ========== */
#gameModal {
    position: fixed;
    inset: 0;
    display: none;                 /* ẩn mặc định */
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55); /* nền mờ */
    backdrop-filter: blur(2px);    /* nhẹ nhàng */
    z-index: 9999;
    opacity: 0;
    transition: opacity .25s ease;
}

#gameModal.is-open {
    display: flex;
    opacity: 1;
}

/* ========== Hộp modal ========== */
#gameModal .modal-dialog {
    /*width: min(92vw, 820px);*/
    max-height: 82vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
            0 10px 25px rgba(0,0,0,0.15),
            0 2px 8px rgba(0,0,0,0.08);
    /*overflow: hidden;*/
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .28s ease;
}

#gameModal.is-open .modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* ========== Header / Close ========== */
#gameModal  .modal-header {
    position: relative;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between; /* đẩy title sang trái, nút đóng sang phải */
    margin: 0px;
    padding: 5px 10px;
}

#gameModal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

#gameModal #closeGameModal {
    position: absolute;
    top: -10px;    /* kéo ra ngoài một chút */
    right: -10px;  /* kéo ra ngoài một chút */
    background: #ff5c5c;
    border: none;
    color: #fff;
    font-size: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

#closeGameModal:hover {
    background: #ff0000;
}

/* ========== Body ========== */
#gameModal .modal-body {
    position: relative;
    padding: 18px;
    max-height: calc(82vh - 56px);
    overflow: auto;
    font-size: 15px;
    line-height: 28px;
    font-family: Inter-Regular;
}

/* ========== Preloader (spinner) ========== */
#gameModal .preloader {
    position: absolute;
    inset: 0;
    display: none;                 /* ẩn khi không loading */
    align-items: center;
    justify-content: center;
    background: linear-gradient(transparent, transparent);
    pointer-events: none;          /* không chặn scroll nội dung khi có sẵn */
}

#gameModal.loading .preloader {
    display: flex;                 /* hiện khi loading */
}

#gameModal .spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(2, 6, 23, 0.1);
    border-top-color: rgba(2, 6, 23, 0.75);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== Responsive tinh tế ========== */
@media (max-width: 480px) {
    #gameModal .modal-title { font-size: 16px; }
    #gameModal .modal-body { padding: 14px; }
}
div#gameModalContent ul,div#gameModalContent ol{
    margin-left: 40px;
}
div#gameModalContent h2, div#gameModalContent h3, div#gameModalContent h4{
    font-weight: bold;
}
div#gameModalContent ul li,div#gameModalContent ol li {
    list-style: disc;
}

.main-title-header .text-xl.text-primary {
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--c-cyan), var(--c-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 35px;
    font-family: Inter-Regular;
    font-weight: bold;
}
.detail_single_page_custom{
    font-family: Inter-Regular;
    font-size: 15px;
    line-height: 28px;
    margin-bottom: 40px;
}
/* ==== Responsive ==== */
@media (max-width: 1200px){
    .games-grid{ gap: 20px; }
}
@media (max-width: 992px){
    .games-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } /* 2 cột */
    .game-image{ height: 180px; }
}
@media (max-width: 560px){
    .games-grid{ grid-template-columns: 1fr; } /* 1 cột */
}

/* Tôn trọng người dùng giảm chuyển động */
@media (prefers-reduced-motion: reduce){
    .game-card{ transition: none; }
    .game-card:hover{ transform: none; box-shadow: none; }
}


/* ===== Scrollbar cho WebKit (Chrome, Edge, Safari) ===== */
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: #000;            /* rãnh đen */
    border-radius: 0px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: linear-gradient(45deg, #00d4ff, #ff6b9d);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00d4ff, #ff6b9d);;
}

/* góc giao giữa thanh cuộn ngang/dọc (nếu có) */
::-webkit-scrollbar-corner {
    background: #000;            /* cùng màu rãnh */
}

/* ===== Scrollbar cho Firefox ===== */
/* Tham số 1: màu nút kéo (thumb), tham số 2: màu rãnh (track) */
* {
    scrollbar-width: thin;
    scrollbar-color: #33d0ff #000;  /* thumb cyan, track đen */
}


.main_header.fixed{
    z-index: 9999;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
}
.phantrang {
    width: 100%;
    margin-bottom: 5px;
    text-align:center;
    margin-top: 45px;
}
.full-col-pt {
    width: 100%;
    display: block;
    margin-top: 80px;
}
.phantrang a {
    background: #ccc;
    padding: 8px 11px;
    color: #000000;
    display: inline-block;
    text-decoration: none;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}
.phantrang span.page-numbers.current {
    background:linear-gradient(45deg, #00d4ff, #ff6b9d);
    padding: 8px 12px;
    color: white;
    border-radius: 4px;
    font-size: 13px;
}
.phantrang span.current{
    background: linear-gradient(45deg, #00d4ff, #ff6b9d);
    padding: 8px 12px;
    color: white;
    border-radius: 4px;
    font-size: 13px;
}
.phantrang span.extend{
    padding: 8px 13px;
}
.phantrang span.pages{
    padding: 9px 15px;
}
.phantrang a:hover{
    background: linear-gradient(45deg, #00d4ff, #ff6b9d);
    color: white;
}
.page_game_main_template_search{
    display: block;
    margin-bottom: 40px;
}
.page_game_main_template_search .input-box {
    position: relative;
    height: 56px;
    max-width: 900px;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
.page_game_main_template_search .input-box i,
.page_game_main_template_search .input-box .button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.page_game_main_template_search .input-box i {
    left: 20px;
    font-size: 30px;
    color: #707070;
}
.page_game_main_template_search .input-box input {
    height: 100%;
    width: 100%;
    outline: none;
    font-size: 18px;
    font-weight: 400;
    border: none;
    padding: 0 155px 0 20px;
    background-color: transparent;
    color: #111428;
}
.page_game_main_template_search .input-box .button {
    right: 20px;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    background-color: #4070f4;
    cursor: pointer;
}
.page_game_main_template_search .input-box .button:active {
    transform: translateY(-50%) scale(0.98);
}
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    display: none;
    justify-content: space-between;
}

.spinner {
    border: 8px solid #f3f3f3; /* Màu nền của spinner */
    border-top: 8px solid #3498db; /* Màu của phần quay */
    border-radius: 50%; /* Tạo hình tròn */
    width: 50px; /* Chiều rộng spinner */
    height: 50px; /* Chiều cao spinner */
    animation: spin 2s linear infinite; /* Quay spinner */
}
.about-description {
    background: #1a1b24;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.1);
    margin-bottom: 3rem;
    width: 100%;
}
.about-description,.about-description p{
    font-size: 15px;
    line-height: 28px;
    font-family: Inter-Regular;
    color: white;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
section#abount_txt_box {
    padding: 50px 0px;
}
.detail_single_page_custom h2,.detail_single_page_custom h2 span, .detail_single_page_custom h2 strong{
    font-size: 27px;
    line-height: 38px;
}
.detail_single_page_custom h3,.detail_single_page_custom h3 span, .detail_single_page_custom h3 strong{
    font-size: 25px;
    line-height: 36px;
}
.detail_single_page_custom h2,.detail_single_page_custom h4 span, .detail_single_page_custom h4 strong{
    font-size: 22px;
    line-height: 34px;
}
.detail_single_page_custom h5,.detail_single_page_custom h5 span, .detail_single_page_custom h5 strong{
    font-size: 20px;
    line-height: 35px;
}
.detail_single_page_custom h2,.detail_single_page_custom h3,
.detail_single_page_custom h4,.detail_single_page_custom h5{
    font-weight: bold;
}

.mcb-wrap-inner .m-t-blog{
    display: inline-block;
    text-transform: uppercase;
    padding: 5px 10px;
    background-color: #1d1d1d;
    color: #FFF!important;
    margin-bottom: 30px;
    font-family: Montserrat-Regular;
    font-size: 18px;
    line-height: 35px;
}
.mcb-wrap-inner .sub-t-blog {
    font-size: 30px;
    line-height: 45px;
    font-family: 'Montserrat-Regular';
    color: #1d1d1d;
}


.wso-news-cat:before {
    content: '';
    display: block;
    position: absolute;
    top: 0px;
    height: 1px;
    width: 50px!important;
    left: -50px;
    background-color: #fff;
}
.tg-element-1 .tg-item-term {
    position: relative;
    display: inline-block;
    font-size: 13px;
    line-height: 20px;
    padding: 1px 8px;
}
.tg-item-media-content {
    position: relative;
}
.tg-element-1 {
    position: absolute;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    background-color: #fff;
    display: block;
    z-index: 3;
    margin: 40px 0 0 50px;
    padding: 5px 10px;
    top: 0px;
    left: 0px;
}
.tg-item-media-content{
    position: relative;
    height: auto;
    display: block;
    width: 100%;
}

.m-blog-description-item-template .t-blog{
    line-height: 24px;
    font-family: Montserrat-Regular;
    margin: 0px;
    margin-bottom: 10px;
}
.m-blog-description-item-template .t-blog a{
    color: white;
    font-size: 18px;
    font-family: Montserrat-SemiBoldItalic;
    font-weight: bold;
    text-decoration: none;
    line-height: 25px;
}
.m-blog-description-item-template {
    margin: 10px 0px;
}
.m-blog-description-item-template p{
    color: #777;
    font-size: 15px;
    line-height: 27px;
    font-family: Montserrat-Regular;
    margin: 10px 0px;
}
.main-blog-home-template-items {
    padding: 50px 0px;
}
.m-blog-description-item-template .t-blog:hover a{
    color: #46d5ff;
}
.tg-item-media-content{
    overflow: hidden;
}
.tg-item-media-content img{
    transition: transform 1s, filter 2s ease-in-out;
}
.tg-item-media-content:hover img{
    filter: drop-shadow(0 0 10px rgba(0,0,0,.3));
    filter: blur(2px);
    transform: scale(1.2);
}
/* Responsive */
@media screen and (max-width: 500px) {
    .page_game_main_template_search .input-box {
        height: 66px;
        margin: 0 8px;
    }
    .page_game_main_template_search .input-box i {
        left: 12px;
        font-size: 25px;
    }
    .page_game_main_template_search .input-box input {
        padding: 10px 10px 10px 20px;
    }
    .page_game_main_template_search .input-box .button {
        right: 12px;
        font-size: 14px;
        padding: 8px 18px;
    }
}
/*css about*/
section.section_about {
    padding: 120px 0px;
}
.about .about-img {
    position: relative;
}
.about .about-img .img {
    padding: 0 30px 30px 15px;
    position: relative;
}
.about .about-img .img img {
    position: relative;
    z-index: 2;
    background: transparent;
}
.about .about-img .img:before {
    content: '';
    position: absolute;
    top: 30px;
    right: 0;
    left: 45px;
    bottom: 0;
    background:linear-gradient(45deg, #00d4ff, #ff6b9d);
}
.about .about-img .img:after {
    content: '';
    width: 50%;
    position: absolute;
    top: -6%;
    bottom: 60%;
    left: -3%;
    background-image: url('images/dots.png');
    background-repeat: repeat;
    z-index: -1;
}
.about #circle {
    position: absolute;
    top: 200px;
    right: -40%;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    pointer-events: none;
    opacity: .99;
    z-index: 2;
}
.about #circle .custom{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 300px;
    -webkit-animation-name: rotate;
    animation-name: rotate;
    -webkit-animation-duration: 8s;
    animation-duration: 8s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear
}

@keyframes rotate {
    from {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }

    to {
        -webkit-transform: rotate(0);
        transform: rotate(0)
    }
}

section.section_about .section-subtitle {
    color: #2095AE;
    font-size: 13px;
    font-family: barlow;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 5px;
}
section.section_about .section-title {
    font-size: 45px;
    line-height: 1.2em;
    font-family: Inter-Regular;
    font-weight: 700;
    position: relative;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: left;
}
section.section_about .section-title span {
    background: linear-gradient(90deg, var(--c-cyan), var(--c-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section_about .desc.mb-3 {
    font-family: Inter-Regular;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75em;
    color: #676977;
    margin-bottom: 20px;
}







/* liên hệ */
section#page-contact {
    padding: 80px 0px;
}
.contact-container {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 0px auto;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: 35px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff 0%, #9b59b6 50%, #e91e63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    font-family: Inter-Regular;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    font-family: Inter-Regular;
    line-height: 35px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 28px;
    font-family: Inter-Regular;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 20px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-family: Inter-Regular;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: #1a1a2e;
    color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #00d4ff 0%, #9b59b6 50%, #e91e63 100%);
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    font-size: 18px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #00d4ff;
    opacity: 0.7;
    font-size: 1.2rem;
}

.form-group.has-icon .form-input {
    padding-right: 50px;
}

@media (max-width: 640px) {
    .contact-container {
        padding: 24px;
        margin: 10px;
    }

    .form-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


