#hero {
  height: 100vh;
}

/* gradient background */
.hero-bg {
  background: #fff;
}

/* size your logo */
.hero-logo {
  max-width: 540px;
  height: auto;
  pointer-events: none;
}

/* computer positioning (unchanged) */
.hero-computer {
  bottom: 5%;
  right: 10%;
  width: 35%;
  pointer-events: none;
}

/* flying circles (z-index bumped to 4) */
.fly {
  position: absolute;
  width: 35px; height: 35px;
  background: #007bff;
  border-radius: 50%;
  opacity: 0.5;
}
.fly-1 { top: 25%; left: -40px; animation: flyRight 9s linear infinite; }
.fly-2 { top: 55%; left: -50px; animation: flyRight 13s linear infinite; }
.fly-3 { top: 45%; left: -30px; animation: flyRight 11s linear infinite; }

@keyframes flyRight {
  0%   { transform: translateX(0) translateY(0) scale(0.8); }
  50%  { transform: translateX(110vw) translateY(-8vh) scale(1.1); }
  100% { transform: translateX(0) translateY(0) scale(0.8); }
}
/* 1) Full-screen overlay */
#question-dialog {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2000;
}

/* electric-bg stays at z=0 */
.electric-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, #001f3f 0%, #000615 100%);
  filter: blur(8px);
  animation: bgDrift 20s ease-in-out infinite;
  z-index: 0;
}


@keyframes bgDrift {
  0%   { transform: scale(1) translate(0,0); }
  50%  { transform: scale(1.02) translate(10px, -10px); }
  100% { transform: scale(1) translate(0,0); }
}

/* 3) Lightning flash overlay */
.lightning {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
}

/* 4) Centered question + input */
#question-container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1024px;
  text-align: center;
  color: white;
}

/* 5) Glowing question text */
#question-text {
  font-size: calc(1.5rem + 2vw);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px #00dffc;
}

/* 6) Underline-only input */
.answer-input {
  width: 100%;
  max-width: 400px;
  font-size: 1.1rem;
  padding: .5rem 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(0,223,252,0.8);
  color: white;
  text-align: center;
  outline: none;
}
.answer-input::placeholder {
  color: rgba(255,255,255,0.6);
}

/* shake on invalid */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,80% { transform: translateX(-8px); }
  40%,60% { transform: translateX(8px); }
}
.answer-input.shake {
  animation: shake 0.5s;
}

/* flash-pattern on top of that */
.flash-pattern {
  position: absolute;
  inset: 0;
  background: #b4a7a7 url('/imgs/asfalt-light.png') repeat;
  background-size: 200px 200px;     /* make the pattern a bit bigger so it's visible */
  filter: blur(4px) brightness(1.6);
  
  /* layering */
  z-index: 1;
  pointer-events: none;

  /* start invisible */
  opacity: 0;

  /* longer animation, stronger peak */
  animation: patternFlash 12s ease-in-out infinite;
}

@keyframes patternFlash {
  /* stay invisible most of the time */
  0%, 80%, 100% { opacity: 0; }
  /* visible for a longer window */
  85%, 90% { opacity: 0.4; }
}

/* common spec style */
.light-spec {
  position: absolute;
  width: 200px;  height: 186px;     /* adjust to your PNG size */
  background: url('/imgs/lightning-spec2.png') no-repeat center/contain;
  opacity: 0;
  pointer-events: none;
  z-index: 1;                        /* between bg(0) and content(2) */
  animation: specFlash 8s ease-in-out infinite;
}

/* place them around the screen */
.spec-1 { top: 15%; left: 20%;  animation-delay: 1s; }
.spec-2 { top: 40%; left: 75%;  animation-delay: 3s; }
.spec-3 { top: 70%; left: 30%;  animation-delay: 5s; }
.spec-4 { top: 25%; left: 50%;  animation-delay: 7s; }

/* quick fade-in/out for each spec */
@keyframes specFlash {
  0%, 88%, 100%   { opacity: 0; }
  90%, 92%       { opacity: 1; }
}