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

body {
    background-color: #f1d4af;
    color: rgb(0, 0, 0);
    font-family: Arial, sans-serif;
}

h1 {
    text-align: center;
    margin: 50px 0;
    font-size: 40px;
}

.button {

    display: inline-flex;

    justify-content: center;

    align-items: center;

    padding: 14px 32px;

    background: #1f1f1f;

    color: white;

    text-decoration: none;

    border-radius: 12px;

    border: 1px solid #3a3a3a;

    box-shadow:
        0 8px 18px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.08);

    transition: all .25s ease;

}

.button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 25px rgba(0,0,0,.5),
        inset 0 1px 0 rgba(255,255,255,.12);
}

.button:active {
    transform: translateY(2px);
    box-shadow:
        0 4px 10px rgba(0,0,0,.4),
        inset 0 2px 4px rgba(0,0,0,.3);
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}
.recipe-form {
    width: 500px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.recipe-form input,
.recipe-form select,
.recipe-form textarea {

    padding: 12px;
    font-size: 12px;
    border-radius: 8px;
    border: 1px solid #555;

}


.recipe-form textarea {

    height: 120px;
    resize: none;

}


.recipe-form button {

    padding: 15px;
    background: #222;
    color:white;
    border:none;
    border-radius:10px;
    cursor:pointer;

}


.recipe-form button:hover {

    background:#444;

}
.remove-ingredient {

    width:35px;
    height:35px;

    border-radius:50%;

    border:none;

    background:red !important;

    color:white;

    cursor:pointer;

    font-size:18px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.remove-ingredient:hover {

    background:darkred !important;

}


.ingredient-row {
    display: flex;
    gap: 10px;
    align-items: center;
}


.ingredient-row input:first-child {
    width: 89px;
}


.ingredient-row select {
    width: 90px;
}


.ingredient-row input:nth-of-type(2) {
    flex: 1;
}
#recipes-container {

    display:flex;
    flex-wrap:wrap;
    gap:30px;
    justify-content:center;
    margin:50px;

}


.recipe-card {

    background:white;

    width:350px;

    padding:25px;

    border-radius:20px;

    box-shadow:0 10px 25px rgba(0,0,0,0.15);

}


.recipe-card h2 {

    margin-bottom:15px;

}


.recipe-card h3 {

    margin-top:20px;

}


.recipe-card li {

    margin-bottom:5px;

}
#recipe-details {

    width: 600px;
    max-width: 90%;
    margin: 40px auto;

    background:white;

    padding:30px;

    border-radius:20px;

    box-shadow:0 10px 25px rgba(0,0,0,0.15);

}


#recipe-details h2 {

    margin-top:25px;

}


#recipe-title {

    text-align:center;

}
.filters {

    display:flex;
    justify-content:center;
    gap:15px;
    margin:40px auto;

}


.filters input,
.filters select {

    padding:12px;

    border-radius:10px;

    border:1px solid #555;

    font-size:16px;

}
#favorites-container {

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:25px;

}
.home-button {

    display:inline-block;

    margin:20px;

    padding:10px 20px;

    background:#1f1f1f;

    color:white;

    text-decoration:none;

    border-radius:10px;

    box-shadow:
        0 5px 12px rgba(0,0,0,.3);

    transition:.25s;

}


.home-button:hover {

    transform:translateY(-3px);

    background:#333;

}
.remove-favorite {

    margin-top:10px;

    padding:10px 15px;

    border:none;

    border-radius:10px;

    background:#333;

    color:white;

    cursor:pointer;

}


.remove-favorite:hover {

    background:#555;

}
.navbar {

    display:flex;

    justify-content:center;

    gap:25px;

    margin:25px auto;

}


.navbar a {

    display:inline-flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;

    color:white;

    background:#1f1f1f;

    padding:12px 22px;

    border-radius:12px;

    box-shadow:
        0 6px 15px rgba(0,0,0,.35);

    transition:.25s;

}


.navbar a:hover {

    transform:translateY(-3px);

    background:#333;

}
.recipe-card {

    width:300px;

    background:white;

    padding:25px;

    border-radius:20px;

    box-shadow:
        0 10px 25px rgba(0,0,0,.15);

    transition:.3s ease;

}


.recipe-card:hover {

    transform:translateY(-8px);

    box-shadow:
        0 18px 35px rgba(0,0,0,.25);

}


.recipe-card h2 {

    margin-bottom:15px;

    text-align:center;

}


.recipe-card p {

    margin:10px 0;

}


.recipe-card button {

    width:100%;

    margin-top:15px;

    padding:12px;

    border:none;

    border-radius:12px;

    background:#1f1f1f;

    color:white;

    cursor:pointer;

    font-size:16px;

    transition:.25s;

}


.recipe-card button:hover {

    background:#444;

}
#recipes-container,
#favorites-container {

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:30px;

    padding:30px;

}
.recipe-info {

    margin-top:15px;

}


.recipe-info p {

    margin:8px 0;

}
/* HOME PAGE */


.home-page {

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

}



.hero {

    text-align:center;

    padding:40px;

}



.hero h1 {

    font-size:60px;

    margin-bottom:20px;

}



.subtitle {

    font-size:22px;

    margin-bottom:50px;

    opacity:.8;

}



.buttons {

    display:flex;

    justify-content:center;

    gap:30px;

    flex-wrap:wrap;

}