﻿.main-bg{
    width: 100%;
    height: 100%;
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: all .5s ease;
}
/*過場動畫*/

.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: 150px;
    max-width: 100%;
    display: block;
    position: relative;
    margin: 0 auto;
}
.loading-log{
    width: 100%;
    display: block;
    position: relative;
    animation: fade .8s ease 0s 1 both;
}
.loading-log2{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    animation: fadeInUp .8s ease .2s 1 both
}
.spinner-box{
    animation: fade .8s ease 1.2s 1 both
}
.spinner {
  margin: 0px auto;
  margin-top: 30px;
  width: 50px;
  height: 40px;
  text-align: center;
  font-size: 10px;
}

.spinner > div {
  background-color: #333;
  height: 100%;
  width: 6px;
  display: inline-block;
  
  -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
  animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.spinner .rect3 {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

.spinner .rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.spinner .rect5 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {
  0%, 40%, 100% { -webkit-transform: scaleY(0.4) }  
  20% { -webkit-transform: scaleY(1.0) }
}

@keyframes sk-stretchdelay {
  0%, 40%, 100% { 
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }  20% { 
    transform: scaleY(1.0);
    -webkit-transform: scaleY(1.0);
  }
}

/*fancy-box*/

.fancybox-table{
    width: 100%;
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}
.fancybox-table.active{
    display: table;
}
.table-mid{
    display: table-cell;
    vertical-align: middle;
}
.fancybox-box{
    width: 1000px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    padding: 20px 30px;
    box-sizing: border-box;
    background-color: rgba(0,0,0,0.8);
}
.fancybox-img-box{
    width: 100%;
    display: block;
    margin-bottom: 10px;
}

.fancybox-article-title{
    font-size: 22px;
    color: #FFF;
    letter-spacing: 2px;
    font-weight: bold;

}
.fancybox-article-date{
    font-size: 14px;
    color: #FFF;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 5px;
}
.fancybox-title-box{
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.8);
    margin-bottom: 10px;
}

.fancybox-edit-box{
    font-size: 14px;
    display: block;
    color: #FFF;
    letter-spacing: 2px;
    line-height: 2;
    word-break: break-all;
}
.fancybox-mask-box{
    width: 100%;
    height: 100%;
    display: block;
    background-color: rgba(0,0,0,0.8);
    position: fixed;
    top: 0;
    left: 0;
}
.fancybox-fb{
    display: block;
    margin-bottom: 10px;
    height: 20px;
}
.fancybox-close{
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    color: #000;
    text-align: center;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ddd;
    cursor: pointer;
    z-index: 6;
}
.body-close{
    overflow: hidden;

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

.fancybox-link{
    position: fixed;
    text-align: center;
    top: calc(50% - 31px);
}
#news-page .fancybox-link{
    position: absolute;
    text-align: center;
    top: calc(50% - 31px);
}
.news-prev{
    left: 10%;
}
.news-next{
    right: 10%;
}
#news-page .news-prev{
    left: -10%;
}
#news-page .news-next{
    right: -10%;
}
.fancybox-link i{
    font-size: 16px;
    color: #fff;
    display: block;
    margin-bottom: 5px;
}
.fancybox-link p{
    font-size: 14px;
    color: #fff;
    letter-spacing: 1px;
}
#news-page .fancybox-link i{
    font-size: 16px;
    color: #000;
    display: block;
    margin-bottom: 5px;
}
#news-page .fancybox-link p{
    font-size: 14px;
    color: #000;
    letter-spacing: 1px;
}
.fancybox-block{
    width: 100%;
    max-height: 95vh;
    overflow: auto;
    box-sizing: border-box;
}
.fancybox-block::-webkit-scrollbar{
    display:none;
}
/*----------------------------*/

.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;
}