/* Cleaned up and improved responsive code for game tiles */

/* Main card styles */
.games-section-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: stretch;
  margin: 1rem auto 1rem auto;
}

.games-card {
  border-radius: 8px;
  padding: 0.5em 0.8em;
  width: 270px;
  align-items: center;
}

/* Card description */
.games-card-desc {
  border-radius: 16px;
  width: 260px;
  height: 60px;
  box-shadow: 0 4px 18px rgba(80, 167, 194, 0.13);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Game image */
.games-section-img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(80, 167, 194, 0.13);
  margin: 1em auto 0.5em auto;
  padding: 1%;
  object-fit: cover;
  display: block;
}

/* Tablet screens */
@media (max-width: 1000px) {
  .games-section-menu {
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
  }

  .games-card {
    width: 60%;
    height: auto;
    flex: 1 1 0;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
  }

  .games-card-desc {
    width: 90%;
    min-width: 0;
    font-size: 0.97em;
    height: auto;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
  }

  .games-section-img {
    width: 80px;
    height: 80px;
    margin: 0.5em auto;
    display: block;
  }
}

/* Small tablets and large phones */
@media (max-width: 800px) {
  .games-section-menu {
    flex-wrap: wrap;
    gap: 0.7em;
    justify-content: center;
  }

  .games-card {
    width: 90%;
    height: auto;
    flex: 1 1 0;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
  }

  .games-card-desc {
    width: 95%;
    min-width: 0;
    font-size: 0.96em;
    height: auto;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
  }

  .games-section-img {
    width: 60px;
    height: 60px;
    margin: 0.5em auto;
    display: block;
  }
}

/* Mobile screens */
@media (max-width: 600px) {
  .games-section-menu {
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
  }

  .games-card {
    width: 80%;
    height: auto;
    flex: 1 1 0;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
  }

  .games-card-desc {
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.95em;
    height: auto;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
  }

  .games-section-img {
    width: 50%;
    height: 50%;
    margin: 0.3em auto;
    display: block;
  }
}