@media (max-width: 1402px) {
    .logo-site-container {
        margin-left: 2em;
    }
}

@media (max-width: 1341px) {
    .gamelist_dense >.item {
        width: 16.6%;
        max-width: 16.6%;
    }
    .game-list-wrapper {
        width: 100%;
    }
}

@media (max-width: 1200px) { 
    .header-menu-item {
        width: 70px;
        height: 105%;
    }
    .header-menu-text {
        font-size: 0.75em;
    }

    .footer_container {
        flex-direction: column;
        flex-wrap: nowrap;
        height: auto;
    }

    .footer_txt {
        align-items: center;
    }
    .footer_txt > * {
        line-height: 1.2;
        text-align: center;
    }
    .footer_tags {
        align-items: center;

    }
    .footer_tags > * {
        text-align: center;
    }
    .footer_tags > .tagslist {
        justify-content: center;
    }
    .footer_copyright > * {
        line-height: 1;
    }
}

@media (max-width: 992px) {
    :root {
        --header-height:65px;
        --swiper-height: 227px;
        --footer-height: 500px;
        --side-menu-mobile-width: 20%;
    }

    /* ORDER BLOCK ELEMENT */
    .marquee-container { order: 3;}
    .first-title-container { order: 1;}
    .swiper-container { order: 2;}
    .game-list-container { order: 4;}
    .footer_container { order: 5;}
    

    .header-menu-list {
        display: none;
    }
    .btn-header-login {
        display: none;
    }
    .header-action {
        padding-right: 0;
    }

    .floating_action_footer_container {
        position: fixed;
        left: 0;
        bottom: 0;
        z-index: 4;
        width: 100%;
        display: block;
        z-index: 1500;
        height: fit-content;
    }

    .btn-header-register {
        width: 120px;
        height: 30px;
        background: radial-gradient(ellipse at top, var(--header-btn-register-mobile-bg-1) -30%, var(--header-btn-register-mobile-bg-2) 67%);
        box-shadow: inset 0px 0px 0px #242424bd, inset 0px 8px 11px 0px #ffffff5c, inset 0px -6px 4px 0px #ffffff5e;
        border: 1px solid #fff;
        min-width: unset;
    }

    .btn-header-register > .btn-txt {
        font-weight: 300;
        font-size: 0.85em;
    }
    
    .btn-header-register > .ic-abs {
        display: flex;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translate(-50%,-50%);   
    }

    .side-menu-container {
        display: none;

        
        /* 
         
        height: calc(100vh - (var(--header-height) + var(--marquee-height) + var(--first-title-height) + var(--swiper-height)) + 2em); 
        top: calc(var(--header-height) + var(--marquee-height) + var(--first-title-height) + var(--swiper-height) + 2em);
        overflow: auto;
        scrollbar-width: none; 
        -ms-overflow-style: none; 

        */
    }

    .side-menu-container::-webkit-scrollbar {
        display: none; /* สำหรับเบราว์เซอร์ Webkit (Chrome, Safari, Edge) */
    }

    .game-type-list-container {
      
    }

    .game-type-list-side-menu {
        min-height: fit-content;
        padding: 0.5em !important;
    }

    .side-menu-game-type-item {
        flex-shrink: 0;
        height: auto;
        max-height: unset;
        margin-bottom: 0.85em;
    }
    
    .content-container {
        padding-left: 0;
    }

    .first-title-container {
        margin-top: 0;
        display: flex;
        justify-content: center;
        font-size: 1em;
        background: #231752;
    }
    .first-title-item > h2 {
        display: flex;
        align-items: center;
        font-size: 0.9em;
        padding: 1em;
        margin-top: 8px;
    }
    .swiper-container {
        margin: 0.95em 0;
    }
    .swiper-pagination {
        transform: unset !important;
    }

    .game-list-container {
        margin-top: 0;
        padding: 0;
        overflow: auto;
        display: flex;
        flex-direction: row;
    }

    .side-menu-mobile {
        display: flex;
        width: var(--side-menu-mobile-width);
        overflow: hidden;
        background: var(--side-menu-bg-1);
        z-index: 1190;
        position: relative; 
    }

    .game-list-wrapper {
        width: auto;
        height: auto;
        min-height: 1500px;
        padding: 1em;
        flex: 1;
    }
    .footer_txt,.footer_tags,.footer_copyright {
        flex: unset;
    }

    .footer_container {
        padding-bottom: 100px;
        position: relative;
        z-index: 1190;
    }

    .btn-game-type-side-menu {
        flex-direction: column;
        justify-content: center;
        padding: 1em !important;
    }
    .text-game-type-side-menu { 
        height: fit-content;
        min-height: 2em;
        flex: unset;

    }
    .ic-game-type-side-menu {width: 38px;}
    .text-game-type-side-menu { margin: 0;}
    .text-game-type-side-menu > .title { display: none;}
    .text-game-type-side-menu > .subtitle { 
        font-weight: 500; 
        font-size: 1.85em; 
        margin-bottom: 0.5em;
    }
    
    .txt-game-list-header-title {
        font-size: 1.2em;
    }
    .game-list-wide {
        margin: 0.5em auto;
        height: fit-content;
    }

    .gamelist_dense >.item {
        width: 20%;
        max-width: 20%;
    }
}

