* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', serif;
    background-color: #000;
    color: #fff;
    overflow: hidden;
}

/* Intro Screen Styles */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2c1810;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.2) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.2) 2px, transparent 2px),
        linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 2s ease-in-out;
}

.intro-content {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    max-width: 600px;
    animation: slideUp 1.5s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.intro-content h1 {
    font-size: 3em;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #fff;
    font-family: 'Times New Roman', serif;
    font-style: italic;
}

.intro-content p {
    font-size: 1.5em;
    margin-bottom: 2rem;
    font-style: italic;
    color: #ddd;
}

#start-show {
    padding: 15px 30px;
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#start-show:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.film-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

.animation-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.scene {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    z-index: 2;
}

.grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVfZ/sAAAACHRSTlMAMztE3e7v8vX2+QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UCAQcOOg0U8mUAAABISURBVDjLY2AYBaNgFIyCUTAKRsEoGAWjYBSMglEwCkbBKBgFo2AUjIJRMApGwSgYBaNgFIyCUTAKRsEoGAWjYBSMglEwCkbBKBgFowAA5JoD8Z9WxXQAAAAASUVORK5CYII=');
    opacity: 0.1;
    pointer-events: none;
    z-index: 3;
}

.gif-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gif-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: sepia(0.3) contrast(1.1) brightness(0.9);
    transition: all 1s ease-in-out;
    transform-origin: center;
}

/* Special animation for the first page */
.special-fade {
    animation: specialFade 2s ease-in-out;
}

@keyframes specialFade {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
        filter: blur(10px);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8) rotate(0deg);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

/* Other animation effects */
.fade-zoom {
    animation: fadeZoom 1s ease-in-out;
}

.slide-left {
    animation: slideLeft 1s ease-in-out;
}

.slide-right {
    animation: slideRight 1s ease-in-out;
}

.rotate-fade {
    animation: rotateFade 1s ease-in-out;
}

@keyframes fadeZoom {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotateFade {
    0% {
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.caption-overlay {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    font-size: 2.5em;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.5s ease-in-out;
    z-index: 4;
}

.controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 5;
}

button {
    padding: 10px 20px;
    font-size: 1em;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-family: 'Times New Roman', serif;
}

button:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
} 