/* Vertical timeline */
.roadmap-extra {
    width: 5px; 
    height: 100px; 
    background-color: white;
}

.timeline-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline {
    width: 80%;
    height: auto;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline ul {
    list-style: none;
}
.timeline ul li {
    padding: 20px;
    background-color: #1f242e;
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
}
.timeline ul li:last-child {
    margin-bottom: 0;
}


.timeline:before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 100%;
    background-color: #ffffff;
}
.timeline ul li {
    width: 50%;
    position: relative;
    margin-bottom: 50px;
}
.timeline ul li:nth-child(odd) {
    float: left;
    clear: right;
    transform: translateX(-90px);
    border-radius: 20px 0px 20px 20px;
}
.timeline ul li:nth-child(even) {
    float: right;
    clear: left;
    transform: translateX(50px);
    border-radius: 0px 20px 20px 20px;
}
.timeline ul li::before {
    content: "";
    position: absolute;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background-color: #ffffff;
    top: 0px;
}
.timeline ul li:nth-child(odd)::before {
    transform: translate(50%, -50%);
    right: -30px;
}
.timeline ul li:nth-child(even)::before {
    transform: translate(-50%, -50%);
    left: -30px;

    &:hover {
        transform: scale(1.05);
        transition: all ease 0.5s;
    }
}
.timeline ul li:hover::before {
    background-color: rgb(118, 107, 255);
    transition: all ease 0.5s;
}

@media(max-width: 768px) {
    .space-extra {
        height: 25px;
    }
    .roadmap-extra {
        width: 0px;
    }
    .timeline:before {
        left: -30px;
        height: 101%;
    }
    .timeline ul li:nth-child(even)::before {
        left: -70px;
    }
    .timeline ul li:nth-child(odd)::before {
        left: -100px;
    }
    .timeline ul li:nth-child(even) {
        float: none;
        transform: none;
        border-radius: 0px 20px 20px 20px;
        width: -webkit-fill-available;
    }
    .timeline ul li:nth-child(odd) {
        float: none;
        transform: none;
        border-radius: 0px 20px 20px 20px;
        width: -webkit-fill-available;
    }
    
}

@media(max-width: 520px) {
    .roadmap-text-column {
        padding: 0;
    }
    .timeline ul li {
        margin-bottom: 25px;
    }
    .timeline ul li:nth-child(odd)::before {
        left: -60px;
    }
    .timeline ul li:nth-child(even)::before {
        left: -30px;
    }
    .timeline-content .text-middle {
        overflow-wrap: break-word;
    }
    .space-extra {
        height: 25px;
    }
}

