body {
    font-family: 'Garamond', serif;
    background-color: rgba(255, 248, 225, 0.2);
    background-image: url('/assets/images/pergament-papier-alt-vintage.jpg');
    background-size: cover; /* Ensures it fills the screen */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    background-attachment: fixed;
    color: #001f3f;
    margin: 0;
    padding: 0;
}

header {
    background-color: #8b5e3c;
    padding: 15px 0;
    text-align: center;
    border-bottom: 5px solid #5a3e1b;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: #333;
    padding: 10px;
}
.nav-menu li {
    display: inline;
}
.nav-menu a {
    text-decoration: none;
    color: white;
    padding: 10px;
}
.nav-menu a:hover {
    background: #555;
    border-radius: 5px;
}

/* Toggle Button */
.nav-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
}


.hero {
    text-align: center;
    padding: 30px 5%;
    background-color: rgba(255, 248, 225, 0.2);
    border: 5px double #8b5e3c;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    background: none;
    color: #002855; /* Slightly richer dark blue */
    text-shadow: 1px 1px 3px rgba(255, 223, 186, 0.5); /* Subtle glow effect */
    font-weight: bold;
    max-width: 100%;
}

.hero img {
    width: 100%;
    max-width: 600px; /* Adjust based on your preferred max size */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px; /* Optional: Adds rounded corners */
}


.event-card, .menu-card {
    background-color: rgba(255, 248, 225, 0.2); /* Semi-transparent parchment effect */
    border: 3px solid #8b5e3c;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.events {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    border: 10px solid #5a3e1b;
    background:  rgba(255, 248, 225, 0.2);
    padding: 30px;
    border-radius: 15px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.event-card {
    background-color:  rgba(255, 248, 225, 0.2);
    border: 3px solid #8b5e3c;
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    text-align: center;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.event-card:hover {
    transform: scale(1.05);
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.3);
}

.event-card img {
    width: 100%;
    height: auto;
    border-bottom: 3px solid #8b5e3c;
}

.event-card h2 {
    background-color: rgba(255, 248, 225, 0.2);
    color: #002855; /* Slightly richer dark blue */
    text-shadow: 1px 1px 3px rgba(255, 223, 186, 0.5); /* Subtle glow effect */
    padding: 10px 0;
    margin: 0;
    font-style: italic;
}

.event-card p {
    padding: 10px;
    font-size: 16px;
}

footer {
    background-color: #8b5e3c;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    border-top: 5px solid #5a3e1b;
}

.menu {
    text-align: center;
    padding: 20px;
}

.menu h3 {
    margin-top: 30px;
    font-size: 1.5em;
    color: #002855; /* Slightly richer dark blue */
    text-shadow: 1px 1px 3px rgba(255, 223, 186, 0.5); /* Subtle glow effect */
}

.menu-table {
    width: 100%;
    max-width: 900px;
    margin: 10px auto;
    border-collapse: collapse;
    table-layout: fixed;
    overflow-x: auto;
    display: table;
}

.menu-table th, .menu-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-size: 16px;
}

.menu-table th {
    background-color: #a67c00;
    color: #002855; /* Slightly richer dark blue */
    text-shadow: 1px 1px 3px rgba(255, 223, 186, 0.5); /* Subtle glow effect */
}

.menu-table td {
    text-align: center;
    vertical-align: middle;
    width: 33%; /* Adjust as needed */
    padding: 12px;
    overflow: hidden; /* Prevents content from overflowing */
    word-wrap: break-word; /* Ensures text does not break layout */
}

.menu-table td div {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;
    flex-wrap: wrap;
    width: 100%; /* Centers vertically */
}


.menu-section {
    text-align: center;
    padding: 40px 20px;
}

.menu-category {
    text-align: center;
    margin-bottom: 30px;
}

.menu-card {
    display: flex;
    align-items: center;
    background-color:  rgba(255, 248, 225, 0.2);
    border: 4px solid #8b5e3c;
    border-radius: 10px;
    padding: 15px;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    transition: transform 0.3s, box-shadow 0.3s;
}

.menu-card:hover {
    transform: scale(1.05);
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.3);
}

.menu-card img {
    width: 90%;
    max-width: 350px;
    height: 60px;
    border-radius: 8px;
    border: 3px solid #5a3e1b;
    margin-right: 15px;
    object-fit: cover;
}

.menu-card h3 {
    font-size: 1.2em;
    margin: 0;
}

.menu-details {
    flex-grow: 1;
    text-align: left;
}

.menu-details h3 {
    margin: 0;
    font-size: 22px;
    color: #002855; /* Slightly richer dark blue */
    text-shadow: 1px 1px 3px rgba(255, 223, 186, 0.5); /* Subtle glow effect */
    border-bottom: 2px solid #8b5e3c;
    display: inline-block;
    padding-bottom: 5px;
}

.menu-details p {
    margin: 5px 0;
    font-size: 16px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #001f3f;
    margin-left: auto;
}

.order-btn {
    background-color: #d4af37; /* Golden medieval style */
    border: 2px solid #8b6f1c;
    color: #002855; /* Slightly richer dark blue */
    text-shadow: 1px 1px 3px rgba(255, 223, 186, 0.5); /* Subtle glow effect */
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.order-btn:hover {
    background-color: #b8922d;
    transform: scale(1.1);
    transition: all 0.3s ease-in-out;
}

.contact {
    text-align: center;
    padding: 30px;
    max-width: 600px;
    margin: 20px auto;
    background: rgba(255, 248, 225, 0.2);
    border: 10px solid rgba(90, 62, 27, 0.5);
    border-radius: 15px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.contact h2 {
    color: #5a3e1b;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact label {
    font-size: 16px;
    font-weight: bold;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 8px;
    border: 2px solid #8b5e3c;
    border-radius: 5px;
    font-size: 16px;
}

.contact button {
    background-color: #8b5e3c;
    color: white;
    padding: 10px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact button:focus {
    outline: 3px solid #f4e4c1;
    background-color: #5a3e1b;
}

.location {
    text-align: center; /* Centers text elements */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers everything horizontally */
    justify-content: center; /* Centers content vertically (if needed) */
    padding: 20px;
}

.map-container {
    width: 80%; /* Adjust width as needed */
    max-width: 600px; /* Prevents it from getting too wide */
}


@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }
}


@media (max-width: 768px) {
    .menu-card {
        width: 100%;
        max-width: 320px;
        flex-direction: column;
        text-align: center;
    }
    .menu-card img {
        margin-bottom: 10px;
    }

    .menu-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap; /* Prevents text from wrapping */
    }

    .menu-table th,
    .menu-table td {
        padding: 6px;
        font-size: 14px; /* Reduce text size for smaller screens */
    }

    .order-btn {
        font-size: 14px;
        padding: 6px 10px;
    }



    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #333;
        position: absolute;
        top: 60px; /* Adjusted for spacing */
        left: 0;
        right: 0;
        padding: 10px 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
    }
    .nav-menu.active {
        display: flex;
        transform: translateY(0);
    }
    .nav-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 24px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 10px;
        z-index: 10;
    }

    .hero img {
        max-width: 90%; /* Adjust for smaller screens */
    }
}
