body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
    width: 100%;
    overflow: hidden; /* Zorg ervoor dat er geen scrollbalken verschijnen */
    height: 100%;
    
}

.typography-container {
    text-align: center;
    position: relative;
}

.dynamic-typography {
    font-size: 6em;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    animation: slide 5s ease-in-out infinite; /* Voeg de schuifanimatie toe */
}

.letter {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
    z-index: 1;
    margin: 0 5px; /* Voeg een kleine marge toe tussen de letters */
}

.letter::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 50px; /* De lengte van de lijn tussen de letters */
    height: 2px;
    background-color: #9b59b6; /* Paarse kleur voor de lijnen */
    transform: translateY(-50%);
    z-index: -1;
    transition: width 0.3s ease;
}

.letter:last-child::after {
    display: none; /* Geen lijn na de laatste letter */
}

.letter:hover::after {
    width: 100px; /* Verleng de lijn bij hover */
}

.letter:hover {
    transform: scale(1.2);
    color: #9b59b6; /* Kleurverandering bij hover */
}

/* Schuifanimatie */
@keyframes slide {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-10px);
    }
}

/* Alternatieve lijnen met animatie */
@keyframes drawLine {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        width: 50px;
        opacity: 1;
    }
    100% {
        width: 0;
        opacity: 0;
    }
}

.letter:nth-child(1)::after {
    top: 50%;
    left: 100%;
    width: 50px;
    animation: drawLine 3s infinite ease-in-out;
}

.letter:nth-child(2)::after {
    top: 50%;
    left: 100%;
    width: 70px;
    animation: drawLine 3s infinite ease-in-out 0.5s;
}

.letter:nth-child(3)::after {
    top: 50%;
    left: 100%;
    width: 60px;
    animation: drawLine 3s infinite ease-in-out 1s;
}

.letter:nth-child(4)::after {
    top: 50%;
    left: 100%;
    width: 80px;
    animation: drawLine 3s infinite ease-in-out 1.5s;
}

.letter:nth-child(5)::after {
    top: 50%;
    left: 100%;
    width: 60px;
    animation: drawLine 3s infinite ease-in-out 2s;
}

.letter:nth-child(6)::after {
    top: 50%;
    left: 100%;
    width: 70px;
    animation: drawLine 3s infinite ease-in-out 2.5s;
}

.letter:nth-child(7)::after {
    top: 50%;
    left: 100%;
    width: 50px;
    animation: drawLine 3s infinite ease-in-out 3s;
}

.letter:nth-child(8)::after {
    top: 50%;
    left: 100%;
    width: 50px;
    animation: drawLine 3s infinite ease-in-out 3.5s;
}
