/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #121212, #1a1a1a);
  color: #ffffff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}

header h1 {
  font-size: 3rem;
  margin: 0;
  color: #4caf50;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

header p {
  font-size: 1.2rem;
  color: #bbb;
}

/* Game Modes Section */
.game-modes {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.mode-card {
  background: rgba(30, 30, 30, 0.8);
  border-radius: 15px;
  padding: 2rem;
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.mode-card .icon {
  font-size: 3rem;
  color: #4caf50;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.mode-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.mode-card p {
  font-size: 1rem;
  color: #bbb;
  margin-bottom: 1.5rem;
}

.mode-card button {
  background: #4caf50;
  border: none;
  padding: 0.8rem 1.5rem;
  color: #fff;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.mode-card button:hover {
  background: #45a049;
  transform: scale(1.05);
}

/* Highlights Section */
.highlights {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.highlight-card {
  background: rgba(30, 30, 30, 0.9);
  border-radius: 15px;
  padding: 2rem;
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.highlight-card:hover {
  transform: translateY(-5px);
}

.highlight-card i {
  font-size: 2.5rem;
  color: #4caf50;
  margin-bottom: 1rem;
}

.highlight-card h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.highlight-card p {
  color: #bbb;
  font-size: 0.95rem;
}

/* Featured Section */
.featured-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 3rem;
  background: rgba(0, 0, 0, 0.2);
  margin: 2rem 0;
  border-radius: 15px;
}

.featured-content {
  max-width: 500px;
}

.featured-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.featured-content p {
  font-size: 1.1rem;
  color: #bbb;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.cta-primary {
  padding: 1rem 2rem;
  background: #4caf50;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cta-secondary {
  background: transparent;
  border: 2px solid #4caf50;
  color: #4caf50;
  border-radius: 5px;
  font-size: 1rem;
  padding: 1rem 2rem;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.cta-secondary:hover {
  transform: scale(1.05);
}

.cta-secondary.pulse {
  animation: pulse 1.5s infinite;
}

.cta-primary:hover {
  transform: scale(1.05);
}

.cta-primary.pulse {
  animation: pulse 1.5s infinite;
}

.featured-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.code-example {
  display: flex;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-radius: 15px;
}

.code-digit {
  width: 50px;
  height: 50px;
  background: #4caf50;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  animation: float 3s ease-in-out infinite;
}

.code-digit:nth-child(3) {
  background: #ff5722;
}

.top-ad {
  width: 728px; /* Standard leaderboard ad size */
  height: 90px;
  background-color: linear-gradient(135deg, #121212, #1a1a1a);
  border-radius: 8px;
  margin: 20px 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-color);
  color: #666;
  position: relative;
  left: 23%;
}

.middle-ad {
  width: 728px; /* Standard leaderboard ad size */
  height: 90px;
  background-color: linear-gradient(135deg, #121212, #1a1a1a);
  border-radius: 8px;
  margin: 20px 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-color);
  color: #666;
  position: relative;
  left: 23%;
}


@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}




@media (max-width: 768px) {

  .top-ad, .middle-ad{
    width: 320px; /* Mobile banner ad size */
    height: 100px;
    margin: 10px auto;
    position: relative;
    left: 0;
}



  header h1 {
    font-size: 2rem; /* Smaller font size for mobile */
  }

  header p {
    font-size: 1rem; /* Smaller subtitle */
  }

  .game-modes, .highlights, .featured-section {
    flex-direction: column; /* Stack cards vertically */
    align-items: center;
    gap: 1rem; /* Reduce gap between cards */
  }

  .mode-card, .highlight-card {
    width: 90%; /* Full width for mobile */
    padding: 1rem; /* Reduce padding */
  }

  .featured-section {
    padding: 1rem; /* Reduce padding */
    text-align: center; /* Center-align content */
  }

  .featured-content h2 {
    font-size: 1.5rem; /* Smaller heading */
  }

  .featured-content p {
    font-size: 1rem; /* Smaller paragraph */
  }

  .cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 0.5rem; /* Reduce gap between buttons */
  }

  .code-example {
    flex-wrap: wrap; /* Wrap code digits on small screens */
    justify-content: center;
  }

  .code-digit {
    width: 40px; /* Smaller digits */
    height: 40px;
    font-size: 1.2rem;
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.0); }
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem; /* Even smaller font size */
  }

  header p {
    font-size: 0.9rem; /* Smaller subtitle */
  }
  .mobile-ad ins {
    width: 320px;
    height: 100px;
    margin: 0 auto;
  }
  .mode-card, .highlight-card {
    width: 100%; /* Full width */
    padding: 0.8rem; /* Reduce padding further */
  }

  .featured-content h2 {
    font-size: 1.3rem; /* Smaller heading */
  }

  .featured-content p {
    font-size: 0.9rem; /* Smaller paragraph */
  }

  .cta-primary, .cta-secondary {
    padding: 0.8rem 1.2rem; /* Smaller buttons */
    font-size: 0.9rem;
  }
}