* {
    line-height: 1.5em;
    font-family: 'Microsoft JhengHei', sans-serif;
    /*border:1px solid red;*/
}

body {
    background-color: #D3E8E8;
    position: relative;
    min-height: 100vh;
    background: url("../images/bg-1.png") center 0% no-repeat;
    background-size: cover;
    overflow: hidden;
    max-width: 100vw;
}

img {
    max-width: 100%;
}

/* ============================================== */

.index {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    min-height: 100vh;
    padding-right: 6%;
}

.index::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 65%;
    height: 100vh;
    background: url('../images/index-img.png') no-repeat;
    background-size: 100%;
    background-position: bottom left;
}

.firelogo {
    position: absolute;
    left: 10%;
    top: 2%;
    z-index: 2;
}

.firelogo a {
    margin-right: 15px;
    max-width: 30%;
}

.firelogo img {
    width: 250px;    
    filter: drop-shadow(0px 0px 4px white);
}
.body .firelogo{
    right: 10%;
    text-align: right;
}

.game_logo {
    width: 50%;
    max-width: 750px;
    position: relative;
    z-index: 2;
}

.game_logo>img {
    max-width: 750px;
    z-index: 2;
    position: relative;
    width: 100%;
}

.btn_default {
    display: inline-block;
    max-width: 250px;
    position: relative;
}

.btn_default::before {
    position: absolute;
    content: "";
    width: 25%;
    height: 40%;
    left: -15%;
    top: -40%;
    bottom: 0;
    opacity: 0;
    margin: auto;
    transition: all .5s;
    background: url('../images/btn_arrow.png') no-repeat;
    background-size: contain;
}

.btn_default:hover::before {
    top: 0;
    opacity: 1;
    transition: all .5s;
}

.body {
    background: url('../images/body_bg.png') no-repeat, url('../images/bg-2.jpg') no-repeat;
    background-size: cover, cover;
    background-position: bottom center;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /*margin-top: -130px;*/
}

.gtit{
    position: absolute;
    top: 10%;
    left: 10%;
    max-width: 420px;
    width: 50%;
    z-index: 1;
}
.main_pic {
    position: relative;
    text-align: center;
    margin-bottom: 18vh;
}

.main_pic img {
    width: 90%;
    min-width: 75%;
}

.jump_win {
    position: absolute;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #fff;
    background-color: #ff0200;
    padding: 10px;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px #2222224f;
    border-radius: 50%;
    color: #fff;
}

.jump_win:nth-child(1) {
    left: 9%;
    top: 51%;
}

.jump_win:nth-child(2) {
    left: 60%;
    top: 72%;
}

.jump_win:nth-child(3) {
    left: 45%;
    top: 76%;
}

.jump_win:nth-child(4) {
    left: 78%;
    top: 58%;
}

.jump_win:nth-child(5) {
    left: 50%;
    top: 41%;
}

.jump_win:hover {
    background-color: #2aa357;
    color: #fff;
    transition-duration: 0.4s;
    text-decoration: none;
}

.jump_win.black {
    background-color: #2aa357;
    color: #fff;
}
.jump_win.black::after{
    content: "";
    width: 130%;
    height: 130%;
    background: url('../images/check.png') no-repeat;
    background-size: contain;
    position: absolute;
    left: 75%;
    top: 75%;
}
/* 跳窗設定 */

.modal-open .modal,.modal {
    background: #ffffff8a;
}

.modal-backdrop.show {
    opacity: .2;
}

.modal-dialog {
    max-width: 1200px;
    width: 90%;
    margin: 3% auto auto;
}

.modal-content {
    background: url('../images/madal_bg.png') no-repeat;
    background-size: 100% 100%;
    padding:6% 7% 8%;
    border: none;
}

.modal-body {
    padding: 0;
    position: relative;
}

.modal-tit {
    position: absolute;
    top: -25%;
    text-align: center;
    left: 0;
    right: 0;
    margin: auto;
    max-width: 300px;
    width: 33vw;
}

.main_item {
    /* align-items: stretch; */
    min-height: 150px;
    background: url('../images/content_bg.png') no-repeat;
    background-size: 100% 100%;
    padding: 6% 6% 7%;
}

.btn_block {
    position: absolute;
    bottom: -20%;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
}


.content {
    min-height: 150px;
}

.content h3 {
    background: url('../images/h3Bg.png') no-repeat;
    padding: 10px 30px 10px 20px;
    background-size: 100% 100%;
    display: inline-block;
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
}

.content p {
    font-size: 1.6em;
    font-weight: bold;
    padding-bottom: 0;
    padding-left: 2.5rem;
    color: #4c2f00;
    /* margin: 0; */
}

