/* Css for mywebiste with warm colors with a blog style*/

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Header area */
header {
    background-color: #ff7f50; 
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    letter-spacing: 2px;
}

/* Nav for the tabs*/
nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #add8e6; 
}

/* Main/Home content area for recipies */
main {
    padding: 2rem;
    background-color: #fff5e6; 
}
/* Main message*/
.welcome-message {
    text-align: center;
    padding: 3rem 20px;
    background-color: #f8f0e3;
    margin-bottom: 3rem;
}

.welcome-message h2 {
    font-size: 2.5rem;
    color: #8b4513; 
    margin-bottom: 1rem;
    font-family: 'Dancing Script', sans-serif; 
}

.welcome-message p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* All the main featured recipes and puctures*/
.featured-recipes {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 2rem;
}

.featured-recipes {
    text-align: center;
    padding: 2rem;
    background-color: #fff5e6;
}

.featured-recipes h2 {
    font-size: 2rem;
    margin-bottom: 0rem;
    color: #8b4513;
}

.recipe {
    display: inline-block;
    width: 50%;
    margin: 2rem;
    text-align: center;
}

.recipe img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.recipe h3 {
    margin-top: 10px;
    font-size: 1.5rem;
}

.recipe p {
    font-size: 1.1rem;
    color: #555;
}

.recipe a {
    text-decoration: none;
    color: #ff7f50;
    font-weight: bold;
}

.recipe {
    background: #f8f0e3;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1)
}

.recipe img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.recipe a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #ff7f50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.recipe {
    min-width: 200px;       
    max-width: 250px;          
}

.recipe a:hover {
    background: #e67340;
}

/*Breakfast/Lunch/Dinner/Desserts/Snacks&Sharables css*/

.recipe-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.recipe-image {
    flex: 1;
    max-width: 400px;
}

.recipe-image img {
    width: 100%;
    border-radius: 10px;
}

.recipe-details {
    flex: 1;
    padding: 20px;
}

.recipe-details h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #8b4513;
}

.recipe-details h3 {
    color: #d2691e;
    margin-top: 15px;
}

.recipe-details ul, .recipe-details ol {
    padding-left: 20px;
}

.recipe-details ul li, .recipe-details ol li {
    margin-bottom: 8px;
}

/* Footer for the website */
footer {
    background-color: #8b4513; 
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Mobile and desktop versions */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .recipe-list h2 {
        font-size: 2rem;
    }

    .recipe-list p {
        font-size: 1rem;
    }
}

@media (min-width: 1000px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul li a {
        font-size: 1rem;
    }

    .recipe-list h2 {
        font-size: 1.5rem;
    }

    .recipe-list p {
        font-size: 1rem;
    }
}
