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

body{
    background-color: #2b1d0f;
    color:#fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main{
    flex: 1;
}

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

header nav h1{
    font-size: 26px;
}

header nav a{
    text-decoration: none;
    color: #fff;
}

header nav form{
    display: flex;
}

.searchBox{
    padding: 10px;
    margin-right: 10px;
}

form button{
    padding: 10px;
    background-color: #f44336;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* recipe */
.recipe-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    width: 80%;
    margin: 10px auto;
    padding: 20px;
    justify-items: center;
}

/*  */
.recipe{
    background-color: #fff;
    color: #000;
    border-radius:10px;
    max-width: 350px;
    width: 100%;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.recipe:hover{
    transform: scale(1.02);
}

.recipe img{
    height: 300px;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.recipe h3{
    font-size: 24px;
    margin-top: 10px;
}

.recipe p{
    font-size: 18px;
    margin: 5px 0;
}

.recipe span{
    font-weight: 600;
}

.recipe button{
    margin: 15px auto;
    padding: 10px;
    background-color: #f44336;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

/*  */
.recipe-details{
    display: none;
    position: fixed;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    background-color: #694c2f;
    padding: 20px;
    width: 40%;
    height: 40%;
    overflow: auto;
    border-radius: 10px;
}

.recipe-details-content{
    padding: 20px;
}

/*  */
.recipeName{
    text-align: center;
    text-transform: uppercase;
    text-decoration: underline;
    margin-bottom: 15px;
}

.ingredientsList li{
    margin: 5px 0;
    text-align: left;
}

.recipe-close-btn{
    border: none;
    background-color: #f44336;
    color: #fff;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.recipe-close-btn:hover{
    background-color: #ff5c5c;
}

/* footer */
footer{
    margin-top: 0;
}

.foot-panel1{
    background-color: #37475a;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.foot-panel2{
    background-color: #222;
    height: 300px;
    display: flex;
    justify-content: space-evenly;
}

ul{
    margin-top: 20px;
}

ul a{
    display: block;
    margin-top:10px;
    color: #ddd;
}

/* sort */
.sortBtn{
    padding:10px 15px;
    background-color:#f44336;
    color:white;
    border:none;
    border-radius:5px;
    cursor:pointer;
}

.filterSelect{
    padding:8px;
    margin-left:10px;
    border-radius:5px;
}