*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

.framePrincipal {
    padding-top: 7.5vh;
    display: flex;
    flex-direction: column;
}

.inputNomePokemon {
    padding: .25rem .5rem;
    height: 2rem;
    border-radius: 1rem;
    border: none;

    background-color: #e6e6e6;

    margin-bottom: 1rem;
}

.buttonBuscarPokemon {
    border-radius: .25rem;
    padding: 0 .25rem;
    cursor: pointer;
    height: 2rem;
    border: none;
    background-color: #e6e6e6;
}

.buttonBuscarPokemon:hover {
    background-color: #b9b9b9;
}

.pokemonSprite {
    width: 100%;
}

.wrapperTodosPokemons {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    text-align: center;
}

a:link,
a:visited {
    color: #0000EE;
    text-decoration: underline;
}

.framePrincipalEveryPokemon {
    width: 100%;
}

.gridPokemons {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    padding-top: 0;

    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 1fr;

    align-items: stretch;
}

.pagination{
    display: flex;
    flex-direction: row;
}

.pokemonGrid {
    width: 100%;
    border-radius: 4px;
    border: 1px solid black;

    display: flex;
    flex-direction: row;
}

.pokemon-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding-bottom: 16px;
    height: 200px;

    border-radius: 4px;
    border: 1px solid black;
}

.pokemonCard-types {
    display: flex;
    flex-direction: row;
    gap: 10%;
}

.type-badge {
    padding: 4px;
    border-radius: 4px;
    border: 1px solid black;
    text-align: center;
}

.pokemonGrid-informacoes {
    display: flex;
    flex-direction: column;
}

/* Card vazio que imita o real */
.skeleton-card {
    background-color: #eee;
    border-radius: 15px;
    padding: 20px;
    height: 200px;
    overflow: hidden;
    position: relative;
}

/* O efeito de brilho passando */
.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    .framePrincipal {
        padding-top: 2rem;
    }
}