body {
background-color: #000;
color: #eeeeee;
font-family: 'Courier New', monospace;
padding: 3em;
text-align: left;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(to bottom,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 2px
    );
    pointer-events: none;
   z-index: 999;
}


.link {
  position: fixed;
  bottom: 1.5em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1em;
  text-decoration: none;
  color: #33ffff; /* teal text */
  text-shadow:
    0 0 4px #ff66cc,
    0 0 8px #ff66cc; /* pink glow */
  z-index: 50;
  padding: 0.4em 0.8em;
  background-color: transparent;
  transition: all 0.2s ease;
  animation: glitch-flicker 1.2s infinite;
  border: none;
}


.link:hover {
  text-shadow:
    0 0 6px #ff66cc,
    0 0 12px #ff66cc,
    0 0 4px #33ffff;
  transform: scale(1.03);
  border-color: #ff66cc;
}



a:active {
  background-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 14px #c150ffaa;
  transform: scale(0.98);
}


a:visited {
  color: #33ffff;
  background-color: transparent;
  border: none;
  box-shadow: none;
}


.glow {
      color: #00ffff;
      font-size: 1.3em;
      margin-bottom: 2em;
      text-shadow: 0 0 10px #00ffff;
    }

.quiet {
      font-style: italic;
      color: #8888ff;
      margin-top: 1em;
      font-size: 0.95em;
    }

.caption {
  text-align: center;
  font-size: 0.85em;
  color: #cccccc;
  margin-top: 0.5em;
  text-shadow: 0 0 3px #00ffff;
  font-family: 'Courier New', monospace;
}

 

input[type="text"] {
  width: 100%;
  background: #000;
  color: #33ffff;
  border: 1px solid #33ffff66;
  font-family: 'Courier New', monospace;
  font-size: 1em;
  padding: 1em;
  outline: none;
  box-shadow: 0 0 8px #33ffff33;
  text-shadow: 0 0 3px #33ffff;
  }

.title {
  font-size: 1.3em;
  margin-bottom: 1em;
  color: #ff66cc;
  text-shadow: 0 0 6px #ff66cc, 0 0 12px #33ffff;
}


.viewer-log {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px dashed #00ffff66;
  padding: 1em 1.5em;
  margin: 2em auto;
  max-width: 700px;
  font-family: 'Courier New', monospace;
  color: #00ffff;
  font-size: 0.9em;
  line-height: 1.5em;
  white-space: pre-wrap;
  box-shadow: 0 0 10px #00ffff22;
  text-shadow: 0 0 2px #00ffff;
}
  
  
  
