@import url(./nav_menu.css);
html, body{
    height: auto;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Microsoft JhengHei, 微軟正黑體;
}
main{
    /*解決開啟gpu加速後的閃爍及抖動*/
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;	/* Chrome 和 Safari */
    -moz-backface-visibility:hidden; 	/* Firefox */
    -ms-backface-visibility:hidden; 	/* Internet Explorer */
    -webkit-perspective:1000;
}
header{
    width: 100%;
    height: 80px;
    background-color: #FFF;
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
    z-index: 1000;
}
header .container{
    position: relative;
    height: 100%;
    max-width: 980px;
    margin: 0 auto;
    z-index: 1000;
}
header a.logo{
    margin-top: 1.5em;
    display: inline-block;
}
header a.logo img{
    max-width: 135.6px;
}
header .menu-btn{
    position: absolute;
    bottom: 1em;
    right: 1em;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.banner {
    width: 100%;
    height: 770px;
    background-image: url(../img/about-us/banner.jpg);
    background-size: cover;
    background-position: center center;
    margin-bottom: 5em;
    margin-top: 5em;
}
main{

}
main>.container{
    max-width: 980px;
    width: 100%;
    margin: auto;
    position: relative;
}
section .container{
    /*max-width: 980px;*/
    width: 100%;
    margin: auto;
    position: relative;
}
section .container ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
section .container li{
    margin: 0;
    padding: 0 0 0 2em;
}
.intro-company{
    max-width: 980px;
    margin: 0 auto;
    margin-bottom: 9.5em;
}
.intro-company .title{
    margin-bottom: 2em;
    margin-left: 5px;
}
.intro-company .title img{
    position: relative;
}
.intro-company .content{
    margin-bottom: 10.5em;
}
.intro-brands{
}
.intro-brands .content{
    background-color: #F7FCFF;
}
.intro-brands .content .wrapper{
    max-width: 980px;
    width: 100%;
    margin: auto;
    padding-top: 4.5em;
    padding-bottom: 6em;
    padding-left: 2em;
}
.intro-brands .title.align-center{
    max-width: 980px;
    margin: 0 auto;
    margin-bottom: 1em;
}
.intro-brands .title{
    margin-bottom: 5em;
    padding-left: calc(4em + 10px);
}
section.history .container{
    width: 100%;
    height: 100%;
    max-width: none;
    overflow-y: hidden;
}
.history .title-wrapper{
    max-width: 980px;
    width: 100%;
    height: 17%;
    min-height: 200px;
    margin: auto;
    background-color: white;
}
.history>.wrapper{
    max-width: 980px;
    width: 100%;
    margin: auto;
    background-color: white;
}
.history-title{
    margin-left: 2em;
    padding-top: 5.5em;
    box-sizing: border-box;
    height: 100%;
}
.history-stage{
    max-height: 980px;
    height: 83%;
    position: relative;
    overflow-x: hidden;
}
.history-stage .timeline{
    width: 980px;
    height: 138.24px;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
}
.timeline .control{
    width: 100%;
    height: 100%;
    position: absolute;
}
.timeline .control .left-btn,
.timeline .control .right-btn{
    display: inline-block;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 50px;
    height: 50px;
}
.timeline .control .right-btn{
    right: 0;
}
.timeline .flow{
    width: calc(100% - 100px);
    height: 100%;
    margin: 0 50px;
    box-sizing: border-box;
    overflow: hidden;
}
section.history .flow>.container{
    width: 200%;
}
.timeline .flow .node{
    position: relative;
    background-color: white;
    margin-left: 55px;
    margin-top: 15.12px;
    padding: 0;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    float: left;
    -webkit-transition: transform 300ms ease;
    transition: transform 300ms ease;
}
.timeline .flow .node:nth-child(2n){
    width: 63px;
    height: 63px;
    top: 27.5px;
}
.timeline .flow .node.hover{
    -webkit-transform: scale(1.28);
    transform: scale(1.28);
}
.timeline .flow .node img{
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.timeline .flow .node img{
    width: 70px;
}
.timeline .flow .node:nth-child(2n) img{
    width: 42px;
}
.history-background{
    width: 100%;
    height: 100%;
    position: relative;
    background: url(../img/about-us/history_bg.jpg) center no-repeat;
    background-size: cover;
}
.my-custom-theme,
.my-custom-theme-even {
	border-radius: 5px;
	border: 0px solid #000;
	background: white;
	color: #fff;
    /*transition-duration: 500ms !important;
    animation-duration: 500ms !important;*/
}
.my-custom-theme .tooltipster-content,
.my-custom-theme-even .tooltipster-content {
	font-family: Arial, sans-serif;
	font-size: 14px;
	line-height: 16px;
	padding: 1.5em;
}
.my-custom-theme .tooltipster-arrow-top span{
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-top: 45px solid;
    bottom: -45px;
}
.my-custom-theme-even .tooltipster-arrow-top span{
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-top: 85px solid;
    bottom: -85px;
}
.my-custom-theme .tooltipster-arrow-bottom span{
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-bottom: 45px solid;
    top: -45px;
}
.my-custom-theme-even .tooltipster-arrow-bottom span{
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-bottom: 85px solid;
    top: -85px;
}
footer .wrapper{
    height: 174.4px;
    text-align: center;
    position: relative;
    background-color: white;
    z-index: 9999;
}
footer .wrapper img{
    position: absolute;
    bottom: 2em;
    width: 205.6px;
    left: 0;
    right: 0;
    margin: 0 auto;
}
@media all and (-ms-high-contrast:none){
    /* for ie 11 */
    main{
        margin: 0;
        /*top: 5em;*/
    }
}
@media screen and (max-device-width: 480px), only screen and (max-device-width: 736px) and (-webkit-min-device-pixel-ratio: 2){
    header {
        -webkit-transition: none;
        -moz-transition: none;
          -o-transition: none;
             transition: none;
        -webkit-transform: none;
        transform: none;
        z-index: 1000;
    }
    .banner{
        height: 300px;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: top;
    }
    section .container li{
        margin: 0 5%;
        padding: 0;
    }
    .intro-company .content,
    .intro-company .logo,
    .intro-brands .content{
        width: 90%;
    }
    .intro-company .title,
    .intro-brands .title,
    .intro-brands .title.align-center{
        padding-left: 5px;
        margin-left: 5%;
    }
    .intro-company .title img,
    .intro-brands .title img{
        width: 106px;
    }
    .intro-company .logo .title{
        padding-left: 5px;
        margin-left: 0;
    }
    .intro-company .logo .title img{
        width: 200px;
    }
    .intro-company .content img,
    .intro-company .logo img,
    .intro-brands .content img{
        width: 100%;
    }
    .intro-brands .content{
        width: 100%;
        margin: 0;
    }
    .intro-brands .content .wrapper{
        padding-left: 0;
        margin: 0 5%;
        width: 90%;
        padding-bottom: 5em;
    }
    section.history .container{
        overflow-y: visible;
    }
    .history-title img{
        width: 50%;
    }
    .history-stage{
        height: 100%;
        overflow-x: visible;
    }
    .history-stage .timeline{
        width: 100%;
        height: auto;
        margin: 0;
    }
    .timeline .control{
        display: none;
    }
    .timeline .flow{
        margin: 0;
        width: 100%;
        height: auto;
        overflow: visible;
    }
    .history-background{
        display: none;
        position: relative;
        background: none;
        background-size: cover;
    }
    section.history .flow>.container{
        width: 100%;
        overflow: visible;
    }
    section.history{
        background: url(../img/about-us/history_bg.jpg) center no-repeat;
        background-size: cover;
    }
    .timeline .flow .node{
        margin: 55px auto 0 auto;
        float: none;
    }
    .timeline .flow .node:hover{
        -webkit-transform: none;
        transform: none;
    }
    .timeline .flow .node:nth-child(2n){
        top: auto;
    }
    .timeline .flow .node:last-child{
        margin-bottom: 55px;
    }
    .modal{}
    .modal-content{
        display: inline-block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        padding: 1em;
        width: 80%;
        height: 0;
        background-color: white;
        border-radius: 5px;
        z-index: 1001;
        -webkit-transition: height 300ms;
        transition: height 300ms;
    }
    .content-wrapper{
        overflow: hidden;
        width: 100%;
        height: 100%;
        opacity: 0;
        -webkit-transition: all 300ms;
        transition: all 300ms;
        -webkit-transition-delay: 200ms; /* Safari */
        transition-delay: 200ms;
    }
    .content-wrapper.show{
        opacity: 1;
    }
    .modal-content img:first-child{
        margin-bottom: 1em;
    }
    .modal-content img{
        width: 100%;
    }
    .modal-bg{
        background-color: rgba(0,0,0,.5);
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        z-index: 1000;
    }
    footer .wrapper img{
        width: 128.5px;
    }
    footer .wrapper{
        height: 109px;
    }
}
/* ----------- iPad 1 and 2 ----------- */
/* Portrait and Landscape */
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (-webkit-min-device-pixel-ratio: 1){
    .banner {
        width: 100%;
        height: 400px;
    }
    .intro-brands .title{
        padding-left: 2em;
    }
    .intro-brands .title.align-center{
        margin-left: 5px;
    }
    .history-stage .timeline{
        width: 100%;
    }
    .timeline .flow .node{
        margin-left: 22px;
    }
    .timeline .flow .node:hover{
        -webkit-transform: none;
        transform: none;
    }
}
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: landscape)
and (-webkit-min-device-pixel-ratio: 1){
    .banner{
        height: 450px;
    }
    .history-stage .timeline{
        width: 980px;
    }
    .timeline .flow .node{
        margin-left: 57px;
    }
    .timeline .flow .node:hover{
        -webkit-transform: none;
        transform: none;
    }
}