/* Neon Carnival Custom Animations & Styling */

body {
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

img, table, .marquee-content {
  max-width: 100%; /* Ensure images, tables, and marquee content don't overflow */
  width: 100%; /* Adjust width to fit within the container */
}

/* Keyframe Animations */
@keyframes neonPulse {
  0%,
  100% {
    box-shadow: 0 0 20px #ff0080, 0 0 40px #ff0080, 0 0 60px #ff0080;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px #ff0080, 0 0 60px #ff0080, 0 0 90px #ff0080;
    transform: scale(1.05);
  }
}

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

@keyframes floatDice {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes spotlightSweep {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(200vw) rotate(45deg);
  }
}

@keyframes gridFlicker {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.9;
  }
}

/* Neon Glow Effects */
.neon-glow {
  animation: neonPulse 2s ease-in-out infinite;
}

.neon-text {
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
}

.golden-halo {
  box-shadow: 0 0 20px #ffd700, 0 0 40px #ffd700;
}

/* Marquee Animation */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marqueeScroll 20s linear infinite;
}

/* Floating Elements */
.floating-dice {
  animation: floatDice 4s ease-in-out infinite;
}

/* Spotlight Effect */
.spotlight {
  position: absolute;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: spotlightSweep 8s linear infinite;
  pointer-events: none;
}

/* Cyber Grid Overlay */
.cyber-grid {
  background-image: linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridFlicker 3s ease-in-out infinite;
}

/* Custom Prose Styling */
.prose {
  max-width: 100%;
  line-height: 1.6;
  color: #e5e7eb;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.prose h1 {
  color: #ff0080;
  text-shadow: 0 0 15px #ff0080, 0 0 30px #ff0080;
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.prose h2 {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  font-size: 2rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  border-bottom: 2px solid rgba(0, 255, 255, 0.3);
  padding-bottom: 0.5rem;
}

.prose h3 {
  color: #ffd700;
  text-shadow: 0 0 8px #ffd700;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
}

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

.prose li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.prose ul li::marker {
  color: #ff0080;
}

.prose ol li::marker {
  color: #00ffff;
  font-weight: 600;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.prose table tbody {
  display: table;
  width: 100%;
}

.prose th,
.prose td {
  padding: 1rem 0.75rem;
  border: 1px solid #374151;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.2), rgba(0, 255, 255, 0.1));
  color: #ff0080;
  font-weight: 600;
  text-shadow: 0 0 5px #ff0080;
}

.prose td {
  background: rgba(17, 24, 39, 0.5);
}

.prose blockquote {
  border-left: 4px solid #ff0080;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  background: rgba(255, 0, 128, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
}

.prose strong {
  color: #ffd700;
  font-weight: 600;
  text-shadow: 0 0 5px #ffd700;
}

.prose em {
  color: #00ffff;
  font-style: italic;
}

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

  .prose h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
  }

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

  .prose p {
    font-size: 1rem;
  }

  .prose table {
    font-size: 0.9rem;
  }

  .prose th,
  .prose td {
    padding: 0.75rem 0.5rem;
  }
}

/* Responsive Utilities */
@media (max-width: 1024px) {
  .marquee-content {
    animation-duration: 15s;
  }
}

@media (max-width: 768px) {
  .neon-text {
    text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff;
  }

  .floating-dice {
    animation-duration: 3s;
  }
}
