﻿/* @font-face {
    font-family: 'mheihks-xbold';
    src: url('../fonts/mheihks-xbold.woff2') format("woff2"),
         url('../fonts/mheihks-xbold.woff') format("woff"),
         url('../fonts/mheihks-xbold.otf') format("truetype");
    unicode-range: U+4E00-9FFF;
}

@font-face {
    font-family: 'Kozuka Gothic Pr6N';
    src: url('../fonts/KozGoPr6NRegular.woff2') format("woff2"),
         url('../fonts/KozGoPr6NRegular.woff') format("woff"),
         url('../fonts/KozGoPr6NRegular.otf') format("truetype");
    unicode-range: U+0020-007E;
} */
/* 共用變數 */
:root {
    --bs-color: #252a77;
    --bs-nav: #ffffff;
}


@font-face {
    font-family: 'mheihks-bold';
    src: url('../fonts/mheihks-xbold.otf') format("truetype");
    unicode-range: U+4E00-9FFF;
    font-display: swap;
}

@font-face {
    font-family: 'Kozuka Gothic Pr6N';
    src: url('../fonts/KozGoPr6NRegular.otf') format("truetype");
    unicode-range: U+0020-007E;
    /* 英文的 Unicode 範圍 */
    font-display: swap;
}


body {
    background-color: var(--bs-color);
    margin: 0 auto;
    text-align: center;
    position: relative;
    font-family: 'Kozuka Gothic Pr6N', Arial, sans-serif;
    /* max-width: 750px; */
    width: 100%;
}

