/* mobile first */
.pokemons{
    display: grid;
    grid-template-columns: 1fr 1fr;
   
    list-style: none;
    margin: 0 1rem;
    padding: 0;
}

/*types*/
.normal {
    background-color: #a6a877;
}

.grass {
    background-color: #77c850;
}

.fire {
    background-color: #ee7f30;
}

.water {
    background-color: #678fee;
}

.electric {
    background-color: #f7cf2e;
}

.ice {
    background-color: #98d5d7;
}

.ground {
    background-color: #dfbf69;
}

.flying {
    background-color: #a98ff0;
}

.poison {
    background-color: #a040a0;
}

.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;
}
/*</types>*/


.pokemon{
    display: flex;
    flex-direction: column;

    cursor: pointer;

    margin: 0.5rem;
    padding: 1rem 1rem; 
    border-radius: 1rem;
}
.pokemon:hover{
    filter: brightness(1.1);
}


.pokemon .number{
    color: rgba(245, 245, 245, 0.706);
    text-align: right;
    font-size: 0.825rem;
}

.pokemon .name {
    color: white;
    margin: 0.25rem 0;
    margin-bottom: 0;
    text-transform: capitalize;
}

.pokemon .detail .types {
    padding: 0;
    margin: 0;
    list-style: none;
}

.pokemon .detail .types .type{
    filter: brightness(1.1);

    color: white;
    border-radius: 0.625rem;
    padding: 0.25rem 0.5rem;
    text-align: center;
    font-size: .895rem;
    margin: 0.25rem 0;

}

.pokemon .detail{
    display: flex;
    flex-direction: row;
    align-items: center ;
    justify-content: space-between;
}

.pokemon .detail img{
    max-width: 100%;
    height: 70px;

}

.pagination{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem;
}
.pagination button{
    background-color: rgb(228, 80, 80);
    cursor: pointer;
    
    border-radius: 1rem;
    border: none;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem 0;
    
    width: 25rem;
    height: 5rem;
    
    color: white;
    font-size: 3rem;
    font-weight: 1000;
}
.pagination button div{
    text-align: center;
    transform: rotate(90deg);
}

button:hover{
    filter: brightness(1.3);
    transition:ease-in-out 100ms;
}

#moreDetails-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.753);
    border-radius: 10px;
    box-shadow: 8px 8px 15px rgba(72, 72, 72, 0.781);
    width: 80%;
    height: 80%;
    z-index: 3;
  }

  #moreDetails-header{
    display: flex;
    padding: 0.5rem 1rem;
  }

  #close-btn{
    background-color: transparent;
    position: absolute;
    padding: 20px;
    margin: 10px;
    box-shadow: 5px -5px 0 0.5px rgb(115, 114, 114) inset;
    border: solid transparent;
    border-width: 10 10 5px 5px;
    transform: rotate(45deg);
  }
  #close-btn:hover{
    box-shadow: 5px -5px 0 0.5px rgb(16, 15, 15) inset; 
    cursor: pointer;
    transition: all 0.2s ease;
  }

  #moreDetails-header {
    display: flex;
  }

  #pokemon-name{
    margin: 0 auto;
    text-transform: capitalize;
  }

  #moreDetails-content{
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 80%;
    margin: 0 1rem 1rem 1rem;
    padding: 0rem;
  }

  .more-details-photo{
    align-self: center;
    width: 70%;
    height: 70%;
  }

  #pokemonsDetails{
    border-radius: 5px;
    padding: 0.5rem;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.916);
  }

  .items{
    border-radius: 1px;
    font-weight: bold;
    color: black;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: fit-content;
  }

  .items span{
    border-radius: 10px;
    padding-left: 0.2rem;
    height: 1rem;
  }

  #hp{
    color: black;
    background-color: rgba(0, 128, 0, 0.564);
    width: 0;
  }
  #attack{
    color: black;
    background-color: rgb(6, 118, 188, 0.564);
    width:0;
  }
  #specialAttack{
    color: black;
    background-color: rgba(0, 0, 255, 0.564);
    width: 0;
  }
  #defense{
    color: black;
    background-color: rgba(255, 255, 0, 0.564);
    width: 0;
  }

/* media query */

@media screen and (min-width: 380px) {
    .pokemons {
        grid-template-columns: 1fr 1fr;
    }
    
}

@media screen and (max-width: 576px){
    #moreDetails{
        width: 90%;
        height: 80%;
    }
}

@media screen and (min-width: 576px) {
    .pokemons {
        grid-template-columns: 1fr 1fr 1fr;
    }

}

@media screen and (min-width: 992px) {
    .pokemons {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}