html.fixed, body.fixed{
    overflow: hidden;
}
img{
    width: 100%;
}
body{
    background-image:url('../images/bg.png');
    background-size: cover;
    background-repeat: no-repeat;
}
.header{
    width: 100%;
}
/* APP menu star */
.main-header{
    background: linear-gradient(180deg,rgb(68 40 65) 0,rgba(38,9,9,0.7) 100%);
    border-bottom: 1px solid #ffffff21;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 1.95315%;
    position: fixed;
    right: 0;
    left: 0;
    top: 0;
    z-index: 1090;
    box-shadow:0px 5px 10px #ccc5;
}
.logo{
    width: 180px;
    margin-bottom: 0;
}
.menu-nav a{
    display: block;
    padding: 20px;
    text-align: center;
    font-size: 1.3rem;
    color: #fff;
    font-family: 'Noto Serif TC', serif;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #888;
}

/* APP menu end */

.top-bn{
    width: 100%;
    position: relative;
    padding: 40px 0 20px 0;
    background-image:url('../images/main-bg.png');
    background-size: cover;
    background-position: center;
    
}

.effects{
    margin: 0 auto;
    width: 100%;
    max-width: 1920px;
    height: 540px;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
}
.fog{
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    animation: cloud 120s linear 0s infinite;
}
.fog li img{
    width: auto;
    height: 540px;
}

@keyframes cloud{
    0%{
        left:-4600px;
    }
    25%{
        left:-3300px;
    }
    50%{
        left:-2350px;
    }
    75%{
        left:-1600px;
    }
    100%{
        left:0px;
    }
}
.middle-char{
    display: none;
}
.game-logo{
    display: flex;
    justify-content: start;
}
.logo-pic{
    position: relative;
    transform: translateY(26%) scale(0.8);
    z-index: 99;
}

.top-bn-title{
    width: 100%;
    max-width: 240px;
    position: absolute;
    right: 5%;
}
.char-box{
    width: 100%;
}
.DL-group{
    position: relative;
    z-index: 20;
}
#fireworks {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    margin: auto;
    padding-top: 5vh;
    min-height: 90vh;
    color: white;
}
.down-btn{
    display: block;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: 337px;
    position: absolute;
    z-index: 11;
    bottom: 0%;
    animation: baloon 1.5s infinite;
}

@keyframes baloon {
    0%{
        transform: translateY(-5px);
    }
    50%{
        transform: translateY(5px);
    }
    100%{
        transform: translateY(-5px);
    }
    }

.btnclose:hover {
    filter:contrast(2);
}

/* revision-news */
.revision-news,
.years, .supply,
.returngift,
.flowergift{
    padding: 4% 0;
    z-index: 10;
}
.years-title,
.supply-title,
.news-title,
.returngift-title,
.flowergift-title,
.doublegift-title,
.notic-title{
    display: flex;
    justify-content: center;
}
.supply-content, .returngift-content{
    position: relative;
    z-index: 10;
}

