/* Custom CSS for RoiBets Casino Theme */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    transform: scale(1.02);
  }
}

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

@keyframes tilt {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}

@keyframes car-drive {
  0% {
    transform: translateX(-100px) translateY(0px);
  }
  25% {
    transform: translateX(calc(100vw + 100px)) translateY(-10px);
  }
  50% {
    transform: translateX(calc(100vw + 200px)) translateY(0px);
  }
  75% {
    transform: translateX(-200px) translateY(10px);
  }
  100% {
    transform: translateX(-100px) translateY(0px);
  }
}

/* Floating cars animation */
.floating-cars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.car {
  position: absolute;
  width: 60px;
  height: 30px;
  background: linear-gradient(45deg, #ffd700, #dc2626);
  border-radius: 15px 15px 5px 5px;
  opacity: 0.1;
}

.car::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 10px;
  width: 40px;
  height: 15px;
  background: linear-gradient(45deg, #dc2626, #ffd700);
  border-radius: 10px 10px 0 0;
}

.car-1 {
  top: 20%;
  animation: car-drive 15s linear infinite;
  animation-delay: 0s;
}

.car-2 {
  top: 60%;
  animation: car-drive 20s linear infinite;
  animation-delay: -5s;
}

.car-3 {
  top: 80%;
  animation: car-drive 18s linear infinite;
  animation-delay: -10s;
}

/* Bonus pulse animation */
.bonus-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

/* Island navigation */
.island-nav {
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Tilt effect for feature cards */
.feature-card {
  animation: tilt 6s ease-in-out infinite;
}

/* Marquee effect for payment methods */
.payment-marquee {
  animation: marquee 20s linear infinite;
}

/* Custom prose styling for better readability */
.prose {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose a {
  color: #ffd700;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.prose h2,
.prose h3,
.prose h4 {
  color: #ffd700;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .car {
    width: 40px;
    height: 20px;
  }

  .car::before {
    width: 25px;
    height: 10px;
    left: 7px;
  }
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .text-white\/80 {
    color: white;
  }

  .text-white\/60 {
    color: rgba(255, 255, 255, 0.9);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .floating-cars,
  .island-nav,
  nav,
  footer {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}
