.pokemons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin: auto 50px;
  padding: 0;
  list-style: none;
}

.normal {
  background-color: #a6a877;
}

.water {
  background-color: #678fee;
}
.electric {
  background-color: #fbec1e;
}

.ice {
  background-color: #98d5d7;
}
.ground {
  background-color: #dfbf69;
}

.flying {
  background-color: #a98ff0;
}
.fire {
  background-color: #ee7f30;
}
.poison {
  background-color: #a040a0;
}
.grass {
  background-color: #77c850;
}
.fighting {
  background-color: #bf3029;
}

.psychic {
  background-color: #f65687;
}

.dark {
  background-color: #725847;
}

.rock {
  background-color: #b8a137;
}

.bug {
  background-color: #a8b720;
}

.ghost {
  background-color: #6e5896;
}

.steel {
  background-color: #b9b7cf;
}

.dragon {
  background-color: #6f38f6;
}

.fairy {
  background-color: #f9aec7;
}

.pokemon {
  display: flex;
  flex-direction: column;
  margin: 0.5rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background-image: url(/assets/imgs/dots.png);
  background-repeat: no-repeat;
  background-size: 80% 80%;
  background-position: 67% 96%;
}

.pokemon .number {
  color: #000;
  opacity: 0.3;
  text-align: right;
  font-size: 1rem;
}

.pokemon .name {
  text-transform: capitalize;
  color: #fff;
  margin-bottom: 0;
  font-size: 1.1rem;
}

.pokemon .detail {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.pokemon .detail .types {
  padding: 0;
  margin: 0;
  list-style: none;
}

.pokemon .detail .types .type {
  color: #fff;
  padding: 0.25rem 0.5rem;
  margin: 0.25rem 0;
  font-size: 0.8rem;
  border-radius: 1rem;
  filter: brightness(1.1);
  text-align: center;
  text-shadow: 0 0px 3px black;
}

.pokemon .detail img {
  text-shadow: 1px black;
  width: 100px;
  height: 100px;
  margin: 0.5rem;
  filter: drop-shadow(0 0 0.25rem #4d2d33);
}

.pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem;
}

.pagination button {
  padding: 0.5rem 0.75rem;
  margin: 0.25rem 0;
  font-size: 1rem;
  color: #fff;
  background-color: #6c79db;
  border: none;
  border-radius: 1rem;
}
.type .electric {
  filter: brightness(0.5);
}

@media only screen and (max-width: 992px) {
  .pokemons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 0;
  }
}
@media only screen and (max-width: 650px) {
  .pokemons {
    grid-template-columns: 1fr 1fr;
    margin: 0;
  }
}
@media only screen and (max-width: 410px) {
  .pokemons {
    grid-template-columns: 1fr;
    margin: 0;
    padding: 0;
  }
}