@media (max-width: 789px) {
    .logo-site-container {
        height: 75%;
        margin-left: 2em;
    }
}

@media (max-width: 768px) {
    :root {
        --swiper-height:260px;
    }
    .swiper-container {
        margin: 0 auto;
        width: 97%;
        padding: 0.5em 0;
    }
    .swiper-container > .swiper {
        border-radius: 0.85em;
    }
    .swiper-container::after , .swiper-container::before{ display: none;}

    .game-list-wide >.item {
        width: 50%;
        max-width: 50%;
    }
    .gamelist_dense >.item {
        width: 25%;
        max-width: 25%;
    }
    .gamelist_dense >.item.game-type > .game-list-name{
        width: 100%;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .game-list-box {
        border-radius: 0.5em;
    }

    .game-list-wide >.item {
        padding: 0.25em;
    }
    .game-btn-play {
        width: 90px;
        min-width: 90px;
        height: 36px;
        font-size: 0.85em;
    }
    .label_game_new {
        bottom: 12px;
        top: unset;
        width: 45px;
        height: 20px;
        font-size: 0.65em;
        border-radius: 4px;
    }

    .game-img-wrapper > .ic-game {
        border-radius: 0.5em 0.5em 0.65em 0.65em;
    }
}


@media (max-width: 576px) { 
    :root {
        --side-menu-mobile-width: 25%;
        --swiper-height: auto;
    }
    .header-hamburger_menu {
        margin-right: 1em;
    }
    .logo-site-container {
        width: 4.5em;
        height: 85%;
    }
    .btn-game-type-side-menu {
        padding: 0.5em !important;
    }
    .text-game-type-side-menu {
        min-height: unset;
    }
    .text-game-type-side-menu > .subtitle {
        font-weight: 300;
        font-size: 0.85em;
        margin: 0.5em auto;
    }
    .side-menu-game-type-item:first-child {
        margin-top: 0;
    }
    .first-title-container {
        padding: 0.25em;
    }

    .game-list-wrapper {
        padding: 0.5em 0.25em;
    }
    .game-list-title {
        font-size: 0.85em;
        font-weight: 300;
        margin-bottom: 0;
        text-align: center;
    }
    .game-list-header-title {
        padding-left: 1em;
    }
    .ic-game-list-header-title {
        height: 30px;
    }
    .txt-game-list-header-title {
        font-size: 0.9em;
        line-height: 1;
    }
    .gamelist_dense >.item {
        padding: 0;
        width: 31%;
        max-width: 31%;
        margin: 5px 3px;
        border: 1px solid #ffffff42;
        border-radius: 0.5em;
        border-bottom: none;
    }
    .gamelist_dense {
        margin: 0 auto 0.5em auto !important;
    }
    .swiper-container {
        width: 98%;
    }
    .swiper-link {
        margin: 0;
        border-radius: 0.25em;
    }
    .game-list-name {
        font-size: 0.65em;
        margin: auto;
        height: 23px;
        line-height: 0.9;
        display: flex;
        align-items: center;
        background: #ecb34d;
        position: relative;
        color: #303030;
        top: 1px;
        border-radius: 1px 1px 6px 6px;
        white-space: normal;
        box-shadow: #00000052 1px -5px 20px 3px, #0000003b 1px -4px 9px;
    }

    .modal-menu-img {
        width: 80px;
        object-fit: contain;
        font-size: 0.9em;
    }
    .modal-menu-link {
        font-size: 0.85em;
    }
    
}

@media (max-width: 421px) {
    :root {
        --first-title-height: 32px;
    }
    
    .floating_link_action_footer > .ic {
        width: 30px;
        height: 30px;
    }
    .floating_link_action_footer > .txt {
        font-size: .7rem;
        white-space: nowrap;
        overflow: hidden; 
        text-overflow: ellipsis; 
        max-width: 100%;
    }   
    .modal-menu-img {
        width: 50px;
        object-fit: contain;
    }
    .modal-menu-link {
        font-size: 0.75em;
    }
}

@media (max-width: 375px) {

}



