h1 {
    color: var(--primary-text-color);
    text-align: center;
}

#teams__list, #players__list {
    width: 100%;
    height: fit-content;
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.card {
    width: 47%;
    height: fit-content;
    padding: 2rem 0;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-theme-color);
    color: var(--secundary-text-color);
    transition: all 0.2s cubic-bezier(0.76, 0, 0.24, 1);
}

.card:hover {
    width: 50%;
    height: auto;
}

.card h2 {
    width: 100%;
    text-align: center;
}

.card img {
    width: 90%;
}

.favorite {
    background-color: var(--secundary-theme-color);
    color: var(--tertiary-text-color);
}

@media only screen and (min-width: 900px) {
    .card {
        width: 30%;
    }

    .card:hover {
        width: 33%;
    }
}