#overlay {
    /* display: none; */
    position: fixed;
    top: 0;
    
    /* background-color: black; */
    backdrop-filter: blur(50px);
    /* background-image: var(--noise); */
    background-size: 15%;
    background-repeat: repeat;
    
    width: 100svw;
    height: 100svh;
    z-index: 10000;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* transition: transform 1s ease-in-out; */
    /* padding-block: 50svh; */
}
/* #overlay::before{
    content: "";
    position: absolute;
    top: 99%;
    background-color: red;
    width: 100%;
    height: 50svh;
    backdrop-filter: blur(50px);
    z-index: 10000;
} */

#overlay svg {
    color: white; 
    position: relative;
    width: 95%;
    max-height: 90%;
    /* margin-block: 2rem; */
    filter: drop-shadow(0 1rem 1rem color-mix(in srgb, white 20%, transparent));
    /* background-color: aqua; */

    transform: translateY(-6%);
}

#overlay path {
    stroke: white;
    fill: white;
    stroke-width: 2px;
    stroke-dasharray: 1020;
    stroke-dashoffset: 0;
    animation: logo-fadeIn 4s cubic-bezier(.75,0,.7,1) backwards;
    animation-delay: 1s;
    transform-origin: center;
    transition: fill 3s var(--bounce);
}

#overlay.loading path {
    animation: logo-loading 1.5s infinite alternate linear;
}

#overlay.ready path {
    animation: none;
}

/* #overlay.fadeOut {
    transform: translateY(-100%);
} */

#overlay.inactive {
    display: none;
}
/* #overlay:has(button:hover) path {
    fill: white;
} */

#overlay button {
    filter: drop-shadow(0 0.5rem .5rem color-mix(in srgb, white 20%, transparent));
    color: white;
    text-wrap: balance;
    line-height: 1.2;
    font-size: var(--header-m);
    position: absolute;
    bottom: 5rem;
    background-color: transparent;
    border: none;
    align-items: start;
    opacity: 1;
    padding-inline: 0px;
    padding-top: 50px;
    overflow: hidden;
    /* transform: scale(1) translateY(100%); */
    /* transition: all 2s var(--bounce); */
    /* animation: fadeIn 1s forwards; */
    /* animation: button-move .8s infinite alternate; */
    /* animation-delay: 3s; */
    /* width: min-content; */
}

/* #overlay.ready button {
    opacity: 1;
    transform: scale(1) translateY(0);
}  */


/* #overlay button::before {
    content: "";
    position: absolute;
    bottom: -10%;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: var(--clr-navbar-font);
    transform: scaleX(0);
    transition: transform .2s ease;

}

#overlay button:hover::before {
    transform: scaleX(100%);
    transition: transform .2s ease;
} */

@keyframes logo-fadeIn {
    from { 
        stroke-dashoffset: 1020;
        fill: transparent;
    }
    60% {
        fill: transparent;
    }
    80%, 90%, to {
        stroke: white;
        fill: white;
        stroke-dashoffset: 0;
    }
    
    /* to {
        fill: transparent;
        stroke: transparent;
        stroke-dashoffset: 0;
        scale: 200;
    } */
}

@keyframes logo-loading {
    from {
        fill: transparent;
    }
    to {
        fill: white;
    }
}


@keyframes button-move {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }   

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    #overlay button {
        font-size: 1.8rem;
    }
}