header {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

header .header-image {
    /* max-width: 750px; */
    width: 100%;
    float: none;
}

header .lang-wrap {
    position: absolute;
    top: 4%;
    right: 7%;
}

header .lang-select option {
    padding: 6px 12px;
    background-color: rgb(255 255 255 / 20%);
    border-radius: 5px;
    color: #fff;
}

.lang-select option {
    padding-left: 10px;
}

.lang-select option[value="en"] {
    background-image: url("../img/language_en.png");
}

.lang-select option[value="chs"] {
    background-image: url("../img/language_chs.png");
}

/* 語系下拉選單 */
.lang-dropdown {
    position: relative;
    background-color: rgb(255 255 255 / 20%);
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    width: 100%;
    min-width: 95px;
}

.lang-dropdown.has-open {
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.arrow-down {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #fff;
}

.selected-language {
    /* position: relative; */
    cursor: pointer;
    padding: 0px 15px 0 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: right;
    display: flex;
    align-items: center;
    width: 90px;
    font-size: 16px;
}

.selected-language.open {
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom: 0;
}

.selected-language.open .arrow-down {
    border-top: none;
    border-bottom: 4px solid #fff;
}

.dropdown-options {
    display: none;
    position: absolute;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0;
    margin: 0;
    list-style-type: none;
    width: 111px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-top: 0;
    font-size: 16px;
}

.dropdown-options li {
    display: flex;
    align-items: center;
    padding: 1px 0px 0px 6px;
    background-color: rgb(255 255 255 / 20%);
    border-radius: 5px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    color: #fff;
}

.dropdown-options li.hide {
    display: none;
}

.dropdown-options li img,
.flag {
    width: 18px;
    height: 11px;
    margin-right: 3px;
}

header .video-wrap {
    position: absolute;
    top: 58.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 76%;
}

header .video-wrap video {
    width: 100%;
    display: none;
}

header .btn-wrap {
    display: flex;
    margin-left: 10%;
    width: 80%;
    /* max-width: 750px; */
    justify-content: space-around;
    position: absolute;
    top: 80%;
    align-items: center;
}

header .btn-wrap .prev-btn img,
header .btn-wrap .next-btn img {
    /* min-width: 50px;
    max-width: 90px; */
    width: 100%;
    /* min-height: 53px; */
    height: auto;
    cursor: pointer
}

header .btn-wrap .slot-video-btn img,
header .btn-wrap .play-video-btn img,
header .btn-wrap .card-video-btn img {
    min-width: 50px;
    max-width: 100px;
    width: 100%;
    /* min-height: 53px; */
    height: auto;
    margin: 0 0.5vw;
    cursor: pointer
}

.tab-wrap {
    width: 100%;
    position: absolute;
    top: 95%;
    /* left: 50%;
    transform: translateX(-50%); */
    z-index: 1;
}

.type-tab {
    background-color: #fff;
    top: 780px;
    min-width: 255px;
    /* width: 100%; */
    /* height: 38px; */
    /* min-height: 38px; */
    min-height: 32px;
    border-radius: 50px;
    display: flex;
    justify-content: space-evenly;
    z-index: 1;
    color: #333;
    box-shadow: 4px 4px 12px 4px rgba(20%, 20%, 40%, 0.5);
    padding: 1vw 0;
    width: 80%;
    margin: 0 auto;
}

.tab-link {
    display: flex;
    align-items: center;
    text-align: center;
}

.tab-link.active {
    color: black;
    opacity: 1;
}

.type-tab a {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
    line-height: 20px;
    font-family: 'Kozuka Gothic Pr6N';
    text-decoration: none;
    color: #333333;
    opacity: 0.5;
    font-weight: bold;
    font-size: min(max(3vw, 14px), 26px);
    justify-content: center;
}

.type-tab a img {
    width: 30%;
    min-width: 30px;
    /* height: 30px; */
}

/* .container {
    background-color: #272B7D;
    position: relative;
    width: 100%;
     max-width: 750px; 
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    top: -1px;
} */
.tab-content {
    padding: 0 20px;
}
.container {
    background-color: var(--bs-color);
    position: relative;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 21px 0 40px 0;
    top: -1px;
}

.card{
    background-color: var(--bs-color);
}
.img-container {
    position: relative;
    /* 關鍵！這讓 overlay 能相對這裡定位 */
    display: inline-block;
    /* 讓容器大小跟圖片一樣 */
}

.img-container img {
    display: block;
    /* 移除底部空白 */
    width: 100%;
    /* 可依需求縮放圖片大小 */
    height: auto;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: white;
    display: flex;
    flex-direction: column;
}
.col-top{
    width:100%;
    height:35% ;
    
}
.blockseries-card.col-top{
    height:33% ;
}
.cards-tab.col-top{
    height:43% ;
}
.col-top img{
    width:30%;
    margin-left: -1%;
    margin-top: -1%;
}
.col-middle{
    width:100%;
    height:25% ;
    display: flex;
    flex-direction: column;
}
.blockseries-card.col-middle{
    height:27% ;
}
.cards-tab.col-middle{
    height:27% ;
}
.col-bottom{
    width:100%;
    height:40% ;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin: 5% auto;
    padding: 0 5%;
}
.blockseries-card.col-bottom{
    height:30% ;
}
.cards-tab.col-bottom{
    height:30% ;
}
.col-middle-top{
    display: flex;
    width: 100%;
    height:80% ;
}

.col-middle-top-img{
    width: 32%;
    height:100% ;
}
.col-middle-top-name{
    width: 68%;
    height:100% ;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}
.game-name{
    line-height: 120%;
    font-family: 'Kozuka Gothic Pr6N';
    font-weight: bold;
    font-size: min(max(3vw, 12px), 26px);
    text-align: left;
}
.col-middle-bottom{
    width: 100%;
    height:20% ;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
}

.game-val{
    color: #FFFFFF;
    text-align: left;
    /* margin-bottom: 3px; */
    font-size: min(max(3vw, 12px), 30px);
    /* line-height: 9px; */
    font-family: 'Kozuka Gothic Pr6N';
    line-height: 150%;
}
.game-description{
    text-align: left;
    color: #FFFFFF;
    opacity: 0.7;
    font-size: min(max(2vw, 8px), 15px);
    line-height: 12px;
    font-family: 'Kozuka Gothic Pr6N';
    font-weight: 900;

}
/* card */

footer {
    width: 100%;
    /* max-width: 750px; */
    background-color: #E9E9EA;
    margin: 0 auto;
    padding: 10px 0;
}

footer ul {
    list-style-type: none;
    padding: 0;
}

footer ul a {
    text-decoration: none;
    color: #333333;
    opacity: 0.7;
    position: relative;
}

footer ul a li {
    padding: 24px 10px;
    text-align: left;
    display: flex;
    margin: 0 30px;
    justify-content: space-between;
    align-items: center;
}

footer ul a:not(:last-child) li {
    border-bottom: 1px solid rgb(112 112 112 / 70%);
}

/* footer ul li a {
    text-decoration: none;
    color: #333333;
    opacity: 0.7;
    position: relative;
} */

footer ul li img {
    width: 17px;
    height: 13px;
}

.footer-other-link {
    text-align: middle;
    margin: 12px 35px;
}

.footer-other-link a {
    text-decoration: none;
}

.footer-other-link img {
    width: 55px;
    /*height: 27px; */
}

footer p {
    color: #333;
    opacity: 0.7;
    font-size: 12px;
    line-height: 15px;
    font-family: 'Kozuka Gothic Pr6N';
    font-weight: lighter;
}

#loader-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    /* 半透明白色背景 */
    z-index: 9999;
}

#loader {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    border: 16px solid #f3f3f3;
    /* 圈的背景色 */
    border-top: 16px solid #3498db;
    /* loading 圈顏色 */
    border-radius: 50%;
    animation: spin 2s linear infinite;
    /* 旋轉動畫 */
}

.bg-black {
    background-color: #000;
}

.nav-text-size {
    font-size: 12px;
    font-family: Tahoma, "Trebuchet MS", sans-serif;
    cursor: pointer;
}

.fill-image {
    width: 100%;
    position: relative;
}

.navbar-merge-0 {
    margin-right: 0 !important;
    padding-bottom: 10px;
}

.nav-link-padding-3 {
    padding: 0.3rem !important;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    color: #fff;
    background-color: #620AFF !important;
}


/* 漢堡紐動畫 */
#menubtn {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#menubtn .bar {
    display: block;
    width: 100%;
    height: 100%;
    margin: 4px 0;
    background: #fff;
    border-radius: 2px;
    transition: 0.4s;
}

