/* Snake Game Styles */
:root {
  --snake-green: #4ade80;
  --snake-blue: #3b82f6;
  --snake-purple: #a855f7;
  --snake-yellow: #eab308;
  --snake-red: #ef4444;
  --food-color: #f87171;
  --obstacle-color: #6b7280;
}

/* Light/Dark Theme Variables */
.dark-theme {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --text-primary: #f9fafb;
  --border-color: #374151;
}

.light-theme {
  --bg-primary: #f9fafb;
  --bg-secondary: #e5e7eb;
  --text-primary: #111827;
  --border-color: #d1d5db;
}

/* Apply theme (default dark) */
body {
  transition: background-color 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Canvas styling */
#game-canvas {
  background-color: var(--bg-secondary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

.bounce-animation {
  animation: bounce 1s infinite;
}

/* Mobile controls styling */
.control-btn:active {
  background-color: #4b5563;
  transform: scale(0.95);
}

/* Snake skin selection highlight */
.snake-skin-option {
  transition: all 0.2s ease;
}

.snake-skin-option:hover {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  h1 {
    font-size: 1.75rem;
  }
  
  #game-canvas {
    height: 300px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  #game-canvas {
    height: 400px;
  }
}

@media (min-width: 1025px) {
  #game-canvas {
    height: 500px;
  }
}

/* Transitions for UI elements */
.transition-fade {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden {
  display: none !important;
}