@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Permanent+Marker&display=swap');

.gulu-dynamic-menu,
.gulu-dynamic-menu * {
    box-sizing: border-box;
}

.gulu-dynamic-menu {
    font-family: 'Open Sans', sans-serif;
    color: #111111;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gulu-dynamic-menu .menu-page {
    width: 100%;
    max-width: 1200px;
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding-top: 35px;
    padding-bottom: 20px;
}

.gulu-menu-tape {
    width: 140px;
    height: 38px;
    background-color: rgba(235, 230, 215, 0.9);
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.4) 45%, transparent 50%),
        linear-gradient(-45deg, transparent 40%, rgba(255,255,255,0.4) 45%, transparent 50%);
    box-shadow: 2px 3px 6px rgba(0,0,0,0.25), inset 0 0 10px rgba(0,0,0,0.05);
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%) rotate(-2.5deg);
    z-index: 50;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-left: 2px dashed rgba(0,0,0,0.15);
    border-right: 2px dashed rgba(0,0,0,0.15);
}

/* Tape Binding on the Left Edge for Book Flip */
.gulu-dynamic-menu.flip-mode .gulu-menu-tape {
    top: 50%;
    left: -65px; /* Offset by half its unrotated width so the center sits near the page edge */
    transform: translateY(-50%) rotate(-88.5deg);
}

.gulu-dynamic-menu .page-content {
    position: relative;
    margin-top: 40px;
    width: 100%;
    padding: 0 45px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    z-index: 1;
}

.gulu-dynamic-menu .column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

/* CSS masonry for inner categories if we want them to flow */
.gulu-dynamic-menu .menu-category-items {
    column-count: 2;
    column-gap: 40px;
}
@media (max-width: 768px) {
    .gulu-dynamic-menu .menu-category-items {
        column-count: 1;
    }
}
.gulu-dynamic-menu .menu-item {
    break-inside: avoid;
    page-break-inside: avoid;
}

.gulu-dynamic-menu .menu-category {
    margin-bottom: 25px;
}

.gulu-dynamic-menu .category-header {
    margin-bottom: 15px;
}

.gulu-dynamic-menu .category-header h2 {
    display: inline-block;
    color: #FFFFFF !important;
    background-color: transparent !important;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-family: 'Permanent Marker', cursive !important;
    font-weight: 400;
    padding: 15px 30px !important;
    margin: 0;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    border: none !important;
    box-shadow: none !important;
}
.gulu-dynamic-menu .category-header h2::before,
.gulu-dynamic-menu .category-header h2::after {
    display: none !important;
    background: none !important;
}

.gulu-dynamic-menu .marker-breakfast h2 {
    background-image: url('../images/marker-header-breakfast.png');
}

.gulu-dynamic-menu .marker-sweets h2 {
    background-image: url('../images/marker-header-sweets-n-treats.png');
}

.gulu-dynamic-menu .marker-bits h2 {
    background-image: url('../images/marker-header-bits-n-bites.png');
}

.gulu-dynamic-menu .marker-salad-soup h2 {
    background-image: url('../images/marker-header-salad-n-soup.png');
}

.gulu-dynamic-menu .marker-sandwiches h2 {
    background-image: url('../images/marker-header-sandwiches-n-wraps.png');
}

.gulu-dynamic-menu .marker-beverages h2 {
    background-image: url('../images/marker-header-beverages.png');
}

.gulu-dynamic-menu .marker-cocktails h2 {
    background-image: url('../images/marker-header-cocktails-and-spirits-short.png');
}

.gulu-dynamic-menu .subcategory {
    margin-bottom: 20px;
}

.gulu-dynamic-menu .subcategory h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 6px 0;
}

.gulu-dynamic-menu .menu-item {
    margin-bottom: 12px;
}

.gulu-dynamic-menu .item-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2px;
}

