@media (min-width: 1000px) {
  .pokemon-card {
    width: 18%;
    max-height: 330px;
  }

  body {
    font-size: 16px;
  }

  h1 {
    font-size: 18px;
  }
}

@media (max-width: 595px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 10px;
    gap: 10px;
  }

  .header-container {
    flex-direction: column;
    font-size: 18px;
    text-align: center;
  }

  .search-container {
    width: 90%;
    height: 36px;
    font-size: 16px;
  }

  .pokeball {
    width: 30px;
    height: 30px;
  }

  .main-content {
    padding: 10px;
    gap: 8px;
  }

  .pokemon-card {
    margin: 10px auto;
  }

  .pokemon-information h1 {
    font-size: 14px;
  }

  .pokemon-information span {
    font-size: 18px;
  }

  .pokemon-main-img {
    height: auto;
    width: 100%;
  }

  .pokemon-type img {
    max-width: 30px;
    max-height: 30px;
  }

  .pokemon-img-overlay {
    border: 2px solid black;
    width: 100%;
  }

  .pokemon-card-overlay {
    width: 90%;
    height: auto;
    padding: 10px;
  }

  .pokemon-img {
    height: 100%;
  }

  #overlay-close-button {
    margin-left: 0;
    align-self: flex-end;
  }

  .pokemon-main-facts {
    border-left: 2px solid black;
    border-right: 2px solid black;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 16px 0;
    gap: 10px;
    font-size: 14px;
  }

  .footer-container .pokeball {
    width: 30px;
    height: 30px;
  }
}


@media (max-width: 370px) {
  .evo-chain-container {
    flex-direction: column;
    gap: 5px;
  }
  .evo-chain-pokemon-img {
    height: 60px;
    width: 100%;
  }

  .pokemon-card {
   width: 100%;
  }
}
