
body {
  margin: 0;
  background: linear-gradient(to bottom, #0a0a23, #14142b);
  color: #fff;
  overflow-x: hidden;
}

.custom-navbar {
  background-color: black;
  height: 100%;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.navbar-container {
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

.nav-links {
  display: flex;
  margin-left: auto;
  gap: 20px;
  padding-right: 20px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.pokeball-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

.pokeball {
  width: 4.2rem;
  height: 4.2rem;
  margin-right: 10px;
  transition: transform 0.6s ease-in-out;
  margin-top: 25px;
}

.pokeball:hover {
  transform: rotate(360deg) scale(1.1); /* Added scale on hover */
}

.heading {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.8rem;
    color: white;
    text-shadow: 0 0 5px red;
    transition: all 0.3s ease;
    margin-top: 25px;
}

.heading:hover {
    color: #FFD700;
    text-shadow: 0 0 8px red;
    animation: headingPulse 0.8s infinite alternate; /* Added pulse on hover */
}

@keyframes headingPulse {
  from {
      transform: scale(1);
  }
  to {
      transform: scale(1.03);
  }
}

main {
  padding: 3rem 2rem;
  text-align: center;
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.games-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-family: 'Press Start 2P', cursive;
  padding-bottom: 30px;
  color: #ffcb05;
  text-shadow: 0 0 10px rgba(255, 203, 5, 0.5);
}

.games-grid {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.game-card {
  background: linear-gradient(135deg, #1c1c3c 0%, #2a2a5a 100%);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 350px;
  min-height: 250px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.game-card:hover::before {
  left: 100%;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(255, 203, 5, 0.3);
  border-color: rgba(255, 203, 5, 0.3);
}

.game-card h3 {
  margin: 0 0 1rem 0;
  color: #ffcb05;
  font-size: 2.25rem;
  font-family: 'Press Start 2P', cursive;
  text-shadow: 0 0 10px rgba(255, 203, 5, 0.5);
}

.game-card p {
  font-size: 1.25rem;
  color: #ccc;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.play-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #ca3a3a 0%, #ff0000 100%);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(202, 58, 58, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.play-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.play-button:hover::before {
  left: 100%;
}

.play-button:hover {
  background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.play-button:active {
  transform: translateY(-1px) scale(1.02);
}

.play-button.disabled {
  background: linear-gradient(135deg, #666 0%, #888 100%);
  pointer-events: none;
  opacity: 0.6;
  box-shadow: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  main {
    padding: 2rem 1rem;
    min-height: calc(100vh - 70px);
  }

  .games-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 20px;
  }

  .games-grid {
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .game-card {
    padding: 1.5rem;
    min-height: 220px;
    border-radius: 15px;
  }

  .game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .game-card p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .play-button {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  /* Enhanced touch targets for mobile */
  .play-button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Smaller heading for mobile */
  .heading {
    font-size: 1.4rem;
  }
  
  /* Larger heading for tablet */
  @media (min-width: 769px) and (max-width: 1024px) {
    .heading {
      font-size: 3rem;
    }
    
    .pokeball {
      width: 3.8rem;
      height: 3.8rem;
    }
  }
}

@media (max-width: 480px) {
  main {
    padding: 1.5rem 0.8rem;
  }

  .games-title {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 15px;
  }

  .games-grid {
    gap: 1.2rem;
  }

  .game-card {
    padding: 1.2rem;
    min-height: 200px;
    border-radius: 12px;
  }

  .game-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
  }

  .game-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .play-button {
    padding: 0.7rem 1.8rem;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  /* Even smaller heading for small mobile */
  .heading {
    font-size: 1.2rem;
  }
}

@media (max-width: 320px) {
  main {
    padding: 1rem 0.5rem;
  }

  .games-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 10px;
  }

  .games-grid {
    gap: 1rem;
  }

  .game-card {
    padding: 1rem;
    min-height: 180px;
  }

  .game-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .game-card p {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .play-button {
    padding: 0.6rem 1.5rem;
    font-size: 0.7rem;
  }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  main {
    padding: 1rem;
    min-height: calc(100vh - 50px);
  }

  .games-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    padding-bottom: 10px;
  }

  .games-grid {
    gap: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .game-card {
    width: calc(50% - 1rem);
    min-width: 200px;
    padding: 1rem;
    min-height: 160px;
  }

  .game-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .game-card p {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .play-button {
    padding: 0.5rem 1.2rem;
    font-size: 0.7rem;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  main {
    padding: 2.5rem 1.5rem;
  }

  .games-title {
    font-size: 2rem;
  }

  .games-grid {
    gap: 1.8rem;
  }

  .game-card {
    padding: 1.8rem;
    min-height: 240px;
  }

  .game-card h3 {
    font-size: 1.8rem;
  }

  .game-card p {
    font-size: 1.1rem;
  }

  .play-button {
    padding: 0.9rem 2.2rem;
    font-size: 0.95rem;
  }
}

/* Large screen optimizations */
@media (min-width: 1025px) {
  .games-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
  }

  .game-card {
    width: calc(33.333% - 2rem);
    min-width: 250px;
    max-width: 300px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .game-card {
    border-width: 1px;
  }
  
  .play-button {
    border-width: 1px;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .game-card,
  .play-button,
  .games-title {
    transition: none;
  }
  
  .game-card::before,
  .play-button::before {
    display: none;
  }
  
  .game-card:hover {
    transform: none;
  }
  
  .play-button:hover {
    transform: none;
  }
}

