/* General Styles */
* {
    font-family: "Merriweather", "Consolas", "sans-serif";
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Navigation Styles */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: darkseagreen;
    padding: 1rem;
    position: relative;
}

.navigation .logo h1 {
    font-family: "Niconne", cursive;
    font-size: 3rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: black;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-links a:hover {
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 4px 0;
    transition: 0.3s;
}

/* Title and Macro Styles */
.title {
    text-align: center;
    padding: 2rem;
    background-color: darkseagreen;
    color: white;
}

.title h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.macro {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.macro div {
    margin: 1rem;
    text-align: center;
}

.macro i {
    font-size: 3rem;
}

.macro h2 {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.macro p {
    font-size: 1rem;
}

/* Ingredients Section Styles */
.ingredients {
    padding: 2rem;
    background-color: white;
    color:darkseagreen;
    text-align:left;
}

.ingredients h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.ingredients ul {
    list-style-type: disc;
    padding-left: 2rem;
    font-size: 1rem;
}

/* Recipe Section Styles */
.color-container {
    background-color: darkseagreen;
    padding: 2rem 0;
}

.recipe-container {
    max-width: 100%;
    margin: auto;
    height:auto;
    padding: 2rem;
    padding-bottom:3rem;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.recipe-container {
    max-width: 100%;
    margin: auto;
    height: 65vh; /* Adjust height as needed */
    padding: 2rem;
    padding-bottom:3rem;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* Enables vertical scrolling */
}

.recipe-section {
    text-align: left;
    color:darkseagreen;
}

.recipe-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.recipe-section ol {
    list-style-type: decimal;
    margin: 1rem 2rem;
    font-size: 1rem;
}

.recipe-section a {
    color: darkseagreen;
    text-decoration: underline;
}

/* Back Button Styles */
.back-button-container {
    text-align: center;
    margin: 2rem 0;
}

.back-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    color: black;
    background-color: white;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.back-button:hover {
    color: darkseagreen; /* Light color on hover for better visibility */
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: darkseagreen;
        z-index: 1;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .title h1 {
        font-size: 2rem;
    }

    .macro i {
        font-size: 2rem;
    }

    .macro h2 {
        font-size: 1.25rem;
    }

    .macro p {
        font-size: 1rem;
    }

    .ingredients h2 {
        font-size: 1.25rem;
    }

    .ingredients ul {
        font-size: 1rem;
    }

    .recipe-section h2 {
        font-size: 1.25rem;
    }

    .recipe-section ol {
        font-size: 1rem;
    }

    .back-button {
        font-size: 1rem;
    }
}
