.timelines {
    text-align: center;
    font-size: 20px!important;
    background-color: #f0f0f0;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.swiper-slide {
    text-align: center;
    vertical-align: 50%;
    font-size: 18px;
    background: #f0f0f0;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.cards {
    box-shadow: 0px 0px 20px #999;
    margin-bottom: 20px;
    text-align: center;
    height: 400px;
}



.intro-main {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    justify-content: space-around;
}

.intro-achievements {
    max-width: 288px;
    text-align: center;
    box-shadow: 0 0 50px #999;
    margin: 0 auto 20px auto;
}

.achievements-title {
    white-space: wrap; /*禁止換行*/
    overflow: hidden; /*溢出截取*/
    text-overflow: ellipsis; /*省略超出部分*/
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.achievement-link {
    color: #000000;
}

.main-images {
    width: 100%;
    padding-bottom: 10px;
}

.abstract {
    padding: 10px 15px;
    text-align: justify;
    line-height: 25px;
}

#publications-active {
    color: #ffc600;
}

/* publication page */
/* 年份導航條 */
.timeline {
    width: 100%;
    background: -prefix-radial-gradient(#999 10%, #f0f0f0);
    background: radial-gradient(#999 10%, #f0f0f0);
}

/* 年份導航條在頁面向下滾動時，固定在屏幕頭部 */
.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    box-shadow: 0 0 50px #999;
    z-index: 1;
}



.publication-main-content {
    position: relative;
}



.year-collection {
    box-shadow: 0 0 20px #999;
    margin-bottom: 15px;
    padding: 10px;
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
}



.year {
    position: absolute;
    top: 18px;
    left: 50px;
    transition: all 0.5s ease;
}

.year:hover {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    color: #ffc600;
    cursor: pointer;
}

/* 當點擊年度導航條中的年份鍊接時，用此暗錨修複内容與導航條重疊的問題
segmentfault鍊接：https://segmentfault.com/q/1010000000124208 */
.target-fix {
    position: relative;
    top: -56px;
    display: block;
    height: 0;
    /*chrome doesn't recognize the anchor if overflow is hidden.*/
    /*overflow: hidden;*/
}

.current-year {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    color: #ffc600;
    cursor: pointer;
}

.paper-members{
    font-size: 16px;
}
.paper-list {
    margin-top: 5px;
    list-style: disc inside none;
    text-align: justify;
}

.paper {
    list-style: inherit;
    line-height: 1.5em;
    padding: 10px 0;
}

.paper-link {
    text-decoration: underline;
    color: #8c0000;
}

@media screen and (min-width: 1200px) {
    .timeline {
        width: 1200px;
        margin: 0 auto;
    }
}


/* responsive design */
@media screen and (min-width: 600px) {
    .boss,
    .member-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    #boss-img-area {
        width: 45%;
        text-align: center;
        padding: 0 10px;
    }

    .boss-info {
        width: 0%;
    }

    .boss-more {
        width: 100%;
    }

    .boss-contact-head {
        border-top: none;
    }

    .boss-contact {
        width: 100%;
    }

    .boss-contact-head {
        display: block;
        width: 100%;
    }

    .member-list {
        justify-content: space-around;
    }

    .member-item {
        margin: 10px;
        padding: 10px;
    }
}

@media screen and (min-width: 520px) {
    #alumni-box {
        width: 520px;
    }

    #alumni-header {
        width: 520px;
    }
}

@media screen and (min-width: 10px) {
    .boss-info {
        width: 0%;
    }

    .boss-more {
        width: 100%;
    }

    .paper-members{
        font-size: 12px;
    }

    .paper-link{
        font-size: 12px;
    }

    .paper-list{
        font-size: 12px;
    }
}

@media screen and (min-width: 720px) {
    .boss-info {
        width: 5%;
    }

    .boss-more {
        width: 95%;
    }

    .paper-members{
        font-size: 16px;
    }

    .paper-link{
        font-size: 16px;
    }

    .paper-list{
        font-size: 16px;
    }
}

@media screen and (min-width: 1080px) {
    .boss-contact {
        padding-left: 5%;
    }

    .member-list {
        justify-content: flex-start;
    }

    .member-item {
        padding: 15px;
    }
}

/* 以下代碼參考自https://codyhouse.co/gem/vertical-timeline/，
目的是加載publication每年的内容時，有個動畫效果 */
.is-hidden {
    visibility: hidden;
}

.bounce-in {
    visibility: visible;
    -webkit-animation: cd-bounce-1 0.6s;
    -moz-animation: cd-bounce-1 0.6s;
    animation: cd-bounce-1 0.6s;
}

@-webkit-keyframes cd-bounce-1 {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.8);
    }

    100% {
        -webkit-transform: scale(1);
    }
}
@-moz-keyframes cd-bounce-1 {
    0% {
        opacity: 0;
        -moz-transform: scale(0.8);
    }

    100% {
        -moz-transform: scale(1);
    }
}
@keyframes cd-bounce-1 {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.8);
        -moz-transform: scale(0.8);
        -ms-transform: scale(0.8);
        -o-transform: scale(0.8);
        transform: scale(0.8);
    }

    100% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
}