/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set body height to 100% */
html, body {
    height: 100%;
    background: none;
    font-family: 'Georgia', serif;
    overflow-x: hidden;
}

/* Background paper image */
#paper-b {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevent interference with clicking */
    opacity: 0.6; /* Adjust for more or less grain */
    z-index: 1;
}

/* Fullscreen intro screen */
#intro-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 999;
}

/* Intro text styling */
#intro-text {
    font-family: "amandine", sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 3rem;
    color: #ffffff; /* Text color */
    position: relative; /* Needed for the pseudo-element */
    z-index: 999;
    text-align: center;
    opacity: 0;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.5),  /* Soft white glow */
        0 0 10px rgba(255, 255, 255, 0.4), /* More intense white glow */
        0 0 15px rgba(255, 255, 255, 0.3), /* Even more intense white glow */
        0 0 20px rgba(255, 255, 255, 0.2); /* Outermost glow */
    animation: fadeInOut 4s ease-in-out 1s forwards;
}

/* Plant shadows */
.plant-shadow {
    position: absolute;
    height: 100%;
    opacity: 0.3; /* Semi-transparent */
    z-index: 900; /* Above background but below text */
    filter: blur(10px);
}

.plant-shadow-left {
    bottom: 0; /* Position at the bottom */
    left: 0; /* Align left */
    transform: translateY(20%) scaleX(1.2); /* Adjust position and scale */
}

/* Main content */
#main-content {
    display: none;
    padding: 2rem;
    text-align: center;
    color: white;
    background-color: black;
}

/* Skip Button */
#skip-btn {
    position: absolute;
    bottom: 5em; /* Distance from the bottom */
    right: 6em;
    padding: 10px 20px;
    font-size: 1rem;
    color: #525252;
    background-color: #ffffff; /* Golden color */
    border-radius: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    z-index: 1001; /* Ensure it's on top */
    font-family: "rafaella-shadow", sans-serif;
    font-weight: 700;
    font-style: normal;
}

/* Hover Effect */
#skip-btn:hover {
    color: rgb(173, 133, 0);
    border: none;
    border-radius: 15px;
    background-color: rgba(255, 215, 0, 1);
    box-shadow: 0 0 30px rgb(255, 233, 106); /* Stronger glow on hover */
    transform: scale(0.90); /* Center and slight shrink on hover */
}

#skip-btn:active {
    color: rgb(255, 226, 132);
    border: none;
    border-radius: 20px;
    background-color: rgba(255, 215, 0, 1);
    box-shadow: 0 0 30px rgb(255, 233, 106); /* Stronger glow on hover */
    transform: scale(0.90); /* Center and slight shrink on hover */
}

/* Fade in and out animation */
@keyframes fadeInOut {
    0% { opacity: 0; }
    20%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

/* Grainy overlay for film-like effect */
#grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevent interference with clicking */
    opacity: 0.2; /* Adjust for more or less grain */
    z-index: 1000;
    filter: blur(1px);
}

/* Video styling */
#intro-video, #intro-video-phone {
    position: fixed; /* Fix it to the bottom of the viewport */
    top: 50%; /* Align to the bottom */
    left: 50%; /* Align to the left */
    transform: translate(-50%, -50%); /* Center the video exactly */
    width: 100%; /* Make it cover the width */
    height: auto; /* Maintain aspect ratio */
    z-index: 1000; /* Send to background */
    display: none;
}

/* Mobile Responsive Styling */
@media screen and (max-width: 768px) {
    #intro-text {
        font-size: 2rem; /* Smaller text on mobile */
    }

    .plant-shadow {
        filter: blur(8px); /* Adjust blur for mobile */
    }

    #main-content {
        padding: 1rem; /* Reduce padding on mobile */
    }

    #paper-b {
        opacity: 0.4; /* Reduce opacity for better visibility */
    }

    #intro-video, #intro-video-phone {
        width: auto;
        height: 100%;
    }

    #skip-btn {
        bottom: 3em; /* Distance from the bottom */
        right: 4em;
        font-size: 0.9rem;
        padding: 9px 18px;
    }

    #skip-btn:active {
        color: rgb(173, 133, 0);
        border: none;
        border-radius: 15px;
        background-color: rgba(255, 215, 0, 1);
        box-shadow: 0 0 30px rgb(255, 233, 106); /* Stronger glow on hover */
        transform: scale(0.90); /* Center and slight shrink on hover */
    }
}

@media screen and (max-width: 480px) {
    #intro-text {
        font-size: 1.5rem; /* Smaller text for small phones */
    }

    #main-content {
        padding: 0.5rem; /* Further reduce padding */
    }
}

/* Old film reel line effects */
#intro-screen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 1) 100%);
    z-index: 998; /* Behind text but above background */
    pointer-events: none; /* Prevent blocking interactions */
}
