/* public/style.css */

/* Base + terminal feel */
body {
  background: #010;
  color: #0f0;
  font-family:
    /* macOS */ "SF Mono", "Menlo",
    /* Linux */ "Ubuntu Mono", "Fira Mono", "Liberation Mono",
    /* Windows */ "Consolas", "Lucida Console",
    /* fallback */ "Courier New", monospace;
  max-width: 100%;
  margin: 3em auto;
  padding: 0 1em;
  line-height: 1.6;
  text-shadow: 0 0 2px #0f0;
}

/* Heading glitch/flicker */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.4; }
}

h1 {
  white-space: nowrap;            /* never wrap onto a second line */
  overflow: hidden;               /* hide any tiny overflow, just in case */
  font-size: clamp(0.5rem, 3vw, 3rem);
  margin-bottom: 0.2em;
  color: #0f0;
  text-shadow: 0 0 8px #0f0;
  animation: flicker 3s infinite alternate;
}

/* Section titles */
h2 {
  margin: 0.3em 0 0.3em; /* top 0.8em, bottom 0.3em, no left/right change */
  border-bottom: 1px dashed #0f0;
  padding-bottom: 0.2em;
  font-size: 1.4em;
}

/* Counter styling */
#count {
  
  color: #ff0;
  text-shadow: 0 0 6px #ff0;
  display: inline-block;
  animation: flicker 2s infinite alternate-reverse;
}

/* Lists */
ul {
  list-style: none;
  padding-left: 1em;
}

ul li::before {
  content: "➤";
  margin-right: 0.5em;
  color: #0f0;
}

/* Links */
a {
  color: #0f0;
  text-decoration: underline;
}
a:hover {
  color: #ff0;
  text-shadow: 0 0 4px #ff0;
}

/* Sections */
section {
  margin-top: 1.5em;
  background: rgba(0, 255, 0, 0.03);
  padding: 0.8em;
  border-radius: 4px;
  box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.2);
}

/* Footer */
footer {
  margin-top: 3em;
  font-size: 0.8em;
  color: #060;
  text-align: center;
  border-top: 1px dashed #060;
  padding-top: 0.5em;
}

/* 1) Create the scan-lines overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: 
    repeating-linear-gradient(
      rgba(0, 0, 0, 0.15) 0px,
      rgba(0, 0, 0, 0.15) 1px,
      transparent 1px,
      transparent 3px
    );
  z-index: 9999;           /* above everything */
  mix-blend-mode: multiply;/* darken scan lines only */
  animation: scanflicker 0.15s infinite;
}

/* 2) CRT brightness flicker on the whole page */
@keyframes scanflicker {
  /* subtle intensity changes */
  0%   { opacity: 1; filter: brightness(0.98); }
  50%  { opacity: 0.95; filter: brightness(1.02); }
  100% { opacity: 1; filter: brightness(0.99); }
}

/* 3) (Optional) Slight overall shake / jitter */
@keyframes shake {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-0.5px, 0.5px); }
  50%  { transform: translate(0.5px, -0.5px); }
  75%  { transform: translate(-0.5px, -0.5px); }
  100% { transform: translate(0,0); }
}
body {
  animation: shake 5s infinite ease-in-out;
}

/* show a blinking underscore on the element currently being typed */
.typewriter {
  position: relative;
}
.typewriter::after {
  content: '_';
  position: absolute;
  right: 0;
  animation: blink 0.7s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* Stickers section: side-by-side links and QR */
#stickers .stickers-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;    /* <-- makes both flex items the same height */
  gap: 1rem;
  overflow-x: auto;        /* allow horizontal scrolling on very narrow screens */
}

/* Links take up remaining space */
#stickers .links {
  flex: 1;
}

/* QR image box */
#stickers .qr-img {
  flex: none;
  max-width: 200px;          /* adjust as needed */
}

#stickers .qr-img img {
  display: block;
  width: 50%;
  height: auto;
  border: 2px solid #0f0;    /* optional neon-green border */
  border-radius: 4px;
}

#stickers .qr-img a:hover img {
  outline: 2px dashed #0f0;
  cursor: pointer;
}