.timeline {
    display: flex;
    flex-direction: column;
    margin: 20px auto;
    position: relative;
}

.timeline__event {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    margin: 20px 0;
    border-radius: 6px;
    align-self: center;
    width: 40vw;
}

.timeline__event:nth-child(2n+1) {
    flex-direction: row-reverse;
}

.timeline__event:nth-child(2n+1) .timeline__event__date {
    border-radius: 0 6px 6px 0;
}

.timeline__event:nth-child(2n+1) .timeline__event__content {
    border-radius: 6px 0 0 6px;
}

.timeline__event:nth-child(2n+1) .timeline__event__icon:before {
    content: "";
    width: 2px;
    height: 100%;
    background: #f6a4ec;
    position: absolute;
    top: 0%;
    left: 50%;
    right: auto;
    z-index: -1;
    transform: translateX(-50%);
    -webkit-animation: fillTop 2s forwards 4s ease-in-out;
    animation: fillTop 2s forwards 4s ease-in-out;
}

.timeline__event:nth-child(2n+1) .timeline__event__icon:after {
    content: "";
    width: 100%;
    height: 2px;
    background: #f6a4ec;
    position: absolute;
    right: 0;
    z-index: -1;
    top: 50%;
    left: auto;
    transform: translateY(-50%);
    -webkit-animation: fillLeft 2s forwards 4s ease-in-out;
    animation: fillLeft 2s forwards 4s ease-in-out;
}

.timeline__event__title {
    font-size: 1.2rem;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 600;
    color: #9251ac;
    letter-spacing: 1.5px;
}

.timeline__event__content {
    padding: 20px;
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3), 0 -12px 36px -8px rgba(0, 0, 0, 0.025);
    background: #fff;
    width: calc(40vw - 84px);
    border-radius: 0 6px 6px 0;
}

.timeline__event__date {
    color: #f6a4ec;
    font-size: 1.5rem;
    font-weight: 600;
    background: #9251ac;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 7px 7px;
    border-radius: 6px 0 0 6px;
}

.timeline__event__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9251ac;
    padding: 20px;
    align-self: center;
    margin: 0 20px;
    background: #f6a4ec;
    border-radius: 100%;
    width: 0px;
    box-shadow: 0 30px 60px -12px rgb(50 50 93 / 25%), 0 18px 36px -18px rgb(0 0 0 / 30%), 0 -12px 36px -8px rgb(0 0 0 / 3%);
    padding: 20px;
    height: 0px;
    position: relative;
}

.timeline__event__icon i {
    font-size: 32px;
}

.timeline__event__icon:before {
    content: "";
    width: 2px;
    height: 100%;
    background: #f6a4ec;
    position: absolute;
    top: 0%;
    z-index: -1;
    left: 50%;
    transform: translateX(-50%);
    -webkit-animation: fillTop 2s forwards 4s ease-in-out;
    animation: fillTop 2s forwards 4s ease-in-out;
}

.timeline__event__icon:after {
    content: "";
    width: 100%;
    height: 2px;
    background: #f6a4ec;
    position: absolute;
    left: 0%;
    z-index: -1;
    top: 50%;
    transform: translateY(-50%);
    -webkit-animation: fillLeftOdd 2s forwards 4s ease-in-out;
    animation: fillLeftOdd 2s forwards 4s ease-in-out;
}

.timeline__event__description {
    flex-basis: 60%;
}

.timeline__event--type2:after {
    background: #555ac0;
}

.timeline__event--type2 .timeline__event__date {
    color: #87bbfe;
    background: #555ac0;
}

.timeline__event--type2:nth-child(2n+1) .timeline__event__icon:before,
.timeline__event--type2:nth-child(2n+1) .timeline__event__icon:after {
    background: #87bbfe;
}

.timeline__event--type2 .timeline__event__icon {
    background: #87bbfe;
    color: #555ac0;
}

