/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
header {
  background-color: #d40831de;
  color: #fff;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  height: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffd700;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px;
  transition: all 0.3s ease;
}

/* Main content styles */
main {
  margin-top: 80px; /* To account for fixed header */
}

/* Hero section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("yn-777-banner.webp") no-repeat center
    center / cover;
  color: #fff;
  text-align: center;
  padding: 100px 0;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  background-color: #ffd700;
  color: #1a1a2e;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #ffed4a;
}

/* Features section */
.features {
  padding: 80px 0;
  background-color: #fff;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 2.5rem;
  color: #ffd700;
  margin-bottom: 15px;
}

.feature-item h3 {
  margin-bottom: 10px;
}

/* How to play section */
.how-to-play {
  background-color: #1a1a2e;
  color: #fff;
  padding: 80px 0;
}

.how-to-play ol {
  list-style-position: inside;
  padding-left: 20px;
}

.how-to-play li {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* Benefits section */
.benefits {
  padding: 80px 0;
  background-color: #f4f4f4;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(227, 10, 10, 0.84);
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-item i {
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 15px;
}

/* Stats section */
.stats {
  background-color: #1a1a2e;
  color: #fff;
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #ffd700;
}

/* FAQ section */
.faq {
  padding: 80px 0;
  background-color: #fff;
}

.faq-item {
  margin-bottom: 30px;
}

.faq-question {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.faq-answer {
  color: #666;
}

/* Footer styles */
footer {
  background-color: #1a1a2e;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

footer a {
  color: #ffd700;
  text-decoration: none;
}

.social-icons {
  margin-top: 20px;
}

.social-icons a {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ffd700;
}

/* Improved Responsive design */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    background-color: #1a1a2e;
    padding: 20px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .hamburger {
    display: block;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .feature-grid,
  .benefits-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .feature-item,
  .benefit-item,
  .stat-item {
    padding: 20px;
  }

  .how-to-play ol {
    padding-left: 0;
  }

  .how-to-play li {
    font-size: 1rem;
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-answer {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Additional mobile optimizations */
@media screen and (max-width: 480px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .feature-item i,
  .benefit-item i {
    font-size: 2rem;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  footer {
    padding: 30px 0;
  }

  .social-icons a {
    font-size: 1.2rem;
    margin: 0 5px;
  }
}

/* Improved Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-item,
.benefit-item,
.stat-item,
.faq-item {
  animation: fadeIn 0.5s ease-in-out;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles for better keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  header,
  footer,
  .cta-button {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
  }

  @page {
    margin: 2cm;
  }
}