#menubtn.active .bar:nth-child(1) {
    transform: translateY(10px) scaleX(0.8);
}

#menubtn.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.5);
}

#menubtn.active .bar:nth-child(3) {
    transform: translateY(-10px) scaleX(0.8);
}

.fixed-top-new {
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}
.container-top{
    height: 15px;
    @media only screen and (max-width: 346px) {
        height: 50px;
    }
}
.logo_png{
    margin-right: -250px;
    @media only screen and (max-width: 768px) {
        margin-right: 0;
    }
}

.navbar {
    background-color: var(--bs-nav) !important;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: .5rem 8px;
    padding-bottom: .5rem;
}

.slot-area {
    margin-top: 50px;
    position: relative;
}

.cards-area {
    position: relative;
}

/* 容器樣式 */
/* 背景圖片容器 */
.banner-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 假設背景圖比例為 16:9，可改為 4:3 (75%) */
    background-image: url('../img/img_banner.jpg');
    background-size: cover;
    background-position: center;
}

/* 影片容器 */
.video-wrap {
    position: absolute;
    top: 58%;
    left: 12%;
    width: 76%;
    /* 影片寬度占背景圖 30% */
    z-index: 1;
}

.videobtn-wrap {
    display: flex;
    margin-left: 10%;
    width: 80%;
    /* max-width: 750px; */
    justify-content: space-around;
    position: absolute;
    top: 83%;
    align-items: center;
}

.videobtn-wrap img {
    cursor: pointer;
}


.video-wrap video {
    width: 100%;
    height: auto;
    display: none;
    /* 預設隱藏，假設用 JS 控制顯示 */
}

.video-wrap video.active {
    display: block;
    /* 當前顯示的影片 */
}

/* 底部圖片欄 */
.image-row {
    position: absolute;
    bottom: 12%;
    left: 7%;
    right: 0;
    padding: 0 15px;
    /* 與 container 的 gutter 一致 */
    max-width: 90%;
}

.image-row .col {
    padding: 5px;
    /* 圖片間距 */
}

.image-row img {
    cursor: pointer;
    /* 假設圖片可點擊切換影片 */
}

.menu-container {
    position: fixed;
    top: 13%;
    @media only screen and (max-width: 345px) {
        top: 22%;
    }
    right: 3%;
    border: solid 2px white;
    opacity: 1;
    z-index: 999;
    display: block;
    background-color: #000000CC;
    width: 85%;
    height: 60%;
    border-radius: 20px;
}

.menu-close {
    position: absolute;
    right: 5%;
    top: 5%;
    max-width: 40px;
    opacity: 1;
}

.langbtn-group {
    position: absolute;
    left: 10%;
    top: 12%;
    max-width: 50%;
    opacity: 1;

}

.langbtn {
    font-size: 16px;
    color: white;
    text-decoration: none;
    text-align: left;
    padding: 10px;
    cursor: pointer;
}

.langbtn.active {
    color: #fff;
    background-color: #620AFF !important;
    border-radius: 3px;
}

.setting-group1 {
    position: absolute;
    left: 10%;
    top: 24%;
    max-width: 50%;
    opacity: 1;
}

.setting-group2 {
    position: absolute;
    left: 10%;
    top: 40%;
    max-width: 50%;
    opacity: 1;
}

.setting-group3 {
    position: absolute;
    left: 10%;
    top: 56%;
    max-width: 50%;
    opacity: 1;
}

.hr-line1 {
    position: absolute;
    left: 12%;
    top: 30%;
    width: 70%;
    color: white;
    height: 1px !important;
}

.hr-line2 {
    position: absolute;
    left: 12%;
    top: 46%;
    width: 70%;
    color: white;
    height: 1px !important;
}

.hr-line3 {
    position: absolute;
    left: 12%;
    top: 62%;
    width: 70%;
    color: white;
    height: 1px !important;
}

.img-group {
    position: absolute;
    text-align: middle;
    top: 75%;
    width: 100%;
}

.menu-foot>a {
    color: #000000CC !important;
    z-index: 1;
}

.menu-foot>a>img {
    width: 20%;
    max-width: 70px;
    z-index: -1;
}
#btnPreviousVideo:hover{
    content: url('../img/btnPreviousVideo_H.png');
}
#btnSlotVideo:hover{
    content: url('../img/btnSlotVideo_H.png');
}
#btnPlayVideo {
    animation-name: PlayVideo;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}
#btnPlayVideo:hover{
    content: url('../img/btnPlayVideo_H.png');
    animation:none;
}
#btnCardVideo:hover{
    content: url('../img/btnCardVideo_H.png');
}
#btnNextVideo:hover{
    content: url('../img/btnNextVideo_H.png');
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
@keyframes PlayVideo{
    0%{
        filter: brightness(1);
    }
    10%{
        filter: brightness(1.5);
    }
    20%{
        filter: brightness(1);
    }
    30%{
        filter: brightness(1.5);
    }
    40%{
        filter: brightness(1);
    }
}