input[type="search"] {
    max-width: 500px;
}

#projects {
    display: grid;
    grid-template-columns: 1fr;
}

@media all and (min-width: 700px) {

    #projects {
        grid-template-columns: 1fr 1fr;
    }

}

@media all and (min-width: 1200px) {

    #projects {
        grid-template-columns: 1fr 1fr 1fr;
    }

}

#projects > * {
    position: relative;
    top: 100vh;
    width: 100%;
    max-width: 500px;
    animation: slide-in 0.8s ease-in-out calc(0.2s * var(--delay)) forwards;
}

@keyframes slide-in {

    from {
        top: 100vh;
    }

    to {
        top: 0;
    }
    
}

article > div {
    border-width: var(--box-border);
    border-top-width: 0;
    border-style: solid;
    border-color: var(--color-front);
    background-color: var(--color-back);
}


#loading {
    padding-top: 16px;
    width: max-content;
    display: flex;
    flex-direction: row;
    gap: 16px;
}

#loading > div {
    position: relative;
    width: 8px;
    height: 8px;
    background-color: var(--color-front);
    animation: loading 1s ease-in-out infinite;
}

#loading > div:nth-child(2) {
    animation-delay: 0.1s;
}

#loading > div:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes loading {

    0% {
        top: 0;
    }

    25% {
        top: -16px;
    }

    50% {
        top: 0;
    }

}
