.pokemons {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
    padding: 0;
    list-style: none;
}

.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;
}

.pokemon {
    display: flex;
    flex-direction: column;
    margin: .5rem;
    padding: 1rem;
    border-radius: 1rem;
}

.pokemon .number {
    color: #000;
    opacity: .3;
    text-align: right;
    font-size: .625rem;
}

.pokemon .name {
    text-transform: capitalize;
    color: #fff;
    margin-bottom: .25rem;
}

.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: .25rem .5rem;
    margin: .25rem 0;
    font-size: .625rem;
    border-radius: 1rem;
    filter: brightness(1.1);
    text-align: center;
}

.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 {
    padding: .25rem .5rem;
    margin: .25rem 0;
    font-size: .625rem;
    color: #fff;
    background-color: #6c79db;
    border: none;
    border-radius: 1rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 10%;
    top: 10%;
    width: 80%;
    height: 90%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 10px;
    border: 1px solid #888;
    width: 100%;
}

.close {
    color: #aaa;
    position: absolute;
    top: 1px;
    right: 12px;
    z-index: 9999;
    font-size: 28px;
    font-weight: bold;
}

.modal .modal-content .modalBody {
    background-color: #808080;
}

.headerBox {
    position: relative;
    display: grid;
    justify-content: center;
    align-items: end;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    align-content: center;
    justify-items: center;
}

.headerBox img {
    max-width: 70%;
    border: 2px solid #fff; 

}

.headerBoxInside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 15px;
}

.nameBox {
    text-align: left;
    text-transform: capitalize;
    margin-bottom: 0.25rem;
}

.numberBox {
    text-align: right;
    color: #000;
    opacity: .3;
}

.things1 {
    list-style: none;
    margin: 0.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-transform: capitalize;
}

.things2 {
    list-style: none;
    margin: 0.25rem;
    text-transform: capitalize;
}

.order {
    text-align: center;
    list-style: none;
    text-transform: capitalize;
}

.item {
    list-style: none;
    text-align: center;
    text-transform: capitalize;
}

.abilitiesBox {
    text-align: center;
    text-transform: capitalize;
}

.statsBox {
    text-align: center;
    text-transform: capitalize;
}
.typesBox {
    text-align: center;
    text-transform: capitalize;
}
.movesBox {
    text-align: center;
    text-transform: capitalize;
}

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

    .modal {
        left: 10%;
        top: 10%;
        width: 35vh;
        height: 60vh;
    }
}

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

    .modal {
        left: 10%;
        top: 10%;
        width: 53vh;
        height: 48.2vh;
    }
}

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

    .modal {
        left: 10%;
        top: 10%;
        width: 93vh;
        height: 48.2vh;
    }
}