/* Source: https://bootsnipp.com/snippets/featured/timeline-responsive */

.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}

.timeline:before {

    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 3px;
    background-color: #eeeeee;
    left: 50%;
    margin-left: -1.5px;
}

.timeline h4 {
    border-bottom: 2px solid #FFD400;
}

.timeline > li {
    position: relative;
}

.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}

.timeline > li:after {
    clear: both;
}

.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}

.timeline > li:after {
    clear: both;
}

.timeline > li > .timeline-panel {
    width: 50%;
    float: left;
    position: relative;
}


.timeline .timeline-badge {
    color: #fff;
    width: 50px;
    height: 50px;
    line-height: 46px;
    font-size: 1.4em;
    text-align: center;
    z-index: 100;
    border-radius: 100%;
    float: right;
    margin-right: -25px;
    margin-top: calc(-0.5rem - 25px);
    margin-top: -moz-calc(-0.5rem - 25px);
    margin-top: -webkit-calc(-0.5rem - 25px);
    border:2px solid white;            
}

.timeline .timeline-inverted {
    text-align: right;
}
.timeline .timeline-inverted .timeline-badge {
    float:left;
    margin-right:0;
    margin-left:-25px;
}

.timeline > li.timeline-inverted > .timeline-panel {
    float: right;
}

.timeline > li.timeline-inverted > .timeline-panel:before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
}

.timeline > li.timeline-inverted > .timeline-panel:after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -14px;
    right: auto;
}

.timeline .timeline-year .notPlus, .timeline .timeline-year .plus {
    width: 50px;
    text-align: left;
    display: inline-block;
}

.timeline .timeline-year div {
    display: inline-block;
}

.timeline .timeline-year .notPlus {
    display: hidden;
}

.timeline .timeline-year .year {
    display:inline-block;
    padding: 0.5rem 2rem;
    color: black;
    background-color: #FFD400;
    font-style: italic;
    font-size: large;
    border-radius: 4px;
}

.timeline .timeline-year.active .fa-plus-circle {
    display: none;
}

.timeline .timeline-year:not(.active) .fa-minus-circle {
    display: none;
}

.timeline .timeline-year .plus a {
    color: #FFD400;
}

.timeline li[data-year] {
    display: none;
}

.timeline .footer {
    text-align: center;
    line-height: 0;
    color: #FFD400;    
    text-shadow: 0 -2px white;
}

@media (max-width: 767px) {
    ul.timeline:before {
        left: 26px;
    }

    ul.timeline > li > .timeline-panel {
        width: calc(100% - 25px);
        width: -moz-calc(100% - 25px);
        width: -webkit-calc(100% - 25px);
    }

    .timeline .timeline-badge {
        float: left;
        margin-left: -25px;
    }

    ul.timeline > li > .timeline-panel {
        float: right;
    }

        ul.timeline > li > .timeline-panel:before {
            border-left-width: 0;
            border-right-width: 15px;
            left: -15px;
            right: auto;
        }

        ul.timeline > li > .timeline-panel:after {
            border-left-width: 0;
            border-right-width: 14px;
            left: -14px;
            right: auto;
        }

    .timeline h4 {
        text-align: left;
    }

    .timeline-panel {
        text-align: left;
    }

    .timeline .timeline-year {
        text-align: left !important;
    }

    .timeline .timeline-year .notPlus {
        width: 0;
    }

    .timeline .footer {
        text-align: left;
        margin-left: 19px;   
    }
}