@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');

@import "./_cheat.css";
@import "./_addhomescreen-ui.css";

:root {
    --header-top-bg-1: var(--rmbbet_header_top_bg_1);
    --header-top-bg-2: var(--rmbbet_header_top_bg_2);
    
    --body-bg-1: var(--rmbbet_body_bg_1);
    --body-bg-2: var(--rmbbet_body_bg_2);

    --header-height:80px;
    
    --header-menu-bg-1: var(--rmbbet_header_menu_bg_1);
    --header-menu-bg-2: var(--rmbbet_header_menu_bg_2);

    --header-btn-register-bg-1: var(--rmbbet_header_btn_register_bg_1);
    --header-btn-register-bg-2: var(--rmbbet_header_btn_register_bg_2);

    --header-btn-login-bg-1: var(--rmbbet_header_btn_login_bg_1);
    --header-btn-login-bg-2: var(--rmbbet_header_btn_login_bg_2);

    --header-btn-register-mobile-bg-1: var(--rmbbet_header_btn_register_mobile_bg_1);
    --header-btn-register-mobile-bg-2: var(--rmbbet_header_btn_register_mobile_bg_2);

    --btn-game-type-side-menu-bg-1: var(--rmbbet_btn_game_type_side_menu_bg_1);
    --btn-game-type-side-menu-bg-2: var(--rmbbet_btn_game_type_side_menu_bg_2);

    --side-menu-bg-1: var(--rmbbet_side_menu_bg_1);

    --side-menu-width: 250px;
    --side-menu-mobile-width: 197px;
    --first-title-height:45px;

    --marquee-height:36px;

    --marquee-bg-color: var(--rmbbet_marquee_bg_color);

    --btn-play-bg-color-1: var(--rmbbet_btn_play_bg_color_1);
    --btn-play-bg-color-2: var(--rmbbet_btn_play_bg_color_2);

    --swiper-height:auto;

    --game-list-title-txt-color-1: var(--rmbbet_game_list_title_txt_color_1); 
    --game-list-title-txt-color-2: var(--rmbbet_game_list_title_txt_color_2); 

    --game-label-new-bg-1: var(--rmbbet_game_label_new_bg_1);
    --game-label-new-bg-2: var(--rmbbet_game_label_new_bg_2);

    --footer-height: 186px;
    --footer-bg-color: var(--rmbbet_footer_bg_color);
    --footer-txt-title-color: var(--rmbbet_footer_txt_title_color);
    --footer-txt-subtitle-color: var(--rmbbet_footer_txt_subtitle_color);
    --footer-tag-bg: var(--rmbbet_footer_tag_bg);
    --footer-tag-color: var(--rmbbet_footer_tag_color);
  
    --floating-action-footer-center-bg-1:var(--rmbbet_floating_action_footer_center_bg_1);
    --floating-action-footer-center-bg-2:var(--rmbbet_floating_action_footer_center_bg_2);
    --floating_action_footer_center_txt_color: var(--rmbbet_floating_action_footer_center_txt_color);
    --floating-action-footer-bg-1:var(--rmbbet_floating_action_footer_bg_1);
    --floating-action-footer-bg-2:var(--rmbbet_floating_action_footer_bg_2);
    --floating-action-footer-txt-color: var(--rmbbet_floating_action_footer_txt_color);    
}


/* START---(reset) HTML5 display-role  for older browsers */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

a{
    color: unset;
    text-decoration: none;
}  

*, :after, :before {
    box-sizing: border-box;
}

a{
    color: unset;
    text-decoration: none;
}  

html, body, * {
    font-family: 'Kanit', sans-serif !important;
}

body {
    line-height: 1;
    scroll-behavior: smooth;
    overflow-y: scroll;

    background-image: linear-gradient(60deg, var(--body-bg-1) 60%, var(--body-bg-2) 60%);
    background-position: 0 100%;
    background-attachment: fixed;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1000px;
    }
}

/* start custom scrollbar */
/* width */
    ::-webkit-scrollbar {
    width: 5px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: #d2d2d2; 
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #666; 
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #222; 
  }

/* end custom scrollbar */

/* all wrapper of this theme */
.main {
    height: auto;
    position: relative;
}
.sub-page {
    padding-top: var(--header-height);
}
.sub-page {
    min-height: 100vh;
}

/* -------------------------- */


/* START HEADER */
.header-top {
    height: var(--header-height);
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right:0;
    z-index: 1200;
    width: 100%;
    background: linear-gradient(180deg, var(--header-top-bg-1), var(--header-top-bg-2));
    box-shadow: #00000040 0px 14px 28px, #00000038 0px 10px 10px;
  
}
.header-container {
    padding: 0 1em;
    display: flex;
    width: 100%;
}