.timeline__event--type2 .timeline__event__icon:before,
.timeline__event--type2 .timeline__event__icon:after {
    background: #87bbfe;
}

.timeline__event--type2 .timeline__event__title {
    color: #555ac0;
}

.timeline__event--type3:after {
    background: #24b47e;
}

.timeline__event--type3 .timeline__event__date {
    color: #aff1b6;
    background-color: #24b47e;
}

.timeline__event--type3:nth-child(2n+1) .timeline__event__icon:before,
.timeline__event--type3:nth-child(2n+1) .timeline__event__icon:after {
    background: #aff1b6;
}

.timeline__event--type3 .timeline__event__icon {
    background: #aff1b6;
    color: #24b47e;
}

.timeline__event--type3 .timeline__event__icon:before,
.timeline__event--type3 .timeline__event__icon:after {
    background: #aff1b6;
}

.timeline__event--type3 .timeline__event__title {
    color: #24b47e;
}

.timeline__event:last-child .timeline__event__icon:before {
    content: none;
}

@media (max-width: 786px) {
    .timeline__event {
        flex-direction: column;
        align-self: center;
    }
    .timeline__event__content {
        width: 100%;
    }
    .timeline__event__icon {
        border-radius: 6px 6px 0 0;
        width: 100%;
        margin: 0;
        box-shadow: none;
    }
    .timeline__event__icon:before,
    .timeline__event__icon:after {
        display: none;
    }
    .timeline__event__date {
        border-radius: 0;
        padding: 20px;
    }
    .timeline__event:nth-child(2n+1) {
        flex-direction: column;
        align-self: center;
    }
    .timeline__event:nth-child(2n+1) .timeline__event__date {
        border-radius: 0;
        padding: 20px;
    }
    .timeline__event:nth-child(2n+1) .timeline__event__icon {
        border-radius: 6px 6px 0 0;
        margin: 0;
    }
}

@-webkit-keyframes fillLeft {
    100% {
        right: 100%;
    }
}

@keyframes fillLeft {
    100% {
        right: 100%;
    }
}

@-webkit-keyframes fillTop {
    100% {
        top: 100%;
    }
}

@keyframes fillTop {
    100% {
        top: 100%;
    }
}

@-webkit-keyframes fillLeftOdd {
    100% {
        left: 100%;
    }
}

@keyframes fillLeftOdd {
    100% {
        left: 100%;
    }
}


/* .................timline.................. */


/*==================================
    TIMELINE
==================================*/


/*-- GENERAL STYLES
------------------------------*/

