:root {
    --bg-color: #020c1b; /* Very dark navy blue */
    --text-color: #e0e0e0; /* Light gray/off-white */
    --primary-color: #4a90e2; /* Bright blue for accents */
    --secondary-color: #ffffff; /* White for highlights */
    --card-bg-color: #0a192f; /* Dark slate blue */
    --screen-bg-color: #000000;
    --screen-border-color: #2a4d69; /* Muted blue */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.main-header {
    text-align: center;
    padding: 4rem 1rem 2rem;
    background: linear-gradient(to bottom, #000000, var(--bg-color));
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
}

.main-header p {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 300;
}

#script-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.script-section {
    background-color: var(--card-bg-color);
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.script-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.script-section h2 {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.scene-block {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(74, 144, 226, 0.3); /* Updated from gold */
}

.scene-block h3 {
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
}

p {
    margin: 0.5rem 0;
}

.screen-text {
    background-color: var(--screen-bg-color);
    border: 1px solid var(--screen-border-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: #89ddff; /* Bluish text for screen effect */
    text-align: center;
}

.screen-text strong {
    color: var(--primary-color);
}

.music-cue, .action, .voice-over, .interpretation {
    font-style: italic;
    color: #b0b0b0;
    margin-top: 1rem;
}

.music-cue strong, .action strong, .voice-over strong, .interpretation strong, .dialogue strong {
    font-style: normal;
    color: var(--secondary-color);
}

.dialogue {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px dotted #ccc;
}

.voice-over.unison {
    font-weight: bold;
    text-align: center;
    color: var(--secondary-color);
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }
    .script-section {
        padding: 1rem 1.5rem;
    }
}