body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0; 
    position: relative; /* Ensure child elements can use absolute positioning */
}

.reel {
    object-fit: cover; /* Ensures the video covers the entire container */
    width: 100%;
    height: 100%;
    z-index: 1;
}
.video {
    position: absolute; /* Make the video fill the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Place the video behind other elements */
    overflow: hidden;
}

.letter {
    font-size: 5rem !important;
    font-family: 'Slackey', cursive;
    text-transform: uppercase;
    text-align: center;
    opacity: 0; /* Hide the letter initially */
    display: inline-block;
    animation: appear 1s forwards; /* Add animation to each letter */
    color: #f3f1df;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  }

  @keyframes appear {
    0% {
      opacity: 0;
      transform: translateX(20px); /* Start from right (move to the right) */
    }
    100% {
      opacity: 1;
      transform: translateX(0); /* Move to original position */
    }
  }
  
  /* Delay each letter's animation */
  .letter:nth-child(1) {
    animation-delay: 0.2s;
  }
  .letter:nth-child(2) {
    animation-delay: 0.4s;
  }
  .letter:nth-child(3) {
    animation-delay: 0.6s;
  }
  .letter:nth-child(4) {
    animation-delay: 0.8s;
  }
  .letter:nth-child(5) {
    animation-delay: 1s;
  }
  .letter:nth-child(6) {
    animation-delay: 1.2s;
  }
  .letter:nth-child(7) {
    animation-delay: 1.4s;
  }
  .letter:nth-child(8) {
    animation-delay: 1.6s;
  }
  .letter:nth-child(9) {
    animation-delay: 1.8s;
  }
  .letter:nth-child(10) {
    animation-delay: 2s;
  }

@media (max-width: 991px) {
    .letter {
        font-size: 2.75rem !important;
    }
  
}

.volume-toggle {
    position: absolute;
    bottom: 50px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    z-index: 1000; /* Ensure the button is above other elements */
    pointer-events: auto; /* Ensure the button is clickable */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
} 

  .volume-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }


.footer-overlay {
    position: static; /* Remove absolute positioning */
    z-index: auto; /* Reset z-index */
}

#navbar-placeholder {
    z-index: 10; /* Ensure the navbar is above the video */
    position: relative;
}

#text-container {
    position: absolute; /* Ensure the text is above the video */
    bottom: 35px;
    left: 35px;
    z-index: 11;
    text-align: center;
    padding: 0;
}
