@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --color-nav: #00192D;
    --text-active: #DBCA84;
}

* {
    font-family: "Kanit", sans-serif;
}

html,
body {
    font-family: "Kanit", sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: none;
            -moz-text-size-adjust: none;
            text-size-adjust: none;
}

body {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    background: url('/assets/img/bg.png') no-repeat cover;

}

.tab-button-topup {
    transition: all 0.3s ease;
}

.tab-button-topup.active-topup {
    background-color: #715F55;
    color: #FFFAF2 !important;
    border: 2px solid #FFFAF2 !important;
    transform: scale(1.08);
}

.font-main {
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.text-active {
    color: var(--text-active);
}

/* ปรับแต่ง Swiper Pagination */
.swiper-pagination {
    position: relative !important;
    margin-top: 1rem !important;
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: #8B6F47 !important;
    /* สีน้ำตาลสำหรับจุดที่ไม่ active */
    opacity: 1 !important;
    margin: 0 6px !important;
    transform: rotate(45deg) !important;
    /* หมุน 45 องศาให้เป็นรูปข้าวหลามตัด */
    border-radius: 2px !important;
    /* ปรับให้มุมไม่โค้งมาก */
}

.swiper-pagination-bullet-active {
    background: #F97316 !important;
    /* สีส้มสำหรับจุดที่ active */
}

div.section-first {
    background: url('../img/parallax/1.jpg') no-repeat center center / cover;
    min-height: 100vh;

}

div.section-two {
    background: url('../img/tournament/1.jpg') no-repeat center center / cover;
    min-height: 100vh;
    @apply px-5 py-2;
}

div.section-three {
    background: url('../img/community/1.jpg') no-repeat center center / cover;
    min-height: 100vh ;

}

div.section-news {

    background: url('../img/news/1.jpg') no-repeat center center / cover;
    min-height: 100vh;

}

div.section-character {
    background: url('../img/Charecther/1.jpg') no-repeat center center / cover;
    min-height: 100vh;
}


div.section-select {

    background: url('../img/Video/1.jpg') no-repeat center center / cover;
    min-height: 100vh;

}

div.section-first-mobile {
    background: url('../img/parallax/mobile/1.jpg') no-repeat center center / cover;
    min-height: 100vh;

}

nav.navbar-ro {
    background: var(--color-nav);
    position: fixed;
    top: 0;
    width: 100% !important ;

}

nav.navbar-ro ul li:not(:first-of-type) {
    padding-left: 30px;
    padding-right: 30px;
    text-align: center;
    border-left: 2px solid;
    border-image: linear-gradient(#00192d, #707980 45%, #707980 55%, #00192d) 1;
}

.swiper {
    width: 100%;
    height: auto;
}

.swiper-slide {
    width: 100%;
    /* display: flex;
    justify-content: center;
    align-items: center; */
}

.swiperBanner {
    width: 100%;
    /* กำหนดความกว้างของคอนเทนเนอร์ */
    overflow: hidden;
    /* ป้องกันสไลด์ล้นออกมา */
}

/* .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
} */

.swiper-button-prev {
    left: 10px;
    background-image: url('https://www.i-pic.info/i/AaYT1006776.png') !important;
    background-size: 50px !important;
    width: 100%;
    background-position: center !important;
    background-repeat: no-repeat !important;

}

.swiper-button-next {
    right: 10px;
    background-image: url('https://www.i-pic.info/i/AaYT1006776.png') !important;
    background-size: 50px !important;
    width: 100%;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transform: translateY(-10%) scaleX(-1);
}

.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
    content: '' !important;
}

.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
    content: '' !important;
}

.swiper-container {
    position: relative;
    /* เพื่อให้ปุ่มสามารถจัดตำแหน่งแบบ absolute ได้ */
    display: flex;
    align-items: center;
    /* จัดกึ่งกลางแนวตั้ง */
    width: 100%;
    max-width: 1200px;
    /* ปรับขนาดตามต้องการ */
    margin: 0 auto;
    /* จัดกึ่งกลางในหน้า */
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #D2B48C;
    opacity: 1;
    margin: 0 4px;
    border-radius: 0;
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #E8BF80;
    width: 14px;
    height: 14px;
}


