body {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 1fr 60px;
    grid-template-rows: auto 175px auto auto 80px;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-image: url('background_image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.left_column, .right_column {
    background-color: white;
}
header, #title_container, #about_title_container, .about_content, footer {
    padding: 0 20px;
}
.left_column {
    grid-column: 1;
    grid-row: 1 / -1;
}
.right_column {
    grid-column: 5;
    grid-row: 1 / -1;
}
header {
    grid-column: 2 / 5;
    grid-row: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: rgb(164, 62, 32);
    color: white;
}
header img {
    max-height: 50px;
    margin-right: 10px;
}
.menu-container {
    display: flex;
    align-items: left;
}
.menu-toggle {
    display: none;
}
.menu-icon {
    font-size: 30px;
    cursor: pointer;
    margin-left: 20px;
    color: white;
    display: none;
}
.navigation {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.navigation a {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    transition: color 0.3s ease;
    margin-right: 10px;
}
.navigation a:hover {
    color: rgba(255, 255, 255, 0.8);
}
.menu-toggle:checked + .menu-icon + .navigation {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: rgba(164, 62, 32, 0.95);
    padding: 10px 0;
    z-index: 1000;
}
.navigation a {
    text-align: center;
    padding: 10px;
}
#title_container, #about_title_container {
    grid-column: 2 / 5;
    grid-row: 2 / 3;
    text-align: center;
    color: white;
    margin-top: 50px;
}
#title_container h2, #about_title_container h2 {
    font-size: 3em;
    margin: 0;
}
#title_container h3, #about_title_container h3 {
    font-size: 2.5em;
    margin-top: 10px;
}
.about_content {
    grid-column: 2 / 5;
    grid-row: 3 / 4;
    margin-top: 40px;
    margin-bottom: 50px;
    font-size: 1.2em;
    color: white;
    text-align: left;
    line-height: 1.6;
}
.about_content h4 {
    font-size: 1.8em;
    margin-top: 30px;
    color: rgb(164, 62, 32);
}
.about_content ul {
    list-style-type: disc;
    margin-left: 20px;
}
.about_content p, .about_content ul li {
    margin: 10px 0;
}
.image_gallery {
    grid-column: 2 / 5;
    grid-row: 3 / 4;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 50px;
    margin: 50px auto;
}
.image_item_top, .image_item_bottom {
    position: relative;
    height: 200px;
    border: 2px solid white;
    border-radius: 10px;
    overflow: hidden;
}
.image_item_top img, .image_item_bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
footer {
    grid-column: 2 / 5;
    grid-row: 4 / 5;
    background-color: rgba(164, 62, 32, 0.8);
    padding: 10px;
    text-align: center;
    color: white;
}
footer a {
    color: white;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
@media (max-width: 992px) {
    .image_gallery {
        grid-template-columns: 1fr;
        grid-gap: 30px;
        margin: 0 auto;
    }
    .menu-icon {
        display: block;
    }
    header {
        width: 100%;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: left;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
    }
    body {
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
    }
    .navigation {
        display: flex;
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    .image_gallery {
        grid-template-columns: 1fr;
        grid-gap: 30px;
        margin: 0 auto;
    }
    .image_box {
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(164, 62, 32, 0.8);
        color: white;
        padding: 25px 40px;
        font-size: 1.5em;
        border-radius: 12px;
        text-align: center;
        z-index: 2;
    }
    header {
        width: 100%;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: left;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
    }
    body {
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
    }
    .recipes-container {
        grid-template-columns: 1fr;
        grid-gap: 30px;
    }
}

@media (max-width: 600px) {
    .navigation a {
        display: none;
    }
    body {
        grid-template-columns: 40px 1fr 1fr 1fr 40px;
    }

    #about_title_container {
        margin-top: 20px;
    }
    header {
        width: 100%;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: left;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
    }
    .image_box {
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(164, 62, 32, 0.8);
        color: white;
        padding: 25px 40px;
        font-size: 1.5em;
        border-radius: 12px;
        text-align: center;
        z-index: 2;
    }
}
.image_box {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(164, 62, 32, 0.8);
    color: white;
    padding: 25px 40px;
    font-size: 1.5em;
    border-radius: 12px;
    text-align: center;
    z-index: 2;
}
body.about-page {
    background-image: url('ingredients.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
body.about-page #about_title_container,
body.about-page .about_content,
body.about-page footer {
    color: black;
}
body.about-page .about_content p {
    font-size: 1.2em;
}
body.contact-page {
    background-image: url('contact_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#title_container {
    grid-column: 2 / 5;
    grid-row: 2 / 3;
    text-align: center;
    color: white;
    margin-top: 50px;
}
#title_container h2 {
    font-size: 3em;
    margin: 0;
}
.contact-content {
    grid-column: 2 / 5;
    grid-row: 3 / 4;
    margin-top: 40px;
    margin-bottom: 50px;
    font-size: 1.2em;
    color: white;
    text-align: left;
    line-height: 1.6;
}
.contact-content h3 {
    font-size: 2.5em;
    color: rgb(164, 62, 32);
}
.contact-content p {
    margin-top: 10px;
}
form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
label {
    font-size: 1.1em;
    color: white;
}
input, textarea {
    padding: 10px;
    font-size: 1em;
    border: 2px solid white;
    border-radius: 5px;
    background-color: transparent;
    color: white;
}
button {
    background-color: rgb(164, 62, 32);
    color: white;
    font-size: 1.2em;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: rgba(164, 62, 32, 0.8);
}
footer {
    grid-column: 2 / 5;
    grid-row: 4 / 5;
    background-color: rgba(164, 62, 32, 0.8);
    padding: 10px;
    text-align: center;
    color: white;
}
footer a {
    color: white;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
body.contact-page {
    background-image: url('contact.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.contact-content {
    color: #000;
    font-size: 1.2em;
}
body.favorites-page {
    background-image: url('favorites_background.webp'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
body.favorites-page #favorites_title_container,
body.favorites-page .favorites_content,
body.favorites-page footer {
    color: #333;
}
body.favorites-page #favorites_title_container h2,
body.favorites-page #favorites_title_container h3,
body.favorites-page .favorites_content h4 {
    color: rgb(164, 62, 32);
}
.favorites_title_container .favorites_content{
text-align: center;
}
body.favorites-page {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f9f9f9;
    text-align: center;
}
#favorites_title_container {
    margin-bottom: 20px;
}
.favorites_content {
    font-size: 1.2em;
    color: #333;
    max-width: 800px;
    line-height: 1.6;
}
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}
.navigation {
    display: flex;
    gap: 20px;
}
.navigation a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}
body.favorites-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding-top: 80px;
    text-align: center;
}
#favorites_title_container {
    margin-bottom: 20px;
}
.favorites_content {
    font-size: 1.2em;
    color: #333;
    max-width: 800px;
    line-height: 1.6;
}
footer {
    width: 100%;
    padding: 10px 20px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
}
.navigation a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: lightgray;
}

footer p {
    color: white;
}

footer p a {
    color: white;
}
.favorites_content p {
    color: white;
}
.favorites_content ul {
    color: white;
}
.header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
  }
  .navigation {
    display: flex;
}
body.recipes-page {
    background-image: url('recipes_background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: grid;
    grid-template-columns: 60px 1fr 1fr 1fr 60px;
    grid-template-rows: auto 175px auto auto 80px;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

#recipes_title_container {
    grid-column: 2 / 5;
    grid-row: 2 / 3;
    text-align: center;
    color: white;
    margin-top: 50px;
}

#recipes_title_container h2 {
    font-size: 3em;
    margin: 0;
}

#recipes_title_container h3 {
    font-size: 2.5em;
    margin-top: 10px;
}

.recipes-container {
    grid-column: 2 / 5;
    grid-row: 3 / 4;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 50px;
    margin: 50px auto;
    color: white;
}

.recipe-section {
    text-align: center;
}

.recipe-section h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: rgba(164, 62, 32, 0.9);
}

.recipe-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.recipe-card h4 {
    font-size: 1.8em;
    color: rgb(164, 62, 32);
    margin-bottom: 10px;
}

.recipe-card p {
    font-size: 1.2em;
    color: black;
}

@media (max-width: 768px) {
    .recipes-container {
        grid-template-columns: 1fr;
        grid-gap: 30px;
    }
}
