.timeline-wrapper {
    position: relative;
}

.timeline-wrapper .cat-mark {
    position: relative;
    z-index: 2;
}

.timeline-line {
    position: absolute;
    top: 0.5rem;
    left: 10%;
    z-index: 1;
    height: calc(100% - 0.5rem);
    width: 2px;
    background-color: white;
    display: block;
}

.timeline {
    position: relative;
    display: block;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.timeline-item {
    z-index: 3;
    position: absolute;
    padding-top: 20px;
    align-items: center;
    width: 60%;
    margin-top: 30px;
    background: none;
    opacity: 0;
    transition: opacity 2s ease;
    animation: float-in 2s ease;
}

.timeline-item.show {
    opacity: 1;
}

.timeline-item.left {
    right: 60%;
}

.timeline-item.right {
    left: 30%;
}

.timeline-item::before {
    content: "";
    width: 130%;
    height: 1px;
    background-color: white;
    display: block;
    position: absolute;
    top: 0;
}

.timeline-item.left::before {
    left: 0;
}

.timeline-item.right::before {
    right: 0;
}

.timeline-item::after {
    content: "";
    width: var(--timeline-dot-size);
    height: var(--timeline-dot-size);
    background-color: white;
    display: block;
    position: absolute;
    border-radius: var(--timeline-dot-size);
    top: calc(var(--timeline-dot-size) / -2);
}

.timeline-item.left::after {
    left: calc(133.3333% - var(--timeline-dot-size) / 2);
}

.timeline-item.right::after {
    right: calc(133.3333% - var(--timeline-dot-size) / 2);
}

.timeline-item p {
    font-family: 'Geist Mono', monospace;
    font-size: 0.6rem;
    margin: 0;
    margin-bottom: 10px;
}

.timeline-item h5 {
    font-size: 1.5rem;
    margin: 0;
    margin-bottom: 10px;
}

.timeline-item img {
    width: 40%;
    border-radius: 8px;
}

@keyframes float-in {
    0% {
        transform: translateY(200px);
    }

    100% {
        transform: translateY(0);
    }
}

@media screen and (min-width: 960px) {
    .timeline-item.right {
        left: 60%;
    }

    .timeline-item {
        width: 30%;
    }

    .timeline-item::before {
        width: 133.33%;
    }

    .timeline-line {
        left: 50%;
    }
}
