/* Home page container, containing all of the fetched Pokemon. */
.container,
.home-page-descending,
.home-page-favorites,
.home-page-search-results{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2em;
  row-gap: 2em;

  width: 90%;
  max-width: 1400px;
  margin: 5vh 0% 5vh 0%;
}

.home-page-desceding,
.home-page-favorites,
.home-page-search-results{
  display: none;
}

/* Pokemon image. */
.container img,
.home-page-descending img,
.home-page-favorites img,
.home-page-search-results img{
  width: 100%;

  border: 3px solid rgb(235, 235, 235);
  box-shadow: 2px 2px 10px rgb(223, 223, 223);
  border-radius: 30px;
  
  cursor: pointer;
}

/* Name */
.container p:nth-of-type(2),
.home-page-descending p:nth-of-type(2),
.home-page-favorites p:nth-of-type(2),
.home-page-search-results p:nth-of-type(2){
  font-size: 20px;
  font-weight: 700;
} 

/* Container, containint the buttons with the types. */
.container div div,
.home-page-descending div div,
.home-page-favorites div div,
.home-page-search-results div div{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

/* Buttons with types. */
.container div div div,
.home-page-descending div div div,
.home-page-favorites div div div,
.home-page-search-results div div div{
  display: flex;
  align-items: center;
  justify-content: center;

  width: 47%;
  padding: 2% 0% 2% 0%;
  border-radius: 15px;
  
  box-shadow: 5px 5px 10px rgba(53, 53, 53, 0.218);
}

/* Types images */
.container div div div img,
.home-page-descending div div div img,
.home-page-favorites div div div img,
.home-page-search-results div div div img{
  width: 15px;
  border-radius: 50%;
  margin-right: 10%;
  border: none;
  background-color: white;
  box-shadow: none;
  padding: 3%;
}

.first-type-text,
.second-type-text{
  color: white;
  font-weight: 500;
}