/* Reset and basic box-sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base styles for page */
html, body {
  background: #000; /* Black background */
  font-family: 'VCR OSD Mono', monospace; /* VCR font */
  color: #d4d4d4; /* Light grey text */
  overflow-x: hidden; /* Prevent horizontal scroll */
  height: 100%;
  position: relative;
}

/* Links styling */
a {
  color: #f00; /* Red links */
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #b2881b; /* Golden on hover */
  text-shadow: 0 0 5px #b2881b, 0 0 10px #b2881b;
  animation: glow-pulse 1s ease-in-out infinite alternate;
}

/* Glow pulse animation for links */
@keyframes glow-pulse {
  0% {
    text-shadow: 0 0 5px #b2881b, 0 0 10px #b2881b;
  }
  100% {
    text-shadow: 0 0 10px #b2881b, 0 0 20px #b2881b;
  }
}

/* Top bar that stays fixed at the top */
.top-bar {
  background: rgba(255, 0, 0, 0.2); /* Semi-transparent red */
  color: #ff4d4d; /* Light red text */
  text-align: center;
  padding: 10px;
  font-size: 1rem;
  position: fixed; /* Fix at top */
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000; /* On top of everything */
  overflow: hidden;
}

/* Scrolling rotating text inside top bar */
.rotating-text {
  display: inline-block;
  animation: rotateText 10s linear infinite;
  white-space: nowrap; /* Prevent line breaks */
}

/* Keyframes for scrolling text from right to left */
@keyframes rotateText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Centered container for logo and main title */
.centered {
  padding: 140px 20px 60px; /* Top padding leaves space for fixed top bar */
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Logo image styling */
.centered img {
  width: 250px;
  margin-bottom: 20px;
}

/* Glitch effect for main title */
.glitch {
  font-size: 2rem;
  font-weight: bold;
  color: #f00; /* Red text */
  text-shadow:
    0 0 5px #f00,
    0 0 10px #f00,
    0 0 20px #f00,
    0 0 40px #b2881b,
    0 0 80px #b2881b;
  animation: flicker 2s infinite alternate;
  margin-bottom: 10px;
}

/* Flicker animation for glitch */
@keyframes flicker {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* Fading text that tells user to click to play music */
#play-music-text {
  color: #f00; /* Red */
  font-family: 'VCR OSD Mono', monospace;
  font-size: 1rem;
  margin-top: 10px;
  animation: fadeInOut 3s ease-in-out infinite;
  user-select: none; /* Prevent text selection */
}

/* Fade in and out animation */
@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Section styles for content blocks */
section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  border-top: 1px solid #222;
  position: relative;
  z-index: 2;
}

/* Section titles */
section h2 {
  color: #f00; /* Red headings */
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Paragraph and list text */
section p, ul {
  font-size: 1rem;
  line-height: 1.6;
  color: #aaa; /* Light grey */
}

/* List style */
ul {
  list-style: square inside;
  padding-left: 10px;
}

/* Footer styles */
footer {
  text-align: center;
  color: #666;
  font-size: 0.8rem;
  padding: 40px 20px;
  border-top: 1px solid #111;
  position: relative;
  z-index: 2;
}

/* Style for the falling stars */
.star {
  position: fixed;
  top: -10px; /* Start just above the viewport */
  background: #ff0000; /* Red star */
  border-radius: 50%; /* Circle */
  opacity: 0.8;
  pointer-events: none; /* So they don't interfere with clicks */
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Falling animation moves star down and fades out */
@keyframes fall {
  to {
    transform: translateY(110vh); /* Move beyond viewport height */
    opacity: 0;
  }
}

