@keyframes fade-out {
    from {
        opacity: 1;
        visibility: visible;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes draw {
    fromt {
        stroke-dashoffset: 1000;
    }

    to {
        stroke-dashoffset: 0;
    }
}

header {
    z-index: 10;
    margin-bottom: 0 !important;
    border: 0 !important;
}

.svg-loading {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    position: fixed;
    background-color: var(--color-dark);
    z-index: 100;
    justify-content: center;
    align-items: center;
    animation: fade-out 1s ease forwards;
    animation-delay: 3s;
}

.svg-loading svg {
    max-height: 60vh;
}

.svg-loading .logo-main path {
    fill: none;
    stroke: var(--color-bright);
    stroke-width: 0.5;
    stroke-dasharray: 0;
    stroke-dashoffset: 0;
    animation: draw 2.5s linear forwards;
    animation-delay: 1;
}

.svg-container {
    height: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

svg {
    max-height: 90vh;
}

.main-title {
    text-align: center;
    position: absolute;
    font-size: 24pt;
}

.logo-paths path {
    fill: none;
    stroke: var(--color-bright);
    stroke-width: 0.5;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 1.5s ease-out forwards;
    animation-delay: 3s;
}

#playlist-video {
    filter: grayscale(1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

#intro-video {
    filter: grayscale(1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
    animation: fade-out 1s ease forwards;
    /* Added forwards to maintain end state */
    animation-delay: 4s;
    /* Delay before fade-out */
}

@media (max-width: 779px) {

    .main-title {
        font-size: 18pt;
    }

    header {
        height: auto;
    }

    .svg-container {
        margin: auto;
        height: 90%;
    }
}