.timeline-controls, .timeline-controls *,
.timeline, .timeline *,
.timeline *:after, .timeline *:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.timeline-controls {
    text-align: right;
    padding-right: 20px;
}

.timeline-controls > div {
    position: relative;
    display: inline-block;
    border: 1px solid #52cce4;
    color: #52cce4;
    text-shadow: 0 0 #52cce4;
    cursor: pointer;
    padding: 5px 15px 5px 15px;
    margin-right: 10px;
    z-index: 1;
    background: white;
}

.timeline {
    z-index: 0;
    margin-top: -28px;
}

.timeline.no-controls {
    margin-top: 0;
}

.timeline .end-of-timeline {
    text-align: center;
}

.timeline .busy-loading {
    text-align: center;
}

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

.timeline .buttons > div {
    float: none;
    display: inline-block;
}

@media screen and (max-width: 700px) {
    .timeline .buttons > div {
        float: none;
        display: block;
    }
}

.timeline-container {
    /* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
    width: 90%;
    max-width: 1170px;
    margin: 0 auto;
}

.timeline-container::after {
    /* clearfix */
    content: '';
    display: table;
    clear: both;
}

.timeline-container {
    position: relative;
    padding: 24px 0;
    margin-top: 24px;
    margin-bottom: 24px;
}

.timeline-container::before {
    /* this is the vertical line */
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 1px;
    background: #AAAAAA;
}

@media only screen and (min-width: 1170px) {
    .timeline-left-right .timeline-container {
        margin-top: 36px;
        margin-bottom: 36px;
    }

    .timeline-left-right .timeline-container::before {
        left: 50%;
        margin-left: 0;
    }
}

.timeline-block-header {
    font-size: 20px;
    padding-left: 60px;
}

.timeline-block-header::before {
    content: '';
    position: relative;
    top: 16px;
    left: -40px;
    height: 1px;
    width: 30px;
    background: #AAAAAA;
    display: block;
}

.timeline-block {
    position: relative;
    margin: 24px 0;
}

.timeline-block::after {
    clear: both;
    content: "";
    display: table;
}

.timeline-group:last-child .timeline-block {
    margin-bottom: 0;
}

@media only screen and (min-width: 1170px) {
    .timeline-left-right .timeline-block {
        margin: 48px 0;
    }

    .timeline-left-right .timeline-block:first-child {
        margin-top: 0;
    }

    .timeline-left-right .timeline-block:last-child {
        margin-bottom: 0;
    }
}

.timeline-time {
    background-color: #E5E5E5;
    font-family: 'Lato-Light', sans-serif;
    font-size: 12px;
    padding: 3px 0 6px;
    position: absolute;
    text-align: center;
    top: 46px;
    width: 40px;
}

.timeline-time.no-time {
    display: none;
}

.timeline-icon {
    position: absolute;
    background: #ffffff;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.timeline-icon.font-awesome {
    background-color: #DFF9FF;
    color: #00BBE3;
    text-align: center;
    line-height: 40px;
    font-size: 18px;
}

@media only screen and (min-width: 1170px) {
    .timeline-left-right .timeline-icon {
        width: 60px;
        height: 60px;
        left: 50%;
        margin-left: -30px;
        margin-top: -30px;
        /* Force Hardware Acceleration in WebKit */
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
    }

    .timeline-left-right .timeline-icon.font-awesome {
        line-height: 60px;
        font-size: 24px;
    }

    .timeline-left-right .timeline-time {
        left: 50%;
        margin-left: -20px;
    }

    .timeline-left-right.cssanimations .timeline-icon.is-hidden {
        visibility: hidden;
    }

    .timeline-left-right.cssanimations .timeline-icon.bounce-in {
        visibility: visible;
        -webkit-animation: timeline-bounce-1 0.6s;
        -moz-animation: timeline-bounce-1 0.6s;
        animation: timeline-bounce-1 0.6s;
    }
}

@-webkit-keyframes timeline-bounce-1 {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.5);
    }
    60% {
        opacity: 1;
        -webkit-transform: scale(1.2);
    }
    100% {
        -webkit-transform: scale(1);
    }
}

@-moz-keyframes timeline-bounce-1 {
    0% {
        opacity: 0;
        -moz-transform: scale(0.5);
    }
    60% {
        opacity: 1;
        -moz-transform: scale(1.2);
    }
    100% {
        -moz-transform: scale(1);
    }
}