.gulu-dynamic-menu .item-name {
    font-size: 1.2rem;
    font-family: 'Permanent Marker', cursive !important;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
    background: transparent !important;
    color: #111 !important;
    padding: 0 !important;
    letter-spacing: 1px;
    border: none !important;
    box-shadow: none !important;
}
.gulu-dynamic-menu .item-name::before,
.gulu-dynamic-menu .item-name::after {
    display: none !important;
    background: none !important;
}

.gulu-dynamic-menu .item-price {
    font-size: 0.95rem;
    font-weight: 700;
}

.gulu-dynamic-menu .diet-icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.gulu-dynamic-menu .diet-icons img {
    width: 18px;
    height: 18px;
}

.gulu-dynamic-menu .item-desc {
    font-size: 0.8rem;
    line-height: 1.25;
    margin: 0;
    font-weight: 400;
}

.gulu-dynamic-menu .ripped-paper-block {
    position: relative;
    width: calc(100% + 40px);
    left: -20px;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 35px 30px 45px 30px;
}

.gulu-dynamic-menu .ripped-paper-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/paper-scraps-diy-breakfast-sandwich-xtra-texture.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: -1;
}

.gulu-dynamic-menu .diy-title {
    text-align: center;
    margin-bottom: 10px;
}

.gulu-dynamic-menu .diy-title h4 {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    margin: 0;
    color: #000;
}

.gulu-dynamic-menu .diy-section-title {
    position: relative;
    display: inline-block;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    margin-bottom: 8px;
    background-color: #222;
    transform: rotate(-1.5deg);
    border-radius: 2px;
}

.gulu-dynamic-menu .diy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.85rem;
}

.gulu-dynamic-menu .graphic-cluster-1 {
    position: relative;
    width: 100%;
    height: 260px; /* Taller height guarantees it pushes the diet text down past the graphics */
    margin-top: -30px; /* Pull up to overlap paper's bottom padding */
    margin-bottom: 20px; /* Push dietary text down */
    z-index: 5;
    overflow: visible;
    pointer-events: none;
}

.gulu-dynamic-menu .alien {
    position: absolute;
    top: 30px;
    bottom: auto;
    right: 210px;
    left: auto;
    width: 120px;
    z-index: 3;
}

.gulu-dynamic-menu .scribble-box {
    position: absolute;
    top: 20px;
    bottom: auto;
    left: 100px;
    width: 130px;
    z-index: 2;
    opacity: 0.85;
}

.gulu-dynamic-menu .coffee-man {
    position: absolute;
    top: 0px;
    bottom: auto;
    right: -10px;
    width: 250px;
    z-index: 4;
}

.gulu-dynamic-menu .chaotic-scribble {
    position: absolute;
    top: 10px;
    bottom: auto;
    right: 70px;
    left: auto;
    transform: none;
    width: 240px;
    z-index: 1;
}

.gulu-dynamic-menu .gulu-menu-nav {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #1C1C1C;
    border: 3px solid #000;
    box-shadow: 6px 6px 0 #E23D23;
    width: 100%;
    box-sizing: border-box;
    transform: rotate(-0.5deg);
}
.gulu-dynamic-menu .gulu-menu-nav::after {
    content: '';
    padding-right: 1px;
}
.gulu-dynamic-menu .gulu-menu-nav::-webkit-scrollbar {
    display: none;
}

/* On desktop, allow buttons to wrap naturally if they run out of space */
@media (min-width: 992px) {
    .gulu-dynamic-menu .gulu-menu-nav {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
    }
    .gulu-dynamic-menu .zine-btn {
        flex-shrink: 1; /* Allow buttons to shrink down to their text width before wrapping */
        padding: 6px 10px; /* Slightly tighter padding to save space */
        font-size: 0.95rem; /* Slightly smaller font to save space */
        white-space: nowrap;
    }
}

.gulu-dynamic-menu .zine-btn {
    background: #fff;
    border: 2px solid #000;
    padding: 6px 14px;
    font-family: 'Asap_Condensed', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: #000 !important; /* Force black text */
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.85); /* Stronger shadow */
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; /* Hand-torn ripped effect */
    white-space: nowrap;
    flex-shrink: 0;
}

