.lobby_container {
    width: 100%;
}

.lobby_container > .category_wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 3rem;
    border-bottom: none;
}

.lobby_container > .category_wrap > .game_category {
    flex: 0 20%;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid #d6e9ff;
    cursor: pointer;
}

.category_wrap > .game_category > p {
    font-size: 14px;
    color: #6794d3;
    font-weight: bold;
}

.lobby_container > .category_wrap > .game_category:hover {
    background: #f4efff;
}

.lobby_container > .category_wrap > .game_category.active {
    background: var(--primaryColor);
    border-color: var(--primaryColor);
}

.category_wrap > .game_category.active > p {
    color: #fff;
}

.game_list_wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* height: 100%; */
    transition: all 200ms ease;
    border: 1px solid transparent;
    box-shadow: 1px 1px 5px #ccc;
    border-radius: 10px;
    position: relative;
}

.lobby_content .col-md-4:hover .game_list_wrap {
    border-color: #c77ef9;
    box-shadow: 1px 1px 5px #ccc;
}

.game_list_wrap > .img_blox {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
}

.game_list_wrap > .img_blox > img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* video */
.game_list_wrap > .img_blox > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.game_list_wrap > .img_blox:hover > video {
    display: block;
}

.game_list_wrap > .img_blox:hover > img {
    display: none;
}

.lobby_content .col-lg-4 .game_list_wrap .game_name_wrap {
    position: absolute;
    /* bottom: 0; */
    height: 100%;
    width: 100%;
    /* background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 25%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 75%, rgba(0,0,0,0) 100%); */
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center; 
    align-items: center; 
    padding: 10px 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.lobby_content .col-lg-4 .game_offical_name {
    font-size: 14px;
    font-weight: bold;
    white-space: normal;
    /* max-width: 200px; */
    text-transform: uppercase;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.1;
    margin-top: 12px;
}

.lobby_content .col-lg-4 .game_list_wrap .game_name_wrap > .game_name {
    height: 80px;
    display: block;
    /* justify-content: center;
    align-items: center; */
    padding: 10px;
    text-align: center;
}

.lobby_content .col-lg-4 .game_list_wrap .game_name_wrap > .game_name  a.launch_game {
    display: block;
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: bold;
}

.lobby_content .col-lg-4 .game_list_wrap .game_name_wrap > .game_name a.launch_game.real {
    background: #FEC214E5;
    color: #fff;
    margin-bottom: 10px;
    cursor: pointer;
}

.lobby_content .col-lg-4 .game_list_wrap .game_name_wrap > .game_name a.launch_game.real:hover {
    background: #F19D00;
    cursor: pointer;
}

.lobby_content .col-lg-4 .game_list_wrap .game_name_wrap > .game_name a.launch_game.trail {
    border: 1px solid #fff;
    color: #fff;
}

.lobby_content .col-lg-4 .game_list_wrap .game_name_wrap > .game_name a.launch_game.trail:hover {
    background: #fff;
    color: #000;
    cursor: pointer;
}

.lobby_content .col-lg-4 .game_list_wrap .game_name_wrap > .game_name a.launch_game.end_trail {
    border: 1px solid #7D7D7D;
    color: #7D7D7D;
    cursor: no-drop;
}


.lobby_content .col-lg-4 .game_list_wrap .game_name_wrap.disabled {
    height: 100%;
    /* background: rgba(60, 60, 60, 0.75); */
    opacity: 1;
    border-radius: 10px;
}
.lobby_content .col-lg-4 .game_list_wrap .game_name_wrap.disabled > .game_name {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    text-align: center;
    cursor: not-allowed;
}
.lobby_content .col-lg-4 {
    margin-bottom: 2.5rem;
}

.lobby_content .col-lg-4:hover .game_list_wrap > .img_blox > .game_name_wrap {
    opacity: 1; /* Start with opacity 0 */
}

.lobby_content .col-lg-4:hover .game_list_wrap .img_blox{
    transform: scale(1.05);
    transition: transform 1s;
    box-shadow: 1px 1px 5px #ccc;
    z-index: 2;
}
.lobby_content .col-lg-4:hover .game_list_wrap .new_game,
.lobby_content .col-lg-4:hover .game_list_wrap .hot_game {
    opacity: 0;
}

.game_name_wrap > .game_name > p {
    font-size: 14px;
    font-weight: bold;
    white-space: normal;
    max-width: 200px;
    text-transform: uppercase;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.1;
}

.lobby_content .col-lg-4:hover .game_list_wrap .game_name > p {
    color: #fff;
}

.lobby_content > .content > .row {
    --bs-gutter-x: 1.25rem;
}

.game_list_wrap > .new_game{
    position: absolute;
    width: auto;
    top: -15px;
    left: -15px;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.game_list_wrap > .hot_game{
    position: absolute;
    width: auto;
    bottom: -10px;
    right: -25px;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* gpi */
.game_list_wrap > .img_blox.gpi_img > img {
    max-width: 100%;
    height: 100%;
}

.game_name_wrap > .game_name.gpi_game_name > p {
    font-size: 12px;
}


.swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}
.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 450px;
  height: 330px;
  perspective: 1000px; /* Define 3D space */
  position: relative;
  background-color: rgba(255,255,255,0.7);
  border-radius: 8px;
}
.swiper-slide.mobile {
    width: 200px;
    height: 200px;
}

.swiper-slide img,.swiper-slide img{
    opacity: 0.5;
    transition: opacity 0.5s ease;
}
.swiper-slide-active img, .swiper-slide-active img {
    opacity: 1; 
}

.swiper-slide .front, .swiper-slide .back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hide back face */
    transition: transform 0.6s;
    transform-style: preserve-3d;
    background-color: transparent;
}
.swiper-slide .front img, .swiper-slide .back img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 5px solid #fff;
}
.swiper-button-next, .swiper-button-prev {
    top: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    background-size: 45px 45px;
    background-position: center;
    background-repeat: no-repeat;
    color: #9A14F5;
    background-color: rgba(243, 232, 255, 0.6);
    border-radius: 45px;
}
.swiper-button-next::after, .swiper-button-prev::after{
    font-size: 16px !important;
    font-weight: bold;
}
.swiper-button-next:hover, .swiper-button-prev:hover{
    background-color: rgba(243, 232, 255, 0.8);
}
/* .swiper-slide .back {
    transform: rotateY(180deg); 
}
.swiper-slide:hover .front {
    transform: rotateY(180deg); 
}
.swiper-slide:hover .back {
    transform: rotateY(0deg); 
} */


