/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background-color: #0e1f4a;
  color: #f0f4ff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero section with background image */
.hero {
  position: relative;
  height: 40vh;
  /* Use a small hero image located in the same directory */
  background-image: url('tap-blaster-art.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3rem;
  letter-spacing: 1px;
  text-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

.hero p {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  max-width: 600px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Main content */
main {
  flex: 1;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.games h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #ffeeaa;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.game-card {
  background: #162a67;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.game-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.game-card h3 {
  font-size: 1.5rem;
  color: #ffbc57;
}

.game-card p {
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  color: #d3ddff;
}

.play-btn {
  background: #ff6584;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}

.play-btn:hover {
  background: #ff4570;
}

.placeholder {
  border: 2px dashed #314a99;
  color: #8eaafc;
  padding: 2rem 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: #0b1738;
  color: #8899cc;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .hero {
    height: 50vh;
  }
  .hero h1 {
    font-size: 4rem;
  }
  .hero p {
    font-size: 1.5rem;
  }
  .games {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  .game-card {
    margin: 1rem;
  }
}