.timeline {
    position: relative;
    padding: 1em 0;
    margin-top: 2em;
    margin-bottom: 2em;
    }
.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 4px;
    background: var(--alternate-background);
    }
.timeline > .timeline-start,
.timeline > .timeline-end {
    position: absolute;
    display: block;
    background: var(--alternate-background);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    top: -8px;
    left: 14px;
    }
.timeline > .timeline-end {
    top: auto;
    bottom: -8px;
    border-radius: 3px;
    }
.timeline > .timeline-event {
    margin: 2em 0;
    margin-left: 60px;
    }
.timeline > .timeline-event > .timeline-date {
    position: absolute;
    left: 20px;
    margin-top: 20px;
    }
.timeline > .timeline-event > .timeline-date > .timeline-date-dot {
    background-color: var(--link-color);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: block;
    position: relative;
    margin-left: -6px;
    margin-top: 2px;
    opacity: 0;
    }
.timeline > .timeline-event > .timeline-date > .timeline-date-year {
    position: absolute;
    top: 30px;
    color: var(--link-color);
    margin: 0;
    margin-left: -18px;
    opacity: 0;
    }
.timeline > .timeline-event > .timeline-event-description {
    background: var(--alternate-background);
    border-radius: 3px;
    padding: 20px;
    position: relative;
    }
.timeline > .timeline-event > .timeline-event-description p:last-child {
    margin: 0;
    }
.timeline > .timeline-event > .timeline-event-description:after {
    position: absolute;
    top: 20px;
    left: -10px;
    content: '';
    width: 10px;
    height: 10px;
    border-right: 10px solid var(--alternate-background);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    }
.timeline > .timeline-event.is-hidden > .timeline-date {
    visibility: hidden;
    }
.timeline > .timeline-event.is-hidden > .timeline-event-description {
    visibility: hidden;
    }
.timeline > .timeline-event.animate-bounce-in .timeline-date-dot {
    animation: timelineDot .6s forwards;
    }
.timeline > .timeline-event.animate-bounce-in .timeline-date-year {
    animation: timelineDate .6s forwards;
    }
.timeline > .timeline-event.animate-bounce-in .timeline-event-description {
    animation: timelineBubble .6s forwards;
    }
@media only screen and (min-width: 1170px) {
.timeline:before {
    left: 50%;
    margin-left: -2px;
    }
.timeline > .timeline-start,
.timeline > .timeline-end {
    left: 50%;
    margin-left: -8px;
    }
.timeline > .timeline-event {
    width: calc(50% - 2rem);
    margin-left: 0;
    }
.timeline > .timeline-event > .timeline-date {
    left: 50%;
    margin-left: -2px;
    }
.timeline > .timeline-event > .timeline-date > .timeline-date-year {
    top: 0;
    right: 30px;
    }
.timeline > .timeline-event > .timeline-event-description {
    padding: 40px;
    }
.timeline > .timeline-event:nth-child(even) {
    margin-left: 50%;
    }
.timeline > .timeline-event:nth-child(even) .timeline-event-description {
    margin-left: 2rem;
    }
.timeline > .timeline-event:nth-child(odd) > .timeline-date > .timeline-date-year {
    right: auto;
    left: 40px;
    }
.timeline > .timeline-event:nth-child(odd) > .timeline-event-description:after {
    left: auto;
    right: -10px;
    border-right: 0;
    border-left: 10px solid var(--alternate-background);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    }
.timeline > .timeline-event:nth-child(odd).animate-bounce-in > .timeline-event-description {
    animation: timelineBubbleLeft .6s;
    }
}

@keyframes timelineDot {
0% {
    opacity: 0;
    transform: scale(.5) translateY(-50px);
    }
60% {
    opacity: 1;
    transform: scale(1.4);
    }
100% {
    transform: scale(1) translateY(0);
    opacity: 1;
    }
}

@keyframes timelineDate {
0% {
    opacity: 0;
    transform: scale(.5) translateY(-50px);
    }
100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    }
}

@keyframes timelineBubble {
0% {
    opacity: 0;
    left: 40px;
    }
60% {
    opacity: 1;
    left: -10px;
    }
100% {
    left: 0;
    }
}

@keyframes timelineBubbleLeft {
0% {
    opacity: 0;
    left: -40px;
    }
60% {
    opacity: 1;
    left: 10px;
    }
100% {
    left: 0;
    }
}