.timeline {
    line-height: 1.4em;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.timeline h1,
.timeline h2,
.timeline h3,
.timeline h4,
.timeline h5,
.timeline h6 {
    line-height: inherit;
}


/*----- TIMELINE ITEM -----*/

.timeline-item {
    padding-left: 40px;
    position: relative;
}

.timeline-item:last-child {
    padding-bottom: 0;
}


/*----- TIMELINE INFO -----*/

.timeline-info {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
    margin: 0 0 0.5em 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.timeline-item h3 {
    color: #fff;
}

.timeline-item p {
    color: #fff;
}


/*----- TIMELINE MARKER -----*/

.timeline-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 15px;
}

.timeline-marker:before {
    background: #FF6B6B;
    border: 3px solid transparent;
    border-radius: 100%;
    content: "";
    display: block;
    height: 15px;
    position: absolute;
    top: 4px;
    left: 0;
    width: 15px;
    transition: background 0.3s ease-in-out, border 0.3s ease-in-out;
}

.timeline-marker:after {
    content: "";
    width: 3px;
    background: #CCD5DB;
    display: block;
    position: absolute;
    top: 24px;
    bottom: 0;
    left: 6px;
}

.timeline-item:last-child .timeline-marker:after {
    content: none;
}

.timeline-item:not(.period):hover .timeline-marker:before {
    background: transparent;
    border: 3px solid #FF6B6B;
}


/*----- TIMELINE CONTENT -----*/

.timeline-content {
    padding-bottom: 40px;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}


/*----- TIMELINE PERIOD -----*/

.period {
    padding: 0;
}

.period .timeline-info {
    display: none;
}

.period .timeline-marker:before {
    background: transparent;
    content: "";
    width: 15px;
    height: auto;
    border: none;
    border-radius: 0;
    top: 0;
    bottom: 30px;
    position: absolute;
    border-top: 3px solid #CCD5DB;
    border-bottom: 3px solid #CCD5DB;
}

.period .timeline-marker:after {
    content: "";
    height: 32px;
    top: auto;
}

.period .timeline-content {
    padding: 40px 0 70px;
}

.period .timeline-title {
    margin: 0;
}


/*----------------------------------------------
      MOD: TIMELINE SPLIT
  ----------------------------------------------*/

@media (min-width: 768px) {
    .timeline-split .timeline,
    .timeline-centered .timeline {
        display: table;
    }
    .timeline-split .timeline-item,
    .timeline-centered .timeline-item {
        display: table-row;
        padding: 0;
    }
    .timeline-split .timeline-info,
    .timeline-centered .timeline-info,
    .timeline-split .timeline-marker,
    .timeline-centered .timeline-marker,
    .timeline-split .timeline-content,
    .timeline-centered .timeline-content,
    .timeline-split .period .timeline-info {
        display: table-cell;
        vertical-align: top;
    }
    .timeline-split .timeline-marker,
    .timeline-centered .timeline-marker {
        position: relative;
    }
    .timeline-split .timeline-content,
    .timeline-centered .timeline-content {
        padding-left: 30px;
    }
    .timeline-split .timeline-info,
    .timeline-centered .timeline-info {
        padding-right: 30px;
    }
    .timeline-split .period .timeline-title,
    .timeline-centered .period .timeline-title {
        position: relative;
        left: -45px;
    }
}


/*----------------------------------------------
      MOD: TIMELINE CENTERED
  ----------------------------------------------*/

@media (min-width: 992px) {
    .timeline-centered,
    .timeline-centered .timeline-item,
    .timeline-centered .timeline-info,
    .timeline-centered .timeline-marker,
    .timeline-centered .timeline-content {
        display: block;
        margin: 0;
        padding: 0;
    }
    .timeline-centered .timeline-item {
        padding-bottom: 40px;
        overflow: hidden;
    }
    .timeline-centered .timeline-marker {
        position: absolute;
        left: 50%;
        margin-left: -7.5px;
    }
    .timeline-centered .timeline-info,
    .timeline-centered .timeline-content {
        width: 50%;
    }
    .timeline-centered>.timeline-item:nth-child(odd) .timeline-info {
        float: left;
        text-align: right;
        padding-right: 30px;
    }
    .timeline-centered>.timeline-item:nth-child(odd) .timeline-content {
        float: right;
        text-align: left;
        padding-left: 30px;
    }
    .timeline-centered>.timeline-item:nth-child(even) .timeline-info {
        float: right;
        text-align: left;
        padding-left: 30px;
    }
    .timeline-centered>.timeline-item:nth-child(even) .timeline-content {
        float: left;
        text-align: right;
        padding-right: 30px;
    }
    .timeline-centered>.timeline-item.period .timeline-content {
        float: none;
        padding: 0;
        width: 100%;
        text-align: center;
    }
    .timeline-centered .timeline-item.period {
        padding: 50px 0 90px;
    }
    .timeline-centered .period .timeline-marker:after {
        height: 30px;
        bottom: 0;
        top: auto;
    }
    .timeline-centered .period .timeline-title {
        left: auto;
    }
}


/*----------------------------------------------
      MOD: MARKER OUTLINE
  ----------------------------------------------*/

.marker-outline .timeline-marker:before {
    background: transparent;
    border-color: #FF6B6B;
}

.marker-outline .timeline-item:hover .timeline-marker:before {
    background: #FF6B6B;
}


/*----- TIMELINE MARKER 3 -----*/

ol.time-line-inner {
    margin: 0;
    list-style: none;
    padding: 0;
    --hue: 1;
    --unit: 1rem;
    display: flex;
}

.event-date {
    margin: 12px 0 12px 0.25rem;
    font-weight: bold;
    font-size: 30px;
    color: #fff;
}

.timeline-img {
    float: left;
    width: 35%;
    margin-right: 25px;
}

.event-description {
    margin: 0;
    color: #fff;
}

ol.time-line-inner li {
    --height: 7rem;
    position: relative;
    display: block;
    background-color: hsl(216, 60%, 36%);
    border-color: hsl(216, 60%, 36%);
    padding: 1rem;
    margin: 2rem 0;
    box-shadow: 0px 0px 31px #222;
}

@media (max-width: 1080px) {
    .scrollmenu {
        width: 100%;
        overflow-x: inherit;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        min-height: auto;
    }
}

@media (max-width: 600px) {
    ol.time-line-inner li {
        width: 100%;
    }
    ol.time-line-inner li:hover {
        box-shadow: none;
    }
    ol.time-line-inner li::before {
        content: "";
        background-color: #ffffff;
        position: absolute;
        display: block;
        width: var(--unit);
        height: var(--unit);
        top: 100%;
        left: calc(50% - (var(--unit)/2));
    }
    ol.time-line-inner li::after {
        content: "";
        position: absolute;
        display: block;
        top: calc(100% + var(--unit));
        left: calc(50% - (var(--unit)));
        border: var(--unit) solid transparent;
        border-top-color: #ffffff;
    }
}

ol.time-line-inner li:last-child::before,
ol.time-line-inner li:last-child::after {
    content: none;
}

ol.time-line-inner ol.time-line-inner li:nth-child(20n+1) {
    --hue: 1;
}

ol.time-line-inner li:nth-child(20n+2) {
    --hue: 2;
}

ol.time-line-inner li:nth-child(20n+3) {
    --hue: 3;
}

ol.time-line-inner li:nth-child(20n+4) {
    --hue: 4;
}

ol.time-line-inner li:nth-child(20n+5) {
    --hue: 5;
}

ol.time-line-inner li:nth-child(20n+6) {
    --hue: 6;
}

ol.time-line-inner li:nth-child(20n+7) {
    --hue: 7;
}

ol.time-line-inner li:nth-child(20n+8) {
    --hue: 8;
}

ol.time-line-inner li:nth-child(20n+9) {
    --hue: 9;
}

ol.time-line-inner li:nth-child(20n+10) {
    --hue: 10;
}

ol.time-line-inner li:nth-child(20n+11) {
    --hue: 11;
}

ol.time-line-inner li:nth-child(20n+12) {
    --hue: 12;
}

ol.time-line-inner li:nth-child(20n+13) {
    --hue: 13;
}

ol.time-line-inner li:nth-child(20n+14) {
    --hue: 14;
}

ol.time-line-inner li:nth-child(20n+15) {
    --hue: 15;
}

ol.time-line-inner li:nth-child(20n+16) {
    --hue: 16;
}

ol.time-line-inner li:nth-child(20n+17) {
    --hue: 17;
}

ol.time-line-inner li:nth-child(20n+18) {
    --hue: 18;
}

ol.time-line-inner li:nth-child(20n+19) {
    --hue: 19;
}

ol.time-line-inner li:nth-child(20n+20) {
    --hue: 20;
}

@media (min-width: 550px) and (max-width: 899px) {
    ol.time-line-inner li {
        margin: 1rem;
        width: 100%;
        float: left;
        min-height: var(--height);
    }
    ol.time-line-inner li:nth-child(4n+3),
    ol.time-line-inner li:nth-child(4n+4) {
        float: right;
    }
    ol.time-line-inner li:nth-child(4n+1)::before {
        top: calc(var(--height)/2 + var(--unit)/2);
        left: 100%;
    }
    ol.time-line-inner li:nth-child(4n+1)::after {
        top: calc(var(--height)/2);
        left: calc(100% + (var(--unit)));
        border: var(--unit) solid transparent;
        border-left-color: inherit;
    }
    ol.time-line-inner li:nth-child(4n+3)::before {
        top: calc(var(--height)/2 + var(--unit)/2);
        left: -1rem;
    }
    ol.time-line-inner li:nth-child(4n+3)::after {
        top: calc(var(--height)/2);
        left: -3rem;
        border: var(--unit) solid transparent;
        border-right-color: inherit;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    ol.time-line-inner li {
        margin: 1rem;
        width: calc(33.33% - 4rem);
        float: left;
        min-height: 7rem;
    }
    ol.time-line-inner li:nth-child(6n+4),
    ol.time-line-inner li:nth-child(6n+5),
    ol.time-line-inner li:nth-child(6n+6) {
        float: right;
    }
    ol.time-line-inner li:nth-child(6n+1)::before,
    ol.time-line-inner li:nth-child(6n+2)::before {
        top: calc(var(--height)/2 + var(--unit)/2);
        left: 100%;
    }
    ol.time-line-inner li:nth-child(6n+1)::after,
    ol.time-line-inner li:nth-child(6n+2)::after {
        top: 3.5rem;
        left: calc(100% + (var(--unit)));
        border: var(--unit) solid transparent;
        border-left-color: inherit;
    }
    ol.time-line-inner li:nth-child(6n+4)::before,
    ol.time-line-inner li:nth-child(6n+5)::before {
        top: calc(var(--height)/2 + var(--unit)/2);
        left: -1rem;
    }
    ol.time-line-inner li:nth-child(6n+4)::after,
    ol.time-line-inner li:nth-child(6n+5)::after {
        top: calc(var(--height)/2);
        left: -3rem;
        border: var(--unit) solid transparent;
        border-right-color: inherit;
    }
}

@media (min-width: 1200px) {
    ol.time-line-inner {
        max-width: 1600px;
        margin: 0 auto;
    }
    ol.time-line-inner li {
        width: calc(25% - 4rem);
        float: left;
        min-height: 100px;
        flex: 0 0 15%;
        height: 125px;
    }
    ol.time-line-inner li:nth-child(8n+5),
    ol.time-line-inner li:nth-child(8n+6),
    ol.time-line-inner li:nth-child(8n+7),
    ol.time-line-inner li:nth-child(8n+8) {
        float: right;
    }
    ol.time-line-inner li:nth-child(8n+1)::before,
    ol.time-line-inner li:nth-child(8n+2)::before,
    ol.time-line-inner li:nth-child(8n+3)::before {
        top: calc(var(--height)/2 + var(--unit)/2);
        left: 100%;
        background: #ffffff;
    }
    ol.time-line-inner li:nth-child(8n+1)::after,
    ol.time-line-inner li:nth-child(8n+2)::after,
    ol.time-line-inner li:nth-child(8n+3)::after {
        top: calc(var(--height)/2);
        left: calc(100% + (var(--unit)));
        border: var(--unit) solid transparent;
        border-left-color: #ffffff;
        ;
    }
    ol.time-line-inner li:nth-child(8n+5)::before,
    ol.time-line-inner li:nth-child(8n+6)::before,
    ol.time-line-inner li:nth-child(8n+7)::before {
        top: calc(var(--height)/2 + var(--unit)/2);
        left: -1rem;
    }
    ol.time-line-inner li:nth-child(8n+5)::after,
    ol.time-line-inner li:nth-child(8n+6)::after,
    ol.time-line-inner li:nth-child(8n+7)::after {
        top: calc(var(--height)/2);
        left: -3rem;
        border: var(--unit) solid transparent;
        border-right-color: #ffffff;
    }
}