/* =========================
   COLOR VARIABLES
   ========================= */
:root {
  --hot-pink: #ff2599;
  --light-pink: #ffc8e8;
  --text-pink: #fb7cc4;
  --white: #ffffff;
  --black: rgba(0, 0, 0, 0.8); /* 80% transparency */
}

/* =========================
   BASE STYLES
   ========================= */
html, body {
  margin: 0;
  padding: 0;
  background-color: #000000;
  color: var(--text-pink);
  font-family: Garamond, "Times New Roman", serif;
}

/* Subtle background texture vibe */
body {
  background-image: linear-gradient(
    135deg,
    rgba(255, 37, 153, 0.05),
    rgba(251, 124, 196, 0.05)
  );
}

/* =========================
   MODULES / BOXES
   ========================= */
.module,
.box {
  background-color: var(--black);
  border: none;
  border-radius: 14px;
  padding: 1rem;
  margin: 1rem 0;
  font-family: Garamond, "Times New Roman", serif;

  box-shadow:
    0 0 0 1px rgba(255, 37, 153, 0.7),
    0 0 10px rgba(255, 37, 153, 0.5),
    inset 0 0 6px rgba(255, 200, 232, 0.15);
}

.module:hover,
.box:hover {
  box-shadow:
    0 0 12px rgba(255, 200, 232, 0.35),
    inset 0 0 8px rgba(255, 37, 153, 0.2);
}


/* =========================
   HEADINGS
   ========================= */
h1, h2, h3, h4 {
  color: var(--hot-pink);
  text-shadow: 0 0 6px rgba(255, 37, 153, 0.6);
  margin-top: 0;
}

/* =========================
   LINKS
   ========================= */
a {
  color: var(--text-pink);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Flicker animation */
@keyframes flicker {
  0%   { opacity: 1; }
  20%  { opacity: 0.8; }
  40%  { opacity: 1; }
  60%  { opacity: 0.6; }
  80%  { opacity: 1; }
  100% { opacity: 0.9; }
}

a:hover {
  color: var(--light-pink);
  text-shadow:
    0 0 5px var(--light-pink),
    0 0 10px var(--hot-pink);
  animation: flicker 0.15s infinite;
}

/* =========================
   TEXT SELECTION
   ========================= */
::selection {
  background: var(--hot-pink);
  color: var(--white);
}

/* =========================
   SCROLLBAR (webkit)
   ========================= */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: var(--hot-pink);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--light-pink);
}

/* =========================
   FOOTER / SMALL TEXT
   ========================= */
footer,
small {
  color: var(--light-pink);
  opacity: 0.85;
}

/* =========================
   FULL CRT EFFECT STACK
   ========================= */

/* Scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;

  background:
    linear-gradient(
      rgba(0, 0, 0, 0.15) 50%,
      rgba(0, 0, 0, 0.3) 50%
    );

  background-size: 100% 2px;
  mix-blend-mode: multiply;
}

/* RGB subpixel bleed */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;

  background:
    linear-gradient(
      90deg,
      rgba(255, 37, 153, 0.03),
      rgba(255, 200, 232, 0.03),
      rgba(251, 124, 196, 0.03)
    );

  mix-blend-mode: screen;
}

/* Subtle flicker */
@keyframes crt-flicker {
  0%   { opacity: 0.96; }
  50%  { opacity: 1; }
  100% { opacity: 0.97; }
}

body {
  animation: crt-flicker 0.15s infinite;
  filter: contrast(1.05) saturate(1.1);
}

/* =========================
   SCROLLABLE MODULE
   ========================= */
.scroll-box {
  max-height: 420px;      /* adjust to taste */
  overflow-y: auto;
  overflow-x: hidden;
}

.scroll-box img {
  max-width: 100%;
  max-height: 300px;   /* adjust this number */
  height: auto;
  display: block;
  margin: 0 auto;
}