.header-inside-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-hamburger_menu {
    width: 25px;
    height: 24px;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    margin-right: 2em;
}

.header-hamburger_menu > .dash {
    height: 3px;
    width: 70%;
    margin-bottom: 5px;
    background: #fff;
    display: flex;
    border-radius: 3px;
}

.header-hamburger_menu > .dash:first-child{
    animation: x-hamburger-wave .4s ease-out infinite alternate;
}
.header-hamburger_menu > .dash:nth-child(2){
    animation: x-hamburger-wave .4s ease-out .3s infinite alternate;
}
.header-hamburger_menu > .dash:last-child{
    animation: x-hamburger-wave .4s ease-out .6s infinite alternate;
}

@keyframes x-hamburger-wave {
    0% {
        width: 70%
    }

    to {
        width: 100%
    }
}

.logo-site-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90%;
    width: 6em;
    text-decoration: none;
    outline: none;
    border: none;
    margin-left: 1em;
}

.img-logo-site {
    height: 100%;
    width: auto;
    object-fit: contain;
}


.header-right {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
}
.header-action {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1em;
    height: 100%;
}

.btn-header-action {
    height: 38px;
    min-width: 148px; 
    border: none;
    outline: none;  
    margin: 0 0.5em;
    border-radius: 2em;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 200;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-header-action > .btn-txt {
    line-height: 1;
    height: fit-content;
}
.btn-header-action:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.btn-header-register {
    background: radial-gradient(ellipse at top, var(--header-btn-register-bg-1) -30%, var(--header-btn-register-bg-2) 67%);;

    box-shadow: 
    inset 0px 0px 2px #242424bd, /* เงาชุดแรก ขอบนอก */ 
    inset 0px 0px 10px -1px #ffffff, /* เงาชุดที่สอง ขอบใน */
    inset 0px -9px 12px 1px #00000072;/* เงาชุดที่ 3 เฉพาะขอบล่าง */
    
    border: 2px solid #c5c5c5;
    position: relative;
}

.btn-header-register > .ic-abs {
    display: none;
    height: 32px;
    width: 32px;
    pointer-events: none;
}

.btn-header-login {
    box-shadow: 
    inset 0px 0px 2px #242424bd, /* เงาชุดแรก ขอบนอก */ 
    inset 0px 0px 10px -1px #ffffff2f; /* เงาชุดที่สอง ขอบใน */
    background: linear-gradient(to bottom, var(--header-btn-login-bg-1), var(--header-btn-login-bg-2));
    border: 2px solid #c5c5c5;

}
.btn-header-register > .btn-txt {
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.5));
}

.btn-header-login > .btn-txt {
    font-weight: 400;
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.5));
    background: #fff -webkit-gradient(linear,100% 0,0 0,from(#fff),color-stop(0.5,grey),to(#fff));
    background-position: -200px top;
    background-repeat: no-repeat;

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation-name: x-shimmer;
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
}

@keyframes x-shimmer {
    0% {
        background-position: -200px top;
    }

    to {
        background-position: 200px top;
    }
}

.header-menu-list {
    display: flex;
    height: 100%;
    padding: 0 1em;    
    
}


.header-menu-item {
    width: 80px;
    height: 110%;
    margin-right: 0.5em;
    
    list-style: none;
    box-shadow: #00000069 0px 10px 12px 0px, #0000000f 0px 0px 0px 1px;
    position: relative;
    top: 0;
    border-bottom-left-radius: 1em;
    border-bottom-right-radius: 1em;

    background: linear-gradient(180deg, var(--header-menu-bg-1), var(--header-menu-bg-2)); /* สีเริ่มต้น */
    transition: all 0.3s ease;

    overflow: hidden;
    display: flex;
    justify-content: center;
}



.header-menu-item:hover {
    background: linear-gradient(180deg, var(--header-menu-bg-1), var(--header-menu-bg-2)); /* สีเริ่มต้น */
}

