*{
    margin : 4;
    padding : 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}


body{
   
    background-color: antiquewhite;
    /* background-color: #2b1d0f; */
    color:black;
}

header nav{
   background-color: gray;
   /* background-color: #212121; */
    padding: 20px;
    display : flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1; 
   
}

header nav h1{
   
    font-size: 26px;
    font-weight: 700;

}
header nav form{
   
    display: flex;
    justify-content: center;
   
}

form input[type = "text"]{
    flex-grow: 1;
    margin-right: 5px;
}
/* button color and box size */

form input[type = "text"],button
[type =  "submit"]{
    border : none;
    font-size: 15px;
    padding : 10px;
    border-radius: 6px;
}
form button[type = "submit"]{
    background-color: #f44336;
    border-radius: 6px;
    cursor: pointer;
}
/* button click hover occur */
form button[type = "submit"]:hover,
.recipe button:hover,
.recipe-close-btn
{
    background-color: #ff5c5c;
}

.recipe-container{
    text-align: center;
    margin-top: 20px;
    display : grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    grid-gap : 40px;
   width : 100%;
   margin: 10px auto;
   padding: 20px;
   place-items : center;
}
.recipe{
    background-color:#fff ;
    display : flex;
    flex-direction: column;
    color:#000;
    border-radius:7px; 
    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;
    transition: transform 0.3s ease-in-out;
}
.recipe:hover{
    transform: scale(1.1);
}
.recipe button{
    font-size: 20px;
    font-weight: 600;
    padding : 10px;
    border : none;
    border-radius : 5px;
    cursor: pointer;
    
    margin: 18px auto;
    background-color: #f44336;
    color:#fff;
}

/* .Recipe Details */
.recipe-details{
    display : none;
    position : fixed;
    top : 50%;
    left : 50%;
    transform:translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
  background-color: cadetblue;
  box-shadow: 0 5px 10px rgba(78,73,73,0.1), -5px -5px 10px rgba(34,34,34,0.5);
    border-radius: 14px;
    width : 50%;
    height : 70%;
    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;
}
.recipe-close-btn{
    border:none;
    font-size: 12px;
    border-radius: 5px;
    padding: 6px;
    background-color: #f44336;
    color: #fff;
    position: absolute;
}
/* .ingredientList li{
   margin-bottom: 10px;
   margin-left: -20px;
}
.recipeInstructions p{
 line-height: 30px;
} */

/* Adding scrollbar to recipe details popup */
.recipe-details::-webkit-scrollbar{
    width: 10px;
}
.recipe-details::-webkit-scrollbar-thumb{
    background-color: #b5b5ba;
    border-radius: 18px;
    --webkit-border-radius : 16px;


}


@media screen and
(max-width:600px){
    header nav{
        flex-direction: column;
    }

    header nav form{
        width : 80%;
        margin-top: 20px;
    }
} 