@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}


.glitchyline, .container p {
  position: relative;
  animation: textFlicker 8s infinite;
}

@keyframes textFlicker {
  0%, 100% { opacity: 1; }
  48% { opacity: 0.92; }
  50% { opacity: 0.35; transform: translateX(-0.5px); }
  52% { opacity: 0.9; transform: translateX(0.3px); }
}


a {
  color: #ff80c0;
  text-decoration: none;
  border-bottom: 1px dashed #ff80c0;
  animation: pulseLink 3s infinite;
}

@keyframes pulseLink {
  0%, 100% { text-shadow: 0 0 2px #ff80c0; }
  50% { text-shadow: 0 0 12px #ff66aa; }
}

body {
  background: radial-gradient(circle, #150013 0%, #0d0010 100%);
  font-family: 'Courier New', monospace;
  color: #fceaff;
  padding: 2em;
  line-height: 1.7;
  animation: flicker 6s infinite;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 200, 0.02),
    rgba(0, 255, 200, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: screen;
  animation: scanShift 6s infinite linear;
}

@keyframes scanShift {
  0% { transform: translateY(0); }
  100% { transform: translateY(2px); }
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 10vh auto;  
  padding: 1.5em;
  border-radius: 18px;
  box-sizing: border-box;
  background: rgba(0, 20, 20, 0.1);
  border: 2px solid #00ffcc;
  box-shadow:
    0 0 10px #00ffeeaa,
    0 0 25px #00ffccaa,
    0 0 45px #00ffee66;
  backdrop-filter: blur(2px);
  transition: box-shadow 0.3s ease-in-out;
}


h1 {
  font-size: 2.2em;
  color: #f5d6ff;
  margin-bottom: 0.2em;
  text-shadow: 1px 1px #550077;
}

h2 {
  font-size: 1em;
  color: #aa66cc;
  margin-top: 0;
  letter-spacing: 0.05em;
}


a {
  color: #ff80c0;
  text-decoration: none;
  border-bottom: 1px dashed #ff80c0;
}
a:hover {
  background-color: #ff80c0;
  color: #000;
}


.glitchnote {
  font-style: italic;
  color: #caa0ff;
  margin-top: 2em;
  border-top: 1px dashed #aa66cc;
  padding-top: 1em;
}

.glitchyline {
  text-transform: lowercase;
  color: #ffbbee;
  margin: 1em 0;
}


@media (max-width: 600px) {
  body {
    padding: 1em;
  }

  .container {
    padding: 1.2em 1em;
    box-shadow:
      0 0 8px #00ffeeaa,
      0 0 18px #00ffcc88;
  }

}

.rec-light {
  position: fixed;
  top: 1.2em;
  right: 1.2em;
  width: 14px;
  height: 14px;
  background-color: #ff66cc;
  border-radius: 50%;
  box-shadow:
    0 0 6px #ff66cc,
    0 0 14px #ff33aa,
    0 0 28px #ff99dd,
    0 0 40px #ff66ccaa;
  animation: blinkRec 4.5s infinite ease-in-out;
  z-index: 1000;
}

@keyframes blinkRec {
  0%, 100% {
    opacity: 1;
    box-shadow:
      0 0 6px #ff66cc,
      0 0 14px #ff33aa,
      0 0 28px #ff99dd,
      0 0 40px #ff66ccaa;
  }
  50% {
    opacity: 0.3;
    box-shadow:
      0 0 2px #ff66cc55,
      0 0 8px #ff339988,
      0 0 12px #ff66cc33;
  }
}