@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Cardo|Pathway+Gothic+One");

body {
    background-image: url(../images/work/history_bg.jpg);
    background-attachment: fixed;
}

.timeline-header {
    text-align: center;
}

.timeline-header .timeline-header__title {
    -webkit-writing-mode: vertical-lr;
    writing-mode: vertical-lr;
    letter-spacing: 3px;
    margin: 0 auto;
    font-size: 2.5rem;
    font-weight: 600;
    /*font-family: "Playfair Display", 'Noto Serif TC', serif;*/
    font-family: 'HuaKangGuoTaiBeiW4', serif;

}

.timeline-header .timeline-header__title span {
    display: block;
    font-size: 1rem;
    color: #bd9d64;
    font-family: "Playfair Display", 'Noto Serif TC', serif;
}

.timeline {
    display: flex;
    margin: 0 auto;
    flex-wrap: wrap;
    flex-direction: column;
    max-width: 800px;
    position: relative;
}

.timeline:after {
    content: '';
    width: 300px;
    height: 300px;
    position: absolute;
    background-image: url(../images/work/title.svg);
    left: 50%;
    transform: translateX(-50%);
    background-repeat: no-repeat;
    background-position: bottom;
    bottom: 100%;
    border-radius: 50%;
    z-index: -1;
    border: 1px solid #eee;
    background: linear-gradient(145deg, rgba(192, 153, 87, 0) 30%, rgba(192, 153, 87, 0.1) 50%, rgba(192, 153, 87, 0.6) 80%, rgba(255, 255, 255, 0.7) 100%);
}

.timeline-container {
    /*background-image: url(../images/work/bg.svg) !important;*/
}

.timeline__content-title {
    font-weight: normal;
    font-size: 66px;
    margin: -10px 0 0 0;
    transition: .4s;
    padding: 0 10px;
    box-sizing: border-box;
    /*font-family: "Pathway Gothic One", sans-serif;*/
    color: #fff;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.timeline__content-desc {
    margin: 0;
    font-size: 15px;
    box-sizing: border-box;
    color: #666;
    /*font-family: Cardo;*/
    font-weight: normal;
    line-height: 25px;
}

.timeline:before {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
    content: "";
    background-color: #fff;
}

@media only screen and (max-width: 767px) {
    .timeline:before {
        /*left: 40px;*/
        opacity: 0.1;
    }
}

.timeline-item {
    padding: 0;
    /*padding: 40px 0;*/
    opacity: 1;
    filter: blur(0);
    transition: .5s;
    box-sizing: border-box;
    width: calc(50% - 40px);
    display: flex;
    position: relative;
    transform: translateY(-80px);
}

.timeline-item:before {
    content: attr(data-text);
    letter-spacing: 3px;
    width: 100%;
    position: absolute;
    color: #333;
    font-size: 1rem;
    /*font-family: "Pathway Gothic One", sans-serif;*/
    border-left: 5px solid #61a60e;
    /*top: 70%;*/
    top: 50%;
    margin-top: -5px;
    padding-left: 15px;
    /*opacity: 0;*/
    right: calc(-100% - 60px);
}

.timeline-item:nth-child(1) {
    padding-top: 5rem;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
}

.timeline-item:nth-child(even):before {
    right: auto;
    text-align: right;
    left: calc(-100% - 60px);
    padding-left: 0;
    border-left: none;
    border-right: 5px solid #61a60e;
    padding-right: 15px;
}

.timeline-item--active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

.timeline-item--active:before {
    top: 50%;
    transition: .3s all .2s;
    opacity: 1;
}

.timeline-item--active .timeline__content-title {
    margin: -50px 0 20px 0;
}

.timeline__img {
    max-width: 100%;
    width: 100%;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
}

.timeline-container {
    width: 100%;
    position: relative;
    padding: 320px 0;
    transition: .3s ease 0s;
    background-attachment: fixed;
    background-size: cover;
}

.timeline-container:before {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(255, 255, 255, 0.3);*/
    content: "";
}

.timeline-header {
    width: 100%;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.timeline-header__title {
    color: #666;
    font-size: 46px;
    font-family: Cardo;
    font-weight: normal;
    margin: 0;
}

.timeline-header__subtitle {
    color: rgba(255, 255, 255, 0.5);
    /*font-family: "Pathway Gothic One", sans-serif;*/
    font-size: 16px;
    letter-spacing: 5px;
    margin: 10px 0 0 0;
    font-weight: normal;
}

.demo-footer {
    padding: 60px 0;
    text-align: center;
}

.demo-footer a {
    color: #999;
    display: inline-block;
    font-family: Cardo;
}

@media only screen and (max-width: 767px) {
    body {
        -webkit-background-size: cover;
        background-size: cover;
        background-position: center;
    }

    .timeline-container {
        padding: 320px 0 100px;
    }

    .caseName,
    .timeline__content-desc {
        padding-left: 15px;
    }

    .timeline-item {
        align-self: baseline !important;
        width: 100%;
        padding: 0 30px 150px 30px;
    }

    .timeline-item:before {
        display: none;
        left: 10px !important;
        padding: 0 !important;
        top: 50px;
        text-align: center !important;
        width: 60px;
        border: none !important;
    }

    .timeline-item:last-child {
        padding-bottom: 40px;
    }






}