* {
    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: center;
    position: relative;
    min-height: 100vh;
    padding-right: 6%;
    background: url('../images/index-img.png') no-repeat;
    background-position: bottom center;
}

/* .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;
}


.firelogo img {
    width: 300px;
    max-width: 30%;
    max-height: 60px;
    object-position: left;
    object-fit: contain;
    filter: drop-shadow(0px 0px 4px white);
}

.cat{
    position: absolute;
    left: 7%;
    bottom: 10%;
    width: 21%;
    max-width: 350px;
}

.bear{
    position: absolute;
    right: 7%;
    bottom: 10%;
    width: 33%;
    max-width: 550px;
}

.btn_start{
    display: inline-block;
    margin-top: 5%;
    max-width: 150px;
    width: 35%;
}

.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: center;
    justify-content: center;
    /*margin-top: -130px;*/
}

.gtit{
    position: absolute;
    top: -6%;
    left: 0;
    max-width: 450px;
    width: 50%;
    right: 0;
    margin: auto;
}
.main_video {
    position: relative;
    text-align: center;
    max-width: 1200px;
    width: 90%;
    background: url('../images/video_bg.png') no-repeat;
    background-size: 100% 100%;
    padding: 5%;
}

#youtu{
  width: 100%;
  height: 58vh;
  background: url('https://img.youtube.com/vi/AVE2VocMFNg/hqdefault.jpg') no-repeat 50% 50%;
  background-size: cover;
  position: relative;
  margin: 0 auto;
}
#youtu  button{
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.25) url('https://img.icons8.com/material-outlined/96/FFFFFF/circled-play.png') no-repeat 50% 50%;
    background-size: 5em;
    border: 0;
    display: block;
    cursor: pointer;
    transition: background .3s linear;
    
}
#youtu  button:hover{
    background-color: rgba(0,0,0,.5);
    background-image: url('https://img.icons8.com/material/96/FFFFFF/circled-play.png');
}
#youtu  button:hover::before{
      content: '';
      display: block;
      /* padding-top: ( 5.06 / 9 ) * 100%; */
}
.body iframe{
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    pointer-events: none;
}
.body iframe.show{
      opacity: 1;
      pointer-events: auto;
  }


/* 跳窗設定 */

.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;
}
.card_inner{
    position: relative;
    padding: 0 5%;
}

/* 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;
    }
}
@media (max-height: 800px){
    .modal-dialog{margin-top: 50px;}
}
@media (max-width: 767px) {
    .btn_default {
        max-width: 250px;
        width: 70%;
    }
    .cat{
        width: 40%;
        left: 1%
    }
    .bear{
        right: -3%;
        width: 60%; 
    }
    .body {
        min-height: 88.2vh;
    }

    .modal-tit {
        top: -13%;
        max-width: 250px;
        width: 70%;
    }

    .btn_block {
        bottom: -10%;
    }

    .main_video img {
       width: 100%;
    }

    .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;
    }

}

@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: 32%;
    }

    .firelogo a {
        margin: auto
    }

    .game_logo {
        width: 85%;
        margin-bottom: 20vh;
    }

    .btn_default {
        width: 65%;
    }

    .body {
        align-items: center;
        min-height: 100vh;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .gtit{
        width: 75%;
        z-index: 5;
        top: -32%;
    }

    #youtu{
        height: 28vh;
    }
    .main_video{
        width: 96%;
        padding: 8%;
    }
    .content {
        min-height: 140px;
    }

    .content p {
        font-size: 1rem;
        padding-top: 2%;
    }
        .enter_name label{
        margin-bottom: 10px;
    }
    #finish .btn_block{
        flex-wrap: nowrap;
        width: 110%;
        margin-left: -5%;
    }
}