.content .close {
    color: #fff;
    background: #4d4d4d;
    padding: 4px 8px;
    border-radius: 50%;
    position: absolute;
    right: 5px;
    top: 5px;
}
.modal-open   #exampleModal{
    background: url('../images/card-bg.jpg') no-repeat;
    background-size: cover;
}
#exampleModal .modal-dialog{
    width: 100%;
    max-width: none;
    margin: auto;
    height: 100vh;
}
#exampleModal .modal-body{
    display: flex;
    align-items: center;
    justify-content: center;
}
#exampleModal .modal-content{
    background: none;
    padding: 0;
    width: 100%;
    height: 100%;
}
.card_inner{
    position: relative;
    padding: 0 5%;
    max-width: 1440px;
    width: 90%;
    margin-top: 5%;
}
.card_inner[data-num="2"]::before{
    content: "";
    width: 21%;
    height: 60%;
    background: url('../images/card-2-IMG.png') no-repeat;
    position: absolute;
    background-size: contain;
    right: -4%;
    top: 37%;
}
.card_inner[data-num="5"]::before{
    content: "";
    width: 20%;
    height: 45%;
    background: url('../images/card-5-IMG.png') no-repeat;
    position: absolute;
    background-size: contain;
    right: 7%;
    top: -5%;
}

#exampleModal .close{
    position: absolute;
    right: 0;
    top: -4.5rem;
    opacity: 1;
    max-width: 175px;
    width: 25%;
}

/* finish */
#finish {
    overflow-y: scroll;
}
#finish .btn_block{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: auto;
    width: 80%;
}
.enter_name label{
    background: #4c2f00;
    color: #fff;
    font-weight: bold;
    font-size: 1.4rem;
    padding:2px 10px;
    border-radius: 10px;
    margin-bottom: 0;
    margin-right: 1rem;
}
.enter_name input{
    background: #4c2f00;
    color: #fff;
    font-weight: bold;
    font-size: 1.4rem;
    box-shadow: 0 0 13px #421226 inset;
    padding:2px 10px;
    border-radius: 10px;
    max-width: 100%;
}
.avatar {
    filter: saturate(0.2);
    transform: scale(.9);
    margin: 10px;
    cursor: pointer;
}
.avatar.active{
    transform: scale(1.1);
    filter: saturate(1);
}

@media (max-width: 1200px) {

    .jump_win{
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .modal-tit {
        top: -20%;
    }
}

@media (max-width: 992px) {

    .body {
        min-height: 90vh;
        margin-top: 0;
    }

    .jump_win {
        width: 45px;
        height: 45px;
        border: 2px solid #fff;
        font-size: 1.3rem;
    }
}
@media screen and (max-height: 1200px) and (min-width: 768px){
    .main_pic{
        margin-bottom: 9vh;
    }
}
@media (max-width: 767px) {
    .btn_default {
        max-width: 250px;
        width: 70%;
    }

    .body {
        min-height: 88.2vh;
        background: url(../images/body_bg-rwd.png) no-repeat, url(../images/bg-2.jpg) no-repeat;
        background-size:auto 110%, cover;
        background-position: bottom center;
    }

    .modal-tit {
        top: -13%;
        max-width: 250px;
        width: 70%;
    }

    .btn_block {
        bottom: -10%;
    }

    .main_pic img {
       width: 90%;
       max-width: 600px;
    }
    .gtit{
        max-width: 300px;
    }

    .main_item {
        padding: 6% 5% 10%;
    }

    .content {
        max-height: 70vh;
        overflow-y: scroll;
        margin-top: 15px;
    }

    .content h3 {
        font-size: 1.1rem;
        padding: 5px 20px 5px 12px;
    }

    .content p {
        padding-left: 1rem;
    }

    .tfdpicon {
        display: block;
        text-align: right;
        margin: 0 0 15px;
    }

    .tfdpicon img {
        max-width: 60%;
    }

    .jump_win {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        border: 2px solid #fff;
    }
    .jump_win.black::after{
        left: 72%;
        top: 76%;
        width: 110%;
        height: 110%;
    }
    .jump_win:nth-child(1) {
        left: 35%;
        top: 5%;
    }

    .jump_win:nth-child(2) {
        left: 56%;
        top: 73%;
    }

    .jump_win:nth-child(3) {
        left: 12%;
        top: 65%;
    }

    .jump_win:nth-child(4) {
        left:36%;
        top: 38%;
    }

    .jump_win:nth-child(5) {
        left: 67%;
        top: 26%;
    }


}
@media (max-height: 800px){
    .modal-dialog{margin-top: 50px;}
}
@media (max-width: 576px) {
    .index {
        padding-right: 0;
        justify-content: center;
    }

    .index::before {
        width: 100%;
    }

    .firelogo {
        text-align: center;
        left: 0;
    }

    .firelogo img {
        max-width: 46%;
    }

    .firelogo a {
        margin: auto
    }
    .gtit{
        top: 15%;
    }
    .game_logo {
        width: 85%;
        margin-bottom: 20vh;
    }

    .btn_default {
        width: 40%;
    }

    .body {
        margin-top: 30px;
        align-items: flex-start;
        min-height: 70vh;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .card_inner{
        width: 100%;
    }
    .jump_win {
        width: 34px;
        height: 34px;
        font-size: 1rem;
        font-weight: bold;
    }

    .main_pic {
        margin-top: 30vh;
    }

    .content {
        min-height: 140px;
    }

    .content p {
        font-size: 1rem;
        padding-top: 2%;
    }
   
    .enter_name label{
        margin-bottom: 10px;
    }
    #finish .btn_block{
        width: 110%;
        margin-left: -5%;
    }
}