.header-menu-link {
    display:flex;
    text-decoration: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.header-menu-link > .ic-wrapper {
    width: 70%;
    height: fit-content;
    margin-bottom: 6px;
    position:relative;
}

.header-menu-link > .ic-wrapper:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 80%;
    background-image: radial-gradient(50% 50% at 50% 50%, #ffffffbd 0, rgba(193, 252, 255, 0) 100%);
    opacity: 0;
    -webkit-transform: translate(-50%, -45%);
    transform: translate(-50%, -45%);
    transition: all .2s ease-in-out;
}

.header-menu-item:hover  .header-menu-link > .ic-wrapper:before {
    opacity: 1;
}

.header-menu-ic {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(5px 5px 10px #00000080);
    max-height: 36px;
}

.header-menu-text {
    display: flex;
    height: fit-content;
    color: #fff;
    font-size: 0.85em;
    font-weight: 300;
    margin-bottom: 10px;
}

/* END HEADER */


/* START CONTENT */

.main-content-container {
   
    position: relative;
    display: flex;

    overflow: hidden;
}

.side-menu-container {
    width: 250px;
    background: var(--side-menu-bg-1);
    height: calc(100vh - var(--header-height)); /* คำนวณความสูง */
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 1000;
    position: fixed;
    left: 0;
    top: var(--header-height);
    overflow-y: auto;
}

.side-menu-mobile {
    display: none;
}

.side-menu-mobile .btn-game-type-side-menu::before,.side-menu-mobile .btn-game-type-side-menu::after {
    display: none;
}

.game-type-list-container {
    flex: 1;
}

.side-menu-contact {
    height: 115px;
    padding: 1em auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.side-menu-link-contact {
    display: flex;
    height: 50px;
}

.game-type-list-side-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 1.5em !important;
    border-bottom: 0 !important;
}
.side-menu-game-type-item {
    width: 100%;
    margin: 0 auto 1em auto;
    height: 80px;
    max-height: 80px;
}

.side-menu-game-type-item:first-child {
    margin-top: 1em;
}

.game-type-list-side-menu.mobile {
    max-width: 100% !important;
}
.side-menu-mobile .game-type-list-container{
    width: 100%;
}
.btn-game-type-side-menu {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    
    color: #ffffff !important;
    width: 100%;
    position: relative;
    padding: 0 1em !important;

    background: linear-gradient(180deg, var(--btn-game-type-side-menu-bg-1), var(--btn-game-type-side-menu-bg-2)) !important; /* override css bootstrap*/
    border: unset !important; /* override css bootstrap*/
    color: unset !important; /* override css bootstrap*/
    border-radius: 14px !important; /* override css bootstrap*/
    height: 100%;
}
.nav-tabs {
    border-bottom: none;
}
.btn-game-type-side-menu:hover,.btn-game-type-side-menu.active {
    filter: brightness(1.4) contrast(1.4) drop-shadow(2px 4px 6px black);
}

.btn-game-type-side-menu.active > .ic-game-type-side-menu {
    filter: brightness(0.65) contrast(1);
}

.btn-game-type-side-menu:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 3px;
    height: 55%;
    background: #ffffff4d;
    border-radius: 0 20px 20px 0;
}

.btn-game-type-side-menu::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        #ffffff00 0%, /* จางสุดที่ขอบบน */
        #ffffff0c 40%, /* แสงสีขาวจาง ๆ ที่แกนกลาง */
        #ffffff0c 60%, /* แสงสีขาวจาง ๆ ที่แกนกลาง */
        #ffffff00 100% /* จางสุดที่ขอบล่าง */
    );
    transform: translateY(-50%);
    pointer-events: none;
}


.text-game-type-side-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-left: 0.75em;
    position: relative;
    z-index: 2;
    flex: 1;
}
.text-game-type-side-menu > .title { 
    font-size: 1em;
    height: fit-content;
    color: #fff;
    font-weight: bold;
    margin-bottom: 0.5em;
}
.text-game-type-side-menu > .subtitle {
    height: fit-content;
    color: #c4c4c4;    
    font-size: 1em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ic-game-type-side-menu {
    width: 3.5em;
    height: auto;
    max-width: 3.5em;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: calc(100vw - var(--side-menu-width));
    padding-left: var(--side-menu-width);
}

/* START MARQUEE */
    .marquee-container {
    position: relative;
    width: 100%;
    height: var(--marquee-height);
    overflow: hidden;

    display: flex;
    align-items: center;
    background: var(--marquee-bg-color);
    box-shadow: 0 4px 4px #00000040;
    }
  .marquee {
    display: flex;
    width: 100%;
  }
  .marquee:hover .marquee-text {
    animation-play-state: paused;
    height: 100%;
  }
  
  /* Speaker Icon */
  .speaker-icon {
    flex-shrink: 0;
    margin: 0 10px;
    font-size: 24px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Marquee Wrapper */
  .marquee-wrapper {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    flex: 1;
  }
  
  /* Marquee Text */
  .marquee-text {
    display: flex;
    white-space: nowrap;
    animation: marquee linear infinite;
    height: 100%;
  }
  
  .mqtxt {
    display: flex;
    align-items: center;
    color: #fff;
    padding: 0 0.5em;
  }
  
  /* Keyframes for seamless marquee */
    @keyframes marquee {
        0% {
        transform: translateX(0%);
        }
        100% {
        transform: translateX(-100%);
        }
    }

/* END MARQUEE */

/* START FIRST TITLE */

    .first-title-container {
        padding: 0.5em 1em;
        color: #fff;
        font-size: 1.25em;
        font-weight: 300;
        margin-top: 0.5em;
        height: var(--first-title-height);
        display: flex;
        align-items: center;
    }
    .first-title-list  {
        margin-bottom: unset;
        padding-left: unset;
    }
    .first-title-item > h2 {
        text-align: center;
        margin-bottom: 0;
        font-size:1.2em;
        font-weight: 300;
    }
/* END FIRST TITLE */

/* START SWIPER */

    .swiper-container {
        position: relative;
        width: 100%;
        height: var(--swiper-height);
        overflow: visible;
    }
    
    .swiper-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 150px;
        /* background: linear-gradient(to right, #000000e8, #00000000); */
        pointer-events: none; 
        z-index: 10;
    }
    
    .swiper-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 150px;
        /* background: linear-gradient(to left, #000000e8, #00000000); */
        pointer-events: none; 
        z-index: 10;
    }

    .swiper {
        overflow: hidden;
    }
    .swiper-wrapper {

    }
    .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .swiper-link {
        display: flex;
        width: 100%;
        overflow: hidden;
        border-radius: 1em;
        margin: 0 0.5em;
    }
    .swiper-img {
        width: 100%;
        height: auto;
        object-fit: contain;

    }
    .swiper-pagination {
        z-index: 2 !important;
        bottom: 0 !important;
        display: flex;
        height: 2em;
        transform: translateY(102%) !important;
        opacity: 1;
        justify-content: center;
        align-items: center;
    }
    /* custom bullet */
    .swiper-pagination-bullet {
        width: 30px !important;
        height: 4px !important;
        border-radius: 1px !important;
        background: #fff !important;
        opacity: 0.5 !important;
    }
    .swiper-pagination-bullet.swiper-pagination-bullet-active {
        opacity: 1 !important;
    }
