body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;

    color: white;
}

.timeline-container {
    width: 90%;
    max-width: 90%;
    margin: 90px auto;
    display: flex;
    flex-direction: column;
    background: var(--about-red);
    padding: 40px 0;
}

.event-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 400px;
    text-align: left;
}

.event-item:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
    position: relative;
}

.event-item img {
    width: 650px;
    object-fit: fill;
    border-radius: 30%;
    flex-shrink: 0;
}

.text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 500px; /* Of wat goed werkt voor jouw layout */
}

.date {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 102px;
    font-weight: bold;
    line-height: 1;
    color: #E4002A;
    text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
    1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
    z-index: 2;
}

.date span {
    font-size: 16px;
    font-weight: normal;
}

.dates{
    position: absolute;
    top: 7%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    font-weight: bold;
}

.content h2 {
    font-size: 54px;
    margin: 10px -50px;
}

.contend h2:nth-child(odd) {
    position: relative;
    margin: 10px 200px;

}

.content p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    *{
        text-align: center;
    }
    .event-item {
        flex-direction: column !important;
        text-align: center;
        gap: 30px; /* Add more space on mobile as well */
    }

    .event-item img {
        width: 80%;
        height: auto;
        margin: 0 auto;
    }

    .text {
        align-items: center;
    }

    .content p {
        font-size: 15px;
        padding: 0 10px;
    }

    .date {
        font-size: 56px;
        text-align: center;
        width: 100vw;
        left: 55%;
        transform: translateX(-50%);
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }

    .dates {
        font-size: 22px;
    }

    .content h2 {
        font-size: 20px;
    }
}

@media (max-width: 1500px) {
    .event-item {
        gap: 0; /* Add more space on mobile as well */
    }


    
}
@media (max-width: 780px) {
    .event-item img {
        width: 90%;
    }

    .date {
        font-size: 30px;
        width: 100vw;
        transform: translateX(-50%);
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }

    .dates {
        font-size: 20px;
        text-shadow: 2px 0 #000000, -2px 0 #000000, 0 2px #000000, 0 -2px #000000,
        1px 1px #000000, -1px -1px #000000, 1px -1px #000000, -1px 1px #000000;
    }

    .content p {
        font-size: 14px;
        padding-bottom: 20px;
    }
}
