@media (max-width: 1023px) {
  .character {
    width: 150px;
    height: 215px;
    gap: 10px;
    padding: 50px 30px;
  }
  .character h2 {
    font-size: 1.5rem;
  }
  .img-wrapper {
    height: 200px;
  }
}

@media (max-width: 767px) {
  .container {
    gap: 50px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .title-container {
    flex-direction: column;
    gap: 10px;
  }
  .character h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 1.2rem;
    margin: 30px 30px 0;
  }
  .title-container,
  .title-wrapper {
    font-size: 0.8rem;
  }
  .collection,
  .favorites {
    gap: 10px;
  }
  .character {
    width: 100px;
    height: 130px;
    padding: 50px 20px;
  }
  .character h2 {
    font-size: 1.2rem;
  }
}