.game_lobby .menu_tab .menu_tab_row {
    display: flex;
    align-items: center;
    position: relative;
    height: 45px;
}

.game_lobby .menu_tab .menu_tab_row::after {
    content: "";
    position: absolute;
    background: #9A14F5;
    height: 1px;
    width: 100%;
    bottom: 0;
    z-index: 1;
}

.game_lobby .menu_tab .menu_tab_row .menu_col {
    width: auto;
    padding: 1rem 1.25rem;
    position: relative;
    max-height: 45px;
    height: 45px;
    line-height: calc(45px - 2rem);
}

.game_lobby .tab_content .content_wrap {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.game_lobby .tab_content {
    width: 100%;
    border: 1px solid #e5ecee;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.game_lobby .tab_content:hover {
    background: linear-gradient(90deg, #fff 0%, #F3E8FF 20%, #E9D4FF 50%, #F3E8FF 80%, #fff 100%);
}

.game_lobby .content_wrap p {
    font-size: 14px;
    color: #707070;
    text-transform: uppercase;
    font-weight: bold;
}

.game_lobby .tab_content.active {
    border-color: #9A14F5;
    background-color: #f3f3f3;
}


.game_lobby .tab_content.active:first-child:after {
    content: "";
    position: absolute;
    background: #fff;
    height: 1px;
    width: 100%;
    left: 0;
    bottom: -1px;
    z-index: 99;
}

.game_lobby .tab_content.active::after {
    content: "";
    position: absolute;
    background: #fff;
    height: 1px;
    width: 100%;
    left: 0;
    bottom: 0;
    z-index: 99;
}

.game_lobby .tab_content.active p {
    color: #000;
}

.game_lobby .menu_tab_row .content_wrap .icon_color {
    max-width: 24px;
    margin-right: 0.5rem;
}

.game_lobby .menu_tab_row .content_wrap p {
    margin: 0;
}

.game_lobby .content_wrapper > .datalist_wrap {
    display: none;
    padding-top: 20px;
}

.game_lobby .content_wrapper > .datalist_wrap.show {
    display: block;
}

.drawer_bottom {
    display: none;
}

.toggleContainer {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: fit-content;
    border: 3px solid #343434;
    border-radius: 20px;
    background: #343434;
    font-weight: bold;
    color: #343434;
    cursor: pointer;
  }
  .toggleContainer::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    left: 0%;
    border-radius:20px;
    background: white;
    transition: all 0.3s;
  }
  .toggleCheckbox:checked + .toggleContainer::before {
     left: 50%;
  }
  .toggleContainer div {
    padding: 6px;
    text-align: center;
    z-index: 1;
  }
  .toggleCheckbox {
    display: none;
  }
  .toggleCheckbox:checked + .toggleContainer div:first-child{
    color: white;
    transition: color 0.3s;
  }
  .toggleCheckbox:checked + .toggleContainer div:last-child{
    color: #343434;
    transition: color 0.3s;
  }
  .toggleCheckbox + .toggleContainer div:first-child{
    color: #343434;
    transition: color 0.3s;
  }
  .toggleCheckbox + .toggleContainer div:last-child{
    color: white;
    transition: color 0.3s;
  }

  .tryPlayBlock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    width: 100%;
    background-color: #c77ef9;
    font-size: 18px;
    color: #FFF;
    font-weight: bold;
    border-radius: 4px;
    position: relative;
    top: 1px;
  }
