*{
    --upper-grid-spacing: 300px;
    --upper-grid-line-width: 3px;
    --lower-grid-spacing: 200px;
    --lower-grid-line-width: 1px;

    --logo-animation-duration: 8s;
}

@media (max-width: 400px) {
    * {
        --upper-grid-spacing:  100px;
        --upper-grid-line-width: 3px;
        --lower-grid-spacing: 50px;
        --lower-grid-line-width: 1px;

        --logo-animation-duration: 16s;
    }
}


*{
    --grid-direction: -1;
    --upper-grid-pitch: calc(var(--upper-grid-spacing) + var(--upper-grid-line-width));
    --lower-grid-pitch: calc(var(--lower-grid-spacing) + var(--lower-grid-line-width));

    --upper-speed: 4s;
    --lower-speed: 2s;
}




html {
    background-color: #000;
    height: 100svh;

}

body {
    height: 100svh;
    padding: 0;
    margin: 0;
}



/* ------------------------------------------------------------------*/

.grid {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}



.vertical-lines {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.horizontal-lines {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.upper-grid .horizontal-lines{
    padding-top: calc(var(--upper-grid-pitch) / 2)
}

.lower-grid .horizontal-lines{
    padding-top: calc(var(--lower-grid-pitch) / 2)
}

.upper-grid .vertical-lines {
    gap: var(--upper-grid-spacing);
}

.upper-grid .horizontal-lines {
    gap: var(--upper-grid-spacing);
}

.lower-grid .vertical-lines {
    gap: var(--lower-grid-spacing);
}

.lower-grid .horizontal-lines {
    gap: var(--lower-grid-spacing);
}


@keyframes upperGridAnimation {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(var(--upper-grid-pitch) * var(--grid-direction, 0))); }
}

@keyframes lowerGridAnimation {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(var(--lower-grid-pitch) * var(--grid-direction, 0))); }
}

.vertical-line {
    background-color: blue;
    height: 100%;

    animation-timing-function: linear;
    animation-iteration-count: infinite;

    box-shadow: blue 0px 0px 15px;

    will-change: transform;
    backface-visibility: hidden;
}

.upper-grid .vertical-line{
    animation-name: upperGridAnimation;
    animation-duration: var(--upper-speed);
    min-width: var(--upper-grid-line-width);
}

.lower-grid .vertical-line{
    animation-name: lowerGridAnimation;
    animation-duration: var(--lower-speed);
    min-width: var(--lower-grid-line-width);
}


.horizontal-line {
    background-color: blue;
    width: 100%;
    will-change: transform;
    backface-visibility: hidden;
}

.lower-grid .vertical-line, .lower-grid .horizontal-line{
    opacity: 0.5;
}

.upper-grid .horizontal-line{
    box-shadow: blue 0px 0px 15px;
    min-height: var(--upper-grid-line-width);
}

.lower-grid .horizontal-line{
    box-shadow: blue 0px 0px 7px;
    min-height: var(--lower-grid-line-width);
}



/* ------------------------------------------------------------------*/


.content{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.logo-wrap{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 25%;
}

.logo-container{
    position: relative;
    z-index: 999;
    max-width: 900px;
    width: 100%;
    aspect-ratio: 4.77;
}

@media (min-width: 1600px) {
    .logo-wrap{
        justify-content: unset;
    }
}

@media (min-height: 800px) {
    .logo-container{
        max-width: 1200px;
    }
}

@media (min-height: 1000px) {
    .logo-container{
        max-width: 1600px;
    }
}



.rainbow-logo {
    position: absolute;
    width: 100%;
    aspect-ratio: 4.77;
    
    background: repeating-linear-gradient(90deg,
            #ff0000 0%,
            #ff9900 8.3%,
            #ffee00 16.6%,
            #33ff00 25%,
            #00c3ff 33.3%,
            #7700ff 41.6%,
            #ff0000 50%);
    background-size: 200% 100%;
    -webkit-mask-image: url(#logo-mask);
    mask-image: url(#logo-mask);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    animation: rainbow-scroll var(--logo-animation-duration) linear infinite;
}

.glow{
    filter:  blur(10px);
}


@keyframes rainbow-scroll {
    from {
        background-position-x: 0%;
    }

    to {
        background-position-x: 100%;
    }
}



.menu{
    position: absolute;
    z-index: 999;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;
}

.menu-bar{
    position: relative;
    z-index: 999;
    height: 20px;
    width: 100%;
    box-shadow: blue 0px 0px 25px 10px;
    background: #0000FF;
    background: linear-gradient(0deg, rgba(0, 0, 255, 1) 0%, rgba(0, 0, 255, 1) 20%, rgba(255, 255, 255, 1) 50%, rgba(0, 0, 255, 1) 80%, rgba(0, 0, 255, 1) 100%);
}

.menu-bg{
    position: relative;
    background-color: #000;
    width: 100%;
    animation: menu-open 1s ;
    min-height: 33vh;
}

@keyframes menu-open {
    from {
        min-height: 0;
    }

    to {
        min-height: 33vh;
    }
}


.menu-content{
    position: absolute;
    width: 100%;
   
    font-family: "Aldrich", sans-serif;
    display: flex;
    gap:16px;
    justify-content: center;
    align-items: center;   
    height: 100%; 
    color: #9f750f;
    text-shadow:  0px 0px 15px #9f750f; 
    font-size: 3rem;
    font-weight: bold;

    animation-delay: 10s;
    animation: menu-content-fade 2s;
}

.menu-content a{
    color: #ffffc9;
    text-shadow:  0px 0px 15px #9f750f; 
}

@media (max-width: 600px) {
    .menu-content{
        font-size: 1.5rem;
        gap:8px;
    }
}

@media (max-width: 400px) {
    .menu-content{
        font-size: 1rem;
        gap:6px;
    }
}




@keyframes menu-content-fade {
    from {
        opacity:  0;
    }

    to {
        opacity: 1;
    }
}