#category {
  display: grid;
  grid-template-columns: repeat(auto-fill,157px);
  padding: 20px;
  gap: 10px;
  justify-content: center;
  font-size: medium;
  color: #eee;
  text-align: center;
  white-space: nowrap
}

#category div {
      background: rgba(255 255 255/10%);
    color: #fff;
    border-radius: 3px;
    aspect-ratio: 5/7;
    padding: 5px;
    position: relative;
    overflow: hidden;
    width: 156px;
    height: 201px;
}

#category span.title {
  background: rgba( 0 0 0/10%);
  border-radius: 0;
  padding: 5px 0;
  display: inline-block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  text-overflow: ellipsis;
  overflow: hidden
}

h1 {
  padding: 0px 79px;
  font-size: 20px;
}

@media (max-width: 768px){
  .search-bar{
    margin: 0 auto 20px auto!important;
    min-width: 90%!important;
  }
}

@media(max-width: 575px) {
  #category {
      grid-template-columns:repeat(auto-fill,157px);
      padding: 5px;
      gap: 10px;
      font-size: small
  }

  h1 {
    padding: 15px 0px;
    font-size: 20px;
    margin-left: 20px;
  }
} 

@media(min-width: 1024px) {
  #category {
      padding:30px;
      grid-template-columns: repeat(auto-fill,157px);
      gap: 26px;
      font-size: large
  }
/*   
  h1 {
    padding: 0;
    font-size: 20px;
    margin-left: 20px;
  } */
}


