html, body{
    height: auto;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Microsoft JhengHei, 微軟正黑體;
}
header{
    width: 100%;
    height: 80px;
    background-color: #FFF;
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
    z-index: 1000;
}
header.fixed{
    bottom:auto;
    top:0;
    margin-top: 0;
}
.fixed{
    z-index: 1000;
    position: fixed;
}
header .container{
    position: relative;
    height: 100%;
    max-width: 980px;
    margin: 0 auto;
}
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;
}
main>.container{
    max-width: 980px;
    width: 100%;
    margin: auto;
    position: relative;
}
.banner {
    width: 100%;
    height: 770px;
    background-image: url(../img/motivation/banner.jpg);
    background-size: cover;
    background-position: center center;
    margin-top: 80px;
}
.intro .container{
    max-width: 980px;
    width: 100%;
    margin: auto;
    position: relative;
}
.intro .intro-content{
    margin-top: 5em;
    padding-bottom: 5em;
    display: block;
}
.chart{
    clear: both;
    float: left;
}
.chart .circle-bg {
    padding: 66px 41px;
    width: 100px;
    height: 50px;
    border: 2px solid #f0f0f0;
    border-radius: 100%;
    line-height: 50px;
}
.chart svg{
    top: -2.5px;
    left: -3.75px;
}
.chart .word{
    display: block;
    position: relative;
    z-index: 1;
    height: 25px;
    width: 72px;
    background-image: url(../img/motivation/word.png);
    margin: auto;
    top: 15px;
    -webkit-transform: translate3d(0, 0, 0);
    /*-webkit-transition: all 800ms ease-out;
    transition: all 800ms ease-out;*/
}
.past{
    background-color: #eaf6fd;
}
.now .container:before,
.future .container:before{
    content: '';
    display: inline-block;
    position: relative;
    z-index: 1;
    float: left;
    left: 50%;
    top: -1px;
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    border-left: 50px solid transparent;
    border-top: 50px solid #eaf6fd;
    border-right: 50px solid transparent;
}
.future .container:before{
    border-top: 50px solid #fff;
}
.future .container:after{
    border-left: 50px solid transparent;
    border-top: 50px solid #FEFEFE;
    border-right: 50px solid transparent;
}
.past .container,
.now .container,
.future .container{
    width: 100%;
    height: 100%;
    max-width: 980px;
    margin: auto;
}
.chart[data-percent='0'] .word{
    background-position: 0px 0px;
}
.chart[data-percent='25'] .word{
    background-position: 0px 175px;
    -webkit-animation: past 800ms ease-out;
    animation: past 800ms ease-out;
}
.chart[data-percent='50'] .word{
    background-position: 0px 200px;
    -webkit-animation: now 800ms ease-out;
    animation: now 800ms ease-out;
}
.chart[data-percent='75'] .word{
    background-position: 0px 225px;
    -webkit-animation: future 800ms ease-out;
    animation: future 800ms ease-out;
}
.past .container{
    padding-top: 50px;
}
.past-content,
.now-content,
.future-content{
    clear: both;
    margin-bottom: 5em;
    position: relative;
    left: 13em;
    top: 5em;
}
.chart-container{
    width: 100%;
    max-width: 980px;
    height: 100%;
    left: 50%;
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    position: fixed;
    -webkit-transition: -webkit-transform 700ms ease;
    transition: transform 700ms ease;
    z-index: 100;
    top: 8em;
    pointer-events: none;
}
.chart-container.prepare{
    -webkit-transform: translate(-50%, calc(100% + 3em));
    transform: translate(-50%, calc(100% + 3em));
}
.chart{
}
.chart svg circle{
    fill: #f9fcfe;
}
.now{
    background-color: #fefefe;
}
.now .chart svg{
    fill: #f9fcfe;
}
.future{
    background-color: #009ce1;
}
footer .wrapper{
    height: 174.4px;
    text-align: center;
    position: relative;
}
footer .wrapper img{
    position: absolute;
    bottom: 2em;
    width: 205.6px;
    left: 0;
    right: 0;
    margin: 0 auto;
}
/*firefox hack*/
@-moz-document url-prefix() {
    .now-content,
    .future-content{
        position: relative;
        left: 5em;
        top: 3em;
    }
}
@media all and (-ms-high-contrast:none){
    /* only for ie11*/
    section:before{
        content: '';
        display: block;
        width: 100%;
        height: 80px;
    }
    .chart-container{
        -webkit-transition: -webkit-transform 700ms ease;
        transition: transform 700ms ease;
    }
    .chart-container.prepare{
        top:  8em;
        transform: translate(-50%, 101%);
    }
    .past-content,
    .now-content,
    .future-content{
        /*margin-bottom: 0;*/
        padding-bottom: 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;
    }
    header.fixed{
        position: fixed;
        z-index: 1000;
    }
    .banner{
        height: 300px;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: top;
        margin-top: 80px;
    }
    .intro{
        /*padding-top: 80px;*/
    }
    .intro .fp-tableCell,
    .future .fp-tableCell{
        vertical-align: top;
    }
    .intro .container{
        width: 90%;
        margin: 0 5%;
    }
    .intro .intro-content{
        width: 309px;
        padding-bottom: 5em;
    }
    .chart {
        -webkit-transform: scale(.6) translate(-50%, 0);
        transform: scale(.6) translate(-50%, 0);
        -webkit-transform-origin: left;
        transform-origin: left;
        left: 50%;
        top: 0;
    }
    .now .chart,
    .future .chart{
        top: 0;
    }
    .past .container{
        margin-top: 50px;
    }
    .past .container,
    .now .container,
    .future .container{
        text-align: center;
        padding-top: 0px;
    }
    .past-content,
    .now-content,
    .future-content{
        margin: auto;
        margin-bottom: 2em;
        left: 0;
        top: 0;
    }
    .past-content img,
    .now-content img,
    .future-content img{
        width: 344.5px
    }
    footer .wrapper img{
        width: 128.5px;
    }
    footer .wrapper{
        height: 109px;
    }
}
@media only screen and (min-device-width: 320px)
and (max-device-width: 736px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation : landscape){
    .banner{
        position: static;
    }
    .intro{

    }
    .intro .intro-content{
        padding-bottom: 1em;
    }
    .chart,
    .now .chart,
    .future .chart{
    }
    .past .container,
    .now .container,
    .future .container{
        text-align: left;
    }
    .past-content,
    .now-content,
    .future-content{
        margin-top: 85px;
        text-align: center;
    }
}
@media screen and (max-device-width: 320px){
    .banner{
        position: static;
        margin-top: 5em;
    }
    .intro .intro-content{
        width: 100%;
        margin-bottom: 1em;
    }
    .past-content,
    .now-content,
    .future-content{
        width: 90%;
        margin: 0 5%;
    }
    .past-content img,
    .now-content img,
    .future-content img{
        width: 100%;
        margin-bottom: 3em;
    }
}
/* for ipad */
@media only screen and (min-device-width: 768px)
and (max-device-width: 1024px)
and (-webkit-min-device-pixel-ratio: 1) {
    .banner{
        margin-top: 80px;
        height: 450px;
    }
    .intro .intro-content{
        margin-left: 5%;
        padding-bottom: 5em;
    }
    .past-content,
    .now-content,
    .future-content{
        top: 5em;
        left: 0;
        text-align: center;
    }
    .chart{
        left: 50%;
        -webkit-transform: translate(-50%, 10%);
        transform: translate(-50%, 10%);
    }
}
@-webkit-keyframes past{
    from{
        background-position: 0px 25px;
    }
    to{
        background-position: 0px 175px;
    }
}
@keyframes past{
    from{
        background-position: 0px 25px;
    }
    to{
        background-position: 0px 175px;
    }
}
@-webkit-keyframes now{
    from{
        background-position: 0px 50px;
    }
    to{
        background-position: 0px 200px;
    }
}
@keyframes now{
    from{
        background-position: 0px 50px;
    }
    to{
        background-position: 0px 200px;
    }
}
@-webkit-keyframes future{
    from{
        background-position: 0px 75px;
    }
    to{
        background-position: 0px 225px;
    }
}
@keyframes future{
    from{
        background-position: 0px 75px;
    }
    to{
        background-position: 0px 225px;
    }
}