body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;   /* ensures body always takes full screen */
  font-family: "Quicksand", sans-serif;
  background: #fefefe;
}

main {
  flex: 1;  /* pushes footer to the bottom */
}

.category-container {
  padding: 20px;
  text-align: center;
}

.categories-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.category-btn {
  padding: 10px 16px;
  border-radius: 20px;
  background: #e0e0e0;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: all 0.3s;
}
.category-btn:hover {
  background: #d35400;
  color: #fff;
}
.category-btn.active {
  background: #f39c12;
  color: #fff;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}



/* game style  */


        ul.games {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* card width */
    gap: 25px;
}

ul.games li {
    list-style: none;
}

ul.games li a.game-card {
    display: block;
    background: #fff;
        
    border-radius: 15px;     
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}



ul.games li a.game-card img {
    width: 100%;
    height: auto;          /* let image height adjust automatically */
    border-radius: 10px;
    margin-bottom: 10px;   
}

ul.games li a.game-card span {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
    color: #333; padding-bottom: 10px; 
}


