*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
body{
    width:100%;
    height: 100%;
    background-color: #9EB384;
    color:#FAF1E4;

}
header nav{
    background-color: #435334;
    color: #FAF1E4;
    padding: 20px;
    display: flex;
    justify-content:space-between;
    align-items: center;
    z-index: 1;

}


header nav h1{
    font-size: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}
header nav form{
    display: flex;
    justify-content: center;
    
}
form input[type="text"]{
    flex-grow:1;
    margin-right: 10px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    outline: none;
    font-size: 16px;
}
form button[type="submit"]{
    background-color: #FAF1E4;
    color: #435334;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    outline: none;
    cursor: pointer;
    transition : background-color 0.2s ease-in-out;

}

form button[type="submit"]:hover{
    background-color: #CEDEBD;
}

.recipe-container{
    text-align: center;
    margin-top: 20px;
}
.recipe-container {
    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:#FAF1E4;
    color: #435334;
    display: flex;
    flex-direction: column;
    border-radius: 6PX;
    box-shadow: 0 5px 10px rgba(36, 38, 36, 0.559), -5px -5px 10px rgba(73, 78, 76, 0.1);
    cursor: pointer;
    max-width: 350px;
    transition : transform 0.3s ease-in-out;
}
.recipe-container h2{
    text-align: center;
    margin-top: 20px;
}
.recipe img{
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}
.recipe h3{
    font-size: 24px;
    font-weight: 600;
    margin: 5px 0;
}
.recipe p{
    font-size: 20px;
    margin: 5px 0;
}
.recipe span{
    font-weight: 600;
}
.recipe button{
    background-color: #435334;
    color: #FAF1E4;
    font-size: 20px;
    font-weight: 600;
    padding: 10px;
    border-radius: 5px;
    border: none;
    outline: none;
    cursor: pointer;
    margin: 5px;
    transition : background-color 0.2s ease-in-out;
}
.recipe button:hover{
    background-color: #CEDEBD;
    color: #435334;
}
.recipe:hover{
    transform: scale(1.02);
}

.recipe-details{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FAF1E4;
    color: #435334;
    padding: 20px;
    -webkit-transform: translate(-50%, -50%);
    border-radius: 12px;
    width:50%;
    height: 50%;
    font-size: 20px;
    transition: all 0.5s ease-in-out;
    overflow-y: scroll;

}

.recipe-details::-webkit-scrollbar{
    width: 15px;
}
.recipe-details::-webkit-scrollbar-thumb{
    background-color: #435334;
    border-radius: 10px;
}
.recipe-details-content{
    padding: 30px;

}
.recipeName{
    text-align: center;
    text-transform: uppercase;
    text-decoration: underline;
}

.IngredientList li{
    list-style-type: decimal;
    margin-top:10px;
    margin-left:20px;

}
.recipeInstructions p{
    font-weight: bold;
    line-height:30px;
    white-space: pre-line;
    text-align: justify;
    text-justify: inter-word;
    margin-left:20px;
    margin-right:20px;
    margin-top:10px;
    margin-bottom:10px;

}
.recipeName,.IngredientList,.recipeInstructions{
    margin-top: 20px;
}
.recipe-closebtn {
    border: none;
    font-size: 18px;
    padding: 8px;
    border-radius: 4px;
    background-color:#435334;
    color:#fff;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.recipe-closebtn:hover{
    background-color: white;
    color: #435334;

}

body::-webkit-scrollbar{
    width: 18px;
}
body::-webkit-scrollbar-thumb{
    background-color: #435334;
}
body::-webkit-scrollbar-track{
    background-color:#CEDEBD;
} 
main {
    margin: 20px;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main {
    margin: 20px;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fav-meals-container {
    background-color: #faf1e4;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow-x: auto;
    max-height: 350px; 
    width: 60%; 
}

.fav-meal {
    display: flex;
    flex-wrap: nowrap; 
    justify-content:center; 
    align-items: center;
    gap:20px; 
    overflow-x:hidden; 
    flex-direction: row;

}

.fav-meal {
    background-color: #f0e6d2;
    color: #435334;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(33.33% - 20px); 
    width: 89%;
    margin: 20px;
}

.fav-img {
    width: 100%;
    height: 180px; 
    overflow: hidden;
}

.fav-meal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.fav-meal h3 {
    font-size: 18px; 
    font-weight: 600;
    margin: 5px;
    text-align: center;
}

.fav-meal p {
    font-size: 16px; 
    margin: 5px 0;
}

.fav-meal span {
    font-weight: 600;
}

.fav-meal button {
    background-color: #435334;
    color: #faf1e4;
    font-size: 16px;
    font-weight: 600;
    padding: 10px; 
    border-radius: 5px;
    border: none;
    outline: none;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.2s ease-in-out;
}

.fav-meal button:hover {
    background-color: #cedebe;
    color: #435334;
}
.fav-meals-title ,.cnd-msg{
    font-size:2rem; 
    font-weight: 1000;
    color: #435334;
    margin-bottom: 10px; 
    text-align: center; 
}
#google_translate_element{
    margin-right: 10px;
    padding: 10px;
    cursor: pointer;
}
@media screen and (max-width:600px) {
    header nav{
        flex-direction: column;
        
    }
    header nav form{
        width: 100%;
        margin-top: 10px;
        flex-direction: column;
        align-items: center;
    
    }
    form input,button{
        margin: 10px;
        width: 80%;    
    }
}