/* RWD */
@media only screen and (max-width: 1024px) {
    .lobby_content > .content > .row {
        --bs-gutter-x: 1.35rem;
    }    
}

@media (min-width: 992px) {
    .lobby_content .col-lg-4 {
        width: 25%;
        padding: 0.5% 2%;
    }
}

@media only screen and (max-width: 768px) {
    .lobby_container{
        width: 95%;
        margin: 0 auto;
    }

    .lobby_content > .content > .row > .col-6 {
        margin-bottom: 1.75rem;
        position: relative;
    }
    .lobby_container > .category_wrap > .game_category {
        flex: 0 auto;
    }
    .game_lobby .tab_content.active::after, .game_lobby .tab_content.active:first-child:after {
        content: "";
        position: absolute;
        background: #fff;
        height: 4px;
        width: 100%;
        left: 0;
        bottom: -2px;
        z-index: 99;
    }
    .lobby_content .col-lg-4 .game_list_wrap .game_name_wrap {
        opacity: 1;
    }
    .swiper {
      width: 100%;
      padding-top: 0px;
      padding-bottom: 30px;
    }
    /* .game_list_wrap > .img_blox:hover > video {
        display: none;
    } */
    
    /* .game_list_wrap > .img_blox:hover > img {
        display: block;
    } */

    .lobby_content .col-lg-4 .game_list_wrap .game_name_wrap {
        display: none;
    }

    .lobby_content .col-lg-4 .game_offical_name {
        position: absolute;
        bottom: 1px;
        right: 7px;
        width: 96%;
        height: 30%;
        text-align: center;
        font-size: 16px;
        font-weight: bold;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0) 100%);
        border-radius: 5px;
        z-index: 3;
    }
    .game_list_wrap > .img_blox:hover > img {
        display: block;
    }

    .lobby_content .col-lg-4:hover .game_list_wrap .img_blox{
        transform: none;
        transition: none;
        box-shadow: 1px 1px 5px #ccc;
        z-index: 2;
    }

    /* drawer */
    .drawer_bottom.open{
        transform: translateX(0);
    }

    .drawer_bottom{
        position: fixed;
        z-index: 1039;
        bottom: 0; 
        left: 0;
        /* max-width: 400px; */
        width: 100%;
        /* height: calc(55% + 45px); */
        background: #fff;
        color: var(--primaryColor);
        overflow-y: auto;
        box-shadow: 0 0 5px var(--gnbShadowBg);
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
        border-top-left-radius: 20px; 
        border-top-right-radius: 20px; 
        display: block;
    }
    .drawer_bottom .drawer_wrapper {
        position: relative;
    }

    /* gray drawer */
    .drawer_overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5); 
        z-index: 1030; 
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    }

    /* drawer style when enable */
    .drawer_overlay.open {
        opacity: 1;
        visibility: visible;
    }

    .drawer_bottom .drawer_wrapper .drawer_bottom_close {
        position: absolute;
        top: 19px;
        right: 20px;
        font-size: 20px;
        font-weight: bold;
    }
    .drawer_bottom .drawer_bottom_inner {
        padding: 25px 40px 40px 40px;
    }
    .drawer_bottom .drawer_bottom_inner .drawer_bottom_header {
        display: flex;
        /* justify-content: center; */
        align-items: center;
        padding: 10px 0px;
        border-bottom: 1px solid #581A89;
        position: relative;
    }
    .drawer_bottom .drawer_bottom_inner .drawer_bottom_header .drawer_bottom_title {
        font-size: 20px;
        color: #581A89;
        font-weight: bold;
    } 
    .drawer_bottom .drawer_bottom_inner .video_content_wrapper video {
        margin-top: 20px;
        width: 100%;
        height: 100%;
        object-fit: cover;
        box-shadow: 0px 4px 4px 0px #00000040;
        border-radius: 8px;
        /* display: none; */
    }
    .drawer_bottom .drawer_bottom_inner .content_wrapper.button_content_wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;
        /* padding: 20px 0; */
    }
    .drawer_bottom .drawer_bottom_inner .content_wrapper.button_content_wrapper a {
        padding: 10px 16px;
        color: #fff;
        font-weight: bold;
        font-size: 15px;
        border-radius: 8px;
        cursor: pointer;
        text-decoration: none;
        width: 45%;
        text-align: center;
    }

    .drawer_bottom .drawer_bottom_inner .content_wrapper.button_content_wrapper a.real {
        background: #FEC214E5;
        color: #000;
    }
    .drawer_bottom .drawer_bottom_inner .content_wrapper.button_content_wrapper a.trail {
        background: #fff;
        color: #000;
        border: 1px solid #7D7D7D;
    }
    .drawer_bottom .drawer_bottom_inner .content_wrapper.button_content_wrapper p.end_trail {
        background: #c8c8c8;
        color: #fff;
        cursor: no-drop;
        padding: 10px 14px;
        font-weight: bold;
        font-size: 15px;
        border-radius: 8px;
        width: 45%;
        text-align: center;
    }
}

