@import "tailwindcss";

/* 1. Global smooth scroll and premium font variables */
@theme {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

/* 2. Custom keyframes for CSS-based animations */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes danmakuRoll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-150vw);
  }
}

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

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 3. Utility animation classes */
.animate-marquee {
  display: inline-flex;
  animation: marquee 25s linear infinite;
  padding-left: 20%;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

.animate-fadeIn {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scaleUp {
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 4. Fine scrollbar adjustments for a clean look */
.scrollbar-thin::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 9999px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: #b45309;
}

/* 5. Custom styling adjustments for range inputs */
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  margin-top: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f59e0b;
  cursor: pointer;
}
