/* Import true Star Wars era typography clones from Google Fonts */
@import url('https://googleapis.com');

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
} 

body { 
    background: black; 
    color: #ebd135; /* True cinematic amber-gold color from film prints */
    font-family: 'News Cycle', 'Franklin Gothic Medium', sans-serif; 
    overflow: hidden; 
    width: 100vw;
    height: 100vh;
    
    /* Pure CSS high-density Starfield Background */
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
} 

/* 🌟 START SCREEN OVERLAY */
#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 100; /* Stays on top of everything until spacebar is hit */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Authentic cinematic blue prompt text style */
.prompt-text {
    color: #4bd5ee; /* Classic Star Wars intro blue text color */
    font-family: sans-serif;
    font-size: 2rem;
    letter-spacing: 0.1em;
    font-weight: bold;
    text-align: center;
    animation: pulse 2s infinite ease-in-out; /* Blinks gently to look alive */
}

/* 🌟 THE 3D WINDOW (Locks text mathematically in the dead center) */
.container { 
    position: absolute; 
    left: 0; 
    right: 0; 
    width: 75%; /* Sets a crisp, bound widescreen text lane */
    height: 100vh; 
    margin: 0 auto; 
    padding: 0; 
    perspective: 700px; /* Balanced depth camera lens angle */
    perspective-origin: 50% 100%; 
} 

/* 🌟 THE SCROLL ENGINE */
.credits { 
    position: absolute; 
    top: 100%; 
    width: 100%; 
    transform-origin: 50% 50%; /* Forces 3D tilt math directly down the center line */
} 

/* Triggers the movement ONLY after pressing the Spacebar */
.start-crawl .credits {
    animation: play 75s linear forwards; /* Plays slowly through once then sits still */
}

/* 🌟 SMOOTH HORIZON FADE OUT MASK */
.top-fade { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 38vh; 
    background-image: linear-gradient(to bottom, black 35%, transparent); 
    z-index: 10; 
    pointer-events: none; 
} 

/* 🌟 HEADINGS HIERARCHY */
.headings { 
    margin-bottom: 5.5rem; 
    text-align: center;
} 

/* "Episode I" style */
h1 { 
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 2.8rem; 
    letter-spacing: 0.15em; /* Cinematic wide track-spacing */
    color: #ebd135;
    margin-bottom: 1.5rem;
} 

/* "THE LAST MEME" style */
h2 { 
    font-family: 'News Cycle', sans-serif;
    font-weight: 700;
    font-size: 5.5rem; 
    text-transform: uppercase; 
    letter-spacing: 0.08em;
    line-height: 1.1;
} 

/* 🌟 THE CRAWL PARAGRAPHS */
p { 
    font-family: 'News Cycle', sans-serif;
    font-weight: 700; /* Bolder weight prevents text from breaking up under 3D scaling */
    font-size: 2.6rem;       
    line-height: 1.45;        
    padding: 1.5rem 0;       
    text-align: justify; /* Completely locks down straight left/right side margins */
    word-spacing: 0.1em;
} 

/* 🌟 CORE 3D SCROLLING KEYFRAMES */
@keyframes play { 
    0% { 
        transform: rotateX(24deg) translateY(100vh); 
    } 
    100% { 
        transform: rotateX(24deg) translateY(-320rem); /* Glides smoothly deep past the horizon */
    } 
}

/* Prompt screen blinking effect animation */
@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}