* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    background-color: #ffffff;
    font-family: "Open Sans", sans-serif;
    color: #525f7f;
}

h2 {
    margin: 5%;
    text-align: center;
    font-size: 2rem;
    font-weight: 100;
}

.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: fit-content;
}

.timeline__event--type1 img {
    border-radius: 0 10px 10px 0;
}

.timeline__event--type2 img {
    border-radius: 10px 0 0 10px;
}

.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__title {
    font-size: 1.2rem;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 600;
    color: #1A2D6D;
    letter-spacing: 1.5px;
}

.timeline__event__content {
    padding: 20px;
    /* box-shadow: 0 10px 10px 0px rgba(50, 50, 93, 0.25); */
    background-color: #fff;
    width: fit-content;
    border-radius: 0 6px 6px 0;
}

.timeline__event__content .timeline__event__description p {
    text-align: center;
    align-items: center;
}

.timeline__event__date {
    color: #f6a4ec;
    font-size: 1.5rem;
    font-weight: 600;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    /* padding: 0 20px; */
    border-radius: 6px 0 0 6px;
}

.timeline__event__description {
    flex-basis: 60%;
    align-items: center;
    margin: auto;
}

.timeline__event--type2 .timeline__event__date {
    color: #87bbfe;
    /* background: #555ac0; */
}

.timeline__event--type2 .timeline__event__icon:before,
.timeline__event--type2 .timeline__event__icon:after {
    background: #87bbfe;
}

.timeline__event--type2 .timeline__event__title {
    color: #1A2D6D;
}



.timeline__event--type3 .timeline__event__title {
    color: #1A2D6D;
}

.timeline__event:last-child .timeline__event__icon:before {
    content: none;
}

@media (max-width: 920px) {
    .timeline__event {
        flex-direction: column;
        align-self: center;
        box-shadow: 0 30px 30px 0px 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);
    }

    .timeline__event__date img {
        border-radius: 10px 10px 10px 10px;
    }

    .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%;
    }
}