*{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

body{
    background-color: rgb(73, 0, 0);
    color: white;
}

header nav{
    background-color: #121212;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1;
}

header nav h1{
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
}

header nav form{
    display: flex;
    justify-content: center;
}

form input[type="text"]{
    flex-grow: 1;
    margin-right: 10px;
    outline: none;
}

form input[type="text"], button[type="submit"]{
    border: none;
    font-size: 18px;
    padding: 10px;
    border-radius: 5px;
}
form button[type="submit"]{
    background-color: #f44336;
    color: white;
    cursor: pointer;
    transition: all 0.5s;
}

form button[type="submit"]:hover{
    background-color: #bc3329;
}

.recipe-container{
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 40px;
    width: 100%;
    margin: 10px auto;
    padding: 20px;
    place-items: center;
}

.recipeChild{
    background-color: white;
    display: flex;
    flex-direction: column;
    color: black;
    border-radius: 5px;
    box-shadow: 0px 5px 10px rgba(78, 73, 73, 0.1), -5px -5px 10px rgba(34, 34, 34, 0.5);
    cursor: pointer;
    max-width: 350px;
    min-width: 250px;
    transition: all 0.5s ease-in-out}

.recipeChild:hover{
    transform: scale(1.02);
}

.recipeChild img{
    height: 300px;
    padding: 2px;
    border-radius: 5px;
}

.recipeChild h3{
    font-size: 24px;
    margin: 5px 5px;
}

.recipeChild p{
    font-size: 20px;
    color: #4a4a4a;
    margin: 5px 0;
}

.recipeChild span{
    font-weight: 600;
}

.recipeChild button{
    font-size: 20px;
    font-weight: 700;
    padding: 10px;
    border-radius: 30px;
    background-color: #f44336;
    cursor: pointer;
    color: white;
    border: none;
    margin: 18px auto;
    transition: all 0.5s;
}

.recipeChild button:hover{
    background-color: #bc3329;
}

.recipe-details{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    background-color: #694c2f;
    border-radius: 12px;
    width: 80%;
    height: 60%;
    font-size: 20px;
    transition: all 0.5s ease-in-out;
    overflow-y: scroll;
}
.recipeName{
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.IngredientList{
    margin-top: 10px;
    margin-left: 20px;
    margin-bottom: 20px;
}
.recipeInstructions{
    margin-bottom: 20px;
}

.recipeInstructions p{
    line-height: 30px;
    white-space: pre-line;
}

.recipe-close-btn{
    border: none;
    font-size: 18px;
    padding: 8px;
    border-radius: 5px;
    background-color: #f44336;
    color: white;
    position: absolute;
    top: 18px;
    right: 15px;
    cursor: pointer;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
}

.recipe-close-btn:hover{
    background: #bc3329;
}


.recipe-details-content{
    padding: 30px;
}

.recipe-details::-webkit-scrollbar{
    width: 10px;
}

.recipe-details::-webkit-scrollbar-thumb{
    background: #b5b5ba;
    border-radius: 16px;
    --webkit-border-radius: 16px;
}


body::-webkit-scrollbar{
    width: 15px;
}

body::-webkit-scrollbar-thumb{
    background: #b5b5ba;
}

body::-webkit-scrollbar-track{
    background: #7a7a7a;
}

@media screen and (max-width:600px) {
    header nav{
        flex-direction: column;
    }
    header nav form{
        width: 80%;
        margin-top: 20px;
        flex-direction: column;
        align-items: center;
    }
    .recipe-container{
        padding: 5px;
        grid-gap: 15px;
    }
    form input[type="text"], button[type="submit"]{
        font-size: 15px;
    }
    form button[type="submit"]{
        width: 100px;
        margin-top: 5px;
    }
}














