* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif; /* New heroic font */
    color: white;
    overflow: hidden; /* Prevent scrolling */
}

/* Fullscreen overlay before starting the experience */
.click-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.start-experience-button {
    font-size: 2rem;
    padding: 20px 40px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-experience-button:hover {
    background-color: #388e3c;
}

/* Hidden by default until the user clicks the start button */
.hidden {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the video covers the screen */
    z-index: -1;
}

/* Heroic Text Animation */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem; /* Adjust font size */
    text-transform: uppercase;
    color: white;
    opacity: 0; /* Start hidden */
    text-shadow: 0px 0px 15px rgba(255, 255, 255, 0.8);
    z-index: 1;
    animation: fadeIn 2s forwards, scaleUp 2s ease-in-out 4s forwards; /* Fade in and scale effect */
    line-height: 1.2; /* Adjust line height for better spacing between lines */
    text-align: center; /* Ensure text is centered */
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes scaleUp {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2); /* Slight scaling for dramatic effect */
    }
}

.heroic-letter {
    display: inline-block;
    opacity: 0; /* Start hidden */
    animation: fadeLetter 0.5s forwards;
}

@keyframes fadeLetter {
    0% {
        opacity: 0;
        transform: scale(0.5); /* Start smaller */
    }
    100% {
        opacity: 1;
        transform: scale(1); /* Grow to normal size */
    }
}

.ready-button {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4caf50;
    color: white;
    font-size: 1.5rem;
    padding: 15px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    opacity: 0; /* Hidden initially */
    z-index: 1;
    transition: opacity 0.5s ease-in-out; /* Smooth fade in */
}

.ready-button:hover {
    background-color: #388e3c;
}
.sound-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
    color: white;
    transition: transform 0.3s ease;
}

.sound-icon:hover {
    transform: scale(1.1);
}

/* For the <audio> element, control styling */
audio {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    width: 300px; /* Adjust the width of the audio controls */
}
#word-0 { margin-right: 0px; } /* Step */
#word-1 { margin-right: 0px; } /* Up, */
#word-2 { margin-right: 0px; } /* Become */
#word-3 { margin-right: 80px; } /* Earth's */
#word-4 { margin-right: 100px; } /* Guardian */
#word-5 { margin-right: 100px; } /* Against */
#word-6 { margin-right: 30px; } /* Climate */
#word-7 { margin-right: 50px; } /* Change! */
