:root {
    --bg-color: #1a1a2e;
    --text-color: #eaeaea;
    --accent-color: #e94560;
    --btn-hover: #d23d56;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent scrollbars from explosions */
}

#app {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
}

.screen {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 2rem;
    box-sizing: border-box;
}

.screen.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

ul {
    text-align: left;
    font-size: 1.2rem;
    margin: 0 auto 2rem auto;
    max-width: 400px;
    line-height: 1.8;
}

button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
    transition: transform 0.2s, background-color 0.2s;
    margin-top: 1rem;
}

button:hover {
    background-color: var(--btn-hover);
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}

.signature {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 2rem;
    color: #ffb8b8;
}

/* Screen Shake Animation */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shake {
    animation: shake 0.5s;
    animation-iteration-count: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Film Reel Background */
#film-reel-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
}

#film-reel-track {
    display: flex;
    height: 100%;
    width: max-content;
    opacity: 0.35; /* Keep it dim so text is readable */
}

.film-frame {
    height: 100vh;
    width: 80vw; /* Forces images to be large and prevents lazy-load width glitching */
    flex-shrink: 0; /* Prevents the browser from squishing them */
    border-left: 15px solid #000;
    border-right: 15px solid #000;
    box-sizing: border-box;
    object-fit: cover; /* Fills the frame nicely to make them look huge */
    background-color: #000;
}

/* --- Stranger Things Vibe for Screen 1 --- */
body {
    transition: background-color 2s, box-shadow 2s;
}

body.upside-down {
    background-color: #050510;
    box-shadow: inset 0 0 150px rgba(139, 0, 0, 0.4);
}

@keyframes smoothReveal {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.reveal-1, .reveal-2, .reveal-3, .reveal-4 {
    opacity: 0;
    animation: smoothReveal 0.8s ease-out forwards;
}

@keyframes loveFadeIn {
    0% { opacity: 0; filter: blur(5px); }
    100% { opacity: 1; filter: blur(0); }
}

.love-text {
    opacity: 0;
    animation: loveFadeIn 2.5s ease-in-out forwards;
}

.love-delay-1 { animation-delay: 0.2s; } /* Super fast title reveal */
.love-delay-2 { animation-delay: 2.0s; }
.love-delay-3 { animation-delay: 4.0s; }
.love-delay-4 { animation-delay: 6.0s; }
.love-delay-5 { animation-delay: 8.0s; }
.love-delay-6 { animation-delay: 10.0s; }

.delay-1 { animation-delay: 0.5s; }
.reveal-2 { animation-delay: 1.5s; }
.reveal-3 { animation-delay: 2.0s; }
.reveal-4 { animation-delay: 3.5s; }

.st-text {
    opacity: 0;
}

.st-glow {
    color: #ff2a2a;
    text-shadow: 0 0 10px #ff0000, 0 0 20px #8b0000;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.st-btn {
    background-color: transparent;
    border: 2px solid #ff2a2a;
    color: #ff2a2a;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.st-btn:hover {
    background-color: #ff2a2a;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

@keyframes stFadeIn {
    0% { opacity: 0; transform: scale(0.95); filter: blur(4px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

.delay-1 { animation: stFadeIn 2s forwards 0.5s; }
.delay-2 { animation: stFadeIn 2s forwards 2.5s; }
.delay-3 { animation: stFadeIn 2s forwards 4.5s; }
.delay-4 { animation: stFadeIn 2s forwards 6.5s; }
.delay-5 { animation: stFadeIn 2s forwards 8.5s; }

@keyframes scrollReel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* stops at halfway mark (the duplicated array) */
}

.content-overlay {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}