.memory-box {
  line-height: 1.3;
  background-color: #00031a;
  border: 4px solid #ff66cc66;
  padding: 2em;
  margin-bottom: 0.5em;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  box-shadow:
    inset 0 0 10px #00ffff,
    0 0 10px #00ffff88,
    0 0 20px #ff66cc55,
    0 0 30px #00ffff33;
  animation: pulseGlow 2s infinite alternate;
  white-space: pre-line;
  border-radius: 8px; /* 👈 added this */
}



    
.log {
  background-color: #00031a;
  border: 4px solid #33ffff55;
  padding: 2em;
  margin-bottom: 0.5em;
  box-shadow: inset 0 0 10px #ff66cc44;
  text-shadow: 0 0 4px #33ffff;
  white-space: pre-line;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.codebox {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #ff66cc55;
  padding: 1em;
  margin: 2em auto;
  width: 80%;
  max-width: 600px;
  color: #ccccff;
  text-align: left;
  font-size: 0.9em;
  white-space: pre-wrap;
}

.cache-box {
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid #ff66cc66;
  padding: 1em;
  margin: 2em auto;
  max-width: 700px;
  box-shadow: 0 0 8px #ff66cc44;
  line-height: 1.5em;
}

.typed {
  display: inline-block;
  overflow: hidden;
  border-right: 0.1em solid #ff66cc;
  white-space: nowrap;
  animation: typing 4.5s steps(50, end), blink 1s step-end infinite;
}



i {
  color: #ffb3ec;
  font-style: italic;
}

.glitch {
  font-size: 1.7em;
  color: #ff33aa;
  text-shadow:
    0 0 3px #ff00ff,
    0 0 6px #00ffff,
    0 0 12px #ff00ff,
    0 0 24px #ff33cc;
  animation: flicker 1.1s infinite alternate;
  margin-bottom: 2em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes flickerGlitch {
  0%   { filter: brightness(1.0) contrast(1.1); }
  50%  { filter: brightness(1.2) contrast(1.3); transform: translate(-50%, -50%) scale(1.01); }
  100% { filter: brightness(1.1) contrast(1.2); transform: translate(-50%, -50%) scale(1.03); }
}


.glitch-speech span {
  display: inline-block;
  animation: glitchWord 1.5s infinite alternate;
  animation-delay: calc(var(--i) * 0.1s);
  text-shadow:
    0 0 3px #ff00ff,
    0 0 6px #00ffff,
    0 0 12px #ff00ff,
    0 0 24px #ff33cc;
  color: #ff33aa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


.glitch-box {
  background-color: #0a001a;
  border: 2px solid #ff33cc;
  padding: 2em;
  margin: 2em auto;
  max-width: 800px;
  box-shadow: 0 0 12px #ff33cc44;
  animation: glitchFade 2.5s infinite alternate;
}

@keyframes glitchWord {
  0%   { transform: translate(0px, 0px); opacity: 1; }
  20%  { transform: translate(-1px, 1px) skewX(-2deg); opacity: 0.85; }
  40%  { transform: translate(1px, -1px) skewY(1deg); opacity: 0.75; }
  60%  { transform: translate(-0.5px, 0px); opacity: 0.9; }
  80%  { transform: translate(0px, 1px); opacity: 0.6; }
  100% { transform: translate(0px, 0px); opacity: 1; }
}

@keyframes pulseGlow {
  0% {
    filter: brightness(1) saturate(1);
    box-shadow:
      inset 0 0 10px #00ffff,
      0 0 10px #00ffff88,
      0 0 20px #ff66cc55,
      0 0 30px #00ffff33;
  }
  100% {
    filter: brightness(1.3) saturate(1.4);
    box-shadow:
      inset 0 0 14px #00ffff,
      0 0 14px #00ffffcc,
      0 0 30px #ff66cc88,
      0 0 40px #00ffff66;
  }
}


.ghost-clue {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.2em;
  color: #33ffff;
  text-shadow:
    0 0 5px #33ffff,
    0 0 10px #ff66cc,
    0 0 15px #ff33aa;
  opacity: 0;
  animation:
    ghostDescendToBottom 8s ease-out forwards,
    ghostFlicker 6s ease-in-out infinite 8s;
  z-index: 999;
  pointer-events: none;
}

@keyframes ghostDescendToBottom {
  0% {
    top: 0;
    opacity: 0;
    filter: blur(2px);
    transform: translateX(-50%) scale(0.95) rotate(-3deg);
  }
  25% {
    top: 20vh;
    opacity: 0.4;
    transform: translateX(-52%) scale(1.02) rotate(2deg);
  }
  50% {
    top: 45vh;
    opacity: 0.6;
    transform: translateX(-48%) scale(1.03) rotate(-2deg);
  }
  75% {
    top: 70vh;
    opacity: 0.8;
    transform: translateX(-51%) scale(1.01) rotate(1deg);
  }
  100% {
    top: calc(100vh - 2em);
    opacity: 0.9;
    filter: none;
    transform: translateX(-50%) scale(1) rotate(0deg);
  }
}



@keyframes ghostFlicker {
  0%, 100% {
    text-shadow: 0 0 5px #33ffff, 0 0 10px #ff66cc;
    opacity: 0.9;
  }
  45% {
    text-shadow: 0 0 8px #ff66cc, 0 0 12px #ff33aa;
    opacity: 1;
  }
  60% {
    text-shadow: 0 0 4px #33ffff;
    opacity: 0.7;
  }
  80% {
    opacity: 0.95;
  }
}




.static-line {
  color: #9999ff;
  font-style: italic;
}

.taped-photo {
  position: absolute;
  top: 300px;
  left: 900px;
  z-index: 2;
  max-width: 360px;

}

.taped-photo img:first-child {
  width: 100%;
  display: block;
  border: none;
  box-shadow: none;
}

.tape {
  position: absolute;
  width: 80px;
  pointer-events: none;
}

.tape-top {
  top: -66px;
  left: 50%;
  transform: translateX(-50%)
}


.image-grid {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
  margin: 2em auto;
  max-width: 1000px;
}

.image-grid img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border: 2px solid #33ffff55;
  box-shadow: 0 0 10px #33ffff44;
  filter: grayscale(100%) contrast(120%);
  transition: all 0.3s ease;
}

.image-grid img:hover {
  filter: none;
  box-shadow: 0 0 18px #ff66cc99;
}



.window {
  border: 2px solid #00ffff;
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 10px #00ffff66;
  padding: 1em;
  position: absolute;
  width: 300px;
  height: 200px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.window.expanded {
    width: 40vw;
    height: 100vh;
    z-index: 10;
}

.titlebar {
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #ff66cc;
}

.image-window img {
    width: 100%;
    height: auto;
    border: 1px solid #ff66cc;
}


 
.window:hover {
  box-shadow: 0 0 12px var(--glow-purple), 0 0 30px var(--glow-cyan);
  transform: scale(1.02);
}
  

.glitchy-word:hover {
  color: #ff33cc;
  text-shadow:
    0 0 6px #ff00ff,
    0 0 12px #00ffff,
    0 0 20px #ff00ff,
    0 0 32px #33ffff;
  transform: scale(1.02);
}


.glitchy-word {
  cursor: pointer;
  color: #00ffff;
  transition: all 0.2s ease;
}






.cursor {
  display: inline-block;
  width: 1ch;
  animation: blink 1s infinite;
}




.popup {
  display: none;
  margin-top: 1em;
  padding: 1em;
  border: 1px dashed #ff66cc;
  background-color: #190019;
  color: #ffccff;
  box-shadow: 0 0 8px #ff66cc55;
}
.hidden {
  display: none;
}




.haunted-monitor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0.06; 
  pointer-events: none; 
  mix-blend-mode: lighten; 
  filter: grayscale(100%) contrast(120%) brightness(80%);
}


.flicker {
  animation: flickerAnim 0.15s steps(2, end) infinite;
}


    
    
.diary-complete {
  animation: pulseGlow 2s infinite alternate;
  text-shadow: 0 0 6px #ff66cc, 0 0 12px #ff00ff;
}



.subtext {
    margin-top: 2em;
    font-size: 1em;
    color: #9900cc;
    text-shadow: 0 0 6px #ff00ff55;
}

  .diary-complete {
  animation: pulseGlow 2s infinite alternate;
  text-shadow: 0 0 6px #ff66cc, 0 0 12px #ff00ff;
}



    .terminal-container {
      max-width: 800px;
      margin: 0 auto;
      border: 1px solid #33ffff40;
      padding: 2em;
      background-color: rgba(0, 255, 255, 0.03);
      box-shadow: 0 0 20px #33ffff22;
      border-radius: 6px;
    }

    
.terminal-log {
  background-color: rgba(10, 10, 20, 0.6);
  border: 1px solid #00ffff33;
  padding: 1.2em;
  margin: 2em auto;
  max-width: 800px;
  color: #00ffff;
  box-shadow: 0 0 6px #00ffff33;
  white-space: pre-line;
  line-height: 1.5em;
  border-radius: 6px;
  text-align: left;
  font-size: 0.9em;
}


.terminal-log[data-animate] {
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.1em solid #33ffff;
  animation: typing 6s steps(60, end), blink 0.8s step-end infinite;
}



.terminal-link {
  color: #ff66cc; 
  text-decoration: none;
  text-shadow: 0 0 3px #ff66cc, 0 0 6px #00ffff;
}

.terminal-link:visited {
  color: #ff66cc;
}

.terminal-link:hover {
  color: #ffffff;
  text-shadow: 0 0 6px #ffffff, 0 0 12px #ff66cc;
}


.audiobox {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #ff66cc;
  padding: 1.5em;
  margin: 3em auto;
  max-width: 500px;
  box-shadow: 0 0 12px #ff66cc55;
}


audio {
  width: 100%;
  margin-top: 1em;
}

.note {
  font-size: 0.95em;
  color: #eeeeee;
  margin-top: 2em;
  text-shadow: 0 0 3px #ffffff33;
}


#fragment-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: radial-gradient(ellipse at center, #1a001a 30%, #000000 100%);
  padding: 2.5em 3em;
  color: #ff66cc;
  font-family: 'Courier New', monospace;
  font-size: 1.1em;
  text-align: center;
  text-shadow:
    0 0 6px #ff66cc,
    0 0 12px #ff33cc,
    0 0 18px #ff00ff;
  border: none;
  box-shadow:
    0 0 10px #ff00ff88,
    0 0 30px #ff33cc44,
    0 0 60px #00ffff33;
  z-index: 9999;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  pointer-events: auto;
  animation: flickerGlitch 1.5s infinite alternate;
}


#fragment-popup:hover {
  text-shadow: 0 0 12px #ffffff, 0 0 20px #ff33cc;
  box-shadow: 0 0 20px #ff33ccaa, 0 0 40px #00ffff88;
}

