body {
  font-family: sans-serif;
  margin: 0;
  background-color: black;
}

.section {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.526) 1%, rgba(0,0,0,0)),
    linear-gradient(to top, rgb(0, 0, 0) 0%, rgba(0,0,0,0)),
    url("../images/background.jpg");
  background-attachment: scroll;
  background-repeat: no-repeat;
  min-height: 70vh;
  background-size: cover;
  margin-bottom: 5vh;
  position: relative;
}

.nav {
  background: linear-gradient(to bottom, rgb(0, 0, 0) 1%, rgba(0,0,0,0));
}

.nav img {
  display: block;
  width: 120px;
  max-width: 40%;
  height: 65%;
  margin: auto;
  padding: 20px;
  transition: 1s;
}

.backgroundimage {
  height: auto;
  max-width: 800px;
  width: 90%;
  margin: auto;
  text-align: left;
}

.backgroundimage h1 {
  font-size: 2em;
  justify-content: left;
}

.about {
  background-color: rgba(0, 0, 0, 0.416);
  border-radius: 10px;
  padding: 10px 30px;
}

input {
  margin: auto;
  margin-top: 50px;
  width: 40%;
  height: 5vh;
  border-radius: 25px;
  border: 0;
  border-style: solid;
  border-color: white;
  background-color: rgba(255, 255, 255, 0.148);
  padding-left: 10px;
  color: white;
  display: block;
}

input::placeholder {
  color: rgb(255, 255, 255);
}

/* ==========================================
   Picker Buttons
   ========================================== */
.random-picker-section {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0 10px 0;
}

.picker-btn {
  background: linear-gradient(135deg, #e50914, #ff416c);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  font-family: "Audiowide", sans-serif;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.picker-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.7);
}

.picker-btn.retry-btn {
  background: linear-gradient(135deg, #3a3d40, #181719);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

/* ==========================================
   Marquee Strip & Track
   ========================================== */
.marquee-section {
  width: 100%;
  margin: 30px 0;
  position: relative;
}

.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(10, 10, 15, 0.7);
  border-top: 1px solid rgba(229, 9, 20, 0.3);
  border-bottom: 1px solid rgba(229, 9, 20, 0.3);
  padding: 35px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.marquee-item {
  flex: 0 0 140px;
  width: 140px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.marquee-item:hover {
  transform: translateY(-6px) scale(1.05);
}

.marquee-item .marquee-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.marquee-item:hover .marquee-poster {
  border-color: rgba(229, 9, 20, 0.8);
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.marquee-item p {
  font-size: 12px;
  font-family: "Audiowide", sans-serif;
  color: #e0e0e0;
  margin: 8px 0 0 0;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Glowing Selected Highlight */
.marquee-item.selected-target .marquee-poster {
  border-color: #ff0000 !important;
  box-shadow: 0 0 25px #ff0000d6, inset 0 0 10px #ff0000d6 !important;
  transform: scale(1.1);
}

.marquee-item.selected-target p {
  color: #00ffcc;
  font-weight: bold;
}

/* Center Pointer Arrows */
.center-pointer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: #e50914;
  font-size: 20px;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(229, 9, 20, 0.8));
}

.pointer-top {
  top: 8px;
  animation: centerPulseDown 1.2s infinite ease-in-out;
}

.pointer-bottom {
  bottom: 8px;
  animation: centerPulseUp 1.2s infinite ease-in-out;
}

@keyframes centerPulseDown {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 4px); }
}

@keyframes centerPulseUp {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -4px); }
}

/* ==========================================
   Main Content Grid & Responsive
   ========================================== */
.background {
  margin-top: 25px;
  width: 200px;
  max-width: 90%;
  border-radius: 10px;
  box-shadow: 0px -10px 40px 0px rgba(4, 0, 255, 0.384);
}

.background1 {
  width: 100%;
  border-radius: 10px 10px 0px 0px;
  display: block;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 10%);
  mask-image: linear-gradient(to top, transparent 0%, black 10%);
}

.emergency-text {
  font-weight: bold;
  text-transform: uppercase;
  color: #ff0000; 
  animation: pulse-red 0.7s infinite alternate;
}

@keyframes pulse-red {
  0% {
    color: #ff0000;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
  }
  100% {
    color: #ffcc00;
    text-shadow: 0 0 20px rgba(255, 204, 0, 1);
  }
}

.images {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-left: 30px;
  margin-right: 30px;
}

p, h1 {
  color: white;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-family: "Audiowide", sans-serif;
}

h2 {
  color: white;
  display: flex;
  justify-content: left;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  font-family: "Audiowide", sans-serif;
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 50px;
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: 0.3s ease;
}

.image-wrapper:hover::after {
  opacity: 1;
}

.image-wrapper:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .images { gap: 20px; }
  .background { width: 45%; max-width: 200px; min-width: 120px; }
  .background h1 { margin-top: 5px; font-size: 12px; }
  .backgroundimage { margin-top: 80px; }
  input { width: 80%; }
  p, h1 { font-size: 14px; line-height: 1.5; }
  .section { min-height: 50vh; background-position: center top; }
  footer { padding-bottom: 50px; }
  .about { padding-left: 10px; padding-right: 10px; }
  .marquee-item { flex: 0 0 115px; width: 115px; }
  .marquee-container { padding: 28px 0; }
  .center-pointer { font-size: 15px; }
}

@media (max-width: 480px) {
  .marquee-item { flex: 0 0 95px; width: 95px; }
  .marquee-container { padding: 20px 0; }
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
  background: linear-gradient(to bottom, rgba(253, 5, 5, 0.37) 1%, rgba(0,0,0,0));
  box-shadow: 0px 115px 60px 119px rgb(253, 5, 5);
  color: #a0a0a0;
  padding: 40px 20px 20px;
  font-family: "Audiowide", sans-serif;
  border-top: 1px solid rgb(255, 0, 0);
  margin-top: 100px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand, .footer-links, .footer-share { flex: 1 1 250px; }
.footer-logo img { height: 45px; width: auto; margin-bottom: 12px; }
.footer-tagline { font-size: 0.9rem; line-height: 1.5; color: #888; }
.footer-links h4, .footer-share h4 { color: #fff; font-size: 1.1rem; margin-bottom: 15px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links a { color: #aaa; text-decoration: none; font-size: 0.95rem; transition: color 0.2s ease; }
.footer-links a:hover { color: #e50914; }
.footer-share p { font-size: 0.9rem; margin-bottom: 12px; }
.social-icons { display: flex; gap: 12px; }

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: #1c1c24;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover { background-color: #e50914; transform: translateY(-3px); }
.footer-bottom { max-width: 1100px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid #1c1c24; text-align: center; font-size: 0.85rem; color: #666; }