@font-face{
    font-family: 'Lato-Regular';
    src: url('../font/Lato-Regular.ttf');
}
*{
    position: relative;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Lato-Regular', serif;
    user-select: none; /* 標準 */
    -webkit-user-select: none; /* Chrome, Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}
img{
    pointer-events: none;
}
.teaching-wrap{
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    color: #fff;
    z-index: 20;
}
.teaching-wrap.show{display: block;}
.pc-wallet-notice{
    position: absolute;
    top: 64px;
    right: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
}
.pc-profile-notice{
    position: absolute;
    top: 64px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
}
.teaching-wrap i{
    display: block;
    width: 2px;
    background: #fff;
    border-radius: 1px;
}
.pc-wallet-notice i{height: 32px;}
.pc-profile-notice i{height: 64px;}
.pc-wallet-notice i::before,
.pc-profile-notice i::before,
.pc-wallet-notice i::after,
.pc-profile-notice i::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 16px;
    background: #fff;
    border-radius: 1px;
    transform-origin: top;
}
.pc-wallet-notice i::before,
.pc-profile-notice i::before{
    transform: rotateZ(45deg);
}
.pc-wallet-notice i::after,
.pc-profile-notice i::after{
    transform: rotateZ(-45deg);
}
header{
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 64px;
    background: #03556b;
    padding: 4px 0;
    z-index: 15;
}
@font-face{
    font-family: 'Lato-Black';
    src: url('../font/Lato-Black.ttf');
}
h1,h2,h3,h4,h5,h6{
    font-family: 'Lato-Black', serif;
}
.header-left a{
    display: flex;
    align-items: center;
    text-decoration: none;
}
.header-left,
.header-left *{
    height: 100%;
}
.header-title{
    height: calc(65% + 1vw);
    max-height: 100%;
    background: linear-gradient(to bottom, #f4e2b7, #791719, #f4e2b7);
    background: -webkit-linear-gradient(to bottom, #f4e2b7, #791719, #f4e2b7);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 3vw;
    line-height: 48px;
}
.header-title .pc{display: block !important;}
.header-title .pad{display: none !important;}
.header-right{
    display: flex;
    height: 50px;
    gap: 20px;
    padding-right: 16px;
}

.header-title-1 {
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: white;
    background: linear-gradient(45deg, #03556b, #0587a3); /* 漸層背景 */
    display: inline-block;
    padding: 4px 24px; /* 增加內間距 */
    border: 4px solid white;
    text-align: center;
    border-radius: 30px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* 增加陰影效果 */
    transition: transform 0.2s, background 0.3s; /* 增加變化過渡效果 */
}

