#container{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* banner */
.banner{
    width: 100%;
    height: 442px !important;
    --swiper-navigation-color: #fff; 
    --swiper-pagination-color: #fff;
    margin-bottom: 20px !important;
}

.banner-01{
    background-image: url('../images/game/01_maya.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.banner-02{
    background-image: url('../images/game/02_Make-a-Killing-Fishing.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.banner-03{
    background-image: url('../images/game/03_Cash-Maker.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* 遊戲 */
.game{
    width: 80%;
    margin-top: 32px;
}

.game-left-lg{
    width: 160px;
}

.game-right{
    width: calc(100% - 180px);
}

/*遊戲分類 */
/* game-category-sm */
.game-category-sm{
    width: 100%;
    height: 70px;
    display: none;
    border-bottom: 1px solid #bebebe;
}

.game-category-sm .game-category-btn{
    width: 35%;
    display: flex;
    align-items: center;
    padding-left: 11%;
    background-repeat: no-repeat;
    background-position: center left 10%;
}

.game-category-sm .game-category-list{
    width: 50%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding-left: 3vw;
}

.game-category-btn span{
    white-space: nowrap;
}

.game-category-sm .game-category-btn span{
    white-space: normal;
    overflow-wrap: anywhere;
}

.game-category-sm .game-category-search{
    width: 15%;
    background-repeat: no-repeat;
    background-position: center;
}

.game-category-list button{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    min-width: 100px;
    max-width: 190px;
    width: 100%;
    height: 32px;
    border-radius: 5px;
    border: 1px solid #bebebe;
    background-color: #fff;
    font-size: 14px;
    line-height: 2.57;
    text-align: left;
    background-position: center left 10px;
    background-repeat: no-repeat;
    color: #fff;
}

.game-category-list ul{
    width: 100%;
    min-width: 100px;
    max-width: 190px;
    cursor: pointer;
}

.game-category-list a{
    font-size: 14px;
    background-position: center left 10px;
    background-repeat: no-repeat;
    padding-left: 40px;
}

.game-category-list button[value='home'],
.game-category-list a[value='home']{
    padding-left: 12px !important;
    color: #bebebe;
}

.game-category-list button[value='all']{
    background-color: #777;
}

.game-category-list button[value='slot']{
    background-color: #9583dc;
    border: unset;
}

.game-category-list button[value='card']{
    background-color: #ff9ebc;
    border: unset;
}

.game-category-list button[value='fish']{
    background-color: #00dcff;
    border: unset;
}

.game-category-list button[value='live']{
    background-color: #66e79a;
    border: unset;
}

.game-category-list button[value='lotto']{
    background-color: #ffe358;
    border: unset;
}

.game-category-list button[value="all"]::before{
    content: url('../images/Icon all white.svg');
}

.game-category-list button[value="slot"]::before{
    content: url('../images/Icon slot.svg');
}

.game-category-list button[value="card"]::before{
    content: url('../images/Icon card.svg');
}

.game-category-list button[value="fish"]::before{
    content: url('../images/Icon fish.svg');
}

.game-category-list button[value="live"]::before{
    content: url('../images/Icon live.svg');
}

.game-category-list button[value="lotto"]::before{
    content: url('../images/Icon lotto.svg');
}

.game-category-list button::before{
    width: 30px;
    height: 100%;
    background-repeat: no-repeat;
    filter: saturate(0) contrast(100) grayscale(100) !important;
}

.game-category-list button::after{
    margin-left: auto;
}

/* game-category-md */
.game-category-md{
    width: 100%;
    display: none;
    border-bottom: 1px solid #bebebe;
}

.game-category-md div{
    width: 10%;
    background-position: center top 20px;
    background-repeat: no-repeat;
    margin: 10px auto 0px;
    filter: saturate(0);
}

.game-category-md p{
    width: 100%;
    font-size: 16px;
    padding-top: 50px;
    color: #bebebe;
    text-align: center;
    white-space: nowrap;
}

.game-category-search-md{
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 76px;
    opacity: 0.8;
    padding: 0px 15%;
    background-color: #bebebe;
}

.game-category-search-md input{
    height: 40px;
    margin: auto;
    border-radius: 20px;
    border: 1px solid #bebebe;
    border-right: unset;
    background-color: #fff;
}

.game-category-search-md span{
    background: url('../images/Icon map-search.svg') no-repeat center;
    max-width: 18px;
    height: 40px;
    margin: auto;
    background-color: #fff;
    border: 1px solid #bebebe;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
    padding: 0px 0px 0px 50px;
    font-size: 16px;
}

.game-category-sm .select[id="home"],
.game-category-md .select[id="home"],
.game-category-md div[id="home"]:hover{
    border-bottom: 5px solid #000000;
}

.game-category-md .select[id="all"],
.game-category-md div[id="all"]:hover{
    border-bottom: 5px solid #777777;
}

.game-category-md .select[id="slot"],
.game-category-md div[id="slot"]:hover{
    border-bottom: 5px solid #9583dc;
}

.game-category-md .select[id="card"],
.game-category-md div[id="card"]:hover{
    border-bottom: 5px solid #ff9ebc;
    border-radius: unset;
}

.game-category-md .select[id="fish"],
.game-category-md div[id="fish"]:hover{
    border-bottom: 5px solid #00dcff;
}

.game-category-md .select[id="live"],
.game-category-md div[id="live"]:hover{
    border-bottom: 5px solid #66e79a;
}

.game-category-md .select[id="lotto"],
.game-category-md div[id="lotto"]:hover{
    border-bottom: 5px solid #ffe358;
}

/* gmae-left-lg */
.game-left-lg div{
    background-position: center left;
    background-repeat: no-repeat;
    margin: 16px auto;
    filter: saturate(0);
    background-size: 16px;
}

.game-left-lg p{
    font-size: 16px;
    width: 50%;
    margin: auto 15%;
    color: #bebebe;
}

.game-category-search-group{
    width: 90%;
    min-width: 70px;
    background-color: unset !important;
    max-width: unset;
    margin: 1vw auto 1vw 0px !important;
    border-bottom: 0.15vw solid #bebebe !important;
}

.game-left-lg span{
    background: url('../images/Icon map-search.svg') no-repeat center;
    width: 16px;
    border-radius: 0 !important;
    aspect-ratio: 1 / 1;
    border: 0 !important;
    background-size: 16px;
    padding: 0px;
}

.game-category-search-group input{
    border-radius: 0 !important;
    border: 0 !important;
    background-color: unset !important;
    text-align: left;
    color: #777;
    box-shadow: none;
    font-size: 16px;
}

.form-control:focus{
    -webkit-box-shadow: none;
    box-shadow: none;
    border: #fff;
    transform: none;
    transition: none;
    outline: none;
}

#home p{
    filter: contrast(0) !important;
}

#all p{
    filter: brightness(0.6) !important;
}

#card{
    --bs-card-border-width: unset !important;
    background-color: unset;
}

.game-category-btn[id="home"]{
    filter: contrast(0);
    background-image: url('../images/Icon home.svg');
}

.game-category-list a[value="all"]{
    background-image: url('../images/Icon all.svg');
}

.game-category-btn[id="all"]{
    filter: brightness(1.5) ;
    background-image: url('../images/Icon all.svg');
}

.game-category-list a[value="slot"],
.game-category-btn[id="slot"]{
    background-image: url("../images/Icon slot.svg");
}

.game-category-list a[value="card"],
.game-category-btn[id="card"]{
    background-image: url('../images/Icon card.svg');
}

.game-category-list a[value="fish"],
.game-category-btn[id="fish"]{
    background-image: url('../images/Icon fish.svg');
}

.game-category-list a[value="live"],
.game-category-btn[id="live"]{
    background-image: url("../images/Icon live.svg");
}

.game-category-list a[value="lotto"],
.game-category-btn[id="lotto"]{
    background-image: url("../images/Icon lotto.svg");
}

.game-category-search{
    cursor: pointer;
    background-image: url('../images/Icon map-search.svg');
}

.game-category-list a[value="all"],
.select[id='home'] p,
.select[id='all'] p,
#home:hover p,
#all:hover p{
    color: #777;
}

