@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

body {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes matrix {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

@keyframes cyberpunk {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 0%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

@keyframes stars {
  0% { background-position: 0 0; }
  100% { background-position: 200px 100px; }
}

@keyframes glitch {
  0% { background-position: 0% 50%; }
  10% { background-position: 100% 0%; }
  20% { background-position: 0% 100%; }
  30% { background-position: 100% 50%; }
  40% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  60% { background-position: 50% 0%; }
  70% { background-position: 50% 100%; }
  80% { background-position: 0% 50%; }
  90% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes ultimate {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.1); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 4s infinite ease-in-out; /* Increased duration for slower movement */
}

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

::-webkit-scrollbar-track {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #ff1493, #00bfff);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #ff69b4, #1e90ff);
}

/* Glitch text effect for ultimate milestone */
.glitch-text {
  animation: glitch-text 2s infinite;
}

@keyframes glitch-text {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

/* Pulsing border effect */
.pulse-border {
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(255, 20, 147, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 20, 147, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 20, 147, 0); }
}

/* Selection styling */
::selection {
  background: linear-gradient(45deg, #ff1493, #00bfff);
  color: white;
}

/* Smooth transitions for all elements */
* {
  transition: all 0.3s ease;
}

/* Retro button styles */
.retro-button {
  background: linear-gradient(45deg, #ff1493, #00bfff);
  border: 3px solid #fff;
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transform: translateY(0);
}

.retro-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.retro-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