/* 滑鼠懸停效果 */
.header-title-1:hover {
    transform: scale(1.1); /* 放大一點 */
    background: linear-gradient(45deg, #0587a3, #03556b); /* 改變漸層方向 */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3); /* 增強陰影 */
}


.header-language{
    height: 100%;
    border: 1px solid #000000;
    border-radius: 50%;
}
.lag-menu{
    display: none;
    position: absolute;
    top: 56px;
    right: 0;
    background: #f4e2b7;
    border: 3px solid #02556b;
    border-radius: 16px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
}
.lag-menu.show{
    display: block;
}
.header-lag-btn{
    display: flex;
    align-items: center;
    /* width: 120px; */
    cursor: pointer;
    gap: 8px;
    padding: 8px;
}
.header-lag-btn:hover{
    background: #00000080;
}
.header-right .btn:nth-child(1){
    margin-right: 8px;
}
.login-before{
    display: flex;
    align-items: center;
    gap: 8px;
}
.login-before a{
    height: 100%;
    margin-top: 4px;
}
.header-right .menber{
    display: flex;
    align-items: center;
    height: 100%;
    color: #fff;
}
.menber-news{
    display: flex;
    align-items: center;
    justify-content: end;
    height: 100%;
    background: linear-gradient(180deg, #d71b1c 20%, #65090b 50%);
    border: 2px solid #f4b600;
    border-radius: 10px;
    box-shadow: 0 0 0px 4px #65090b,0 0 0px 4px #65090b inset;
    color: #f7df37;
    padding: 4px 4px 4px 72px;
    margin-right: 16px;
}
.menber-news .money-icon{
    position: absolute;
    top: 50%;
    left: -14px;
    height: calc(100% + 28px);
    transform: translate(0,-50%);
}
.menber-news button{
    display: flex;
    background: transparent;
    border: none;
    margin-left: 8px;
}
.header-right.menber>span{
    margin: auto;
}
.marquee-container {
    width: 80%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    background: linear-gradient(180deg, #d71b1c 20%, #65090b 50%);
    border: 2px solid #f4b600;
    border-radius: 10px;
    box-shadow: 0 0 0px 4px #65090b, 0 0 0px 4px #65090b inset;
    color: #fff8ad;
    padding: 8px 0;
}
header .marquee-container {
    position: fixed;
    top: 76px;
    left: 10%;
    display: none;
}
header .marquee-container.show{
    display: block;
}
.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}
.marquee-content span{
    padding-right: 32px;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.silder{
    position: fixed;
    top: 64px;
    left: 0;
    z-index: 15;
}
.silder.no-show{
    display: none;
}
.silder ul{
    list-style: none;
    padding-left: 0 !important;
}
li a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 135px;
    height: 80px;
    background: url(../images/2-Side_Button/Button_Green_Hover.webp)no-repeat right/cover;
    color: #f4e2b7;
    filter: drop-shadow(2px 4px 6px #000000);
    text-decoration: none;
    margin-top: 12px;
    padding: 0 56px 0 0px;
}
li a img{height: 42px;}
li a span{display: none;}
li a.active{
    background: url(../images/2-Side_Button/Button_Red_Hover.webp)no-repeat right/cover;
}
li a:hover{
    width: 200px;
    color: #f4e2b7;
}
li a:hover span{display: block;}
li a:hover img{display: none;}
li a:hover svg{display: none;}

footer{
    background: #02556b;
    background-repeat: repeat-x;
    background-position-x: -2px;
    box-shadow: 0 0 10px #8e8e8e;
}
footer .grid-container-3{
    background: #f5e1bd url(../images/bg/bg_pic_04.webp) no-repeat center 50% / cover;
    grid-template-columns: repeat(1, 1fr);
    width: 100%;
    grid-gap: 8px;
    padding: 16px 0 1%;
}
.max-width{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1024px;
    margin: auto;
    gap: 16px;
}
footer .flex-container-column{
    flex-direction: row;
    justify-content: space-between;
}
footer .flex-container-column:nth-child(2){order: 2;}
footer .flex-container-column:nth-child(3){
    order: 2;
    color: #000000;
}

footer span{
    color: #115668;
    font-size: 1.5vw;
}
footer i{
    display: inline-block;
    width: 4px;
    height: 1.5vw;
    background: #115668;
    border-radius: 10px;
    margin-right: 4px;
}
footer a{
    min-width: 125px;
    color: #115668;
    font-size: 1.5rem;
    text-decoration: none;
    text-align: center;
}
.contact-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 2;
}
.contact-group{
    display: grid;
    align-items: end;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px; /* 調整間距 */
}
.contact-group a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: auto;
    background: #f4e2b7;
    border: 3px solid #02556b;
    border-radius: 50%;
    color: #02556b;
}
.contact-group a:hover{
    background: #02556b;
    color: #f4e2b7;
}
.game-container-column{
    padding: 8px 0;
}
.game-container-column img{
    width: 100%;
}
.game-container-column .max-width{
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 16px; /* 可以根據需要調整間距 */
}

.btn-primary{
    margin-left: 8px;
}

.modal-dialog{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    margin: 0;
    max-width: max-content;
}
.modal-content{
    background: #fbf5dd;
    border: 4px solid #02556b;
    border-radius: 24px;
}
.modal-header {
    border: 0;
    justify-content: center;
}
.modal-title {
    color: #79171b;
    font-size: 2.5rem;
}

.sign.show,
.check-coins.show{
    display: block;
}
.sign .modal-content,
.check-coins .modal-content{
    background: transparent;
    border: none;
}
.sign-modal-close-btn,
.check-coins-modal-close-btn{
    position: absolute;
    top: 0%;
    right: 0%;
    width: 7.5%;
    background: transparent;
    border: none;
    transform: scale(1);
    transition: transform .2s ease;
    z-index: 1;
}
.sign-modal-close-btn:hover,
.check-coins-modal-close-btn:hover{
    transform: scale(.8705);
}
.sign img,
.check-coins img{
    width: 100%;
}
.sign-modal-btn-group{
    position: absolute;
    bottom: 6vw;
    left: 50%;
    display: flex;
    gap: 16px;
    transform: translateX(-50%);
}

.modal-body.show-game{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 16px;
    height: 380px;
    overflow-y: scroll;
}
.game-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #02556b;
}
.game-card img{
    width: 160px;
}
.btn-group{
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 8px;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 8px;
    z-index: 1;
}
.game-img:hover .btn-group{
    display: grid;
}
.btn-group button{
    font-size: 14px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    margin: auto;
}
.btn-group .start-btn img{
    width: 100%;
}
.btn-group .start-btn .normal{
    display: block;
}
.btn-group .start-btn .hover{
    display: none;
}
.btn-group .start-btn:hover .normal{
    display: none;
}
.btn-group .start-btn:hover .hover{
    display: block;
}
.btn-group .cancel-btn{
    width: 46px;
    height: 46px;
    background: #012f3a;
    border: 2px solid #f7edc7;
    border-radius: 50%;
    color: #f5e2b9;
}
.btn-group .cancel-btn:hover{
    width: 46px;
    height: 46px;
    background: #f7edc7;
    border: 2px solid #012f3a;
    border-radius: 50%;
    color: #012f3a;
}
.no-game .game-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 16px;
}
.no-game>span{
    display: block;
    color: #02556b;
    font-size: 1.875rem;
    text-align: center;
}
.no-game>p{
    color: #02556b;
    font-size: 1.25rem;
    text-align: center;
    margin-top: 32px;
}

