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

body {
  margin: 0;
  font-family: 'Press Start 2P', 'Comic Sans MS', cursive, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pixel-border {
  image-rendering: pixelated;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

.pixel-border:hover {
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.4);
}

.shadow-retro {
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.5);
}

.glitch {
  position: relative;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%, 90%, 100% {
    transform: translate(0);
  }
  92% {
    transform: translate(-2px, 2px);
  }
  94% {
    transform: translate(2px, -2px);
  }
  96% {
    transform: translate(-2px, -2px);
  }
  98% {
    transform: translate(2px, 2px);
  }
}

.content-card {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
  background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
  background: #4b5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Retro button effects */
button {
  transition: all 0.1s ease;
}

button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3) !important;
}

/* Comic Sans for specific elements */
h1, h2, .headline {
  font-family: 'Comic Sans MS', cursive;
}

/* Make inputs more retro */
input[type="text"], input[type="checkbox"] {
  font-family: 'Press Start 2P', monospace;
}

/* Pixel perfect text rendering */
* {
  font-smooth: never;
  -webkit-font-smoothing: none;
}