/* END SWIPER */


    /* START LIST GAME */
    .game-list-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        overflow: hidden;
        margin-top: 2em;
        padding: 1em;
    }

    .game-list-wrapper {
        width: 1110px;
        margin: 0 auto;
        min-height: 1500px;
        height: fit-content;
    }
    .game-list-panel {
        width: 100%;
        height: fit-content;
    }
    .game-list-title {
        display: flex;
        justify-content: center;
        height: fit-content;
        font-size: 1.1em;
        color: #fff;
        padding: 0.5em;
        letter-spacing: 1px;
    }

    .game-list-header-title {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    .ic-game-list-header-title {
        height: 40px;
        width: auto;
        object-fit: contain;
    }
    .txt-game-list-header-title {
        margin-left: 1em;
        font-size: 1.5em;
        flex: 1;
        display: flex;
        justify-content: flex-start;
        height: 40px;
        align-items: center;
        position: relative;
        color: #fff;
    }

    .txt-game-list-header-title.colorfull{   
        background: linear-gradient(180deg, var(--game-list-title-txt-color-1), var(--game-list-title-txt-color-2));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .txt-game-list-header-title.underline::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0; /* ตำแหน่งเส้นใต้ */
        height: 1px; /* ความหนาของเส้นใต้ */
        background: linear-gradient(to right, #ffffff1d, #ffffff1d);
        transition: all 0.3s ease-in-out;
        pointer-events: none;
    }

     /* LIST GAME TYPE A (4 COLUMN FIT) */
     /* [desktop] 4 items per column
        [mobile]  2 items per column
     */
    .game-list-wide {
        display: flex;
        width: 100%;
        height: fit-content;
        flex-wrap: wrap;
        overflow: hidden;
        margin: 1em auto !important;
        padding-left: 0 !important;
    }
    .game-list-wide >.item {
        padding: 0.5em;
        width: 25%;
        height: fit-content;
        max-width: 25%;
        overflow: hidden;
        cursor: pointer;
    }
    
    .game-list-box {
        display: flex;
        width: 100%;
        overflow: visible;
        border-radius: 15px;
        position: relative;
    }
    .game-img-wrapper {
        display: flex;
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    .game-img-wrapper > .ic-game {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 1em;
    }
   
   
    .game-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        background-color: #332e32b3;
        transition: all .4s;
        border-radius: 15px;
        z-index: 3;
        transition: all 0.3s ease;

    }

    .game-list-box:hover .game-overlay ,.game-list-box.active .game-overlay{
        opacity: 1;
        visibility: visible;
    }

    .game-btn-play {
        width: 120px;
        height: 44px;
        background: linear-gradient(180deg, var(--btn-play-bg-color-1), var(--btn-play-bg-color-2));
        min-width: 120px;
        padding: 10px;
        text-align: center;
        opacity: 1;
        -webkit-transform: translateY(10px);
        transform: translateY(10px);
        transition: all .2s;
        border-radius: 5px;
        box-shadow: 2px 2px 5px #00000080;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none; /* ลบเส้นใต้ */
        font-weight: bold;
        color: #fff;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-25%);
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }
    .game-list-box:hover .game-btn-play {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%,-50%);
    }

    .game-btn-play:hover {
        color: #fff;
    }
    .game-btn-play > .ic-play {
        display: flex;
        justify-content: center;
        align-items: center;
        filter: drop-shadow(#e23 0.5rem 0.5rem 1rem);
    }
   
    
    .game-btn-play > .txt-letplay {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-left: 0.5em;
    }
    
    .triangle {
        width: 0;
        height: 0;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 11.3px solid #ffffff; /* สีของสามเหลี่ยม */
        transform: rotate(270deg); /* หมุน 90 องศาไปทางขวา */
        border-radius: 3px;
    }
    .game-list-name {
        display: flex;
        justify-content: center;
        font-size: 0.75em;
        margin-top: .75rem;
        margin-bottom: 0;
        color: #c4c4c4;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gamelist_dense {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        overflow: hidden;
        margin: 1em auto !important;
        justify-content: center;
        padding-left: 0 !important;
    }

    .gamelist_dense >.item {
        padding: 0.5em;
        width: 14.2%;
        max-width: 14.2%;
        overflow: visible;
        cursor: pointer;
        position: relative;
        min-height: 80px;
    }

    .gamelist_dense >.item .progress {
        margin-top: 4px;
        background: #525252;
    }
    .progress-bar {
        filter: drop-shadow(0px 4px 4px black);
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    .label_game_new {
        position: absolute;
        width: 60px;
        height: 26px;
        top: 12px;
        right: 12px;
        color: #fff;
        background: linear-gradient(182deg, var(--game-label-new-bg-1), var(--game-label-new-bg-2)) !important;
        border: 1px solid var(--game-label-new-bg-2);
        border-radius: 5px;
        user-select: none;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .label_game_new > .txt {
        line-height: 1;
        display: flex;
        align-items: center;
        font-size: 0.8em;
        padding: 2px;
        position: relative;
        text-transform: uppercase;
        color: #fff;
        animation: wave-upper-text 1s infinite;
        animation-delay: calc(0.1s * var(--wave-txt-u))    
    }

    @keyframes wave-upper-text {    
        0%,40%,100% {
            transform: translateY(0)
        }
        20% {
            transform: translateY(-2px)
        }
    }

    /* END LIST GAME */
    /* END CONTENT  */
    /* START FOOTER */
    .footer_container {
        background: ghostwhite;
        display: flex;
        flex-wrap: wrap;
        min-height: var(--footer-height);
        height: var(--footer-height);
        background: var(--footer-bg-color);
        padding: 1em;
    }
    .footer_container > * {
        flex-shrink: 0;       
    }

    .footer_txt {
        flex: 3;
       
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 1em;
    }
    .footer_txt > * {
        height: fit-content;   
        font-weight: 400;
        
        line-height: 1.4;
    }

    .footer_txt > .title {
        margin-bottom: 1em;
        color: var(--footer-txt-title-color);
        font-size: 1.1em; 
    }
    .footer_txt > .subtitle {
        color: var(--footer-txt-subtitle-color);
        font-size: 1.1em;
    }

    .footer_tags {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 1em;
        flex: 7;
    }
    .footer_tags > .title {
        color: var(--footer-txt-title-color);
        font-size: 1.1em;
        margin-bottom: 1em;
    }
    .footer_tags > * {
        height: fit-content;
        line-height: 1.4;
    }
    .footer_tags > .tagslist {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-left: 0;
    }
    .taglist_item {
        background: var(--footer-tag-bg);
        padding: 0.25em 1em;
        border-radius: 2em;
        color: var(--footer-txt-subtitle-color);
        height: fit-content;
        margin-right: 0.5em;
        margin-bottom: 0.5em;
    }
    .taglist_item > .taglink {
        font-size: 0.9em;
        display: flex;
        text-decoration: none;
        color: inherit;
    }
    .taglist_item > .taglink:hover {
        color: var(--footer-txt-subtitle-color);
    }
    .footer_copyright {
       
        flex: 2;
    }

    .footer_copyright {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .footer_copyright > * {
        height: fit-content;
        line-height: 1.4;
    }
    .footer_copyright > .title {
        color: var(--footer-txt-title-color);
        margin-bottom: 1em;
    }
    .footer_copyright > .subtitle {
        text-align: center;
        color: var(--footer-txt-subtitle-color);
       
    }
    .copyrightlink {
        height: fit-content;
        color: inherit;
        text-decoration: none;
    }
    .copyrightlink:hover {
        color: var(--footer-txt-title-color);
    }

/* END FOOTER */

/* START FLOATING ACTION FOOTER */
    .floating_action_footer_container {
        display: none;
    }
    .floating_action_footer_container  > .inside_wrapper {
        display: flex;
        align-items: flex-end;
        position: relative;
    }
    .floating_action_footer_left {
       
        height: 70px;
        display: flex;
        flex: 1;
        border-top-left-radius: 10px;
        border-top-right-radius: 22px;
    }
    .floating_action_footer_left, .floating_action_footer_right {
        background: linear-gradient(180deg, var(--floating-action-footer-bg-1), var(--floating-action-footer-bg-2));
        position: relative;
        z-index: 2;
    }
    .floating_link_action_footer {
        width: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #fff;
        padding: 1em 0;
        text-decoration: none;
    }
    .floating_link_action_footer:hover {
        color: #fff;
    }
    .floating_link_action_footer > .ic {
        object-fit: contain;
        height: 34px;
        width: 34px;
        flex: 1;
    }

    .floating_link_action_footer > .ic._blink{
        animation: x-register-bottom-blink .5s infinite alternate;
    }

    @keyframes x-register-bottom-blink {
        0% {
            -webkit-filter: drop-shadow(0 0 3px #56e8ff);
            filter: drop-shadow(0 0 3px #56e8ff)
        }
    
        to {
            -webkit-filter: drop-shadow(0 0 6px #56e8ff);
            filter: drop-shadow(0 0 6px #56e8ff)
        }
    }

    
    .floating_link_action_footer > .txt {
        font-size: 0.8em;
        margin-top: -4px;
        height: fit-content;
        min-height: 1em;
        color: var(--floating-action-footer-txt-color);
    }

    .floating_action_footer_center {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        z-index: 2;
        width: 74px;
        height: 74px;
        margin: 0 8px 16px;
        padding-bottom: 0;
        color: #fff;
        border-radius: 50%;
        box-shadow: 0 0 10px hsla(0, 0%, 100%, 0.4);
        background: linear-gradient(180deg, var(--floating-action-footer-center-bg-1), var(--floating-action-footer-center-bg-2));
        text-decoration: none;
    }
    .floating_action_footer_center > .wrapper-link {
        height: 100%;
        width: 100%;
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        text-align: center;
    }
    .floating_action_center_logo {
        position: absolute;
        width: 100%;
        height: auto;
        object-fit: contain;
        top: 12px;
    }
    .floating_center_action_txt {
        position: relative;
        font-size: .875rem;
        text-shadow: 1px 3px 5px rgba(0, 0, 0, 0.6);
        bottom: 1em;
        height: fit-content;
        color: var(--floating_action_footer_center_txt_color);
    }
  
    .floating_center_action_bottom_curve {
        position: absolute;
        left: 50%;
        z-index: 2;
        width: 85%;
        height: auto;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        bottom: 3px;
    }
    .floating_action_footer_right {
       
        height: 70px;
        flex: 1;
        border-top-right-radius: 10px;
        border-top-left-radius: 22px;
        display: flex;
    }
    

    .floating_footer_fake_center_bg {
        position: absolute;
        left: 0;
        bottom: 0;
        z-index: 1;
        width: 100%;
        height: 50px;
        transition: filter .2s;
        overflow: hidden;
        filter: brightness(0.96);
    }
    .floating_footer_fake_center_bg svg {
        position: absolute;
        left: 50%;
        bottom: 0;
        height: 108px;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }

    #rectangleGradient {
        --color-stop: var(--floating-action-footer-bg-1);
        --color-bot: var(--floating-action-footer-bg-2);
    }
    .floating_footer_fake_center_bg svg path {
        fill: url(#rectangleGradient);
    }
/* END FLOATING ACTION FOOTER */
/* START MODAL MENU FLOATING */
    #modal_menufloating { 
        background: #000000c4;
        z-index: 1200;
    }
    #modal_menufloating > .modal-dialog {
        height: fit-content;
    }
    #modal_menufloating > .modal-dialog > .modal-content {
        background-color: unset;
        border: none;
    }
    .modal-header {
        border-bottom: none !important;
    }
    .modal-menu-container {
        padding-left: 0 !important;
    }
    .btn-close.invert-white[data-bs-dismiss="modal"] {
        filter: invert(1);
        opacity: 1;
    }
    /* Fade-Up Effect */
    .fade-up .modal-dialog {
        transform: translateY(25px) !important; /* เริ่มจากตำแหน่งด้านล่าง */
        opacity: 0; /* เริ่มต้นโปร่งใส */
        transition: transform 0.3s ease-out, opacity 0.5s ease-out !important;
    }
    
    .fade-up.show .modal-dialog {
        transform: translateY(0) !important; /* เลื่อนขึ้นไปตำแหน่งปกติ */
        opacity: 1; /* เปลี่ยนเป็นไม่โปร่งใส */
    }
    .modal-menu-container {
        display: flex;
        justify-content: center;
        align-items: center ;
        flex-wrap: wrap;
    }
    .modal-menu-item {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 33%;
        margin-bottom: 1em;
    }
    .modal-menu-link {
        display: flex;
        text-decoration: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #c4c4c4;
    }
    .modal-menu-link:hover {
        color: #fff;
    }
    .modal-menu-img {
        width: 110px;
        object-fit: contain;
    }
    .modal-menu-txt {
        margin-top: 0.5em;
        text-align: center;
    }
/* END MODAL MENU FLOATING */
/* ORDER BLOCK ELEMENT */
.marquee-container { order: 1;}
.first-title-container { order: 2;}
.swiper-container { order: 3;}
.game-list-container { order: 4;}
.footer_container { order: 5;}


/* START  MEMBER RMBBET */

.header-action-profile {
    width: 120px;
    height: 46px;
    background: #112e58;
    border-radius: 0.5em;
    box-shadow: #32325d00 0px 30px 60px -12px inset, #00000040 0px 18px 36px -18px inset;
    display: flex;
    overflow: hidden;
    cursor: pointer;
}
.header-action-profile-data {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0.25em 0.5em;
    width: 70%;
    max-width: 70%;
}

.header-action-profile-data > * {
    flex: 1;
    width: 100%;
    font-weight: bold;
    font-size: 0.8em;
    text-align: end;
}
.header-action-profile-data > .user-username {
    font-weight: 300;
    color: #fff;
}

.header-action-profile-data > .user-money {
    color: #f571d6;
    display: flex;
}

.header-action-profile-icon {
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-action-profile-icon > .ic {
    width: 100%;
    object-fit: contain;
    animation: ic-jump 1s infinite linear;
}
.after-credit-ic {
    color: #fff;
    font-weight: bold;
    padding-left: 0.5em;
}

@keyframes ic-jump {
    0% {
        animation-timing-function: cubic-bezier(0.0637,0.1569,-0.0154,0.8727);
        transform: translate(0,0)
    }

    22% {
        animation-timing-function: cubic-bezier(0.7634,0.2713,0.7818,0.6832);
        transform: translate(0,-13.958%)
    }

    43% {
        animation-timing-function: cubic-bezier(0.0599,0.1266,0.2372,1.029);
        transform: translate(0,-2.338%)
    }

    56% {
        animation-timing-function: cubic-bezier(0.6353,0.3049,0.6792,0.6671);
        transform: translate(0,-7.868%)
    }

    68% {
        animation-timing-function: cubic-bezier(0.0513,0.1148,0.3085,1.1548);
        transform: translate(0,-1.596%)
    }

    76% {
        animation-timing-function: cubic-bezier(0.467,0.2881,0.3593,0.7819);
        transform: translate(0,-4.41%)
    }

    83% {
        animation-timing-function: cubic-bezier(0.0632,0.1615,0.3539,1.4565);
        transform: translate(0,-1.12%)
    }

    88% {
        animation-timing-function: cubic-bezier(0.3563,0.3125,0.5387,1.6475);
        transform: translate(0,-2.4080000000000004%)
    }

    92% {
        animation-timing-function: cubic-bezier(0.1265,0.4155,0.3821,1.8827);
        transform: translate(0,-0.812%)
    }

    95% {
        animation-timing-function: cubic-bezier(0.5727,1.3521,0.0229,3.0356);
        transform: translate(0,-1.302%)
    }

    98% {
        animation-timing-function: cubic-bezier(0.4531,-1.3593,0.757,0.0281);
        transform: translate(0,-0.798%)
    }

    100% {
        transform: translate(0,0)
    }
}

.sidemenu-right-backdrop {
    display: none;
    position: fixed;
    z-index: 1501;
    user-select: none;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.sidemenu-right-backdrop.active {
    background: #3e3e3e9c;
    display: flex;
}
.sidemenu-right-container {
    min-width: 260px;
    border-radius: 20px 0 0 20px;
    background: linear-gradient(137deg, var(--rmbbet_side_menu_right_bg_color_1), var(--rmbbet_side_menu_right_bg_color_2) 95%);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    position: fixed;
    user-select: none;
    height: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    transform: translateX(110%);
    transition: all 0.3s cubic-bezier(1,.06,.42,1.01);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    justify-content: flex-start;
    align-items: center;
    padding-top: 4em;
}
.sidemenu-right-container.active {
    display: flex;
    user-select: auto;
    opacity: 1;
    transform: translateX(0);
}

.sidemenu-right-container-close {
    background: transparent;
    outline: none;
    border: none;
    font-size: 1em;
    color: #fff;
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
}

.sidemenu-right-container > .user-icon {
    width: 4em;
}
.sidemenu-right-container > .user-icon > .ic {
    max-width: 100%;
    object-fit: contain;
}

.sidemenu-right-container > .user-username {
    color: #fff;
    font-size: 1.2em;
    font-weight: 300;
    margin-top: 0.5em;
}
.sidemenu-right-container > .user-money {
    width: 80%;
    height: 35px;
    background: #464646;
    border-radius: 2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
  
}
.sidemenu-right-container > .credit-latest-update {
    color: #dadada;
    margin: 0.25em auto 1.5em auto;
}
.sidemenu-right-container > .user-money .ic {
    height: 90%;
    padding-left: 4px;
    object-fit: contain;
}
.sidemenu-right-container > .user-money .txt {
    font-weight: 400;
    color: #f571d6;
}
.sidemenu-right-container > .user-money .after-txt {
    font-size: 1.3em;
    font-weight: bolder;
    color: #fff;
    width: 50px;
}

@keyframes rotate360 {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(380deg);
    }
  }
  
  .after-txt {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transform-origin: center;
  }
  
  .after-txt.active {
    animation: rotate360 0.6s ease;
  }



#header-hamburger_menu {
    height: 60px;
}
.sidemenu-right-link-item {
    margin-bottom: .9rem;
    border-radius: 14px;
    background: #0e1f38;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    height: 44px;
    width: 80%;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.sidemenu-right-link-item > .ic { 
    height: 90%; 
    width: 30px;
    object-fit: contain;
    margin: 0 1em;
}
.sidemenu-right-link-item > .txt {
    color: #fff;
    font-size: 0.9em;
}

.swal2-modal.swal2-popup {
    background: linear-gradient(180deg, var(--rmbbet_swal2_modal_bg_color_1), var(--rmbbet_swal2_modal_bg_color_2)) !important;
}
h2.swal2-title {
    color: var(--rmbbet_swal2_modal_title_color);
}
.swal2-icon.swal2-warning {
    border-color: #faa32a !important;
    color: #e19933 !important;
}
button.swal2-cancel,button.swal2-confirm {
    width: 160px;
}
button.swal2-deny {

}
button.swal2-styled.swal2-cancel {
    background: linear-gradient(180deg, var(--rmbbet_swal2_modal_btn_cancel_bg_color_1), var(--rmbbet_swal2_modal_btn_cancel_bg_color_2)) !important;
}
button.swal2-confirm {
    background: linear-gradient(180deg, var(--rmbbet_swal2_modal_btn_confirm_bg_color_1), var(--rmbbet_swal2_modal_btn_confirm_bg_color_2)) !important;
    color: #242424 !important;
}

.swal2-html-container {
    color: var(--rmbbet_swal2_modal_content_color);
}


button.modal-menu-link {
    background: transparent !important;
}

.gamelist_dense >.item.game-type .game-list-name {
    position: absolute;
    margin-top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 89%;
    background: #3f3f3f;
    padding: 4px 0;
    top: 0px;
    font-weight: 300;
    color: #ffffff;
    border-top-left-radius: 0.5em;
    border-top-right-radius: 0.5em;
    z-index: 10;
}
.game-list-btn-back {
    display: flex;
    justify-content: flex-end;
    padding: 0 0.5em;
    padding-bottom: 0.5em;
    position: relative;
    margin-top: -2.5em;
}
.btn-b-to-type {
    border-radius: 1em;
    padding: 0 1em;
    color: #fff;
    background: #6a6a6a;
    font-size: 0.9em;
    font-weight: 300;
}

.game-list-header-title.slot-formular {
    background: #f14d834d;
    border-radius: 4px;
}
.hide {
    display: none !important;
}
/* END MEMBER RMBBET */
.swal2-container {
    z-index: 1200 !important;
}
.real-list-game {
    transition: filter 0.3s ease;
}
.real-list-game.loading {
    transition: filter 0.3s ease;
    filter: brightness(0.5) blur(3px) contrast(1.1);
}
.animate__remove {
    animation-name: unset !important;
}


/* STYLE FOR PLAY GAME IN IFRAME */
.sub-page.fullscreen {
    padding-top: 0;
}
#main-nav {
    transition: transform 0.8s ease-in-out;
}
#main-nav.fullscreen {
    transform: translateY(-100%);
}
#main-nav.fullscreen.show-ingame {
    transform: translateY(0);
}
.floating_action_footer_container {
    transition: transform 0.8s ease-in-out;
}
.floating_action_footer_container.fullscreen {
    transform: translateY(100%);
}
.floating_action_footer_container.fullscreen.show-ingame {
    transform: translateY(0);
}
iframe.game-frame {
    display: table-cell;
}

.btn-trigger-showmenu {
    position: absolute;
    height: 60px;
    width: 60px;
    top: 25%;
    right: 8px;
    z-index: 1000;
    padding: 0;
    border-radius: 50%;
    background: #1e1e1e;
    overflow: hidden;
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
    border: none;
}
.btn-trigger-showmenu img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}