.sign .model-left img{
    width: 200px;
}
.pop-btn{
    position: fixed;
    bottom: 90px;
    right: 0px;
    display: flex;
    width: 135px;
    background: transparent;
    border: none;
    z-index: 10;
}
.pop-btn.animation{
    animation: float 3s ease-in-out infinite;
}
.pop-btn img{
    width: 100%;
}
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}
.pop-btn img.msg-icon{
    position: absolute;
    right: 0;
    top: 46px;
    display: none;
    width: 50px;
}
.pop-btn.h-msg img.msg-icon{display: block;}
.msg-list{
    position: absolute;
    display: none;
    bottom: 32px;
    left: -280px;
    width: 280px;
    background: #ffffff;
    padding: 16px;
    border-radius: 16px;
    border: 2px solid #06556b;
    color: #0c5a6b;
}
.msg-list::before {
    content: '';
    position: absolute;
    bottom: 12px;
    right: -14px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid #02556b;
}
.msg-list::after {
    content: '';
    position: absolute;
    bottom: 14px; /* 邊框厚度的一半 */
    right: -11px; /* 邊框厚度的一半 */
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 11px solid #ffffff;
     /* 邊框顏色和厚度 */
}
.msg-list.show{
    display: block;
}
.msg-list .d-none{
    display: none;
}
.top-btn{
    position: fixed;
    bottom: 32px;
    right: 12px;
    display: block;
    background: #f4e2b7;
    border: 3px solid #02556b;
    border-radius: 50%;
    color: #02556b;
    padding: 8px;
    z-index: 3;
}
.top-btn:hover{
    background: #02556b;
    border: 3px solid #f4e2b7;
    border-radius: 50%;
    color: #f4e2b7;
}
#topUpdrop .modal-dialog{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
#topUpdrop .modal-dialog .modal-bg{
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}
#topUpdrop .modal-dialog .pop-img1{
    height: 70vh;
}
#topUpdrop .modal-dialog .pop-img2{
    position: absolute;
    top: -10%;
    width: 25%;
    z-index: 1;
}
#topUpdrop .modal-dialog .pop-img3{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}
#topUpdrop .btn-close{
    position: absolute;
    top: 5%;
    right: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    padding: 0;
    opacity: 1;
}
.pop-close{
    width: 100%;
}
.input-bg{
    position: absolute;
    bottom: 15%;
    left: 15%;
    width: 70%;
}
.input-bg input{
    position: absolute;
    top: 13%;
    bottom: 13%;
    left: 3%;
    right: 3%;
    background: transparent;
    border: none;
    font-size: 2rem;
    padding: 0 16px;
    text-align: end;
    color: #fefd2d;
}
.input-bg-img{
    width: 100%;
}
.top-up-sumbit-btn{
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    background: transparent;
    border: none;
}
.top-up-sumbit-btn img{
    width: 100%;
}

