﻿
.fancybox-open{
    overflow: hidden;
}
/*過場動畫*/

.dt-loading-2 {
    width: 100%;
    height: 100vh;
    display: table;
    position: fixed;
    top: 0;
    z-index: 99999;
    transition: all .4s linear;
    background-color: #FFF;
}

.laying-2 {
   display: table-cell;
   vertical-align: middle;
}

.loading-logo-box{
    width: 154px;
    display: block;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}
.loading-log{
    width: 100%;
    display: block;
    position: relative;
 
}
.loading-mask{
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    background: #FFF;
    right: 0%;
    animation:  right2 2s linear 0s 1 forwards;

}

/*fancy-box*/

.fancybox-table{
    width: 100%;
    height: 100vh;
    display: table;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
}
.fancybox-table.active{
    opacity: 1;
    pointer-events: inherit;
}
.fancybox-table-mid{
    display: table-cell;
    vertical-align: middle;
    position: relative;
    z-index: 2;
}
.fancybox-box{
    width: 1000px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}
.fancybox-img-box{
    box-sizing: border-box;
    padding: 15px;
    padding-bottom: 0;
    background-color: #f5f5f5;
}
.fancybox-img{
    width: 100%;
    height: 600px;
    display: block;
}
.fancybox-big-img{
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.fancybox-small-box{
    width: 1000px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    background-color: #f5f5f5;
}
.fancybox-small-img-box{
    width: 100%;
    max-width: 100%;
    height: 114px;
    display: block;
    box-sizing: border-box;
    padding: 15px;
    text-align: center;
}
.fancybox-small-img{
    width: 84px;
    height: 84px;
    margin-left: 15px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}
.fancybox-article{
    max-height: calc(100vh - 700px);
    overflow: auto;
}
.fancybox-article-title{
    font-size: 20px;
    color: #FFF;
    letter-spacing: 2px;
}
.fancybox-article-p{
    font-size: 16px;
    display: block;
    color: #FFF;
}

.fancybox-mask-box{
    width: 100%;
    height: 100%;
    display: block;
    background-color: rgba(0,0,0,0.6);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}
.fancybox-close{
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    color: #000;
    text-align: center;
    position: absolute;
    top: -20px;
    right: -20px;
    background-color: #ddd;
    cursor: pointer;
    z-index: 3;
    transition: all .3s linear;
}
.body-close{
    overflow: hidden;

}
.body-close::-webkit-scrollbar{
    display:none;
}

.fancybox-link{
    position: fixed;
    text-align: center;
    top: calc(50% - 31px);
}
.news-prev{
    right: calc(50% + 427px);
}
.news-next{
    left: calc(50% + 427px);
}
.fancybox-link i{
    font-size: 24px;
    color: #FFF;
    display: block;
    margin-bottom: 10px;
}
.fancybox-link p{
    font-size: 18px;
    color: #FFF;
}
.fancybox-block{
    width: 100%;
    max-height: 100vh;
    overflow: auto;

}
.fancybox-block::-webkit-scrollbar{
    display:none;
}
.fancybox-table-mid .slick-prev,
.fancybox-table-mid .slick-next{
    margin-top: 0;
}

.fancybox-small-img-box .slick-current{
    border: 3px solid #ca483d;
    box-sizing: border-box;
}
/*----------------------------*/

.rwd-menu-class-list{
    width: 100%;
    height: 46px;
    border: 1px solid #888;
    font-size: 16px;
    letter-spacing: 1px;
    text-align: center;
    display: none;
    line-height: 46px;
    position: relative;
    box-sizing: border-box;
}
.rwd-menu-class-list:after {
    content: '';
    width: 0px;
    height: 0px;
    margin: 0 auto;
    border-right: 10px solid transparent;
    border-top: 10px solid #888;
    border-left: 10px solid transparent;
    display: block;
    position: absolute;
    bottom: calc(50% - 5px);
    right: 5%;
    box-sizing: border-box;
}
/*<--------------hover--------------->*/
.fancybox-close:hover{
    background-color: #ca483d;
    color: #fff;
}
@media only screen and (max-width: 1050px){
    .fancybox-box{
        width: 800px;
    }
    .fancybox-img{
        height: 500px;
    }
    .fancybox-small-box{
        width: 800px;
    }
}
@media only screen and (max-width: 850px){
    .fancybox-box{
        width: 600px;
    }
    .fancybox-img{
        height: 400px;
    }
    .fancybox-small-box{
        width: 600px;
    }
    .fancybox-small-img{
        width: 83px;
        height: 83px;
    }
    .fancybox-small-img-box{
        height: 113px;
    }
}
@media only screen and (max-height: 750px){

    .fancybox-table-mid{
        display: block;
        height: 100%;
        overflow-y: auto;
        padding-top: 50px;
        padding-bottom: 50px;
    }
}
@media only screen and (max-width: 650px){
    .fancybox-table-mid{
        display: table-cell;
        height: inherit;
        overflow-y: inherit;
        padding-top: 0;
        padding-bottom: 0;
    }
    .fancybox-box{
        width: 400px;
    }
    .fancybox-img{
        height: 300px;
    }
    .fancybox-small-box{
        width: 400px;
    }
    .fancybox-img-box{
        padding: 10px;
        padding-bottom: 0;
    }
    .fancybox-small-img-box{
        padding: 10px;
        height: 88px;
    }
    .fancybox-small-img{
        margin-left: 10px;
    }
    .fancybox-small-img{
        width: 68px;
        height: 68px;
    }
}
@media only screen and (max-width: 450px){
    .fancybox-box{
        width: 300px;
    }
    .fancybox-small-box{
        width: 300px;
    }
    .fancybox-img{
        height: 225px;
    }
    .fancybox-small-img-box{
        height: 82px;
        padding: 10px;
    }
    .fancybox-small-img{
        width: 62px;
        height: 62px;
        margin-left: 10px;
    }
    .fancybox-close{
        width: 30px;
        height: 30px;
        line-height: 30px;
        top: -30px;
        right: 0;
    }
}



/*animation*/
/*<-------------動畫------------->*/

@keyframes animation_scaleY {
    0%{
        transform:  scaleY(0);
    }
    to {
        transform:  scaleY(1);
        opacity: 1;
    }
}
@keyframes animation_scaleX {
    0%{
        transform:  scaleX(0);
    }
    to {
        transform:  scaleX(1);
        opacity: 1;
        z-index: 2;
    }
}
@keyframes animation_fade {
    0%{
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes animation_rtol {
    0%{
        transform: translateX(50px);
    }
    to {
        transform: translateX(0px);
        opacity: 1;
    }
}
@keyframes animation_ltor {
    0%{
        transform: translateX(-50px);
    }
    to {
        transform: translateX(0px);
        opacity: 1;
    }
}
@keyframes animation_ttob {
    0%{
        transform: translateY(-50px);
    }
    to {
        transform: translateY(0px);
        opacity: 1;
    }
}
@keyframes animation_btot {
    0%{
        transform: translateY(50px);
    }
    to {
        transform: translateY(0px);
        opacity: 1;
    }
}
@keyframes animation_width {
    0%{
        width: 0;
    }
    to {
        opacity: 1;
        width: 100%;
    }
}
@keyframes animation_widthZero {
    0%{
        width: 4px;
        background-color: #fff;
    }
    to {
        opacity: 1;
    }
}
@keyframes animation_rotateIn {
    0%{
        transform: rotate(-720deg);
        opacity: 0;
    }
    to {
        opacity: 1;
        transform: rotate(0deg);
    }
}
@keyframes animation_rotateIn_forCenter {
    0%{
        transform: rotate(-720deg);
        opacity: 0;
    }
    to {
        opacity: 1;
        transform: rotate(45deg);
    }
}
@keyframes animation_big_ltor {
    0%{
        transform: translateX(-500px);
        opacity: 0;
    }
    to {
        transform: translateX(0px);
        opacity: 1;
    }
}
@keyframes animation_big_rtol {
    0%{
        transform: translateX(500px);
        opacity: 0;
    }
    to {
        transform: translateX(0px);
        opacity: 1;
    }
}

@media only screen and (min-width: 1001px){
    .index-about-title-line,
    .index-about-text-h,
    .index-about-text,
    .index-about-title-box,
    .index-about-img-box,
    .index-taiwanese_info-title-box,
    .index-taiwanese_info-title-box span,
    .index-taiwanese_info-attractions,
    .index-taiwanese_info-more-box,
    .index-traffic-gif-img-box, 
    .index-traffic-airportlogo,
    .index-traffic-text-title,
    .index-traffic-text,
    .index-traffic-mode,
    .index-contact-bg,
    .index-contact-info-box{
        opacity: 0;
    }
    .index-about-title-line{
        animation: animation_width 1s ease 0s both;
    }
    .index-about-title-box,
    .index-traffic-title{
        position: relative;
        animation: animation_ttob 1s ease 0s both;
        z-index: 2;
    }
    .index-about-text-h.active,
    .index-about-img-box.active,
    .index-traffic-text-title.active,
    .index-traffic-text.active,
    .index-traffic-text-title.active,
    .index-about-text.active{
        animation: animation_fade 1s ease 0s both;
    }
    .index-about-img-box.active .index-about-img-text-box{
        animation: animation_fade 1s ease 1s both;
    }
    .index-about-img-box.active .index-about-img-tw{
        opacity: 0;
        animation: animation_rtol 1s ease 0s both;
    }
    .index-about-img-box.active .index-about-img-btn{
        animation: animation_rotateIn 1s ease 0.5s both;
    }
    .index-about-img-box.active .index-about-img-btn-box{
        animation: animation_big_ltor 1s ease 0.5s both;
    }
    .index-about-img-box.active .index-about-img-btn-central .index-about-img-btn{
        animation: animation_rotateIn_forCenter 1s ease 0.5s both;
    }
    .index-taiwanese_info-title-box.active{
        animation: animation_rtol 1s ease 0s both;
    }
    .index-taiwanese_info-title-box.active span{
        animation: animation_ltor 1s ease 0s both;
    }
    .index-taiwanese_info-attractions.active,
    .index-taiwanese_info-more-box.active,
    .index-traffic-mode.active{
        animation: animation_btot 1s ease 0s both;
    }
    .index-traffic-gif-img-box.active, 
    .index-traffic-airportlogo.active{
        animation: animation_fade 1s ease 0s both;
    }
    .index-contact-bg.active{
        animation: animation_fade 1s ease 0s both;
    }
    .index-contact-info-box.active{
        animation: animation_big_rtol 1s ease 0.5s both;
    }
}