*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



.logo{
    width: 6em;
    margin-left: 5em;
    margin-top: -0.7em;
    
}

.foo{
   text-align: right;
   font-size: 30px;
   padding-left: 0;
   margin: 0;
   margin: -2.3em 3em 0 0;
   color: white;
}

header .header{
    background-color: #003049;
    height: 75px;
    
}


.para{
   margin-top: 1em;
   font-size: 20px;
   
}

.para p{
    margin-top: 1em;
    color: #182f31;
}



.searchBox{
    padding: 5px 15px;
    font-size: 1.5em;
    border-radius: 0.5em;
    border: 1px solid #003049;
}

.searchBtn{
    font-size: 1.5em;
    border: none;
    border-radius: 1.2em;
    padding: 8px 10px;
    background-color: rgb(219, 116, 79);
    color: white;
}

.searchBtn:hover {
    cursor: pointer;
}

main section{
    background: url('img/food.png') no-repeat center center;
    background-size: cover;
    /* filter: blur(2px);  */
    height: 450px;
   
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
    color: #291821;
}


@media all and (max-width: 600px){
    header .header{
        float: left;
        width: 100%;
       
        margin: 0;
        height: 70px;
    }

   

    .foo{
        margin: -2.3em 1.5em 0 0;
        font-size: 25px;
      
    }

    .logo{
        margin-left: 0;
        width: 5em;
        margin-top: 0;
    }

    main section {
        background-size: cover;
        background-image: url('img/foods.png');
        width: 100%;
        color: white;
        margin: 0;
        height: 500px;
    }

    .para{
        font-size: 15px;
        color: white;
        width: 90%;
        font-weight: bolder;
    }

    .para p{
        color: white;
        width: 90%;
    }

    .main form{
        font-size: 15px;
        margin-bottom: 0;
        padding: 0;
        display: block;
        padding: 0;
        margin: 0;
       
    }
    
    .searchBox{
        padding: 4px 10px;
    }

    body{
        padding: 0;
        margin: 0;
        
    }

    html{
        padding: 0;
        margin: 0;
    }
}

.res{
    margin: 2em 0 0 2em;
    font-size: 28px;
    border-bottom: 2px solid #db744f;
    width: 21%;
}

.recipeContainer{
    display: grid;
    gap: 2em;
    grid-template-columns: auto auto auto auto/* repeat(auto-fit, minmax(300px, 1fr)) */;
    width: 95%;
    margin: 3em 2em 0 3em;
    padding: 20px;
    grid-column: 4;
}

.recipe{
    background-color: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 0.5em;
    box-shadow: 5px 15px 20px -10px rgba(0, 0, 0, 0.79); 
    max-width: 350px;
    cursor: pointer;
    transition:  0.2s ease-in;
    overflow: hidden;
    height: 450px;
   
}



.recipe h3{
    margin-top: -6em;
    margin-left: 1em;
    font-size: 20px;
    z-index: 1;
    color: #fff;
}

.recipe p{
    margin-left: 1.2em;
    font-size: 18px;
    z-index: 1;
    color: #fff;
 
   
}

.recipe img{
    width: 100%;
    height: 450px;
   

}

.recipe img:hover{
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;

}

.recipe button{
    color: #fff;
    background-color: #db744f;
    padding: 10px 5px;
    display: block;
    width: 100%;
    margin: 2em 0 0 0;
    font-size: 20px;
    text-decoration: none;
    font-weight: bolder;
    border: none;
    cursor: pointer;
    margin-bottom: 0;
    z-index: 1;
}

.recipe button:hover{
    background-color: #f07042;
}

.recipeDetails{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f07042;
    border: 1.5em;
    width: 40%;
    height: 70%;
    font-size: 20px;
    overflow-y: scroll;
    border-radius: 0.5em;
    z-index: 1;
    
}

.closeBtn {
   margin-left: 37em;
   margin-top: 1em;
   border: none;
   border-radius: 1em;
   padding: 5px 8px;
   cursor: pointer;
}

.closeBtn i{
    font-size: 1.5em;
    color: #000;
   
}

.recipeName{
    text-align: center;
    font-size: 30px;
    text-decoration: underline;
}

.ingredient{
    margin-top: 1em;
    font-weight: bolder;
    background-color: #fff;
    width: 35%;
    color: #f07042;
    padding: 8px;
    border-radius: 0.5em;
}

.recipeContent{
    padding: 1em 3em;
    color: #fff;
}

.ingredientsList li{
    margin-top: 0.5em;
    margin-left: -1em;
}

.instruction{
    margin-top: 1em;
    font-weight: bolder;
    background-color: #fff;
    width: 35%;
    color: #f07042;
    padding: 8px;
    border-radius: 0.5em;
}

.instructions{
    margin-top: 1em;
    line-height: 30px;
    white-space: pre-line;
}

@media all and (max-width: 600px){
    .res{
        width: 80%;
        margin-left: 1em;
        font-size: 25px;
    }

    .recipeContainer{
        margin: 2em 2em 0 0.5em;
        margin-right: 0;
        padding-right: 0;
        grid-template-columns:  repeat(auto-fit, minmax(300px, 1fr)) ;
    }

    .recipe{
        margin-left: 0.5em;
        width: 300px;
    }

    .recipeDetails{
        width: 80%;
        height: 60%;
    }

    .recipeName{
        font-size: 25px;
    }

    .ingredient{
        width: 80%;
        font-size: 20px;
    }

    .instruction{
        width: 80%;
        font-size: 20px;
    }

    .instructions{
        font-size: 18px;
        line-height: 25px;
       
    }

    .closeBtn{
        margin-left: 18em;
    }

   
   
}




