/* Custom animations and overrides */

/* Parallax effect */
.parallax {
  will-change: transform;
}

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

.marquee {
  animation: marquee 20s linear infinite;
  width: max-content;
}

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

/* Duplicate marquee content for seamless loop */
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* Zeus-themed animations */
@keyframes lightning {
  0%,
  90%,
  100% {
    opacity: 1;
  }
  5%,
  85% {
    opacity: 0.3;
  }
}

.lightning-effect {
  animation: lightning 2s infinite;
}

@keyframes thunderPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.thunder-pulse {
  animation: thunderPulse 3s ease-in-out infinite;
}

/* Floating animation for bonus badges */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Glow effect for important elements */
.glow-gold {
  box-shadow: 0 0 20px rgba(254, 216, 5, 0.3);
}

.glow-blue {
  box-shadow: 0 0 20px rgba(11, 41, 102, 0.3);
}

/* Prose styling for better readability */
.prose {
  color: #e5e7eb;
  line-height: 1.7;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #fed805;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h1 {
  font-size: 2.25rem;
}

.prose h2 {
  font-size: 1.875rem;
}

.prose h3 {
  font-size: 1.5rem;
}

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

.prose a {
  color: #fed805;
  text-decoration: underline;
  text-decoration-color: rgba(254, 216, 5, 0.3);
  transition: all 0.2s ease;
}

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

.prose ul,
.prose ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

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

.prose blockquote {
  border-left: 4px solid #fed805;
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
  color: #d1d5db;
}

.prose code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.prose pre {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.prose th,
.prose td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem;
  text-align: left;
}

.prose th {
  background-color: rgba(254, 216, 5, 0.1);
  font-weight: 600;
}

/* Lead paragraph styling */
.prose .lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #d1d5db;
  margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }

  .prose h1 {
    font-size: 1.875rem;
  }

  .prose h2 {
    font-size: 1.5rem;
  }

  .prose h3 {
    font-size: 1.25rem;
  }

  .prose .lead {
    font-size: 1.125rem;
  }
}

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

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #fed805;
  outline-offset: 2px;
}

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

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

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

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

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

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

  .prose {
    color: black !important;
  }

  .prose h1,
  .prose h2,
  .prose h3,
  .prose h4,
  .prose h5,
  .prose h6 {
    color: black !important;
  }
}
