@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
    font-family: "Roboto", sans-serif;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    outline: 0;
}

body {
    background-color: #f6f8fc;
    padding: 0.5rem;
}

.content {
    width: 100%;
    max-width: 80rem;
    display: grid;
    gap: 1rem;
    text-align: center;
    padding: 2rem 0.5rem;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.pokemons {
    display: grid;
    justify-items: center;
    width: 100%;
    max-width: 80rem;
    gap: 0.5rem;
    list-style: none;
}

.pokemon {
    display: grid;
    width: 100%;
    max-width: 24rem;
    gap: 0.25rem;
    color: #fff;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
}

.number {
    text-align: right;
    color: rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.name {
    width: max-content;
    font-size: 1.25rem;
    text-transform: capitalize;
}

.detail-content {
    display: flex;
    gap: 1rem;
}

.detail {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.types {
    display: grid;
    gap: 0.25rem;
    list-style: none;
}

.type {
    text-align: center;
    width: max-content;
    font-size: 0.875rem;
    color: #fff;
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    filter: brightness(1.1);
}

.pokemon img {
    width: 100%;
    max-width: 120px;
    height: 120px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

.loadMore {
    font-size: 1rem;
    color: #fff;
    background-color: #6c79db;
    padding: 0.625rem 2rem;
    margin: 0 auto;
    border: 1px transparent;
    border-radius: 1rem;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.loadMore:hover {
    background-color: #a040a0;
}

@media screen and (min-width: 24rem) {
    .body {
        padding: 1rem;
    }

    .content {
        padding: 2rem;
    }
}

@media screen and (min-width: 32rem) {
    .pokemons {
        justify-content: center;
        grid-template-columns: repeat(2, minmax(0, 20rem));
        gap: 1rem;
    }
    .pokemon {
        max-width: 100%;
    }
}

@media screen and (min-width: 56rem) {
    .pokemons {
        grid-template-columns: repeat(3, minmax(0, 20rem));
    }
}

@media screen and (min-width: 72rem) {
    .pokemons {
        grid-template-columns: repeat(4, minmax(0, 20rem));
    }
}
