:root {
  --primary-color: #4CAF50;
  --primary-dark: #3d8b40;
  --text-color: #ffffff;
  --light-text: #f0f0f0;
  --background-color: #f8f9fa;
  --menu-bg: #1a237e;
  --hover-bg: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 6px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --mobile-breakpoint: 768px;
}

/* Header Styles */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background-color: var(--menu-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 90%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.logo img.site-logo {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.logo img.site-logo:hover {
  opacity: 0.9;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list li {
  margin-left: 20px;
  position: relative;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
}

.nav-list a:hover {
  color: var(--text-color);
  background-color: var(--hover-bg);
}

.nav-list a.active {
  color: var(--text-color);
  font-weight: 600;
  background-color: var(--hover-bg);
}

/* Dropdown Menu - Updated for better mobile behavior */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--menu-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 10px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  padding: 8px 16px;
  display: block;
  white-space: nowrap;
  color: var(--text-color);
}

.dropdown-menu a:hover {
  background-color: var(--hover-bg);
}

.language-toggle i {
  margin-left: 5px;
  font-size: 12px;
}

/* Mobile Menu Button - Updated for better visibility */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  z-index: 1001;
}

.mobile-menu-button:hover {
  background-color: var(--hover-bg);
}

.mobile-close-button {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.mobile-close-button:hover {
  background-color: var(--hover-bg);
}

/* Responsive Styles - Updated for better mobile behavior */
@media (max-width: 768px) {
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    width: 100%;
    padding: 15px 5%;
  }

  .logo {
    flex: 1;
  }

  .mobile-menu-button {
    display: block;
    font-size: 24px;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
  }

  .mobile-menu-button:hover {
    background-color: var(--hover-bg);
  }

 @media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--menu-bg);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 90%;
    margin: 0 auto;
    padding-left: 20px; /* ✅ Add this line */
  }

  .nav-list li {
    margin: 10px 0;
    width: 100%;
  }

  .nav-list a {
    padding: 12px 15px;
    width: 100%;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .header-container {
    width: 100%;
    padding: 20px 5px; /* Reduce padding on left and right */
  }

  .site-logo {
    margin-left: 0;
  }

  .mobile-menu-button {
    margin-right: 0;
  }
}

  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    display: none;
    border: none;
    background-color: transparent;
    width: 100%;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
    margin-top: 5px;
    padding-left: 15px;
  }
  
  .mobile-close-button {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  /* Prevent body scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}
.hero {
    max-width: 950px; /* ✅ Set a maximum width for the hero section */
    height:405px; /* ✅ Set a fixed height */
    margin: 10px auto; /* Center it horizontally */
    padding: 20px;
    background-color: #f4f4f4; /* Optional background color */
    text-align: center;
    border-radius: 10px;
    overflow: hidden; /* Prevent content overflow */
}

/* ✅ Control Heading Size */
.hero h1 {
    font-size: 34px;
    margin: 0;
}

/* ✅ Control Paragraph Size */
.hero p {
    font-size: 16px;
    margin: 10px 0 20px;
}

/* ✅ Control Image Size */
.hero img {
    max-width: 90%; /* ✅ Adjust image size according to device width */
    height: auto; /* ✅ Automatically adjust height without cropping */
    object-fit: contain; /* ✅ Show full image without any crop */
    border-radius: 10px;
    background-color: #f0f0f0;
    margin-top: 00px;
    transition: transform 0.3s;
}

/* ✅ Add Optional Hover Effect */
.hero img:hover {
    transform: scale(1.05);
}


/* General Styles */

/* Container */
.container {
    max-width: 1200px;
    margin: 10px auto; /* Centering and adding space from top */
    padding: 10px;
}

/* Link Boxes */
.link-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Adds space between boxes */
    margin: 10px 0; /* Adds space above and below the whole section */
}

/* Individual Box */
.link-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: calc(33.333% - 20px);
    min-width: 280px;
    box-sizing: border-box;
    margin: 10px; /* Adds margin around each box */
}

.link-box h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.link-box p {
    font-size: 14px;
    color: #666;
}

/* Button */
.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .link-box {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .link-box {
        width: 100%;
    }
}

.game-image {
    width: 250px; /* Adjust width as needed */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 10px auto; /* Center the image */
    border-radius: 8px; /* Optional: Rounded corners */
}

.faq-item {
    margin: 20px 0;
    text-align: left;
    max-width: 800px;
    margin: 0 auto 20px;
}

.faq-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 16px;
    color: #555;
}

footer {
    background-color: #333;
    color: white;
    padding: 40px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin: 10px 0;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.footer-bottom p {
    margin: 0;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 20px;
    }
}

/* More Info Section */
.more-info {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.more-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.more-info p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.more-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.more-info ul li {
    font-size: 16px;
    color: #555;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.more-info ul li:last-child {
    border-bottom: none;
}

/* FAQ Section */
.faq {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.faq-item {
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
}

.faq-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.faq-item a {
    color: #007bff;
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .more-info, .faq {
        width: 90%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .more-info, .faq {
        width: 100%;
        padding: 10px;
    }
}
@media (prefers-color-scheme: dark) {
  :root {
    --menu-bg: #1f1f1f; /* Dark background for menu */
    --background-color: #2c2c2c; /* Slightly lighter dark for dropdowns */
    --text-color: #ddd; /* Lighter text color */
    --light-text: #aaa; /* Even lighter for subtle text */
    --hover-bg: rgba(255, 255, 255, 0.05); /* Light hover background */
  }

  .header-container {
    background-color: var(--menu-bg);
  }

  .nav-menu {
    background-color: var(--menu-bg);
  }

  .dropdown-menu {
    background-color: var(--background-color);
    border: 1px solid var(--primary-color);
  }

  .mobile-menu-button, .mobile-close-button {
    color: var(--primary-color);
  }
}

