:root {
    --primary-color: #0D0BDF; /* Nightshift Blue */
    --secondary-color: #FF1493; /* Hot Pink */
    --accent-color: #ff4081; /* Pink */
    --bs-primary: var(--primary-color);
    --bs-secondary: var(--secondary-color);
    --bs-success: #28a745;
    --bs-danger: #dc3545;
    --bs-warning: #ffc107;
    --bs-info: #17a2b8;
    --bs-light: #f8f9fa;
    --bs-dark: #343a40;
    --standard-background: black;
    --standard-background-text-color: white;
    --alternate-background: var(--primary-color);
    --alternate-background-text-color: white;
}

.alternateColors {
    background: var(--alternate-background);
    color: var(--alternate-background-text-color);
}

.carousel-item {
    width: 100%;
    margin: 0;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    position: absolute; /* Remove non-active items from the flow */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0; /* Hide non-active items */
    visibility: hidden; /* Prevent interaction with non-active items */
    font-weight: bold;
    text-align: center;
}

    .carousel-item.active {
        position: relative; /* Active item is part of the flow */
        opacity: 1; /* Make active item visible */
        visibility: visible; /* Allow interaction with active item */
    }

html {
    font-size: 14px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

    body._heroLayout {
        background: var(--standard-background);
        color: var(--standard-background-text-color);
    }

    body._layout {
        background: var(--standard-background);
        color: var(--standard-background-text-color);
    }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.hidden {
    display: none !important;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.flex-left-right {
    display: flex;
    align-items: center; /* Adjust vertical alignment as needed */
    width: 100%;
}

    .flex-left-right > :first-child {
        margin-right: auto; /* Pushes all other elements to the end, aligning this first child to the left */
    }

    .flex-left-right > :last-child {
        margin-left: auto; /* Pushes this element to the right side of its flex container */
    }

.flex-left-center-right {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

    .flex-left-center-right > :nth-child(1) {
        margin-right: auto;
    }

    .flex-left-center-right > :nth-child(2) {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .flex-left-center-right > :nth-child(3) {
        margin-left: auto;
    }


nav {
    margin: 0;
}

.pageContainer {
    margin-top: 1rem;
}

footer {
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    grid-template-areas: "left center right";
    align-items: center; /* vertical centering */
    width: 100%;
    gap: 1rem; /* optional spacing */
}

    footer div.footer-section {
        /*
        style="display:flex;flex-direction:row;gap:2rem"
            */
    }

    footer > .left {
        padding-left: 1rem;
        grid-area: left;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
    }

    footer > .center {
        padding-left: 1rem;
        padding-right: 1rem;
        grid-area: center;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap:1.5rem;
    }

    footer > .right {
        padding-right: 1rem;
        grid-area: right;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
    }


@media (max-width: 768px) {
    footer {
        line-height: initial !important;
        grid-template-columns: 1fr;
        grid-template-areas:
            "center" /* first row: middle panel */
            "left" /* second row: left panel */
            "right"; /* third row: right panel */
        padding: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

        footer > .left {
            padding: 0;
            justify-content: center;
        }

        footer > .center {
            padding: 0;
            justify-content: center;
        }

        footer > .right {
            padding: 0;
            justify-content: center;
        }
}

@media (max-width: 992px) {

    span.iconBarLabel {
        display: none;
    }
}

div.social-follow {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

    div.social-follow img {
        width: 40px;
    }

    div.social-follow i {
        display: none;
    }

div.delivery {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

    div.delivery img {
        width: 40px;
    }

calendarMonth {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 equal columns */
}

    calendarMonth monthHeader {
        padding: 1rem;
        grid-column: span 7; /* Span all 7 columns */
        text-align: center;
        font-size: 1.5em;
        font-weight: bold;
        padding: 10px;
        background-color: #007bff;
        color: white;
        border-radius: 5px;
    }

    calendarMonth dayHeader {
        color: var(--primary-color);
        font-weight: bold;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
        font-size: 1.2em;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        border-radius: 3px;
    }

    calendarMonth day {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: .5rem;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        border-radius: 3px;
    }

    calendarMonth title {
        display: initial;
    }

    calendarMonth shortTitle {
        display: none;
    }

    calendarMonth day[ispriormonth="1"], calendarMonth day[isnextmonth="1"] {
        color: #aaa; /* Light gray text */
        background-color: #f5f5f5; /* Slightly dimmed background */
        opacity: 0.6; /* Make it less prominent */
        pointer-events: none; /* Optional: Prevent interactions */
    }

    calendarMonth day[isDayPast="1"] dayNumber {
        text-decoration: line-through;
    }

    calendarMonth dayNumber {
        width: 100%;
        text-align: right;
        color: var(--primary-color);
    }

    calendarMonth openingHours {
        width: 100%;
        text-align: center;
        color: var(--primary-color);
    }

        calendarMonth openingHours closed {
            color: red;
        }

        /*
    calendarMonth openingHours opensAt::before {
        content: "Hours: "
    }
    */

        calendarMonth openingHours opensAt::after {
            content: " - "
        }

    calendarMonth day event {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    calendarMonth day legend {
        display: none;
    }

    calendarMonth day event img {
        max-width: 144px;
        max-height: 144px;
        min-width: 144px;
        min-height: 144px;
    }

    calendarMonth day event .msg {
        border: black solid 2px;
        background-color: var(--alternate-background);
        color: var(--alternate-background-text-color);
        max-width: 144px;
        max-height: 144px;
        min-width: 144px;
        min-height: 144px;
        font-weight: bold;
        text-align: center;
        display: flex; /* Enable Flexbox */
        justify-content: center; /* Center content horizontally */
        align-items: center; /* Center content vertically */
        overflow: hidden; /* Clip the text if it overflows the container */
        /* white-space: nowrap;  Prevent text from wrapping to the next line */
        /* text-overflow: ellipsis; Optional: Add ellipsis (...) to indicate clipped text */
        font-size: calc(100%); /* Dynamically adjust font */
    }

    calendarMonth day[isdaycurrent="1"] dayNumber {
        background-color: var(--alternate-background);
        color: var(--alternate-background-text-color);
        font-weight: bold;
    }

    calendarMonth day[isdaycurrent="1"] openingHours {
        font-weight: bold;
    }

    calendarMonth changePage[aria-disabled="true"] {
        cursor: not-allowed;
    }

    calendarMonth changePage[aria-disabled="false"] {
        cursor: pointer;
    }

div.qr-code-card {
    border: 1px solid var(--primary-color);
    padding: .5rem;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

    div.qr-code-card img {
        min-width: 200px;
        max-width: 400px;
    }

@media (min-width: 768px) {
}

@media (max-width: 768px) {
    calendarMonth title {
        display: none;
    }

    calendarMonth shortTitle {
        display: initial;
    }

    calendarMonth openingHours {
        display: none;
    }
}

#hoursTable td {
    padding: .25rem;
}
    #hoursTable open::after {
        content: " - "
    }