@keyframes timeline-bounce-1 {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.5);
        -moz-transform: scale(0.5);
        -ms-transform: scale(0.5);
        -o-transform: scale(0.5);
        transform: scale(0.5);
    }
    60% {
        opacity: 1;
        -webkit-transform: scale(1.2);
        -moz-transform: scale(1.2);
        -ms-transform: scale(1.2);
        -o-transform: scale(1.2);
        transform: scale(1.2);
    }
    100% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
}

.timeline-content {
    position: relative;
    font-family: 'Lato-Light', sans-serif;
    margin-left: 60px;
    border-radius: 5px;
    padding: 10px 20px 10px 20px;
    background: #F7F7F7;
    border: none;
    box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.2);
}

.timeline-block.highlight .timeline-content {
    background: #B9F1FF;
    box-shadow: 0px 0px 25px 2px rgba(0, 0, 0, 0.2);
}

.timeline-content::after {
    clear: both;
    content: "";
    display: table;
}

.timeline-content > .timeline-content-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.timeline-content > .timeline-content-header > .title {
    font-family: 'Lato-Regular', sans-serif;
    font-size: 16px;
}

.timeline-content > .timeline-content-header > .title .title-text {
    display: inline-block;
}

.timeline-content > .timeline-content-header > .title .sub-title {
    font-size: 12px;
    font-family: Lato Light, sans-serif;
}

.timeline-content > .timeline-content-header > .title .sub-title:before {
    content: '•';
    margin-right: 3px;
    margin-left: 3px;
}

.timeline-content > .timeline-content-header > .toggle {
    width: 25px;
    height: 25px;
    background: url(../icons-yellow/circle-open.svg) no-repeat center;
}

.timeline-content > .timeline-content-header > .toggle:hover,
.timeline-content > .timeline-content-header > .toggle:focus {
    background: url(../icons-yellow/circle-open-hover.svg) no-repeat center;
}

.timeline-content > .timeline-content-header > .toggle.expanded {
    width: 25px;
    height: 25px;
    background: url(../icons-yellow/circle-close.svg) no-repeat center;
}

.timeline-content > .timeline-content-header > .toggle.expanded:hover,
.timeline-content > .timeline-content-header > .toggle.expanded:focus {
    background: url(../icons-yellow/circle-close-hover.svg) no-repeat center;
}

.timeline-content > .timeline-content-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.timeline-content > .timeline-content-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid lightgrey;
    margin-top: 10px;
    padding-top: 5px;
}

.timeline-content > .timeline-content-footer > .items {
    display: flex;
    flex-wrap: wrap;
}

.timeline-content > .timeline-content-footer > .items > .item {
    padding: 0 5px 0 5px;
    border-left: 1px solid lightgrey;
    color: slategrey;
}

.timeline-content > .timeline-content-footer > .items > .item:first-child {
    padding: 0 5px 0 0;
    border-left: 0;
}

.timeline-content > .timeline-content-footer > .items > .item:last-child {
    padding: 0 0 0 5px;
}

.timeline-content > .timeline-content-footer > .read-more {
    flex-grow: 2;
    text-align: right;
}

.timeline-content > .timeline-content-footer > .read-more > a {
    cursor: pointer;
    text-decoration: underline;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 14px;
    right: calc(100% - 5px);
    height: 0;
    width: 0;
    border: 5px solid #F7F7F7;
    box-shadow: 1px 0px 2px 1px rgba(0, 0, 0, 0.2);
    transform: rotate(45deg);
}

.timeline-block.highlight .timeline-content::before {
    top: 15px;
    right: 100%;
    border: 8px solid transparent;
    border-right-color: #B9F1FF;
    box-shadow: none;
    transform: none;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 10px;
    right: calc(100% - 20px);
    height: 0;
    width: 0;
    border: 10px solid #F7F7F7;
}

.timeline-block.highlight .timeline-content::after {
    display: none;
}

@media only screen and (max-width: 600px) {

    .timeline-content > .timeline-content-header {
        flex-direction: column-reverse;
    }

    .timeline-content > .timeline-content-header > .toggle,
    .timeline-content > .timeline-content-header > .toggle.expanded {
        display: none;
    }

    .timeline-content > .timeline-content-footer {
        flex-direction: column;
    }

    .timeline-content > .timeline-content-footer > .items {
        flex-direction: column;
    }

    .timeline-content > .timeline-content-footer > .items > .item,
    .timeline-content > .timeline-content-footer > .items > .item:first-child,
    .timeline-content > .timeline-content-footer > .items > .item:last-child {
        border-left: 0;
        padding: 0;
    }
}