.title{
    max-width: 650px;
    padding-bottom: 50px;
}
.version{
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.version .items{
    padding:0 10px;
}
.rule{
    display: flex;
    justify-content: center;
}
.txt-group{
    padding-bottom: 20px;
}

.txt-items{
    color:#fff;
    line-height: 1.5;
    padding-bottom: 10px;
}
.txt-items span, .txt-items .more_check{
    font-size: 20px;
    font-family: 'Noto Serif TC', serif;
    font-weight: 600;
}
.txt-items .more_check{
    color: yellow;
    text-decoration: underline;
}
.notic-buy{
    padding: 50px 0 10px 0;
    margin: auto;
    color: #fff;
    max-width: 600px;
}
.btn-buy{
    max-width: 285px;
    margin: auto;
}
.txt-items p{
    font-size: 16px;
}
.txt-group p{
    padding-left: 50px;
}
.point-red{
    color:red;
}
.note{
    padding: 10px 0;
    text-align:left;
    max-width: 620px;
    margin: auto;
}
.notic{
    background-color: #3a2f3f;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    color:#fff;
    font-family: 'Noto Serif TC', serif;
}
.notic-group{
    padding:0 5% 1% 5%;
    justify-content: center;
}
.notic-title{
    max-width: 100px;
    margin: auto;
    padding-bottom: 10px;
}
.notic-group .word{
    line-height: 1.8;
}
.point{
    font-weight: 900;
    font-size: 16px;
}
.doublegift-content, .doublegift .gift{
    position: relative;
    z-index: 10;
}
.gift-bn{
    margin: auto;
}
.ci-logo{
    width: 100%;
    max-width: 200px;
}
.bega-logo{
    width: 100%;
    max-width: 100px;
}
.doublegift{
    overflow: hidden;
}
.footer{
    background-color: #222;
}
.footer-content{
    padding: 15px;
}
.footer .items:nth-child(1) ~ .items:nth-child(n+1){
    padding-left: 2%;
}
.H-group{
    display: flex;
    align-items: center;
    color: #fff;
    font-size:0.4rem ;
    padding-top: 20px;
}
.H-logo{
    max-width: 50px;
}
.note-word{
    padding-left: 5px;
    line-height: 1.5;
}
.copyright{
    color: #fff;
    font-size: 0.4rem;
    border-top: 1px solid #fff;
    padding: 0.5% 0;
    text-align: center;
    line-height: 1.5;
    font-size:0.4rem;
}
section.contents > .pop {
    display: none;
}
section.contents > .btnclose {
    display: none;
}



@media screen and (max-width:767px){
    #menu-check{
            position: absolute;
            top: 0;
            z-index: -1;
        }
    .sideBtn{display: none;}
    .hb{
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        background: linear-gradient(180deg,rgba(69, 6, 61, 0.945) 0,rgba(38,9,9,0) 100%);
        border: 1px solid #aaa;
        border-radius: 12%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
    }
    .hb span{
        width: 80%;
        height: 2px;
        background-color: #fff;
    }
    .menu-nav{
        background-color:#000000e8;
        width: 70%;
        height: calc(100vh - 60px);
        position: absolute;
        top: 100%;
        right: 0;
        transform: translateX(100%);
        transition: .3s;
    }
    #menu-check:checked ~ .header .menu-nav{
        transform: translateX(0%);
    }
    .top-bn .container-fulid{
        overflow: hidden;
        padding-bottom: 25px;
    }
    .top-bn{
        padding: 10% 0 12% 0;
    }
    #fireworks{
        min-height: 82vh;
    }
    .game-logo{
        justify-content: center;
    }
    .middle-char-m{
        width: 100%;        
        transform: translate(-3%,4%) scale(1.7);
    }
    .top-bn-title{
        max-width: 320px;
        bottom: 29%;
        right: 0;
        left: 0;
        margin: auto;
    }
    .bn-content{
        width: 100%;        
        margin: auto;
    }
    .down-btn{
        bottom: 2%;
        max-width: 270px;
    }
/* revision-news */
    .title{
        padding: 10% 0 10% 0;
    }
    .version .items{
        padding:0 10px;
    }
    .DL-group{
        display: flex;
        justify-content: center;        
        position: relative;
        padding: 3% 0 20px 0;
        margin-top: 3%;
    }
    .notic-buy{
        padding: 50px 14px 10px 14px;
    }
    footer .note-word{
        
    }
}

