body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f4f8;
    color: #333;
    margin: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* --- Navigation bar --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.9);
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

nav .logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
    border-radius: 5px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; 
    flex-grow: 1; 
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #A0D468;
}

/* --- General section styling --- */
section {
    padding-top: 80px;
    padding-bottom: 20px;
    min-height: 95vh;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Home section --- */
#home {
    background-image: url('Recipe.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    min-height: 100vh;
}

/* --- Quote and reviews section --- */
#quote {
    background-color: #f8f9fa;
    text-align: center;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.reviews-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

#reviews-container .review-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
#reviews-container .review-item:last-child {
    border-bottom: none;
}

.review-form textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 10px;
}

.review-form button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* --- Recipe search section --- */
#recipes .content-container {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    display: flex;
    gap: 30px;
}

#recipes {
    background-color: #ecf0f1;
}

.filter-section {
    flex: 1;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 8px;
}

.ingredients-list label {
    display: block;
    margin: 10px 0;
}

#surpriseMeBtn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#surpriseMeBtn:hover {
    background-color: #2980b9;
}

.recipes-container {
    flex: 3;
    padding: 20px;
}

.recipe-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.recipe-card h3 {
    margin-top: 0;
    color: #2980b9;
}

/* --- Contact section --- */
#contact {
    background-color: #2c3e50;
    color: white;
    text-align: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.share-recipe-form input,
.share-recipe-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
}

.share-recipe-form button {
    background-color: #A0D468;
    color: #2c3e50;
    font-weight: bold;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.share-recipe-form button:hover {
    background-color: #8CC058;
}


/*--Footer styling-- */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative; 
    bottom: 0;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; 
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #A0D468;
}

/* Mobile responsive style for footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
    .footer-links {
        margin-top: 10px;
    }
    .footer-links a {
        margin: 0 10px;
    }
}

/* For mobile devices */
@media (max-width: 768px) {
    #recipes .content-container {
        flex-direction: column;
    }
    nav {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        margin-top: 10px;
    }
    nav ul li {
        margin: 0 5px;
    }
    section {
        padding-top: 120px;
    }
}
