@import url("https://fonts.googleapis.com/css2?family=Noto+Emoji:wght@500&family=Share+Tech+Mono&family=VT323&display=swap");

:root {
  --main-bg: #0a0a0a;
  --text-color: #00ff41;
  --highlight-color: #f0f0f0;
  --error-color: #ff3333;
  --love-color: #ff69b4;
  --bsod-bg: #0000aa;
  --bsod-text: #ffffff;
  --font-main: "Share Tech Mono", monospace;
  --font-display: "VT323", monospace;
}

* {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--main-bg);
  color: var(--text-color);
  font-family: var(--font-main);
  overflow: hidden;
  text-shadow: 0 0 5px var(--text-color), 0 0 10px var(--text-color);
}

#container {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 2vw;
}

/* CRT Effects */
#container::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.06),
      rgba(0, 255, 0, 0.02),
      rgba(0, 0, 255, 0.06)
    );
  z-index: 2;
  background-size: 100% 3px, 4px 100%;
  pointer-events: none;
  animation: scanline 8s linear infinite;
}
#container::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 2;
  pointer-events: none;
}
@keyframes scanline {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 100%;
  }
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--main-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  z-index: 100;
  font-size: 2.5em;
  font-family: var(--font-display);
  transition: opacity 1s;
}
#overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
#overlay-cursor {
  animation: blink 1s step-end infinite;
}

#visuals {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  font-size: 1.1rem;
  overflow: hidden;
}

