*{
    margin : 0;
    padding: 0;
    
}
body{
    font-family: sans-serif;
    background-color: rgb(218, 216, 216);
}


.hero{
    text-align: center;
    background:linear-gradient(to left,rgb(51, 21, 149),purple);
    color: white ;
    padding: 50px 30px;
    position: relative;
    margin-bottom: 15px;
}

.hero h1{

    font-weight: normal;
    font-size: 3rem;
    margin: 0;

}
.hero h2{

    font-weight: normal;
    font-size: 1.7rem;
    margin: 0;

}

.hero:before{
    content: "";
    background:linear-gradient(to left,rgb(60, 27, 111), rgb(112, 2, 237)) ;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
}
.hero:after{
    content: "";
    background:linear-gradient(to right,rgb(60, 27, 111), rgb(112, 2, 237)) ;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
}

.filter-nav{
    display: flex;
    justify-content: center;
    
}

.filter-nav a{
    color: rgba(136, 0, 255, 0.928);
    text-decoration: none;
    padding: 10px;
    border: 1px solid rgba(135, 45, 214, 0.928);
    border-radius: 5px;
    margin: 4px;
    
}

.filter-nav a:hover{
    background-color: #845198;
    color:white;
}

.filter-nav .active{
    background-color: #b406f9;
    color:white;
}

.filter-nav .active:hover{
    background-color: #b406f9;
    color:white;
    cursor: default;
}


.animals{
    max-width: 700px;
    margin: 0 auto;
}
.animal-card{
    display: grid;
    grid-template-columns: 100%;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    margin: 30px;
}

.animal-card-photo{
    order: 1;
    grid-row: 1;
    overflow:hidden;
}

.animal-card-photo img{
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease-in-out;
}

.animal-card-text{
    padding: 20px 25px;
    
}

.animal-card:hover img{
    transform: rotate(20deg) scale(1.4);
}

.animal-card-text h3{
    padding: 0;
    margin: 0;
    font-weight: normal;
    font-size: 1.8rem;
}

.animal-card-text small{
    color: rgb(126, 119, 119);
}

.animal-card-text p{
    line-height: 1.5;
    margin: .8rem 0;
    padding: 0;
}

.primary-btn{
    
    color: white;
    padding: 10px;
    background: linear-gradient(#d147d1 , #702acb);
    text-decoration: none;
    border-radius: 12px;
}

.primary-btn:hover{
    background: linear-gradient(#e35ea7 , #d82eb9);
}

.only-large-screen{
    display: none;
}


@media screen and (min-width:768px) {
    .animal-card{
        grid-template-columns: 200px 1fr;
    }
    .hero h1{
        font-size: 6rem;
    }

    .only-large-screen{
    display: inline;
}
}