/* Custom Animations and Styles */

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

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

.animate-fade-in {
  animation: fade-in 0.8s ease-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-floating {
  animation: float 6s ease-in-out infinite;
}

.glow-border {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
}

/* Sail Pattern Background */
.sail-pattern {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 35px,
    rgba(255, 215, 0, 0.03) 35px,
    rgba(255, 215, 0, 0.03) 70px
  );
}

/* Game Card Hover Effects */
.game-card {
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Prose Styling for Readability */
.prose-custom {
  line-height: 1.6;
}

.prose-custom p {
  margin-bottom: 1rem;
}

.prose-custom ul {
  list-style-type: disc;
  padding-left: 1.25rem;
}

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

.prose-custom strong {
  color: #ffd700;
  font-weight: 700;
}

/* Smooth Transitions */
* {
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #2d1810;
}

::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 5px;
}

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

/* Mobile Menu Animation */
#mobileMenu {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Parallax Effect on Scroll */
@keyframes parallax-slow {
  to {
    background-position: 0 100%;
  }
}

/* Tilt Effect on Hover */
@media (hover: hover) {
  .game-card {
    transform-style: preserve-3d;
  }

  .game-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-5px);
  }
}

/* Responsive Font Scaling */
@media (max-width: 640px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  html {
    font-size: 15px;
  }
}

@media (min-width: 1025px) {
  html {
    font-size: 16px;
  }
}

/* Button Press Effect */
button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:active,
a:active {
  transform: scale(0.98);
}