.game-category-list a[value="slot"],
.select[id='slot'] p,
#slot:hover p{
    color: #9583dc;
}

.game-category-list a[value="card"],
.select[id='card'] p,
#card:hover p{
    color: #ff9ebc;
}

.game-category-list a[value="fish"],
.select[id='fish'] p,
#fish:hover p{
    color: #00dcff;
}

.game-category-list a[value="live"],
.select[id='live'] p,
#live:hover p{
    color: #66e79a;
}

.game-category-list a[value="lotto"],
.select[id='lotto'] p,
#lotto:hover p{
    color: #ffe358 !important;
}

.select,
#home:hover,
#all:hover,
#slot:hover,
#card:hover,
#fish:hover,
#live:hover,
#lotto:hover{
    filter: unset !important;
    cursor: pointer;
}

/* gmae-right */
/* 遊戲首頁 */
.game-title,
.game-category-title{
    width: 90%;
    font-size: 28px;
    font-weight: bold;
    text-align: left;
    color: #000;
    margin: 20px 0;
}

.game-home{
    overflow-x: hidden;
}

.pop-game,
.selected-game,
.hot-game{
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}

.btn-left,
.btn-right{
    width: 5% !important;
    background-image: url('../images/Icon\ material-keyboard-arrow-left.svg');
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(1);
    opacity: 0.2;
    background-size: 30%;
}

