* {
    margin: 0;
    padding: 0;
    outline: 0;
}

body {
    font-family: sans-serif;
    color: silver;
    user-select: none;
    overflow: hidden; /* <-- OPLOSSING VOOR DE UITREKKING */
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    gap: 5px;
}

main>img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100vh;
    z-index: 1;
    filter: blur(0.5vh);
    transform: scale(1.1);
    position: fixed;
    pointer-events: none;
}

section {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 5px;
    border-radius: 20px;
    background-color: #0000001a;
    backdrop-filter: blur(10px);
    border: 1.5px solid #ffffff38;
    z-index: 2;
    min-width: 300px; 
}

section #pfp {
    margin-top: -80px;
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
}

section h1 {
    font-size: 25px;
}

.socials section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    min-width: 300px; 
    padding: 8px 5px;
    transition: all .3s;
}

.socials section:hover {
    transform: scale(1.05);
}

.socials section img {
    width: 30px;
}

.socials {
    display: flex;
    justify-content: center; 
    gap: 5px;
    z-index: 600;
}

#enter-button {
    cursor: pointer;
    font-family: monospace;
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;
    font-size: 20px;
    border: none;
    background-color: #000000e3;
    color: silver;
    z-index: 2000;
}

/* --- TYPEWRITER CODE --- */

.type {
    --text-characters: 30; 
    
    margin: 5px;
    text-align: center;
    overflow: hidden;
    width: fit-content; 
    border-right: .15em solid #565657;
    border-radius: 0px;
    white-space: nowrap;
    
    /* Totale animatieduur is 8 seconden. */
    animation:
        typing 8s steps(var(--text-characters), end) infinite, 
        blinking 1s step-end infinite; 
    
    font-size: 18px;
    width: 0;
}

@keyframes typing {
    /* 0%-25% (2.0s): Typen */
    0% {
        width: 0
    }
    25% {
        width: 100%
    }
    
    /* 25%-50% (2.0s): Wachten (2 seconden) */
    50% { 
        width: 100%
    }
    
    /* 50%-100% (4.0s): Wissen en Wachten */
    100% {
        width: 0
    }
}

@keyframes blinking {
    from {
        border-color: transparent
    }

    to {
        border-color: #565657;
    }
}

/* --- SHOOTING STARS EFFECT --- */

.star {
    position: absolute;
    width: 3px; 
    height: 3px;
    background-color: white;
    border-radius: 50%;
    z-index: 0; 
    opacity: 0; 
    
    animation: shooting-star linear infinite;
    box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.7);
}

@keyframes shooting-star {
    0% {
        transform: translate3d(0, 0, 0) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 1; 
    }
    90% {
        opacity: 1;
    }
    100% {
        /* De ster beweegt diagonaal naar beneden en rechts */
        transform: translate3d(200vw, 200vh, 0) rotate(45deg);
        opacity: 0; 
    }
}