@media screen and (max-width: 968px){
    .header-title {height:  100%;}
    .header-title .pc{display: none !important;}
    .header-title .pad{display: block !important;}
}

@media screen and (max-width: 500px){
    .pc-wallet-notice{
        top: 210px;
        right: 110px;
    }
    .pc-profile-notice{
        top: 110px;
        right: 16px;
        flex-direction: row;
    }
    .teaching-wrap i{
        display: block;
        width: 2px;
        background: #fff;
        border-radius: 1px;
    }
    .pc-wallet-notice i{height: 32px;}
    .pc-profile-notice i{width: 64px;height: 2px;margin-right: 4px;}
    .pc-profile-notice i::before,
    .pc-profile-notice i::after{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 16px;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        transform-origin: left;
    }
    .pc-profile-notice i::before{
        transform: rotateZ(45deg);
    }
    .pc-profile-notice i::after{
        transform: rotateZ(-45deg);
    }
    .header-title{
        font-size: 7vw;
    }
    header .marquee-container {
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        display: none;
    }
    .marquee-container {
        padding: 2px 0;
    }
    .silder{
        width: 100%;
        height: 100%;
        background: #f4e2b7;
        padding: 32px;
        transform: translateX(100%);
        transition: transform .4s ease;
    }
    .silder.show{
        transform: translateX(0%);
    }
    .silder.no-show{
        display: block;
    }
    .silder ul{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 16px;
    }
    .silder li{
        display: flex;
        justify-content: center;
    }
    .silder  li a.active{
        background: #791719;
    }
    .silder a{
        flex-direction: column-reverse;
        width: 130px;
        height: 130px;
        border-radius: 8px;
        padding: 0;
        margin: 0;
        background: #10576f;
    }
    
    li a:hover{
        width: 130px;
    }
    li a:hover img{display: block;}
    li a:hover svg{display: block;}
    li a span{
        display: block;
        font-size: 14px;
        margin-top: 16px;
    }
    .header-right {
        gap: 8px;
    }
    .header-right.ph{
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 32px;
        height: auto;
        margin-top: 32px
    }
    .header-right .btn{
        height: auto;
        background: transparent;
        border: none;
        padding: 0;
    }
    .header-right .btn img{
        width: 100%;
    }
    .header-right .btn:nth-child(1){
        margin-right: 0px;
    }
    .menu-btn{
        background: transparent;
        border: none;
        color: #f4e2b7;
    }

    .header-right.menber.ph{
        height: auto;
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 8px;
        margin-top: 0;
        margin-bottom: 32px;
        padding: 0 16px;
    }
    .header-right .menber-news{
        height: 48px;
    }
    .header-right.menber>span{
        font-size: 2rem;
        font-weight: bolder;
    }
    .header-right .menber-news button{
    }


    footer .grid-container-3{
        flex-direction: row;
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        padding: 32px 16px;
    }
    footer .flex-container-column {
        flex-direction: column;
        align-items: start;
    }
    footer .flex-container-column:nth-child(4) {
        grid-template-columns: repeat(1, 1fr);
        order: 3;
    }
    footer span{
        font-size: 6vw;
    }
    footer a {
        min-width: unset;
    }
    footer i{
        height: 6vw;
    }
    .contact-box {
        align-items: center;
    }
    .web-log{
        margin: auto;
    }
    footer .game-container-column {
        padding: 8px 32px;
    }
    .game-container-column .max-width {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 4px;
    }

    .pop-btn{bottom: 60px; width: 90px;}
    .top-btn{bottom: 12px;}

    .sign-modal-close-btn,
    .check-coins-modal-close-btn{
        top: 0%;
        right: 0%;
        width: 15%;
    }

    .sign-modal-btn-group{
        width: 50%;
        flex-direction: column;
        gap: 8px;
    }
    .sign-modal-btn-group img{
        width: 100%;
    }
    
    .no-game .game-grid,
    .modal-body.show-game {
        grid-template-columns: repeat(2, 1fr);
    }
    .no-game>span{
        font-size: 1.125rem;
    }
    .no-game>p{
        font-size: .75rem;
    }
    .no-game .game-grid .game-card:nth-child(n+3){
        display: none;
    }

    #topUpdrop .modal-dialog .pop-img1 {
        height: 50vh;
    }
}