.btn-right{
    transform: rotate(180deg);
}

.btn-left:hover,
.btn-right:hover{
    opacity: 1;
}

/* 最受歡迎排行榜 */
.game-swiper-pop-card{
    display: flex !important;
    flex-direction: column;
    align-items: center;
    height: 350px !important;
    font-size: 0.9vw;
    color: #777777;
    background-color: #fff;
}

.game-swiper-pop-img{
    display: flex;
    width: 100%;
    height: 70%;
    background-repeat: no-repeat;
    background-position: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-size: cover;
}

.game-swiper-pop-bottom{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 30%;
    padding: 0px 10px;
    border-top:unset !important;
    border: 0.1vw solid #bebebe;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.game-swiper-pop-bottom p{
    margin: auto auto auto 10px;
    cursor: default;
    font-size: 20px;
}

.game-swiper-pop-bottom-img{
    display: flex;
    width: 20.5%;
    aspect-ratio: 1 / 1;
    background-size : 100% 100%; 
    background-repeat: no-repeat;
    background-position: center;
    margin-top: -10.5%;
    border: 5px solid #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.16);
    background-color: #fff;
    object-fit: cover;
}

.play-btn{
    display: flex;
    height: 40px;
    padding: 0px 24px;
    border-radius: 20px;
    background-color: #fff;
    text-decoration: none;
    color: #777;
    align-items: center;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    font-size: clamp(16px, 0.9vw, 18px);
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    max-width: 120px;
    max-height: 40px;
}

.play-btn::before{
    content: '';
    filter: brightness(0.6);
    margin-right: 10px;
    aspect-ratio: 1 / 1;
    background: url(../images/more_icon.png) no-repeat center;
    width: 20px;
    height: 20px;
}

