@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Press+Start+2P&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Space Mono', monospace;
  margin: 0;
  padding: 0;
}

.font-press-start {
  font-family: 'Press Start 2P', cursive;
}

.font-space-mono {
  font-family: 'Space Mono', monospace;
}

/* Glitch Effect */
.glitch-text {
  position: relative;
  text-shadow: 
    0.05em 0 0 #ff006e,
    -0.05em -0.025em 0 #00f5ff,
    0.025em 0.05em 0 #ffbe0b;
  animation: glitch 1s infinite;
}

@keyframes glitch {
  0%, 100% {
    text-shadow: 
      0.05em 0 0 #ff006e,
      -0.05em -0.025em 0 #00f5ff,
      0.025em 0.05em 0 #ffbe0b;
  }
  14% {
    text-shadow: 
      0.05em 0 0 #00f5ff,
      -0.05em -0.025em 0 #ffbe0b,
      0.025em 0.05em 0 #ff006e;
  }
  15% {
    text-shadow: 
      -0.05em -0.025em 0 #00f5ff,
      0.025em 0.025em 0 #ffbe0b,
      -0.05em -0.05em 0 #ff006e;
  }
  49% {
    text-shadow: 
      -0.05em -0.025em 0 #00f5ff,
      0.025em 0.025em 0 #ffbe0b,
      -0.05em -0.05em 0 #ff006e;
  }
  50% {
    text-shadow: 
      0.025em 0.05em 0 #00f5ff,
      0.05em 0 0 #ffbe0b,
      0 -0.05em 0 #ff006e;
  }
  99% {
    text-shadow: 
      0.025em 0.05em 0 #00f5ff,
      0.05em 0 0 #ffbe0b,
      0 -0.05em 0 #ff006e;
  }
}

/* Glow Effects */
.glow-cyan {
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.glow-pink {
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
}

.glow-yellow {
  box-shadow: 0 0 20px rgba(255, 190, 11, 0.3);
}

.glow-button {
  box-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
  }
  50% {
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.7);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0e27;
}

::-webkit-scrollbar-thumb {
  background: #ff006e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00f5ff;
}

/* Canvas pixel perfect rendering */
canvas {
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Range input styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: linear-gradient(to right, #ff006e, #00f5ff);
  border-radius: 5px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #ffbe0b;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 190, 11, 0.8);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #ffbe0b;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(255, 190, 11, 0.8);
}

/* Checkbox styling */
input[type="checkbox"] {
  accent-color: #00f5ff;
  cursor: pointer;
}