
*{
    margin: 0;
    padding: 0;
    /* color: #0e0b0b; */
    font-family:Verdana, Geneva, Tahoma, sans-serif;
 
   
    
}

body{
    background-color: #000000;
}
/* Main Section */
/* .recipe-container { 
    text-align: center;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat (auto-fit);
    } */
header nav {
    background-color: #98e54c;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 2rem;
    z-index: 1;
}
header nav h1{
    font-size: 40px;
    font-family: inherit;
  text-shadow: 3px 3px 3px #f0f0f0;
    font-weight: 700px;
    letter-spacing: 1px;
    text-transform:capitalize;
    color: #184d0e;
    left: - 20%;
}

header nav form{
    display: flex;
    justify-content: center;

}
header nav img{
    border-radius: 50%;
    
}
header nav a{
    text-decoration: none;
}

form input[type="text"]{
    flex-grow: 1;
    margin-right: 10px;
}


form input[type="text"],button[type="submit"]{
    border: none;
    font-size: 18px;
    padding: 10px;
    border-radius: 4px;
}

 form button[type="submit"]{
    background-color: rgba(27, 145, 12, 0.944);
    color: rgb(19, 17, 17);
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
 }

form button[type="submit"]:hover, .recipe button:hover{
    background-color: rgb(123, 190, 92);

}
/*main section*/
main{
    height: 80%;
}
.recipe-container{
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 40px;
    /* width: 80px; */
    margin: 10px auto; 
    padding: 20px;
    place-items: center;
}
.recipe{
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    color: #0e0b0b;
    border-radius: 6px;
    box-shadow: 0 5px 10px rgba(78,73,73,0.1),-5px -5px 10px rgba(34,34,34,0.5);
    cursor: pointer;
    max-width: 350px;
    
}
.recipe img {
    height: 300px;
}
.recipe h3{
    font-size: 20px;
    color: #525252;
}
.recipe p{
    font-size: 18px;
}
.recipe span {
    font-weight: 600;
    }
.recipe button {
    font-size: 20px;
    font-weight: 600;
    padding: 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin: 18px auto;
    background-color: #a2f436;
    color: #054117;
    }
/* Recipe Details */
.recipe-details {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    background-color: #89f127cb;
    border-radius: 12px;
    width: 40%;
    height: 60%;
    font-size: 20px;
    transition: all 0.5s ease-in-out;
overflow-y: scroll;
}
.recipe-details-content{
    padding: 30px;
}
.recipeName {
    text-align: center;
    text-transform: uppercase;
    text-decoration: underline;
}
.ingredientList li {
    margin-bottom: 10px;
    margin-left: -20px;
    }
    .recipeInstructions p {
    line-height: 30px;
    white-space: pre-line;
    }
    .recipe-close-btn {
        border: none;
        font-size: 18px;
        padding: 10px;
        border-radius: 4px;
        background-color: #f44336;
    }
 /* Adding scrollbar to recipe detals popup */
.recipe-details::-webkit-scrollbar {
width: 10px;
}
.recipe-details::-webkit-scrollbar-thumb {
background:#b5b5ba;
border-radius: 16px;
--webkit-border-radius: 16px;
}
footer p{
    color: #f0f0f0 !important;
}
    /*responsive code*/

@media screen and (max-width:600px) {
        header nav {
        flex-direction: column;
        }
        header nav form {
        width: 80%;
        margin-top: 20px;
        }}
    @media screen and (min-width: 250px )and (max-width:350px) {
            header nav {
            flex-direction: column;
            }
            header nav form {
            width: 70%;
            margin-top: 30px;
            }}
            .recipe-details{
                width: 80%;
                height: 60%;
                overflow: auto;
            }