.pokedex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1rem;

}

.pokemon-card {
    border-radius: 1rem;
    padding: .5rem;
    color: white;
    position: relative;
    box-shadow: 4px 7px 6px rgba(0, 0, 0, .7);
}

.pokemon-header {
    position: relative;
    margin-bottom: 1rem;
}

.pokemon-header .pokemon-name {
    text-align: center;
    font-size: 35px;
}

.pokemon-number {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.pokemon-name {
    font-size: 1.5rem;
}

.pokemon-types {
    display: flex;
    gap: 0.3rem;
    /* gap entre os tipos*/
    margin-bottom: 1rem;
}

.type-badge {
    padding: 0.3rem 0.8rem;
    /* tamanho da borda de type*/
    border-radius: 1rem;
    font-size: 16px;
    filter: brightness(1.4);
    font-weight: bolder;
    color: #131313;
}

.pokemon-image {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 2rem 0;
}

#load-more {
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #131313;
    border: none;
    background-color: #ffcb05;
    border-radius: 50px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#load-more:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

#load-more-btn:active {
    transform: translateY(0);
}

/* Ajustes para tablets */
@media (max-width: 768px) {
    .pokedex-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .pokemon-name {
        font-size: 1.2rem;
    }

    .type-badge {
        font-size: 14px;
        padding: 0.2rem 0.6rem;
    }

    #load-more {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Ajustes para celulares */
@media (max-width: 480px) {
    .pokedex-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .pokemon-card {
        margin: 0.5rem;
    }

    .pokemon-header .pokemon-name {
        font-size: 24px;
    }

    .pokemon-image {
        max-width: 150px;
    }

    .pokemon-types {
        justify-content: center;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 320px) {
    h1 {
        font-size: 2rem;
    }

    .pokemon-number {
        font-size: 0.8rem;
    }

    .type-badge {
        font-size: 12px;
    }
}

.grass {
    background-color: #14A06F;
}

.fire {
    background-color: #E35825;
}

.water {
    background-color: #1479A0;
}

.poison {
    background-color: #6B246E;
}

.bug {
    background-color: #7AC74C;
}

.normal {
    background-color: #A8A878;
}

.electric {
    background-color: #F8D030;
}

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

.fighting {
    background-color: #C03028;
}

.ground {
    background-color: #E0C068;
}

.flying {
    background-color: #A890F0;
}

.psychic {
    background-color: #F85888;
}

.rock {
    background-color: #B8A038;
}

.ghost {
    background-color: #705898;
}

.dragon {
    background-color: #7038F8;
}

.dark {
    background-color: #705848;
}

.steel {
    background-color: #B8B8D0;
}

.fairy {
    background-color: #EE99AC;
}