/* TIMELINE CSS */
#experience {
    text-align: center;
    padding: 100px 20px;
}

.timeline {
    position: relative;
    max-width: 70%;
    margin: auto auto;
}

/*vertical line*/
.timeline::after {
    content: "";
    position: absolute;
    width: 5px;
    background-color: #937DAF;
    top: 49px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 3;

    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}


.timeline-marker {
    position: absolute;
    left: 50%;
    top: 25px;
    width: 16px;
    height: 16px;
    background: white;
    border: 4px solid #937DAF;
    border-radius: 50%;
    transform: translate(-50%);
    z-index: 2;
}

.content {
    width: 45%;
    position: relative;
}

.left {
    justify-content: flex-end;
    text-align: left;
}

.right {
    justify-content: flex-start;
    text-align: right;
}


/*company title*/
.content h2 {
    font-family: "Ubuntu", serif;
    font-style: bold;
    font-size: 2em;
    color: black;
}
/*role*/
.content h3 {
    font-family: "Ubuntu", serif;
    font-size: 1.5em;
    font-weight: 400;
    color: #565656;
}

/*dates*/
.content h4 {
    font-family: "Montserrat", sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.25em;
    color: #715A8D;
}


/*description*/
.content p {
    font-family: "Poppins", sans-serif;
    font-style: regular;
    font-weight: 300;
    font-size: 0.8em;
}


/* MOBILE RESPONSIVENESS */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 25px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .content {
        width: 90%;
        text-align: center;
    }

    .timeline-marker {
        left: 12px !important;
    }

    .left .content::before,
    .right .content::before {
        left: 50%;
        transform: translateX(-50%);
    }
}