body {
  cursor: url('/images/cursor_glitch.png'), auto;
}

.ticker {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: inset 0 0 10px #00ffff;
  color: #00ffff;
  padding: 0.5em 0;
  font-size: 0.85em;
  animation: scroll 20s linear infinite;
  text-shadow: 0 0 4px #33ffff;
}


.clue {
  display: none;
  animation: clueReveal 4s ease-in-out forwards;
  opacity: 0.85;
  text-shadow:
    0 0 4px #ff66cc,
    0 0 8px #ff33aa;
}

.window.expanded .clue {
  display: block;
}

@keyframes clueReveal {
  0% {
    opacity: 0;
    transform: translateY(0.3em) scale(0.98);
    filter: blur(2px);
  }
  100% {
    opacity: 0.9;
    transform: translateY(0) scale(1);
    filter: none;
  }
}

.amma-portal {
  background-color: #000010;
  font-family: 'Share Tech Mono', monospace;
  color: #00ffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 2rem;
  text-align: center;
}

.portal-container {
  max-width: 600px;
  width: 100%;
  background: rgba(20, 10, 50, 0.4);
  border: 2px solid #ff2bb380;
  border-radius: 1rem;
  padding: 3rem 2rem;
  box-shadow:
    0 0 20px #ff2bb320,
    0 0 10px #26ffe630;
}

.quote {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: #ff66cc;
  text-shadow: 0 0 6px #ff2bb3;
}

.amma-form {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.prompt {
  margin-right: 0.5rem;
  color: #00ffff;
  font-weight: bold;
}

#ammaInput {
  background: #000014;
  border: 1px solid #00ffff;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: #00ffff;
  width: 60%;
  max-width: 300px;
  outline: none;
  text-align: left;
  box-shadow: 0 0 8px #00ffff70;
  transition: all 0.2s ease-in-out;
}

#ammaInput:focus {
  box-shadow: 0 0 12px #00ffff, 0 0 4px #26ffe6;
  border-color: #26ffe6;
}

.error {
  margin-top: 2rem;
  color: #ff4444;
  font-size: 0.95rem;
  display: none;
  text-shadow: 0 0 6px #ff4444;
  transition: opacity 0.4s ease;
}

#interactive-log.flicker {
  animation: flicker 0.15s ease-in-out;
}

@keyframes flicker {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.85; }
}


