header {
    background-color: #8129d3;
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: fit-content;
    z-index: 1;
    transition: top 0.3s;
}


body.scrolled header {
    top: -100%;
}

.logo {
    margin-left: 50%;
    width: 80px;
}

.nav-items {
    margin-right: 10%;
    width: 70%;
    display: flex;
    justify-content: center;
}

.nav-items a {
    margin: auto;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.1s ease-out, text-shadow 0.5s ease-out;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: calc(0.5s * var(--order));
}

.nav-items a:hover {
    transform: scale(1.1);
    text-shadow: 0px 0px 20px white;
}

@media (max-width: 700px) {
    .logo {
        width: 50px;
        margin-right: 10%;
    }

    .nav-items a {
        font-size: 15px;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.nav-items a:nth-child(1) {
    --order: 1;
}

.nav-items a:nth-child(2) {
    --order: 2;
}

.nav-items a:nth-child(3) {
    --order: 3;
}

