.hover-pan-bottom {
    transition: transform .1s linear;
}

.hover-pan-bottom:hover {
    transform: translateY(10%);
}

.hover-pan-top {
    transition: transform .1s linear;
}

.hover-pan-top:hover {
    transform: translateY(-10%);
}

#timelineSection {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}

#timelineDiv {
    height: 15rem;
}

.timeline-item {
    flex: 1;
}

.timeline-x-line {
    background-color: #d1defa;
    flex: 1;
    height: .2rem;
}

.timeline-dot-container {
    height: 0;
    position: relative;
}

.timeline-dot {
    background-color: #3f51b5;
    border-radius: 50%;
    height: 1.5rem;
    position: absolute;
    transform: translate(-50%, -50%);
    width: 1.5rem;
}

.timeline-top {
    transform: translate(-50%, -100%);
}

.timeline-bottom {
    transform: translateX(-50%);
}

.timeline-content {
    position: absolute;
}

.timeline-year {
    background-color: #fadee0;
    border-radius: 1.5rem;
    box-shadow: 0 .5rem .5rem #a9a9a961;
    color: #dd242e;
    cursor: pointer;
    padding: 10px 23px 10px 34px;
    white-space: nowrap;
    border: 1px solid #dd242e;
    font-weight: 600;
    position: relative;
    line-height: 1;
    z-index: 2;
}

.timeline-year::before {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    content: "";
    top: 50%;
    transform: translateY(-50%);
    left: 23px;
    background-color: #dd242e;
}

.emphasize .timeline-year {
    background-color: #dd242e;
    color: #fff;    
}

.emphasize .timeline-year::before {
    background-color: #fff;
}

.timeline-y-line {
    border-left: .2rem dotted #3f51b5;
    height: 3rem;
    margin-left: auto;
    margin-right: auto;
    width: 0;
}

.timeline-popover-container {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    width: 0;
}

.timeline-popover {
    background-color: #D1DEFA;
    border-radius: 20px;
    padding: 20px;
    opacity: 0;
    position: absolute;
    transition: opacity .2s linear;
    width: 20rem;
}

.timeline-popover > h4 {
    background-color: #fff;
    border-radius: 10px;
    color: #2C359A;
    font-weight: bolder;
    font-size: 1rem;
    margin: 0;
    padding: .85rem .5rem;
    text-align: center;
    text-transform: capitalize;
}

.timeline-popover > p {
    line-height: normal;
    margin: 0;
    padding: 1rem .5rem;
    color: #000;
    text-align: center;
    font-size: 16px;
}

.timeline-mobile-x-line {
    display: none;
}

.timeline-mobile-y-line {
    display: none;
}

@media (min-width: 0) and (max-width: 992px) {
    #timelineDiv {
        flex-direction: column;
        height: auto;
        margin-top: 3rem;
        transform: translateX(-18rem);
    }

    .timeline-mobile-x-line {
        display: block;
    }

    .timeline-mobile-y-line {
        background-color: #d1defa;
        display: block;
        height: 13rem;
        width: .2rem;
    }

    .timeline-x-line {
        display: none;
    }

    .timeline-content {
        display: flex;
        flex-direction: row;
    }

    .timeline-y-line {
        display: none;
    }

    .timeline-top {
        transform: translate(-50%, -50%);
    }

    .timeline-bottom {
        transform: translate(-50%, -50%);
    }

    .timeline-popover-container {
        margin: 0 !important;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-popover {
        margin-left: 15rem;
        opacity: 1 !important;
        transform: translateY(-50%);
        width: 29rem;
    }

    .timeline-popover-container {
        position: absolute;
        top: 50%;
    }

    .timeline-year {
        text-align: center;
        width: 165px;
    }

    .timeline-mobile-x-line {
        border: 1px dashed #3f51b5;
        height: 0;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateX(100%);
        width: 10rem;
        z-index: -1;
    }

    .timeline-x-line:first-child + .timeline-mobile-y-line,
    .timeline-mobile-y-line:last-of-type  {
        height: 5rem;
    }
}

@media (min-width: 0) and (max-width: 768px) {
    #timelineSection {
        margin-bottom: 1rem;
    }

    #timelineDiv {
        transform: translateX(-13rem);
    }

    .timeline-popover {
        margin-left: 12rem;
    }

    .timeline-popover {
        width: 22rem;
    }

    .timeline-mobile-y-line {
        height: 14.5rem;
    }

    .timeline-popover > p,
    .timeline-year {
        font-size: 14px;
    }

    .timeline-popover > h4 {
        font-size: 15px;
        padding: 0.5rem;
    }

    .timeline-year {
        width: 149px;
    }
}

@media (min-width: 0) and (max-width: 600px) {
    .timeline-popover {
        width: 18rem;
        margin-left: 11rem;
        padding: 14px;
    }

    #timelineDiv {
        margin-top: 0;
        transform: scale(.95) translateX(-10rem);
    }

    .timeline-mobile-y-line {
        height: 13rem;
    }
}

@media (min-width: 0) and (max-width: 500px) {
    .timeline-popover {
        width: 14rem;
        margin-left: 9rem;
        padding: 14px;
    }

    #timelineDiv {
        margin-top: 0;
        transform: scale(.95) translateX(-8rem);
    }

    .timeline-mobile-y-line {
        height: 12rem;
    }

    .timeline-year {
        width: 126px;
        padding: 10px 23px 10px 20px;
    }

    .timeline-year::before {
        left: 10px;
    }

    .timeline-popover > p {
        font-size: 13px;
        padding: 10px 5px;
    }
}