@charset "UTF-8";
/* CSS Document */

/* Basic body reset */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
}
.lead {
  font-size: 1.2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}
/* Container for the video to ensure it stays in the background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -100; /* Puts the video behind all other content */
  pointer-events: none;
}

/* The actual video element styling */
#bg-video {
  width: 100vw; /* 100% of the viewport width */
  height: 100vh; /* 100% of the viewport height */
  object-fit: cover; /* Fills the entire screen without stretching */
}

/* The overlay sits on top of the video to hold the content */
.content-overlay {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  /* Adds a dark, semi-transparent layer for text readability */
  background-color: rgba(0, 0, 0, 0.5); 
}

.main-content {
  max-width: 1200px;
  padding: 2rem;
}

.main-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Flex container for the thumbnails */
.thumbnail-container {
  display: flex;
  justify-content: center;
  gap: 2rem; /* Space between thumbnails */
  flex-wrap: wrap;
}

/* Styling for each thumbnail link */
.thumbnail {
  display: block;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease;
}

.thumbnail img {
  border-radius: 8px;
  border: 3px solid #fff;
  margin-bottom: 0.75rem;
}

.thumbnail span {
  font-weight: bold;
  overflow-wrap: break-word;
}

/* Hover effect for thumbnails */
.thumbnail:hover {
  transform: scale(1.08);
}

.thumbnail span {
  display: block; /* Allows the element to have a defined width */
  width: 200px;   /* Matches the image width */
  font-size: 1.1rem;
  font-weight: bold;
  overflow-wrap: break-word; /* Ensures long text wraps correctly */
}
/* For screens 768px and wider (tablets and desktops) */
@media (min-width: 768px) {
  .thumbnail-container {
    gap: 6rem; /* Increases the space between thumbnails */
  }
}
/*
 * UFO TELETYPE ANIMATION
 */

.ufo-title-container {
  position: relative;
  /* Adjust height to fit your h1's font size */
  height: 80px; 
  display: flex;
  justify-content: center;
  align-items: center;
}

/* This is the main H1 container */
.wrapping-teletype {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.8rem; /* Mobile-first font size */
  color: #00ffc3;
  /* Allows the text to wrap naturally */
  white-space: normal;
  /* Ensures the container takes up space to prevent layout shifts */
  min-height: 120px; 
}
/* The UFO element */
.ufo {
  position: absolute;
  font-size: 5rem;
  left: -10%;
}

.ufo-fly {
  /* The animation is now here, so we can trigger it on demand */
  animation: fly-by 6s linear forwards;
}

/* Animation for the UFO flying across the screen */
@keyframes fly-by {
  0% {
    left: -10%;
    transform: translateY(0);
  }
  20% {
    /* Position UFO at the start of the text just as typing begins */
    left: 15%; 
    transform: translateY(-20px);
  }
  80% {
    /* Position UFO at the end of the text as typing finishes */
    left: 85%;
    transform: translateY(10px);
  }
  100% {
    /* Fly off-screen to the right */
    left: 110%;
    transform: translateY(-30px);
  }
}

/* The blinking cursor element */
.wrapping-teletype .cursor {
  display: inline-block;
  background-color: #00ffc3;
  margin-left: 2px;
  /* The blinking animation */
  animation: blink 1s infinite;
}

/* Increase font size on tablets and up */
@media (min-width: 768px) {
  .wrapping-teletype {
    font-size: 3.5rem;
    min-height: 150px;
  }
}

/* The new blinking animation for the cursor */
@keyframes blink {
  0%   { background-color: #00ffc3; }
  49%  { background-color: #00ffc3; }
  50%  { background-color: transparent; }
  99%  { background-color: transparent; }
  100% { background-color: #00ffc3; }
}
/*
 * RESPONSIVE STYLES FOR MOBILE DEVICES
 */

@media (max-width: 767px) {

  /* --- FIX: Align content to the top on mobile --- */
  .content-overlay {
    /* Stop centering and align content to the top */
    align-items: flex-start;
    /* Add some comfortable padding from the top and bottom */
    padding-top: 4rem;
    padding-bottom: 4rem;
    /* Allow the overlay to grow taller than the screen if needed */
    height: auto;
    min-height: 100%;
  }

  /* --- 1. Fix the Teletype Title --- */
  
  .teletype-title {
    /* Reduce font size to fit on small screens */
    font-size: 1.8rem; 
  }

  .ufo {
    /* Make the UFO smaller to match the new title size */
    font-size: 2.5rem;
  }
  
  .ufo-title-container {
    /* Reduce the container height to prevent excess empty space */
    height: 60px;
  }

  /* --- 2. Fix the Overflowing Thumbnails --- */

  .thumbnail-container {
    /* Reduce the gap between thumbnails on mobile */
    gap: 1rem;
  }

  .thumbnail img {
    /* Make the thumbnail images smaller */
    width: 140px;
    height: 84px;
  }

  .thumbnail span {
    /* Make the thumbnail text container match the smaller image width */
    width: 140px;
  }
}