.gulu-dynamic-menu .zine-btn:nth-child(even) {
    transform: rotate(1deg);
}

.gulu-dynamic-menu .zine-btn:nth-child(odd) {
    transform: rotate(-1deg);
}

.gulu-dynamic-menu .zine-btn:hover {
    transform: translate(-2px, -2px) rotate(0deg);
    box-shadow: 6px 6px 0 rgba(0,0,0,1);
}

.gulu-dynamic-menu .zine-btn.active {
    background: #E23D23;
    color: #fff;
    transform: translate(2px, 2px) rotate(0deg);
    box-shadow: 1px 1px 0 #000;
}

.gulu-dynamic-menu .menu-sections-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
}
.gulu-dynamic-menu .menu-sections-wrapper::-webkit-scrollbar {
    display: none;
}

.gulu-dynamic-menu .gulu-menu-section {
    flex: 0 0 100%;
    position: relative;
    scroll-snap-align: start;
    width: 100%;
    box-sizing: border-box;
    display: block;
}
/* ========================================= */
/* 3D FLIP MODE (EXPERIMENTAL) */
/* ========================================= */
.gulu-dynamic-menu.flip-mode .menu-sections-wrapper {
    display: block;
    position: relative;
    overflow: visible;
    perspective: 2000px;
    scroll-snap-type: none;
    transition: height 0.3s ease;
    overscroll-behavior-x: none; /* Prevent browser back/forward on trackpad swipe */
}

#menu {
    overscroll-behavior-x: none !important; /* Protect the entire section globally */
}

.gulu-dynamic-menu.flip-mode .gulu-menu-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transform-origin: left center;
    transition: none; 
}

.gulu-dynamic-menu.flip-mode .gulu-menu-section.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

/* Next Page Animations */
.gulu-dynamic-menu.flip-mode .gulu-menu-section.flip-out-next {
    animation: flipOutNext 0.5s ease-in forwards;
    position: absolute;
    z-index: 2;
    opacity: 1;
}
.gulu-dynamic-menu.flip-mode .gulu-menu-section.flip-in-next {
    animation: fadeInNext 0.5s ease-out forwards;
    position: absolute;
    z-index: 1;
}

/* Prev Page Animations */
.gulu-dynamic-menu.flip-mode .gulu-menu-section.flip-out-prev {
    animation: fadeOutPrev 0.5s ease-in forwards;
    position: absolute;
    z-index: 1;
    opacity: 1;
}
.gulu-dynamic-menu.flip-mode .gulu-menu-section.flip-in-prev {
    animation: flipInPrev 0.5s ease-out forwards;
    position: absolute;
    z-index: 2;
}

@keyframes flipOutNext {
    0% { transform: rotateY(0deg); opacity: 1; }
    99% { opacity: 1; }
    100% { transform: rotateY(-90deg); opacity: 0; }
}
@keyframes fadeInNext {
    0% { opacity: 0; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOutPrev {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes flipInPrev {
    0% { transform: rotateY(-90deg); opacity: 0; }
    1% { opacity: 1; }
    100% { transform: rotateY(0deg); opacity: 1; }
}

@media (max-width: 768px) {
    .gulu-dynamic-menu .menu-sections-wrapper {
        scroll-snap-type: none !important;
        overflow-x: hidden !important;
    }
    .gulu-dynamic-menu .gulu-menu-section {
        scroll-snap-align: none !important;
    }
}

/* Flip Nav Buttons */
.gulu-flip-nav .flip-nav-btn {
    transition: transform 0.2s, text-shadow 0.2s;
}
.gulu-flip-nav .flip-nav-btn:hover {
    transform: scale(1.1) rotate(-2deg);
    text-shadow: 2px 2px 0px #E23D23;
}
.gulu-flip-nav .flip-nav-btn:active {
    transform: scale(0.95);
}
