@keyframes slideleftnright{
    0%{
      background-position: left;
    }

    100%{
        background-position:right   ;
    }
}
 @keyframes slidearound{
    0%,100%{
        background-position: bottom center;
    }

    50%{
        background-position: top center;
    }
 }


body{
    margin: 0;
    padding: 0;
    background-color:  rgb(255, 252, 252);

}


.banner .text{
    padding: 0;
    background-size: cover;
    background: linear-gradient(to right,rgb(139, 24, 233),rgb(19, 239, 173) );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner{
    text-align: center;
    color: rgb(0, 0, 0);
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 60px;
    background:rgb(31, 33, 60);
    padding: 15px;
}



.topnav{
    display: flex;
    gap: 80px;
    justify-content: center;
    background-color: rgb(0, 0, 0);
    width: 100%;
}

.topnav a{
    font-family: 'Nunito Sans';
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    color: rgb(255, 255, 255);
    padding: 10px;
    transition: all 0.3s ;
}

.topnavcont svg,.topnavcont input{
    display: none;
}

.topnav:hover > a, .topnav:hover>.dropdown{
    opacity: 0.3;
}

.topnav:hover > a:hover, .topnav:hover>.dropdown:hover{
    opacity: 1;
    transform: translateY(-10px);
    color: rgb(30, 208, 95);
}

.dropdown{
    position: relative;
    display: inline-block;
    transition: all 0.3s ;
    z-index: 2;
}

.dropdown a{
    display: inline-block;
}

.dropcontent {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    z-index: 1;
  }

.dropcontent a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }

  .dropdown:hover{
    color: rgb(87, 241, 85);
}


.dropcontent a:hover {color:rgb(87, 241, 85)}

.dropdown:hover .dropcontent {display: block;}


.revHead{
    font-size: clamp(6vw,1rem,100px);
    margin-top: 0px;
    font-weight: 600;
    font-family: 'poppins';
    color: #ffffff;
    text-align: center;
}

.splash{
    background: linear-gradient(rgb(168, 239, 137), rgb(33, 231, 73));
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 50px;
}   

#vege{
    background: url(./images/ProductImg/Vegetables/vegeback.webp);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size:cover;
    animation: slidearound 5s ease-in-out infinite;
    animation-fill-mode:forwards ;
    font-size: 125px;
}

.cards{
    font-family: poppins;
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    margin: 10px;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    background: white;
    width: 200px;
    height: 250px;
    transition: 0.5s ;
}
.cards img{
    width:200px;    
    height:200px;
    object-fit: cover;
    border-radius: 10px;
    height: 0;
    transition: 0.5s;
}

.cardhead{
    font-size: 25px;
    font-weight: 500;
    
}   

.cards:hover,.cards:active{
    background: black;
    color: white;
    height: 400px;
}

.cards:hover img, .cards:active img{
    display:block;
    height: 200px;
    width: 100%;
}



.gallery{
    margin-top: 100px;
    display: grid;
    gap:100px ;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    margin-left: 20px;
}

.card{
    font-family: poppins;
    display: flex;
    border-radius: 10px;
    flex-direction: column;
    width: 250px;
    height: 300px;
    transition: 0.5s ;
    box-shadow: 10px 10px 10px #29292955;
    overflow-y: hidden;
}

.card .desc{
    background-color:rgb(61, 203, 75) ;
    width: 100%;
    height: 20%;
    align-self: flex-end;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    font-family: 'poppins';
    font-size: 20px;
    color: #f1f1f1;
    text-align: center;
}
.card .img img{
    height: 100%;
    width: 100%;
    object-fit: contain;
}
.card .img{
    height: 80%;
    width: 100%;    
    transition: 0.5s;
}

.card:hover .img{
    transform: translateY(-25px);

}

.card:hover .desc .price{
    color: rgb(1, 11, 6);
}

.card .desc .price{
    color: #f1f1f1bd;
    font-size: 18px;
    transition: 0.5s;
}

.veghead{
    background: rgb(33,231,73);
    background: linear-gradient(56deg, rgba(33,231,73,1) 0%, rgba(26,227,114,1) 19%, rgba(26,227,112,1) 28%, rgba(0,212,255,1) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px;
    font-size: 8em;
    font-family: poppins;
    font-weight: 600;
    text-align: center;
}

.botnav{
    margin-top: 100px;
    display: flex;
    gap: 80px;
    justify-content: center;
    background-color: rgb(0, 0, 0);
    width: 100%;
}

.botnav a{
    font-family: 'Nunito Sans';
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    color: rgb(255, 255, 255);
    padding: 10px;
    transition: all 0.3s ;
}

#obutt{
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    border: 0;
    background-color:#31dc40 ;
    font-family: poppins;
    font-size: 18px;
    font-weight: 600;
    color: white;
    transition: 0.5s ;
}

#obutt:hover{
    transform: translateY(-15px);
    background-color: #4b31dc;
    color:   rgb(40, 211, 154);
    cursor:pointer;
 }

.buttoncontainer{
    display: flex;
    justify-content: center;
}

@media (max-width:750px){
    .banner{
        position: relative;
        z-index: 4;
    }
    .topnav {
        padding:10px ;
        background-color: #ffffff;
        flex-direction: column;
        width:60% ;
        gap: 5px;
        padding-top: 10px;
        text-align: center;
        display: flex;
        position: absolute;
        transform: translateY(-400px);
        transition: 0.5s;
    }

    .topnav a{
        color: black;
    }

    .topnavcont svg{
        position: absolute;
        z-index: 5;
    }

    .topnav .dropcontent{
        position: static;
    }

    .topnavcont svg{
        padding: 2px;
        background-color: #ffffff;
        display: block;
        position: absolute;
        z-index: 2;
        left: 47%;
        transform: rotate(0deg);
        transition: 0.5s;
        border-radius: 50%;
    }


    .topnavcont svg:active{
        transform: rotate(0deg);
    }


    .topnavcont{
        position: relative;
        display: flex;
        justify-content: center;
        align-content: center;

    }

    .topnavcont input{
        display: none;
        position: absolute;
        left: 49%;
        z-index: 3;
    }


    .topnavcont input:checked~.topnav{
        transform: translateY(0);
    }

}


@media (max-width:620px){
    .botnav{
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .splash{
        font-size: 15vw;
        gap: 0px;
    }

    #vege{
        font-size: 20vw;
    }

    .veghead{
        font-size: 4em;
    }

    .cards{
        margin-left: 0;
        margin-right: 0;
        overflow: hidden;
        font-size: 20px;
        width: 100%;
    }


    .cards:active{
        background: black;
        color: white;
        height: 400px;
    }

    .gallerywrapper{
        display: grid;
        place-content: center;
    }
}