@media screen and (min-width:768px){
    /* menu star */
    .hb{
        display: none;
    }
    .menu-nav{
        background-color:transparent;
        width: auto;
        height: auto;
        position: relative;
        top: 0%;
        transform: translateX(0);
        transition:none;
    }
    .menu-nav ul{
        line-height: 1;
    }
    .menu-nav a{
        display: inline-block;
        padding: 0 10px;
        border-bottom: none;
        transition: .3s;
    }
    .menu-nav a:hover{
        color:#f9f2aa;
        transform: scale(0.9);
        transition: .3s;
    }
    /* menu end */ 
    /* sidebar */
    #s1,
    #s2,
    #s3,
    #s4,
    #s5 {
        width: 100%;
    }
    #picModal .modal-body {
        transform: translateY(50%);
    }
    .sideBtn {
        position: fixed;
        left: 1%;
        top: 42%;
        z-index: 100;
    }
    .sideBtn ul {
        width: 217px;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    .nav-item{
        background: url('../images/sidebar.png')no-repeat;
        background-position: top;
        display: inline-block;
        width: 217px;
        height: 42px;
        margin-bottom: 10px;
        padding-bottom: 42px;
    }
    .nav-item img{vertical-align: bottom;}
    
    .sideBtn>ul>li a{
        width: 217px;
        padding:21px 0;
    }

    .nav-pills .nav-link.active, .nav-pills .show>.nav-link{
        color:unset;
        background: url('../images/sidebar-on.png')no-repeat;
        background-position: top;
    }

    .nav-item>li>a:focus,
    .nav-item>li>a:hover,
    .sideBtn ul>li>a:hover {
        display: block;
        background:url('../images/sidebar-on.png') no-repeat;
        background-position: center;
        padding: 1.3rem 1rem;
    }

    .nav>li>a:hover, .nav-item>li>a:hover,
    .sideBtn ul>li>a:hover,
    .sideBtn ul>li.active a{
        background: transparent url('../images/sidebar-on.png') no-repeat;
        outline: none;
    }
    .nav>li>a:hover,
    .sideBtn ul>li:nth-child(1)>a:hover,
    .sideBtn ul>li:nth-child(1).active a{
        background-position-y: 0px
    }
    .sideBtn ul>.nav-item:nth-child(2),
    .nav>li>a:hover,
    .sideBtn ul>li:nth-child(2)>a:hover,
    .sideBtn ul>li:nth-child(2)>a.active{
        background-position-y: -49px
    }

    .sideBtn ul>.nav-item:nth-child(3),
    .nav>li>a:hover,
    .sideBtn ul>li:nth-child(3)>a:hover,
    .sideBtn ul>li:nth-child(3)>a.active{
        background-position-y: -99px
    }
    .sideBtn ul>.nav-item:nth-child(4),
    .nav>li>a:hover,
    .sideBtn ul>li:nth-child(4)>a:hover,
    .sideBtn ul>li:nth-child(4)>a.active{
        background-position-y: -148px
    }
    .sideBtn ul>.nav-item:nth-child(5),
    .nav>li>a:hover,
    .sideBtn ul>li:nth-child(5)>a:hover,
    .sideBtn ul>li:nth-child(5)>a.active{
        background-position-y: -197px
    }
    .sideBtn ul>.nav-item:nth-child(6),
    .nav>li>a:hover,
    .sideBtn ul>li:nth-child(6)>a:hover,
    .sideBtn ul>li:nth-child(6)>a.active{
        background-position-y: -247px
    }
    .sideBtn ul>.nav-item:nth-child(7),
    .nav>li>a:hover,
    .sideBtn ul>li:nth-child(7)>a:hover,
    .sideBtn ul>li:nth-child(7)>a.active{
        background-position-y: -296px
    }

    .modal-dialog {
        top: 50%;
    }
    #picModal .modal-body {
        padding: 0;
        text-align: center;
    }
    .modal.in .modal-dialog,
    .modal.fade .modal-dialog {
        -webkit-transform: translate(0, -50%);
        -ms-transform: translate(0, -50%);
        -o-transform: translate(0, -50%);
        transform: translate(0, -50%);
    }

    /* modal */
    .container{
        max-width: 960px;
    }
    .title{
        margin-top: 70px;
    }
    .game-logo .logo-pic{
        width: 100%;
        max-width: 280px;
        position: absolute;
        top: 5%;
        left: 12%;
        z-index: 11;
    }
    .char-box{
        display: flex;
        position: relative;
    }
    .middle-char{
        display: inline-block;
        width: 100%;
        max-width: 1210px;
        /* margin: auto; */
        padding: 0 0 0% 0%;
    }
    .middle-char-m{
        display: none;
    }
    .bn-content{
        justify-content: center;
        overflow: hidden;
        width: 100%;
        max-width: 1440px;
        /* margin: auto; */
    }
    .top-bn-title{
        width: 100%;
        max-width: 800px;
        right: 8%;
        top: 26%;
        margin: auto;
        z-index: 20;
    }
    .DL-group {
        display: flex;
        flex-direction: column;
        /* max-width: 130px; */
        position: absolute;
        top: 10%;
        right: 20px;
    }
    .DL-group .btn{
        transition:0.5s;
        /* -webkit-filter: brightness(.5); */
    }
    .DL-group .btn:hover{
        transform: scale(1.1);
        transition:0.5s;
        -webkit-filter: brightness(1);
    }

    .contents{
        position: relative;
    }
    .supply::before{
        content: "";
        background-image: url('../images/char01.png');
        width: 733px;
        height: 20%;
        position: absolute;
        top: 30%;
        background-position: center center;
        background-size: cover;
    }
    .doublegift::before{
        content: "";
        background-image: url('../images/char03.png');
        background-position: center center;
        width: 1160px;
        height: 100%;
        position: absolute;
        background-size: cover;
        top: 100px;
        right: 0;
        left: 0;
        margin: auto;
    }
    .doublegift::after{
        content: "";
        background-image: url('../images/char02.png');
        background-position: center center;
        width: 930px;
        height: 90%;
        position: absolute;
        background-size: cover;
        bottom: 0;
        right: -110px;
    }
    .btnclose button{
        width: 50px;
        height: 50px;
    }

    .doublegift{
        position: relative;
        z-index: 10;
    }
    .gift-pic{
        max-width: 960px;
    }
    .logo-group{
        flex-wrap:nowrap;
        align-items: center;
    }
    .H-group{
        padding-top: 0;
    }
}