.line {
  display: block;
  margin-bottom: 0.5em;
  white-space: pre-wrap;
}
.line > .prompt {
  opacity: 0.6;
}
.cursor {
  display: inline-block;
  background-color: var(--text-color);
  width: 0.6em;
  height: 1.2em;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.emphasis {
  font-family: var(--font-display);
  font-size: 2.5em;
  color: var(--highlight-color);
  text-shadow: 0 0 8px var(--highlight-color);
  display: block;
  text-align: center;
  letter-spacing: 5px;
  animation: fadeIn 0.5s;
}
.error {
  color: var(--error-color);
  text-shadow: 0 0 8px var(--error-color);
}
.love {
  color: var(--love-color);
  text-shadow: 0 0 8px var(--love-color);
  animation: reversePulse 1.5s infinite;
}

/* Animations */
@keyframes blink {
  from,
  to {
    background-color: transparent;
  }
  50% {
    background-color: var(--text-color);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes screenShake {
  0% {
    transform: translate(2px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-0.8deg);
  }
  20% {
    transform: translate(-3px, 0) rotate(0.8deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(0.8deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-0.8deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-0.8deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(0.8deg);
  }
  90% {
    transform: translate(2px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-0.8deg);
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}
@keyframes reversePulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

/* Updated: Removed rotation, only blur */
.dizzy {
  animation: blurEffect 2s linear infinite;
}
@keyframes blurEffect {
  0% {
    filter: blur(0);
  }
  50% {
    filter: blur(5px);
  }
  100% {
    filter: blur(0);
  }
}

.ac-mode {
  --text-color: #ff4444;
}
.dc-mode {
  --text-color: #4444ff;
}
.blind {
  filter: blur(5px) brightness(0.3);
}
.time-travel {
  animation: timeWarp 3s ease-in-out;
}
@keyframes timeWarp {
  0% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(180deg) sepia(1);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

/* Special Effects Elements */
#binary-canvas,
#bsod-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
.code-snippet,
.progress-bar-container {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--text-color);
  padding: 1em;
  margin: 1em 0;
  white-space: pre;
  font-family: var(--font-main);
}
.progress-bar {
  height: 1.2em;
  background-color: var(--text-color);
  width: 0;
  transition: width 1s linear;
}
.token.keyword {
  color: #cc7832;
}
.token.class-name {
  color: #a9b7c6;
}
.token.function {
  color: #ffc66d;
}
.token.string {
  color: #6a8759;
}

#bsod-screen {
  background-color: var(--bsod-bg);
  color: var(--bsod-text);
  font-family: "Lucida Console", monospace;
  text-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 50;
}
.bsod-text {
  font-size: 1.2em;
  text-align: center;
}
.bsod-dump {
  font-size: 0.8em;
  margin-top: 2em;
}

.shape {
  position: absolute;
}
.point,
.sine-dot {
  width: 5px;
  height: 5px;
  background-color: var(--highlight-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--highlight-color);
}
.circle {
  border: 2px solid var(--highlight-color);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--highlight-color);
  animation: fadeIn 1s;
}
.tangent-line {
  border-top: 1px dashed var(--love-color);
  transform-origin: left center;
}
.limit-line {
  border-top: 2px solid var(--error-color);
}

.chaos-text {
  position: absolute;
  font-family: var(--font-display);
  opacity: 0.8;
  animation: fadeIn 0.2s;
}

/* New effect styles */
.emoji-display {
  position: absolute;
  font-size: 3em;
  font-family: "Noto Emoji", sans-serif;
  animation: bounceIn 0.8s ease-out;
  z-index: 15;
}
@keyframes bounceIn {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}

.gender-symbol {
  position: absolute;
  font-size: 4em;
  animation: genderSwitch 1s ease-in-out;
  z-index: 15;
}
@keyframes genderSwitch {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(90deg) scale(1.2);
  }
  100% {
    transform: rotateY(180deg);
  }
}

.time-display {
  position: absolute;
  font-family: "Courier New", monospace;
  font-size: 2em;
  background: rgba(0, 0, 0, 0.8);
  padding: 0.5em;
  border: 2px solid var(--text-color);
  animation: digitalClock 2s ease-in-out;
}
@keyframes digitalClock {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.9;
    transform: scale(1);
  }
}

.molecule {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #ff6b6b, #4ecdc4);
  border-radius: 50%;
  animation: moleculeFloat 3s ease-in-out infinite;
}
@keyframes moleculeFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.sound-wave {
  position: absolute;
  height: 4px;
  background: linear-gradient(to right, var(--love-color), transparent);
  animation: soundWave 1s ease-in-out infinite;
}
@keyframes soundWave {
  0% {
    width: 0;
    opacity: 1;
  }
  100% {
    width: 200px;
    opacity: 0;
  }
}

.year-display {
  position: absolute;
  font-family: var(--font-display);
  font-size: 3em;
  color: gold;
  text-shadow: 0 0 10px gold;
  animation: timeTravel 0.5s ease-in-out;
}
@keyframes timeTravel {
  0% {
    opacity: 0;
    transform: scale(2) rotateX(90deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateX(0deg);
  }
}

.unite-effect {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 3px solid var(--love-color);
  border-radius: 50%;
  animation: unite 2s ease-in-out;
}
@keyframes unite {
  0% {
    transform: scale(0.1);
    opacity: 0;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.trance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    transparent 30%,
    rgba(255, 105, 180, 0.3) 100%
  );
  animation: trance 4s ease-in-out;
  z-index: 8;
}
@keyframes trance {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 0;
  }
  50% {
    transform: rotate(180deg) scale(1.1);
    opacity: 0.7;
  }
}

/* New: Power line effect */
.power-line {
  position: absolute;
  height: 2px;
  background: var(--text-color);
  box-shadow: 0 0 10px var(--text-color);
  animation: powerPulse 0.5s infinite alternate;
  z-index: 5;
}
@keyframes powerPulse {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

/* New: Protection shield */
.protection-shield {
  position: absolute;
  border: 3px solid var(--text-color);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--text-color);
  animation: shieldPulse 2s infinite;
  z-index: 10;
}
@keyframes shieldPulse {
  0% {
    transform: scale(0.5);
    opacity: 0.5;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.5);
    opacity: 0.5;
  }
}

/* New: Object creation effect */
.object-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--text-color);
  border-radius: 50%;
  animation: particleFloat 3s ease-in-out;
  z-index: 7;
}
@keyframes particleFloat {
  0% {
    transform: translateY(0) scale(0.2);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}
