@charset "UTF-8";

/* General Styles */
html {
    background-color: #f4f1ea;
    font-family: 'Georgia', serif;
}

.content-of-this-block-should-be-in-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .content-of-this-block-should-be-in-two-columns {
        grid-template-columns: 1fr;
    }
}

ul, .mainmenu, .footer, .content, .product, .imgarea, .nav {
    font-family: 'Georgia', serif;
    color: #5a3e36;
}

ul {
    list-style-type: none;
    padding-inline-start: 12px;
}

h1 {
    margin-block-end: 0.2em;
    margin-block-start: 0.3em;
}

h2, h3, h4, h5, h6 {
    margin-block-end: 0.2em;
    margin-block-start: 0.6em;
}

#wrapper {
    width: 100%;
}

.description {
    font-size: 0.9em;
    color: #5a3e36;
}

/* Menu Styles */
.mainmenu {
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: 19px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mainmenu li {
    margin: 0 15px;
}

.mainmenu li a {
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s, background-color 0.3s;
}

.mainmenu li a:hover {
    color: #ffffff;
    background-color: #8b4513;
    border-radius: 5px;
}

.selectedmenuitem {
    font-style: italic;
    font-weight: bold;
    color: #8b4513;
}

/* Footer Styles */
.footer {
    text-align: right;
    padding: 20px;
    background-color: #5a3e36;
    color: #ffffff;
    display: flex;
    justify-content: flex-end;
}

.footer a {
    background-color: #5a3e36;
    text-decoration: none;
    padding-right: 5%;
    font-size: 13px;
    color: #d2b48c;
}

/* Content Styles */
.content {
    background-color: #ffffff;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #8b4513;
}

/* Product Styles */
.product {
    display: flex;
    flex-direction: column;
    padding: 10px 0 8px;
    border-bottom: 1px solid #8b4513;
}

.product > .name-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
}

.product > .name-price > .name {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.product > .name-price > .price {
    color: #000000;
    text-align: right;
    margin-left: 5px; /* Adjust spacing as needed */
}

.product > .name-price > .price > .spacer {
    margin: 0 2px; /* Adjust spacing as needed */
}

.product > .name-price > .price > .remove-margin {
    margin: 0 -2px; /* Adjust spacing as needed */
}

.product > .name-price > .icon > img.vegan {
    margin-left: 2px; /* Adjust spacing as needed */
    height: 20px;
}

.product > .description {
    margin-top: 5px;
    font-size: 0.8em;
    color: #5a3e36;
    font-style: italic;
}

.product .extras {
    margin-top: 6px;
    font-size: 0.85em;
    color: #3d2817;
    font-style: normal;
    padding: 4px 8px;
    background-color: #f9f5f0;
    border-left: 3px solid #d2b48c;
    border-radius: 2px;
}

/* Image Area Styles */
.imgarea {
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
}

.restimg {
    width: 100%;
}

/* Navigation Styles */
.nav {
    max-width: 10%;
    font-size: 50px;
    vertical-align: top;
}

.nav input {
    height: 50px;
    background-color: transparent;
    border-color: transparent;
    font-size: 50px;
    margin-top: 30px;
}

.nav a {
    text-decoration: none;
}

.nav a, .mainmenu li a {
    color: #5a3e36;
}

.nav a:hover, .mainmenu li a:hover {
    color: #ffffff;
    background-color: #8b4513;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .mainmenu {
        flex-direction: column;
        align-items: center;
    }

    .mainmenu li {
        margin: 10px 0;
    }

    .content {
        padding: 20px;
        margin: 10px;
    }

    .nav {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .nav {
        font-size: 30px;
    }

    .content {
        padding: 15px;
        margin: 5px;
    }
}

@media print {
    .mainmenu {
        display: none;
    }

    .content {
        border: none;
    }

    .footer, .nav {
        display: none;
    }

    .content {
        width: 100%;
        max-width: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    ul, .mainmenu, .footer, .content, .product, .imgarea, .nav {
        font-family: 'Georgia', serif;
        color: #000000;
    }

    .column {
        break-inside: avoid;
    }
    
    /* Improved print styles for two columns */
    .content-of-this-block-should-be-in-two-columns {
        display: grid;
        grid-template-columns: 48% 48%;
        gap: 0 4%;
        width: 100%;
        font-size: 90%;
    }
    
    /* Handle long words */
    .product .name, .product .description, .product .extras {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        max-width: 100%;
    }
    
    .product .extras {
        font-size: 85%;
        color: #000000;
    }
    
    .product > .name-price {
        display: flex;
        flex-wrap: wrap;
    }
    
    .product > .name-price > .name {
        max-width: 75%;
    }
    
    h1, h2, h3, h4, h5, h6 {
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    /* Set explicit page size */
    @page {
        size: A4;
        margin: 1.5cm 1cm;
    }
    
    /* Ensure icons don't cause overflow */
    .icon img {
        max-height: 15px;
        width: auto;
    }
}