/* Layer 2 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

body {
    background: black;
    color: white;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
}

.active-page {
    color: red ;
}

/* Navigation Bar */
header {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    position: fixed; /* Keeps it at the top */
    top: 0; /* Aligns it to the top of the page */
    left: 0;
    width: 100%; /* Stretches across the screen */
    background: black; /* Keeps the background solid */
    z-index: 1000; /* Ensures it stays above other content */
    padding: 20px 0;
}

nav {
    width: 80%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    padding: 10px 15px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: red;
    border-bottom: 2px solid darkslategray;
}

.quote-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; 
    text-align: center;
    padding: 0 10%;
}

.quote {
    font-size: 3rem;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.2);
}

/* Scrollable Content */
.content {
    padding: 50px;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.6;
}

/* Full-Screen Quote Section */
.quote-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; 
    text-align: center;
    padding: 0 10%;
    position: relative;
    color: red;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.4;
    transition: opacity 0.5s ease-out;
}

/* Fading Effect */
.fading {
    opacity: 1; /* Start fully visible */
    transition: opacity 0.5s ease-out;
}

/* Screenplay Section */
@import url('https://fonts.googleapis.com/css2?family=Cutive+Mono&display=swap');

.screenplay {
    font-family: 'Cutive Mono', monospace;
    max-width: 750px;
    margin: 50px auto;
    padding: 30px;
    text-align: left;
    line-height: 1.7;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    position: relative; /* Needed for HOTEL to stay inside */
    z-index: 1;
}

/* Spinning HOTEL */
.spinning-hotel {
    font-size: 50rem;
    font-weight: bold;
    text-transform: uppercase;
    color: rgba(255, 0, 0, 0.3); /* Light transparency */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -2; /* Keeps it behind the screenplay */
    animation: spin 10s linear infinite;
    white-space: nowrap;
    text-shadow: 5px 5px 15px rgba(255, 0, 0, 0.2);
}

/* Keyframes for Spinning Effect */
@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Scene Headings */
.scene-heading {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    color: red;
    margin-top: 40px;
}

/* Character Names */
.character {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

/* Dialogue */
.dialogue {
    font-size: 1rem;
    margin-left: 40px;
    text-indent: -20px;
}

/* Action Lines */
.action {
    font-size: 1rem;
    font-style: italic;
    margin-top: 20px;
}

/* Parentheticals */
.parenthetical {
    font-style: italic;
    color: gray;
    font-size: 0.9rem;
}

/* Transitions */
.transition {
    text-align: right;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 20px;
}

/* Continued Tag */
.continued {
    text-align: right;
    font-style: italic;
    color: gray;
}

/* Emphasized Text */
.emphasized {
    font-weight: bold;
    text-transform: uppercase;
}



/* Flickering Lights Effect - Background Overlay */
.flicker-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay */
    pointer-events: none;
    z-index: 2; /* Above everything */
    animation: flicker 3s infinite alternate ease-in-out;
}

@keyframes flicker {
    0% {
        background: rgba(0, 0, 0, 0.1);
    }
    20% {
        background: rgba(0, 0, 0, 0.5);
    }
    50% {
        background: rgba(0, 0, 0, 0.2);
    }
    80% {
        background: rgba(0, 0, 0, 0.6);
    }
    100% {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* Moving Shadows Effect */
.shadow-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1; /* Behind flickering effect */
}

.shadow {
    position: absolute;
    width: 150px;
    height: 300px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.6;
    animation: moveShadows 6s infinite alternate ease-in-out;
}

@keyframes moveShadows {
    0% {
        transform: translateX(-50px) translateY(0px);
        opacity: 0.6;
    }
    50% {
        transform: translateX(50px) translateY(20px);
        opacity: 0.3;
    }
    100% {
        transform: translateX(-50px) translateY(-20px);
        opacity: 0.6;
    }
}


/* Navigation Buttons - Styled Like Nav Bar */
.navigation-buttons {
    position: fixed;
    bottom: 20px; 
    width: 100%;
    display: flex;
    justify-content: space-between; 
    padding: 0 30px;
    box-sizing: border-box;
}

/* Styling for Prev and Next Buttons */
.prev-button,
.next-button {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: transparent; 
    padding: 10px 15px;
    border: 2px solid transparent; 
    transition: 0.3s ease-in-out;
}

/* Hover Effect (Same as Nav Bar) */
.prev-button:hover,
.next-button:hover {
    color: red;
    border-bottom: 2px solid darkslategrey;
}

.screenplay p {
    text-align: left; /* Ensures all text aligns to the left */
    margin-left: 0; /* Resets any unwanted indentation */
    text-indent: 0; /* Removes unintended text indentation */
    line-height: 1.7; /* Ensures consistent line spacing */
}

.character {
    display: block; /* Ensures the text takes full width */
    width: 100%; /* Makes sure the text spans full width */
    text-align: center !important; /* Forces text alignment */
    font-size: 1.2rem;
    font-weight: bold;
    margin: 20px 0; /* Ensures consistent spacing */
}