@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600&display=swap');

body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', monospace;
  overflow: hidden;
  position: relative;
}

/* Very subtle animated background grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 40s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

#canvas_container {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  bottom: 12px;
  padding: 6px;
  border: 1px solid #00ffff;
  border-radius: 25px;
  background: transparent;
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
}

#canvas {
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
  outline: none;
  border-radius: 20px;
  background: transparent;
  display: block;
}

#title {
  position: absolute;
  bottom: 15px;
  right: 25px;
  font-size: 0.8em;
  font-weight: 400;
  color: #00ffff;
  text-shadow: 0 0 2px #00ffff;
  font-family: 'Orbitron', monospace;
  user-select: none;
  letter-spacing: 1px;
  z-index: 1000;
}

#subtitle {
  position: absolute;
  bottom: 8px;
  right: 40px;
  font-size: 0.9em;
  font-weight: 400;
  color: #ff00ff;
  text-shadow: 0 0 5px #ff00ff;
  font-family: 'Rajdhani', sans-serif;
  user-select: none;
  letter-spacing: 2px;
  animation: subtitleGlow 2s ease-in-out infinite alternate;
  z-index: 1000;
}

@keyframes subtitleGlow {
  0% { 
    text-shadow: 0 0 5px #ff00ff;
  }
  100% { 
    text-shadow: 0 0 8px #ff00ff;
  }
}

/* Category info panel styling */
#category-info {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #00ffff;
  border-radius: 15px;
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
  font-family: 'Rajdhani', sans-serif;
  color: #ffffff;
  max-width: 450px;
  z-index: 1000;
}

#category-info h3 {
  color: #00ffff;
  text-shadow: 0 0 3px #00ffff;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  padding-bottom: 8px;
}

#category-info h4 {
  color: #ff00ff;
  text-shadow: 0 0 3px #ff00ff;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  margin: 15px 0 8px 0;
  letter-spacing: 1px;
}

#category-info button {
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

#category-info button:hover {
  transform: translateY(-1px);
}

#category-info button:active {
  transform: translateY(0);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #ff00ff, #00ffff);
}