@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    background: #000;
    overflow: hidden;
    margin: 0;
    font-family: sans-serif;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.fade {
    position: relative;
    width: 100%;
    min-height: 60vh;
    top: -25px;
    background-image: linear-gradient(0deg, transparent, black 75%);
    z-index: 1;
}

.infinity-logo-container {
    position: fixed;
    width: 100%;
    top: 15vh;
    display: flex;
    justify-content: center;
    z-index: 5;
}

.infinity-logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 3em;
    color: #FFD700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.3);
    animation: infinity-move 12s linear infinite;
}

@keyframes infinity-move {
    0%   { transform: translate(150px, 0px); }
    12.5% { transform: translate(106px, 40px); }
    25%  { transform: translate(0px, 0px); }
    37.5% { transform: translate(-106px, -40px); }
    50%  { transform: translate(-150px, 0px); }
    62.5% { transform: translate(-106px, 40px); }
    75%  { transform: translate(0px, 0px); }
    87.5% { transform: translate(106px, -40px); }
    100% { transform: translate(150px, 0px); }
}

.star-wars {
    display: flex;
    justify-content: center;
    position: relative;
    height: 800px;
    color: #FFD700;
    font-family: 'Century Gothic', 'Lato', sans-serif;
    font-size: 500%;
    font-weight: 600;
    letter-spacing: 6px;
    line-height: 150%;
    perspective: 400px;
    text-align: justify;
    opacity: 0;
    animation: show-crawl 1s linear 2s forwards;
}

@keyframes show-crawl {
    to { opacity: 1; }
}

.crawl {
    position: relative;
    top: 9999px;
    transform-origin: 50% 100%;
    animation: crawl 60s linear 2s infinite;
}

.crawl > .title {
    font-size: 90%;
    text-align: center;
}

.crawl > .title > h1 {
    margin: 0 0 100px;
    text-transform: uppercase;
}

@keyframes crawl {
    0% {
        top: 800px;
        transform: rotateX(20deg) translateZ(0);
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: -6000px;
        transform: rotateX(25deg) translateZ(-2500px);
        opacity: 0;
    }
}

footer {
    position: fixed;
    bottom: 10px;
    right: 15px;
    z-index: 10;
}

footer a {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
    color: rgba(255, 215, 0, 0.8);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}