@import url('https://fonts.googleapis.com/css2?family=Impact&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Retro button animations */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

button:active {
  transform: scale(0.95) !important;
}

/* VHS glitch effect on hover */
@keyframes glitch {
  0% {
    text-shadow: 2px 2px 0px #ff0000, -2px -2px 0px #00ff00;
  }
  25% {
    text-shadow: -2px 2px 0px #00ff00, 2px -2px 0px #ff0000;
  }
  50% {
    text-shadow: 2px -2px 0px #0000ff, -2px 2px 0px #ff0000;
  }
  75% {
    text-shadow: -2px -2px 0px #ff0000, 2px 2px 0px #0000ff;
  }
  100% {
    text-shadow: 2px 2px 0px #ff0000, -2px -2px 0px #00ff00;
  }
}

h1:hover {
  animation: glitch 0.3s infinite;
}

/* Loading animation */
@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* Retro fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bg-white {
  animation: fadeIn 0.5s ease-out;
}