/* === BACKGROUND === */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  position: relative;
  font-family: Arial, sans-serif;
  background-color: #222; /* brighter background */
}

/* Background image */
.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('tube.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(1); /* brighter */
  z-index: 1;
}

/* Soft overlay */
.background::after {
  content: "";
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background-color: rgba(0,0,0,0.1); /* lighter overlay */
  z-index:2;
}

/* === STARS === */
#stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 0 0 6px white;
  animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.2; transform: scale(0.8);}
  to { opacity: 1; transform: scale(1.2);}
}

/* === TEXT OVERLAY === */
.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  animation: fadeIn 1.5s ease forwards;
}

/* Letters */
.letter {
  display: inline-block;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Preserve spaces */
.letter.space {
  width: 0.5em;
}

/* Main title */
h1 {
  font-family: "Georgia", serif;
  font-size: 4rem;
  color: #7c1f1f;
  margin-bottom: 0.3em;
  letter-spacing: 1px;
  cursor: pointer;
}

/* Individual hover pop per heading */
h1:hover .letter {
  transform: scale(1.1);
}

/* Subtitle */
h2 {
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 1.6rem;
  color: #555555; /* lighter grey */
  margin-bottom: 0.7em;
  cursor: pointer;
}

/* Individual hover pop per heading */
h2:hover .letter {
  transform: scale(1.1);
}

/* Paragraph */
.click-to-continue {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: #f8f8f8; /* slightly brighter */
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  z-index: 10;
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

/* Individual hover pop for paragraph letters */
.click-to-continue:hover .letter {
  transform: scale(1.1);
  text-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0;}
  to { opacity: 1;}
}
