#breeds {
    color: #010041;
    text-align: center;
}

#breeds h2 {
    margin-bottom: 2rem;
    font-size: 4rem;
}

#breed-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

#breed-list h3 {
    margin-top: 1rem;
}

#breed-list p {
    margin: 1rem;
    text-align: left;
    color: #30255f;
}

.breed-info {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.7s ease-in-out;
}

.breed-info.visible {
    max-height: 30rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgb(108, 103, 172) rgba(196, 196, 196, 0);
}

.breed-card {
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0.6rem 0.6rem 1rem;
}

.breed-card img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.breed-card-icons {
    display: flex;
    justify-content: space-between;
    margin: 1rem 2rem;
}


/* Styles for the info arrow and favorite icon for breeds and favorites page*/
.info-arrow {
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}

.info-arrow.rotated {
    transform: rotate(180deg);
}

.favorite-icon i {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem 0.5rem;
}

.favorite-icon i:hover {
    color: #fd9494;
    font-size: 1.4rem;
}

.favorite-icon i:active {
    color: #ff4343;
    font-size: 1.6rem;
}

.favorite-icon i.liked {
    color: #dd0101;
    font-size: 1.4rem;
}

/* Responsiveness*/
@media only screen and (max-width: 1024px) {
    #breed-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .breed-info.visible {
        max-height: 25rem;
    }
}

@media only screen and (max-width: 912px) {
    #breeds h2 {
        font-size: 3rem;
    }

    #breed-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .breed-info.visible {
        max-height: 20rem;
    }

    .breed-card-icons {
        margin: 1rem;
    }
}

@media only screen and (max-width: 480px) {
    #breeds h2 {
        font-size: 2.5rem;
    }

    #breed-list {
        grid-template-columns: repeat(1, 1fr);
    }
}