.card-decoration {
    position: absolute;
    width: 100%;
    height: 40px;
    background-image: url('https://www.roglobal.com/assets/imgs/box_bg-R7BHYF_1.png');
    background-size: cover;
    z-index: -1;
}

/* ฐานเริ่มต้น (Base Style) */
/* .content-community {
    position: absolute;
    left: 0;
    top: 5.2083333333vw;
    width: 100%;
    height: 33.8541666667vw;
    background: url(https://www.roglobal.com/assets/imgs/box_bg-R7BHYF_1.png) no-repeat center center/contain;
} */

/* มือถือ (สูงสุด 767px) */
@media only screen and (max-width: 767px) {
    .content-community {
        top: 5vh;
        height: 70vh;
        background: url(https://www.roglobal.com/assets/imgs/box_bg-R7BHYF_1.png) no-repeat;
    }

    div.section-first {
        background: url('../img/background/bg_1.jpg') no-repeat center center / cover fixed;
        background-size: cover;
        @apply px-5 py-2;
    }

    nav.navbar-ro {
        background: var(--color-nav);
        position: hidden;
        top: 0;
        width: 100%;

    }


}

/* iPad (768px - 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .content-community {
        top: 5.5vh;
        height: 35vh;
        background: url(https://www.roglobal.com/assets/imgs/box_bg-R7BHYF_1.png) no-repeat center center/contain;
    }
}

/* @media only screen and (max-width: 764px) {
    div.section-news {

        background: url('/assets//img/background/bg_3.jpg') no-repeat center center / cover;
        min-height: 100vh;

    }
} */

.hidden {
    display: none;
}

.tab-button-three {
    position: relative;
    /* เพื่อให้ top-4 ทำงานกับ span */
}

.tab-button-three span {
    transition: all 0.3s ease;
    /* เพิ่ม animation ให้การเปลี่ยนสีและตำแหน่งดูนุ่มนวล */
}

.bg-gradient {
    width: 9.375vw;
    /* height: 2.9166666667vw; */
    background: linear-gradient(90deg, #f9c151, #fcdb6e);
    border: .1041666667vw solid #FFFBC3;
}

.bg-gradient-comming {
    width: 8.8541666667vw;
    height: 2.5833333333vw;
    background: linear-gradient(90deg, #f9c151, #fcdb6e);
    border: .1041666667vw solid #fffbc3;
    border-radius: .2083333333vw;
}

.kanit-thin {
    font-family: "Kanit", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.kanit-extralight {
    font-family: "Kanit", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.kanit-light {
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.kanit-regular {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.kanit-medium {
    font-family: "Kanit", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.kanit-semibold {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.kanit-bold {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.kanit-extrabold {
    font-family: "Kanit", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.kanit-black {
    font-family: "Kanit", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.kanit-thin-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.kanit-extralight-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.kanit-light-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.kanit-regular-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.kanit-medium-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.kanit-semibold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.kanit-bold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.kanit-extrabold-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 800;
    font-style: italic;
}

.kanit-black-italic {
    font-family: "Kanit", sans-serif;
    font-weight: 900;
    font-style: italic;
}


.text-shadow {
    text-shadow: #a79a92 1px 0 10px;
}

.box-shadow {
    box-shadow: #a79a92 1px 0 10px;
}

.sidebar {
    transition: transform 0.3s ease-in-out;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar.closed {
    transform: translateX(-100%);
}

.character-title {
    background-image: url('https://via.placeholder.com/400x100');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat center center / cover fixed;
}

.swiper-button-next,
.swiper-button-prev {
    color: #d4af37;
}

.swiper-pagination-bullet {
    background: #d4af37;
}

.character-thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
}

.character-thumbnail:hover {
    transform: translateY(-5px);
}

.character-thumbnail.active img {
    filter: none;
}

.character-thumbnail img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.animate__animated {
    animation-duration: 1s;
}

div.title-video {
    color: #fff !important;
    font-size: calc(.4* 100vw / 19.2) !important;
    background: linear-gradient(0deg, #c2e7fd, #fff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}


.parallax-layer {
    position: absolute;
    will-change: transform;
    transition: transform 0.2s ease-out;
}

.glass-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}