*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

body{
    background-color: #007E6E;
    color: #A8BBA3;
}

header nav{
    background-color: #2F5249;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

header nav h1{
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

header nav form{
    display: flex;
    justify-content: center;
}

form input[type="text"]{
    flex-grow: 1;
    margin-right: 10px;
}

form input[type="text"],button  {
 border: none;
 font-size: 18px;
 padding: 10px;
 border-radius: 9px;
}

form button{
    background-color: #A7C1A8;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

form button:hover{
    background-color: #D1D8BE;
}


.Recipe-con{
    text-align: center;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 40px;
    width: 80%;
    margin: 10px auto;
    padding: 20px;
    place-items: center;
}

.recipe{
    background-color: #D2DCB6;
    display: flex;
    flex-direction: column;
    color: #626F47;
    border-radius: 10px;
    cursor: pointer;
    max-width: 350px;
    padding: 2px;
}

.recipe img{
    height: 300px;
   border-top-left-radius:5px;
   border-top-right-radius: 5px;
}

.recipe:hover{
    background-color:#2C3930;
    transition: 1s;
}

.recipe h3{
    color: #748873;
}

.recipe h3:hover{
    color: #CADABF;
    transition: 1s;
}

.recipe button{
    font-size: 17px;
    font-weight: 500;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    margin:18px auto;
    background-color:  #91AC8F;
    color: #B2C9AD;
    border: none;
}

.recipe button:hover{
    background-color: #B2C9AD;
    color: #2C3930;
    transition: 1s ;
}

.recipe-details{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: #B5CFB7;
    -webkit-transform: translate(-50%,-50%);
    border-radius: 7px;
    width: 40%;
    height: 40%;
    color: #798546;
    transition: all 0.5s ease-in-out;
    overflow-y :scroll;
    padding: 2px;
}

.recipeName{
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.recipeInstructions{
    line-height: 23px;
    white-space: pre-line;
    margin-bottom: 10px;
    margin-top: 3px;
}

.recipe-details::-webkit-scrollbar{
    width: 10px;
}

.recipe-details::-webkit-scrollbar-thumb{
    background-color: #638889;
    border-radius: 2px;
    --webkit-border-radius:2px;
}

.recipe-details:hover{
    background-color:#2F5249 ;
    color: #fff;
}

.recipe-details-con{
    padding: 20px;
}

.recipe-details h3{
    color: #41644A;
    margin-top: 10px;
}

.recipe-details h2{
    color: #0D4715;
    margin-bottom: 3px;
}

.recipe-details p{
    color: #708A58;
}

.recipe-details ul{
    color: #5C6F2B;

}

.recipe-close-Btn{
    width: 3px;
    height: 3px;
    background-color:#8EB486;
    border: none;
    position:absolute;
    top: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recipe-close-Btn:hover{
    background-color: #4A9782;
}

.ingredientList li{
    margin-bottom: 10px;
}

@media screen and (max-width:600px){
    header nav{
        flex-direction: column;
    }

    header nav form{
        width: 80%;
        margin-top: 20px;
    }
}