/* Custom animations and overrides */

/* Parallax text animation */
@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.parallax-text {
  animation: parallaxFloat 6s ease-in-out infinite;
}

/* Floating particles */
.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: #d4af37;
  border-radius: 50%;
  animation: floatParticles 8s linear infinite;
}

.floating-particles::before {
  left: 20%;
  animation-delay: -2s;
}

.floating-particles::after {
  left: 80%;
  animation-delay: -4s;
}

@keyframes floatParticles {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Marquee animation */
.marquee-container {
  position: relative;
}

.marquee-content {
  animation: marqueeScroll 30s linear infinite;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-content {
  display: flex;
  width: calc(200px * 16); /* Duplicate content for seamless loop */
}

.game-card {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: scale(1.05);
}

/* Water caustics effect */
@keyframes waterCaustics {
  0%,
  100% {
    background-position: 0% 0%, 100% 100%;
    opacity: 0.1;
  }
  25% {
    background-position: 100% 0%, 0% 100%;
    opacity: 0.2;
  }
  50% {
    background-position: 100% 100%, 0% 0%;
    opacity: 0.15;
  }
  75% {
    background-position: 0% 100%, 100% 0%;
    opacity: 0.25;
  }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.1) 0%, transparent 50%);
  background-size: 400px 400px, 600px 600px;
  animation: waterCaustics 12s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* Prose styling for markdown content */
.prose h2 {
  color: #d4af37;
  font-size: 1.875rem;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  color: #d4af37;
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  color: #e5e7eb;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  color: #e5e7eb;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose table {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose th {
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
  font-weight: bold;
  padding: 1rem;
}

.prose td {
  color: #e5e7eb;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prose a {
  color: #d4af37;
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .marquee-content {
    animation-duration: 20s;
  }

  .parallax-text {
    animation-duration: 4s;
  }
}

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

::-webkit-scrollbar-track {
  background: #0f1419;
}

::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 4px;
}

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


.wheel {
    position: relative;
    width: 200px;
    height: 200px;
    animation: spin 20s linear infinite;
    margin: auto;
  }
  .wheel img {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform-origin: -100px 0;
  }
  .wheel img:nth-child(1) {
    transform: rotate(0deg) translate(100px) rotate(0deg);
  }
  .wheel img:nth-child(2) {
    transform: rotate(180deg) translate(100px) rotate(-180deg);
  }
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }