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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #2c3440;
  color: #9ab;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #121a22;
  padding: 1rem;
  position: relative;
}

.site-title {
  font-size: 1.8rem;
  text-align: center;
}

.top-nav a:hover,
.bottom-nav a:hover,
.top-nav a:focus,
.bottom-nav a:focus {
  color: #fff;
  text-decoration: underline;
}

.top-nav {
  display: none;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.top-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.top-nav a,
.bottom-nav a {
  text-decoration: none;
  color: #9ab;
  font-weight: bold;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #121a22;
  z-index: 1000;
}

.bottom-nav ul {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  list-style: none;
}

main {
  padding: 1.5rem;
  padding-bottom: 4rem;
}

section {
  margin-bottom: 2rem;
}

h2 {
  margin-bottom: 3rem;
  font-size: 1.5rem;
  color: #fff;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* mobile column */
.trending,
.played,
.new {
  grid-template-columns: repeat(2, 1fr);
}

.platform-label {
  font-weight: bold;
  color: #9ab;
  padding-top: 0.5rem;
}

/* tablet column*/
@media (min-width: 768px) and (max-width: 1023px) {
  .trending,
  .played,
  .new {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-auto-flow: dense;
  }

  .grid img {
    max-width: 100%;
  }

  .trending .platform-label,
  .played .platform-label,
  .new .platform-label {
    grid-column: 1 / 2; 
    grid-row: 3;        
    align-self: start;
    text-align: center;
  }
}

/* desktop columns */
@media (min-width: 1024px) {
  header {
    justify-content: space-between;
  }

  .site-title {
    text-align: left;
    margin-left: 1rem;
  }

  .top-nav {
    display: block;
  }

  .bottom-nav {
    display: none;
  }

  .trending,
  .played,
  .new {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .grid img {
    max-height: 350px;
    object-fit: contain;
  }
}

/* review style*/
.review-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.review-section .game-card {
  background-color: transparent;
  padding: 1.5rem 1rem;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  box-shadow: none;
  border: none;
}

.review-section h2 {
  margin-bottom: 1rem; 
}

.review-section h2 + .game-card {
  margin-top: 1rem; 
}

.review-section .game-card h3 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
}

.review-section .stars {
  color: gold;
  font-size: 1.2rem;
}

.review-section .game-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.review-section .description {
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 500px;
  margin-top: 0.5rem;
  color: #c0c6cc;
}
/*tablet*/
@media (min-width: 768px) {
  .review-section .game-card {
    flex-direction: row;        
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .review-section .game-card img {
    width: 200px;               
    flex-shrink: 0;
  }

  .review-section .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  
}


  .review-section .description {
    max-width: 100%;
  }


/* Desktop */
@media (min-width: 1024px) {
  .review-section {
    max-width: 960px;
    margin: 0 auto;
  }

  .review-section .game-card {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .review-section .game-card img {
    width: 400px;
  }
  .review-section .info {
    margin-top: 3.5rem; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

}

/*upcoming style*/
.upcoming-page .game {
  text-align: center;
}

.upcoming-page .platform-label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #9ab;
}

.banner {
  width: 100%;
  height: 350px; 
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; 
  display: block;
}