.play-btn:hover{
    color:#fff;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16), inset 0 0 6px 0 rgba(0, 0, 0, 0.16);
    background-image: linear-gradient(to top, #00dcff, #66e79a);
}

.play-btn:hover::before{
    filter: unset !important;
}

/* 精選遊戲 */
.game-swiper-sel-card{
    display: flex !important;
    flex-direction: column;
    align-items: center;
    font-size: 20px;
    text-align: center;
    color: #000000;
    border: 0.1vw solid #bebebe;
    border-radius: 20px;
    background-color: #fff;
    padding-bottom: 0.8vw;
    cursor: pointer;
}

.game-swiper-sel-img{
    display: flex;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    object-fit: cover;
    margin-bottom: 1vw;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.game-swiper-sel-img div{
    width: 100%;
    height: 100%;
    display: flex;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 75%, #fff) !important;
}

/* 熱門遊戲 */
.hot-game-list {
    margin-left: 10px !important;
    overflow: unset !important;
}

.game-swiper-hot-card{
    display: flex !important;
    flex-direction: column;
    align-items: center;
    aspect-ratio: 1 / 1;
    font-size: 18px;
    white-space: nowrap;
    text-align: center;
    color: #777;
    cursor: pointer;
    height: 300px !important;
    height: calc(50% - 25px);
}

/* swiper */
.swiper{
    width: 100%;
    height: 100%;
    z-index: unset !important;
    margin: 0px 0px 100px;
}

.swiper-wrapper{
    z-index: unset !important;
}

.swiper-slide{
    width: 100%;
}

.swiper-pagination {
    z-index: unset !important;
}


/* 遊戲列表 */
.hide{
    display: none;
}

.game-card{
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 18px;
    text-align: center;
    color: #777;
    cursor: pointer;
    padding-right: 3%;
    margin-bottom: 1.5vw;
}

.game-swiper-sel-card:hover .game-swiper-sel-img,
.game-card:hover div,
.game-card-img:hover{
    opacity: 0.5;
}

.game-swiper-sel-card:hover .img-hover::after,
.game-card:hover div::after,
.game-card-img:hover::after{
    content: url('../images/more_icon.png');
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0px 0px 3px;
    margin: auto;
    width: 100%;
    max-width: 50px;
    aspect-ratio: 1 /1;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: linear-gradient(to bottom, #00dcff, #66e79a) !important;
}

.game-card-img{
    display: flex;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size : 90% 90%; 
    background-repeat: no-repeat;
    background-position: center;
    margin: 0px 0px 20px;
    border-radius: 30px;
    box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.16);
    background-color: #fff;
    object-fit: cover;
}

/* 載入遊戲按鈕 */
.game-load{
    display: flex;
    width: 100%;
    height: 50px;
    border-radius: 25px;
    background-color: rgb(217, 227, 243, 0.4);
    font-size: 18px;
    text-align: center;
    color: #777777;
    margin: 20px 0;
}

.game-load-end{ /*遊戲載入完成*/
    background-color: #bebebe !important;
    pointer-events: none !important;
}

.game-load p{
    margin: auto;
}

.game-load:hover{
    background-color: rgb(217, 227, 243) !important;
    cursor: pointer;
}

/* RWD */
@media  (max-width: 576px) {
    .banner{
        height: 55vw !important;
        margin: 0px !important;
    }

    .banner-01{
        background-image: url('../images/game/01_maya_m.jpg');
    }
    
    .banner-02{
        background-image: url('../images/game/02_Make-a-Killing-Fishing_m.jpg');
    }
    
    .banner-03{
        background-image: url('../images/game/03_Cash-Maker_m.jpg');
    }

    .game{
        width: 95%;
    }

    .game-swiper-pop-card{
        height: 50vw !important;
    }

    .play-btn{
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        padding: 0px;
        height: 50%;
    }

    .play-btn::before{
        margin: auto;
        background-size: 50%;
    }    

    .play-btn span{
        display: none;
    }

    .game-swiper-pop-bottom p,
    .game-swiper-sel-card,
    .game-swiper-hot-card {
        font-size: 12px;    
    }

    .game-swiper-hot-card{
        height: calc(100vw / 3 + 6vw) !important;
    }

    .game-title, .game-category-title{
        font-size: 16px;
    }

    .game-category-sm{
        display: flex;
        position: sticky;
        border-top: 1px solid #bebebe;
        background-color: #fff;
        z-index: 50;
        top : 59px;
    }

    .game-category-md,
    .game-left-lg{
        display: none;
    }

    .game-right{
        width: 100%;
    }

    .game-card{
        width: 33.33%;
        font-size: 3vmin;
        margin-bottom: 5vw;
    }

    .game-card-img{
        border-radius: 8vw;
    }

    .game-load {
        height: 40px;
        font-size: 16px;
        margin: 30px 0px 10px;
    }

    .swiper {
        margin-bottom: 20px;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .banner{
        height: 55vw !important;
        margin: 0px !important;
    }

    .banner-01{
        background-image: url('../images/game/01_maya_m.jpg');
    }
    
    .banner-02{
        background-image: url('../images/game/02_Make-a-Killing-Fishing_m.jpg');
    }
    
    .banner-03{
        background-image: url('../images/game/03_Cash-Maker_m.jpg');
    }

    .game{
        width: 95%;
    }

    .game-swiper-pop-card{
        height: 50vw !important;
    }

    .game-swiper-hot-card{
        height: calc(100vw / 4 + 0px) !important;
    }
    
    .game-category-md{
        display: flex;
        position: sticky;
        border-top: 1px solid #bebebe;
        background-color: #fff;
        z-index: 50;
        top: 99px;
    }

    .game-left-lg{
        display: none;
    }

    .game-right{
        width: 100%;
        margin-top: 20px;
    }

    .game-card{
        width: 20%;
        font-size: 12px;
    }

    .game-swiper-pop-bottom-img {
        border-width: 3px;
    }

    .swiper {
        margin-bottom: 40px;
    }

}

@media (min-width: 992px)  {
    .game {
        width: 95%;
        justify-content: space-between;
    }
    .game-category-search-md{
        display: none;
    }
}

@media (min-width: 1200px)  {
    .game {
        width: 100%;
        justify-content: space-between;
    }
    .game-category-search-md{
        display: none;
    }
}