@media only screen and (max-width: 767px) {
    .game_list_wrap > .img_blox {
        height: 220px;
    }
    .lobby_content .col-lg-4 .game_offical_name {
        width: 95.5%;
    }
}

@media only screen and (max-width: 565px) {
    .game_name_wrap > .game_name > p {
        font-size: 12px;
    }

    .game_list_wrap > .game_name_wrap > .game_name {
        padding: 12px 8px;
    }

    .lobby_container > .category_wrap > .game_category {
        padding: 8px 10px;
    }

    .category_wrap > .game_category > p {
        font-size: 12px;
    }

    .game_list_wrap > .img_blox {
        height: 180px;
    }
    .lobby_content .col-lg-4 .game_offical_name {
        width: 94%;
    }
}

@media only screen and (max-width: 450px) {
    .game_list_wrap > .img_blox {
        height: 150px;
    }
    .lobby_content .col-lg-4 .game_offical_name {
        width: 92%;
    }
}

@media only screen and (max-width: 380px) {
    .lobby_container > .category_wrap {
        gap: 5px;
    }

    .game_list_wrap > .img_blox {
        height: 125px;
    }
}

@media only screen and (max-width: 350px) {
    .category_wrap > .game_category > p {
        font-size: 11px;
    }

    .lobby_container > .category_wrap > .game_category {
        padding: 8px;
    }
}


@keyframes slideUp {
    from {
        transform: translateY(100%); /* Start from below the element's position */
        opacity: 0; /* Start with opacity 0 */
    }
    to {
        transform: translateY(0); /* End at the element's original position */
        opacity: 1; /* End with opacity 1 */
    }
}