body {
  margin: 0;
  background: black;
  color: #0f0;
  font-family: 'Courier New', monospace;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  text-align: center;
  padding: 20px;
  font-size: 2em;
  color: #0f0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 2px solid #0f0;
  background: black;
  position: relative;
  z-index: 10; 
}

.hamburger-menu {
  cursor: pointer;
}

.dropdown-links.active {
  display: flex; 
}

.menu-toggle {
  font-size: 24px;
  color: #0f0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.2);
}

.dropdown-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: black;
  border-top: 1px solid #0f0;
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
  animation: dropdown 0.3s ease-in-out;
  z-index: 10; 
}

.dropdown-link {
  padding: 15px 20px;
  text-decoration: none;
  color: #0f0; 
  text-align: center;
  transition: background-color 0.2s, transform 0.2s;
}

.dropdown-link:hover {
  background-color: #00ff00; 
  color: black;
  transform: scale(1.1);
}

.dropdown-link:visited {
  color: #0f0; 
}

.dropdown-links.active {
  display: flex;
}

.fa {
  color: #0f0; 
  transition: color 0.2s ease;
}

.fa:hover {
  color: #00ff00; 
}

.fa:visited {
  color: #0f0; 
}

.fa-solid {
  color: #00ff00;
}

.fa-github {
  color: #00ff00;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.card {
  border: 2px solid #0f0;
  text-align: center;
  padding: 10px;
  background: black;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #0f0;
}

.card img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 10px;
}

.card video {
  width: 100%;
  height: auto;
  max-height: 200px;
  border-bottom: 2px solid #0f0;
}

.card audio {
  width: 90%; 
  border-bottom: 2px solid #0f0; 
  margin-bottom: 10px; 
  box-sizing: border-box; 
  background: black;
  color: #0f0;
  border: 2px solid #0f0;
  border-radius: 5px;
}

.card audio:hover {
  box-shadow: 0 0 20px #0f0; 
  transform: scale(1.02); 
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.card p {
  margin-top: 5px;
  color: #0f0;
  font-size: 1.1em;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 5px #0f0; 
}

.fa-solid {
  color: #00ff00;
}

.site-footer {
  text-align: center;
  padding: 10px;
  color: #0f0;
  border-top: 2px solid #0f0;
}

.form-container {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background-color: black;
  border: 2px solid #0f0;
  box-shadow: 0 0 15px #0f0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form label {
  color: #0f0;
  font-size: 1.2em;
}

form input,
form textarea {
  background-color: black;
  color: #0f0;
  border: 2px solid #0f0;
  padding: 10px;
  font-family: 'Courier New', monospace;
  font-size: 1em;
  border-radius: 4px;
  outline: none;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
  border-color: #00ff00;
  box-shadow: 0 0 10px #00ff00;
}

form button {
  background-color: #0f0;
  color: black;
  border: 2px solid #0f0;
  padding: 10px 20px;
  font-size: 1.2em;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

form button:hover {
  background-color: black;
  color: #0f0;
  box-shadow: 0 0 10px #0f0;
}

@keyframes dropdown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MATRIX CHOICE PAGE ===== */

.choice-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.choice-text {
  font-size: 2em;
  color: #0f0;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #0f0;
}

/* Anchor for pills */
.morpheus-wrapper {
  position: relative;
  display: inline-block;
}

.morpheus-img {
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 0 20px #0f0);
}

/* Pills */
.pill {
  position: absolute;
  width: 40px;
  height: 18px;
  border-radius: 20px;
  background: black;
  cursor: pointer;
  border: 2px solid;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* LEFT HAND — RED */
.red-pill {
  border-color: red;
  top: 58%;
  left: 30%;
}

.red-pill:hover {
  transform: scale(1.3);
  box-shadow: 0 0 20px red;
}

/* RIGHT HAND — BLUE */
.blue-pill {
  border-color: #00f;
  top: 58%;
  left: 55%;
}

.blue-pill:hover {
  transform: scale(1.3);
  box-shadow: 0 0 20px #00f;
}

.choice-subtext {
  margin-top: 25px;
  font-size: 1em;
  text-shadow: 0 0 5px #0f0;
}

.blinking::after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* ==========================================================================
   CHOICE PAGE  —  add these rules to the bottom of your existing main.css
   ========================================================================== */

/* ---- Layout ---- */
body[data-page="choice"] {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* ---- Coloured spans inside choice subtext ---- */
.red-text  { color: red;  text-shadow: 0 0 8px red; }
.blue-text { color: #44f; text-shadow: 0 0 8px #44f; }

/* ---- Headline fades in immediately ---- */
.choice-headline {
  opacity: 0;
  font-size: 1.8em;
  color: #0f0;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #0f0;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-out 0s forwards;
}

/* ---- Morpheus fades in slowly ---- */
.morpheus-img {
  opacity: 0;
  max-width: 320px;
  height: auto;
  animation: morpheusFadeIn 3s ease-in 0.8s forwards;
}


/* Pills layout without Morpheus image */
.pills-wrap {
  display: flex;
  gap: 60px;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}

.pill {
  position: static;
  opacity: 0;
  animation: pillAppear 0.6s ease-out 3.5s forwards;
}

.red-pill {
  animation: pillAppear 0.6s ease-out 3.5s forwards,
             redPulse 2s ease-in-out 4.2s infinite;
}

.blue-pill {
  animation: pillAppear 0.6s ease-out 3.8s forwards,
             bluePulse 2s ease-in-out 4.5s infinite;
}

@keyframes morpheusFadeIn {
  0%   { opacity: 0;   filter: drop-shadow(0 0 0px  #0f0) brightness(0.2); }
  40%  { opacity: 0.3; filter: drop-shadow(0 0 10px #0f0) brightness(0.5); }
  100% { opacity: 1;   filter: drop-shadow(0 0 25px #0f0) brightness(1);   }
}

/* ---- Pills appear after Morpheus ---- */
.pill {
  opacity: 0;
  animation: pillAppear 0.6s ease-out 3.5s forwards;
}

@keyframes pillAppear {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1);   }
}

/* ---- Red pill ---- */
.red-pill {
  background: radial-gradient(ellipse at center, #550000 0%, black 100%);
  border-color: red;
  animation: pillAppear 0.6s ease-out 3.5s forwards,
             redPulse    2s ease-in-out  4.2s infinite;
}

@keyframes redPulse {
  0%, 100% { box-shadow: 0 0 5px red; }
  50%       { box-shadow: 0 0 18px red, 0 0 35px rgba(255, 0, 0, 0.3); }
}

/* ---- Blue pill ---- */
.blue-pill {
  background: radial-gradient(ellipse at center, #000033 0%, black 100%);
  border-color: #00f;
  animation: pillAppear 0.6s ease-out 3.8s forwards,
             bluePulse   2s ease-in-out  4.5s infinite;
}

@keyframes bluePulse {
  0%, 100% { box-shadow: 0 0 5px #00f; }
  50%       { box-shadow: 0 0 18px #00f, 0 0 35px rgba(0, 0, 255, 0.3); }
}

/* ---- Subtext fades in last ---- */
.choice-subtext {
  opacity: 0;
  animation: fadeInUp 1s ease-out 4.2s forwards;
}

/* ---- Shared fade-up keyframe ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ---- Cinematic vignette ---- */
.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, black 100%);
  pointer-events: none;
  z-index: 5;
}

/* ---- White flash overlay (fires on pill click) ---- */
.flash-overlay {
  position: fixed;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.05s ease;
}

.flash-overlay.active {
  opacity: 1;
  transition: opacity 0.6s ease;
}