@media only screen and (min-width: 1170px) {

    .timeline-left-right .timeline-content {
        top: -25px;
        margin-left: 0;
        padding: 1.6em;
        width: calc(50% - 75px);
    }

    .timeline-left-right .timeline-content::before {
        top: 24px;
        left: calc(100% - 5px);
    }

    .timeline-left-right .timeline-block.highlight .timeline-content::before {
        top: 23px;
        left: 100%;
        border-color: transparent;
        border-left-color: #feb51a;
    }

    .timeline-left-right .timeline-content::after {
        top: 20px;
        left: calc(100% - 20px);
    }

    .timeline-left-right .timeline-block.highlight .timeline-content::after {
        display: none;
        top: 25px;
        border-color: transparent;
        border-left-color: #feb51a;
    }

    .timeline-left-right .timeline-block:nth-child(even) .timeline-content {
        float: right;
    }

    .timeline-left-right .timeline-block:nth-child(even) .timeline-content::before {
        top: 24px;
        left: auto;
        right: calc(100% - 5px);
    }

    .timeline-left-right .timeline-block.highlight:nth-child(even) .timeline-content::before {
        top: 23px;
        right: 100%;
        border-color: transparent;
        border-right-color: #fdf12d;
    }

    .timeline-left-right .timeline-block:nth-child(even) .timeline-content::after {
        top: 20px;
        left: auto;
        right: calc(100% - 20px);
    }

    .timeline-left-right .timeline-block.highlight:nth-child(even) .timeline-content::after {
        display: none;
        top: 25px;
        border-color: transparent;
        border-right-color: #fdf12d;
    }

    .timeline-left-right .cssanimations .timeline-content.is-hidden {
        visibility: hidden;
    }

    .timeline-left-right .cssanimations .timeline-content.bounce-in {
        visibility: visible;
        -webkit-animation: timeline-bounce-2 0.6s;
        -moz-animation: timeline-bounce-2 0.6s;
        animation: timeline-bounce-2 0.6s;
    }
}

@media only screen and (min-width: 1170px) {
    /* inverse bounce effect on even content blocks */
    .timeline-left-right.cssanimations .timeline-block:nth-child(even) .timeline-content.bounce-in {
        -webkit-animation: timeline-bounce-2-inverse 0.6s;
        -moz-animation: timeline-bounce-2-inverse 0.6s;
        animation: timeline-bounce-2-inverse 0.6s;
    }
}

@-webkit-keyframes timeline-bounce-2 {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-100px);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateX(20px);
    }
    100% {
        -webkit-transform: translateX(0);
    }
}

@-moz-keyframes timeline-bounce-2 {
    0% {
        opacity: 0;
        -moz-transform: translateX(-100px);
    }
    60% {
        opacity: 1;
        -moz-transform: translateX(20px);
    }
    100% {
        -moz-transform: translateX(0);
    }
}

@keyframes timeline-bounce-2 {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-100px);
        -moz-transform: translateX(-100px);
        -ms-transform: translateX(-100px);
        -o-transform: translateX(-100px);
        transform: translateX(-100px);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateX(20px);
        -moz-transform: translateX(20px);
        -ms-transform: translateX(20px);
        -o-transform: translateX(20px);
        transform: translateX(20px);
    }
    100% {
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
    }
}

@-webkit-keyframes timeline-bounce-2-inverse {
    0% {
        opacity: 0;
        -webkit-transform: translateX(100px);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateX(-20px);
    }
    100% {
        -webkit-transform: translateX(0);
    }
}

@-moz-keyframes timeline-bounce-2-inverse {
    0% {
        opacity: 0;
        -moz-transform: translateX(100px);
    }
    60% {
        opacity: 1;
        -moz-transform: translateX(-20px);
    }
    100% {
        -moz-transform: translateX(0);
    }
}

@keyframes timeline-bounce-2-inverse {
    0% {
        opacity: 0;
        -webkit-transform: translateX(100px);
        -moz-transform: translateX(100px);
        -ms-transform: translateX(100px);
        -o-transform: translateX(100px);
        transform: translateX(100px);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateX(-20px);
        -moz-transform: translateX(-20px);
        -ms-transform: translateX(-20px);
        -o-transform: translateX(-20px);
        transform: translateX(-20px);
    }
    100% {
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
    }
}
