/* ========================================
   FLEX BBQ - INTERACTIVE FLEXBOX TUTORIAL
   ======================================== 
   
   Author: Angela Hertel
   Created with assistance from: Claude Sonnet 4 (Anthropic AI)
   
   Image Licensing:
   - Images licensed from Adobe Stock
   - Images licensed from Vecteezy
   
   © 2025 Angela Hertel. All rights reserved.
   ======================================== */

/* ========================================
   RESET AND BASE STYLES
   ======================================== */

/* Page-specific backgrounds */
.hotpot-page {
    background: url('images/hotpot-background.jpg') center/cover no-repeat fixed;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

:root {
    --scroll-offset: 0px;
    --pork-scroll-offset: 0px;
    --shrimp-image: url('images/shrimp-background.png');
    --squid-image: url('images/squid-raw.png');
    --fish-image: url('images/mackerel-fresh.png');
    --pork-image: url('images/pork-raw.png');
    --tofu-image: url('images/tofu-raw.png');
    --tofu-scroll-offset: 0px;
    --chrysanthemum-image: url('images/chrysanthemum-raw.png');
    --chrysanthemum-scroll-offset: 0px;
    --spoon-image: url('images/spoon-empty.png');
    --spoon-scroll-offset: 0px;
}

/* ========================================
   EMERGENCY NAVIGATION
   ======================================== */

#emergency-nav {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    pointer-events: auto;
}

.emergency-nav-btn {
    color: white;
    text-decoration: none;
    margin-right: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.emergency-nav-btn:last-child {
    margin-right: 0;
}

.emergency-nav-btn.primary {
    background: #2563eb;
}

.emergency-nav-btn.primary:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.emergency-nav-btn.secondary {
    background: #059669;
}

.emergency-nav-btn.secondary:hover {
    background: #047857;
    transform: scale(1.05);
}

/* ========================================
   FLOATING LANTERNS
   ======================================== */

.floating-lanterns {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Floating Chinese Lanterns */
.lantern-red-1 {
    position: fixed;
    top: 8vh;
    left: -120px;
    width: 320px;
    height: 420px;
    background: url('images/red-lanterns.png') center/contain no-repeat;
    animation: float1 4s ease-in-out infinite;
    opacity: 0.9;
    z-index: 50;
}

.lantern-red-2 {
    position: fixed;
    top: 30vh;
    right: 10px;
    width: 280px;
    height: 365px;
    background: url('images/red-lanterns.png') center/contain no-repeat;
    animation: float2 5s ease-in-out infinite;
    opacity: 0.8;
    z-index: 45;
}

.lantern-red-3 {
    position: fixed;
    top: 25vh;
    left: -70px;
    width: 300px;
    height: 390px;
    background: url('images/red-lanterns.png') center/contain no-repeat;
    animation: float3 6s ease-in-out infinite;
    opacity: 0.85;
    z-index: 55;
}

.lantern-orange-1 {
    position: fixed;
    top: 3vh;
    right: -20px;
    width: 340px;
    height: 445px;
    background: url('images/orange-lantern.png') center/contain no-repeat;
    animation: float4 4.5s ease-in-out infinite;
    opacity: 0.9;
    z-index: 52;
}

.lantern-orange-2 {
    position: fixed;
    top: 45vh;
    left: -100px;
    width: 290px;
    height: 375px;
    background: url('images/orange-lantern.png') center/contain no-repeat;
    animation: float5 5.5s ease-in-out infinite;
    opacity: 0.75;
    z-index: 48;
}

.lantern-red-4 {
    position: fixed;
    top: 95vh;
    right: -75px;
    width: 310px;
    height: 405px;
    background: url('images/red-lanterns.png') center/contain no-repeat;
    animation: float6 3.8s ease-in-out infinite;
    opacity: 0.8;
    z-index: 47;
}

.lantern-orange-3 {
    position: fixed;
    top: 12vh;
    left: -140px;
    width: 330px;
    height: 430px;
    background: url('images/orange-lantern.png') center/contain no-repeat;
    animation: float1 5.2s ease-in-out infinite;
    opacity: 0.85;
    z-index: 53;
}

.lantern-orange-4 {
    position: fixed;
    top: 85vh;
    left: -60px;
    width: 350px;
    height: 460px;
    background: url('images/orange-lantern.png') center/contain no-repeat;
    animation: float3 4.8s ease-in-out infinite;
    opacity: 0.9;
    z-index: 49;
}

.lantern-orange-5 {
    position: fixed;
    top: 62vh;
    right: -30px;
    width: 320px;
    height: 420px;
    background: url('images/orange-lantern.png') center/contain no-repeat;
    animation: float5 5.8s ease-in-out infinite;
    opacity: 0.8;
    z-index: 51;
}

.lantern-orange-6 {
    position: fixed;
    top: 105vh;
    left: -90px;
    width: 300px;
    height: 390px;
    background: url('images/orange-lantern.png') center/contain no-repeat;
    animation: float2 4.2s ease-in-out infinite;
    opacity: 0.75;
    z-index: 46;
}

/* Floating Animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0.5deg); }
    50% { transform: translateY(-18px) rotate(-0.5deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(-0.5deg); }
    50% { transform: translateY(-14px) rotate(0.5deg); }
}

@keyframes float5 {
    0%, 100% { transform: translateY(0px) rotate(1.5deg); }
    50% { transform: translateY(-10px) rotate(-1.5deg); }
}

@keyframes float6 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-18px); }
}

/* ========================================
   OPENING DOORS ANIMATION
   ======================================== */

.door-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.door {
    position: absolute;
    top: 0;
    width: 40vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation-fill-mode: forwards;
}

.door-left {
    left: 10vw;
    background-image: url('images/door-left.png');
    animation: slideLeftDoor 3s ease-in-out 0.5s forwards;
}

.door-right {
    right: 10vw;
    background-image: url('images/door-right.png');
    animation: slideRightDoor 3s ease-in-out 0.5s forwards;
}

@keyframes slideLeftDoor {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    70% {
        transform: translateX(-100%);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideRightDoor {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    70% {
        transform: translateX(100%);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Hide door container after animation completes */
.door-container.animation-complete {
    display: none;
}

/* ========================================
   CHINESE RESTAURANT MENU NAVIGATION
   ======================================== */

.chinese-menu-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.menu-button {
    background: linear-gradient(135deg, #c41e3a 0%, #8B0000 100%);
    border: 3px solid #DAA520;
    border-radius: 8px;
    padding: 12px 20px;
    color: #FFD700;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.menu-button:hover {
    background: linear-gradient(135deg, #d4283a 0%, #9B0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.menu-icon {
    font-size: 20px;
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 320px;
    background: linear-gradient(to bottom, #FFF8DC 0%, #F5F5DC 100%);
    border: 4px solid #DAA520;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
    overflow: hidden;
}

.chinese-menu-nav:hover .menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-header {
    background: linear-gradient(135deg, #c41e3a 0%, #8B0000 100%);
    padding: 15px 20px;
    text-align: center;
    border-bottom: 3px solid #DAA520;
}

.restaurant-name {
    color: #FFD700;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 5px;
}

.restaurant-name-en {
    color: #FFF8DC;
    font-size: 14px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.menu-section {
    padding: 20px;
}

.menu-category {
    color: #8B0000;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #DAA520, transparent);
    margin-bottom: 20px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #DAA520;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.menu-item .dish-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.dish-name {
    color: #8B0000;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

.dish-name-en {
    color: #555;
    font-size: 12px;
    font-style: italic;
    margin: 2px 0 0 0;
}

.menu-item:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.menu-item.active {
    background: linear-gradient(135deg, #c41e3a 0%, #8B0000 100%);
    color: #FFD700;
    border-color: #FFD700;
}

.menu-item.active .dish-name,
.menu-item.active .dish-name-en {
    color: #FFD700;
}

.menu-item.active .price {
    color: #FFF8DC;
}

.price {
    color: #c41e3a;
    font-weight: bold;
    font-size: 14px;
    min-width: 60px;
    text-align: right;
}

.menu-item::before {
    content: "🥢";
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.menu-item:hover::before {
    left: -5px;
    opacity: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: url('images/restaurant-background.jpg') center/cover no-repeat fixed;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    min-height: 100vh;
}

body::after {
    display: none;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    gap: 1rem;
    overflow: hidden;
}

header {
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.6);
    flex: 1 1 100%;
    width: 100%;
    position: relative;
    z-index: 140;
}

header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

header p {
    color: #f0f0f0;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
}

main {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.content-section {
    padding: 1rem;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 0;
    flex: 0 0 250px;
    min-width: 250px;
    max-width: 300px;
    position: relative;
    z-index: 200;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;
}

.content-section h2 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
}

.content-section p {
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

/* ========================================
   CARD COMPONENTS
   ======================================== */

.card {
    padding: 0.75rem;
    border-radius: 10px;
    border-left: 4px solid #2563eb;
    margin-top: 0.5rem;
}

/* ========================================
   SHRIMP SECTION
   ======================================== */

.shrimp-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: calc(-37.5vh - 50px);
    left: 25%;
    width: 25%;
    z-index: -100;
    border-radius: 0;
    overflow: visible;
    margin: 0;
    background: transparent;
    pointer-events: none;
    transform: translateY(var(--scroll-offset, 0px)) translateZ(0);
}



.shrimp-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.shrimp-content {
    position: fixed;
    z-index: 60;
    text-align: center;
    max-width: 600px;
    padding: 3rem 2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.shrimp-content .seafood-card {
    pointer-events: auto;
}

.shrimp-content h2 {
    color: #1f2937;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.shrimp-content p {
    color: #4b5563;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.seafood-card {
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #059669;
}

.seafood-card h3 {
    color: #065f46;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.seafood-card p {
    color: #374151;
    margin: 0;
    font-size: 1rem;
}

/* ========================================
   SQUID SECTION
   ======================================== */

.squid-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: -400px;
    left: 37.5%;
    width: 25%;
    z-index: -100;
    border-radius: 0;
    overflow: visible;
    margin: 0;
    background: transparent;
    pointer-events: none;
    transform: translateY(var(--squid-scroll-offset, 0px)) translateZ(0);
}



.squid-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.squid-content {
    position: fixed;
    z-index: 60;
    text-align: center;
    max-width: 400px;
    padding: 2rem 1rem;
    top: 30%;
    left: 25%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.squid-content .seafood-card {
    pointer-events: auto;
}

.squid-content h2 {
    color: #1f2937;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.squid-content p {
    color: #4b5563;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ========================================
   FISH SECTION
   ======================================== */

.fish-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: -370px;
    left: 50%;
    width: 25%;
    z-index: -100;
    border-radius: 0;
    overflow: visible;
    margin: 0;
    background: transparent;
    pointer-events: none;
    transform: translateY(var(--fish-scroll-offset, 0px)) translateZ(0);
}

/* Pure CSS scroll-triggered image transformations */

/* Fish section - now controlled by JavaScript only */
.fish-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32vw;
    height: 20vw;
    background: var(--fish-image) center/contain no-repeat;
    z-index: -1; /* Behind content */
    border-radius: 15px;
    transition: all 1s ease-in-out;
}



/* Shrimp section - now controlled by JavaScript only */
.shrimp-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 200px;
    background: var(--shrimp-image) center/contain no-repeat;
    z-index: -999; /* Behind content */
    border-radius: 15px;
    transition: all 1s ease-in-out;
}


/* Squid section - now controlled by JavaScript only */
.squid-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 21vw;
    height: 14vw;
    background: var(--squid-image) center/contain no-repeat;
    z-index: -1; /* Behind content */
    border-radius: 15px;
    transition: all 1s ease-in-out;
}



.fish-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.fish-content {
    position: fixed;
    z-index: 60;
    text-align: center;
    max-width: 300px;
    padding: 2rem 1rem;
    top: 30%;
    left: 33.33%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.fish-content .seafood-card {
    pointer-events: auto;
}

.fish-content h2 {
    color: #1f2937;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.fish-content p {
    color: #4b5563;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ========================================
   PORK SECTION
   ======================================== */

.pork-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: -320px;
    left: 20%;
    width: 25%;
    z-index: -100;
    border-radius: 0;
    overflow: visible;
    margin: 0;
    background: transparent;
    pointer-events: none;
    transform: translateY(var(--pork-scroll-offset, 0px)) translateZ(0);
}

.pork-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25vw;
    height: 18vw;
    background: var(--pork-image) center/contain no-repeat;
    z-index: 1;
    border-radius: 15px;
    transition: all 1s ease-in-out;
}

.pork-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.pork-content {
    position: fixed;
    z-index: 60;
    text-align: center;
    max-width: 300px;
    padding: 2rem 1rem;
    top: 30%;
    left: 33.33%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.pork-content .seafood-card {
    pointer-events: auto;
}

.pork-content h2 {
    color: #1f2937;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.pork-content p {
    color: #4b5563;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}



/* ========================================
   HOTPOT INGREDIENTS - TOFU SECTION
   ======================================== */

.tofu-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: -37.5vh;
    left: 45%;
    width: 15%;
    z-index: -100;
    border-radius: 0;
    overflow: visible;
    margin: 0;
    background: transparent;
    pointer-events: none;
    transform: translateY(var(--tofu-scroll-offset, 0px)) translateZ(0);
}

.tofu-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26vw;
    height: 26vw;
    background: var(--tofu-image) center/contain no-repeat;
    z-index: 150;
    transition: filter 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.tofu-section.tofu-cooking::before {
    animation: tofuCooking 2s ease-in-out forwards;
}

.tofu-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: transparent;
    z-index: 160;
}

.chrysanthemum-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: -250px;
    left: calc(70% - 100px);
    width: 15%;
    z-index: -100;
    border-radius: 0;
    overflow: visible;
    margin: 0;
    background: transparent;
    pointer-events: none;
    transform: translateY(var(--chrysanthemum-scroll-offset, 0px)) translateZ(0);
}

.chrysanthemum-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18vw;
    height: 18vw;
    background: var(--chrysanthemum-image) center/contain no-repeat;
    z-index: 150;
}


.chrysanthemum-section.chrysanthemum-cooking::before {
    animation: chrysanthemumCooking 3s ease-in-out forwards;
}

/* ========================================
   SPOON SECTION
   ======================================== */

.spoon-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: -430px;
    left: calc(55% - 550px);
    width: 20%;
    z-index: -100;
    border-radius: 0;
    overflow: visible;
    margin: 0;
    background: transparent;
    pointer-events: none;
    transform: translateY(var(--spoon-scroll-offset, 0px)) translateZ(0);
}

.spoon-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--spoon-image) center/contain no-repeat;
    z-index: 160;
    transition: transform 0.3s ease;
    animation: spoonScooping 6s ease-in-out infinite;
}

.spoon-section.spoon-full::before {
    animation: spoonFillTransition 2s ease-in-out forwards !important;
}

.spoon-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: transparent;
    z-index: 159;
}




/* ========================================
   COOKING AREA SPACER (ALL PAGES)
   ======================================== */

.cooking-spacer {
    height: 150px; /* Default smaller size */
    width: 100%;
    background: transparent;
    clear: both;
}

/* Page-specific spacer heights */
/* new-page.html (no class) */
body:not([class]) .cooking-spacer {
    height: 120px;
}

/* page2.html (hotpot-page) */
.hotpot-page .cooking-spacer {
    height: 120px;
}

/* page3.html (ramen-background) */
.ramen-background .cooking-spacer {
    height: 50vh; /* Much shorter page */
}

/* page5.html (dashboard-page) */
.dashboard-page {
    background: url('images/coffeeshop-background.jpg') center/cover no-repeat;
    background-attachment: scroll;
    min-height: 150vh; /* Taller page to show more background */
    overflow-x: hidden;
    padding-bottom: 50vh; /* Extra padding to ensure full background visibility */
}

.dashboard-page .cooking-spacer {
    height: 150px;
}

/* page4.html (rice-page) - keep as is since it's "just right" */
.rice-page .cooking-spacer {
    height: 500px;
}

/* ========================================
   BASIC FLEXBOX DEMONSTRATIONS (BASICS PAGE)
   ======================================== */

.flex-demo-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.flex-demo-section h2 {
    color: #FFD700;
    margin-bottom: 1rem;
}

.flex-demo-section code {
    background: rgba(255, 215, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    color: #FFD700;
    font-family: 'Courier New', monospace;
}

/* Basic flex container */
.flex-basic-demo {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 8px;
}

.flex-item {
    background: linear-gradient(135deg, #DC143C, #8B0000);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    min-width: 80px;
}

/* Different flex properties for each item */
.flex-item-1 {
    flex: 0 0 60px;
    background: linear-gradient(135deg, #8B0000, #4B0000);
    font-size: 0.8em;
    padding: 0.8rem 0.4rem;
}

.flex-item-2 {
    flex: 1;
    background: linear-gradient(135deg, #DC143C, #8B0000);
    min-height: 80px;
}

.flex-item-3 {
    flex: 0 0 200px;
    background: linear-gradient(135deg, #FF6B35, #DC143C);
    font-size: 1.1em;
    font-weight: 900;
}

.flex-item-4 {
    flex: 5;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B0000;
    font-size: 1.2em;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-item-5 {
    flex: 0 1 auto;
    background: linear-gradient(135deg, #32CD32, #228B22);
    white-space: nowrap;
    padding: 1rem 0.6rem;
    font-size: 0.9em;
}

.flex-item.small {
    padding: 0.8rem;
    min-width: 50px;
}

.flex-item.mini {
    padding: 0.6rem;
    min-width: 40px;
    font-size: 0.9rem;
}

.flex-item.tall-item {
    padding: 1.5rem 0.6rem;
}

/* Flex direction demos */
.direction-demo, .flex-direction-demo {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    align-items: flex-start;
}

.direction-column, .direction-row {
    flex: 1;
    max-width: 300px;
}

.flex-row-demo, .flex-column-demo {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 8px;
    border: 2px solid #ddd;
    margin: 1rem 0;
}

.flex-row-demo {
    flex-direction: row;
    /* Default row direction */
}

.flex-column-demo {
    flex-direction: column;
    width: fit-content;
    /* Column direction - items stack vertically */
}

.flex-container-row {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 8px;
}

.flex-container-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 8px;
    width: fit-content;
}

/* Justify content demos */
.justify-demos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.justify-example h4 {
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.flex-container {
    display: flex;
    padding: 1rem;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 8px;
    min-height: 60px;
}

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-space-between { justify-content: space-between; }
.justify-space-around { justify-content: space-around; }
.justify-space-evenly { justify-content: space-evenly; }

/* Align items demos */
.align-demos {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.align-example {
    flex: 1;
}

.align-example h4 {
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.flex-container.tall {
    min-height: 100px;
}

.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-stretch { align-items: stretch; }

/* Nested section styling */
.nested-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 8px;
    border-left: 4px solid #FFD700;
}

.nested-section h3 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.nested-section p {
    margin-bottom: 1rem;
    font-style: italic;
}

/* ========================================
   ADVANCED FLEXBOX DEMONSTRATIONS (ADVANCED PAGE)
   ======================================== */

.advanced-flex-section {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 165, 0, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.advanced-flex-section h2 {
    color: #FFD700;
    margin-bottom: 1rem;
    text-align: center;
}

.advanced-flex-section code {
    background: rgba(255, 215, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    color: #FFD700;
    font-family: 'Courier New', monospace;
}

/* Multi-Column Hotpot Layout */
.hotpot-ingredients-advanced {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-around;
    min-height: 200px;
    background: linear-gradient(45deg, rgba(220, 20, 60, 0.1), rgba(255, 140, 0, 0.1));
    border-radius: 15px;
    padding: 1.5rem;
}

.ingredient-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.ingredient-column.main-column {
    flex: 2;
    align-items: center;
}

.ingredient-item {
    background: linear-gradient(135deg, #DC143C, #B8860B);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.hotpot-bowl {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B0000;
    padding: 2rem;
    border-radius: 50%;
    text-align: center;
    min-width: 180px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Complex Alignment Demo */
.complex-alignment-demo {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.alignment-row {
    display: flex;
    gap: 1rem;
    min-height: 100px;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.alignment-row.top-row {
    align-items: flex-start;
}

.alignment-row.bottom-row {
    align-items: baseline;
}

.flex-card {
    background: linear-gradient(135deg, #DC143C, #8B0000);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    flex: 1;
    min-width: 120px;
}

.align-self-start { align-self: flex-start; }
.align-self-center { align-self: center; }
.align-self-end { align-self: flex-end; }
.align-self-stretch { align-self: stretch; }

.large-text { font-size: 1.5rem; }

/* Nested Flex Containers */
.nested-flex-demo {
    background: rgba(220, 20, 60, 0.1);
    border-radius: 10px;
    padding: 1rem;
}

.outer-flex {
    display: flex;
    gap: 2rem;
    min-height: 300px;
}

.flex-sidebar {
    background: linear-gradient(135deg, #8B0000, #DC143C);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
}

.sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sidebar-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
}

.flex-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B0000;
    padding: 1rem;
    border-radius: 8px;
}

.flex-btn {
    background: #DC143C;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.content-body {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 1;
}

.content-card {
    background: linear-gradient(135deg, #B8860B, #DAA520);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 120px;
}

/* Flex Wrapping Demo */
.flex-wrap-demo h4 {
    color: #FFD700;
    margin-bottom: 1rem;
}

.wrap-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 200px;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.wrap-container.space-between {
    align-content: space-between;
}

.wrap-item {
    background: linear-gradient(135deg, #DC143C, #8B0000);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    flex: 0 0 90px;
}

/* ========================================
   MASTERY FLEXBOX DEMONSTRATIONS (MASTERY PAGE)
   ======================================== */

.mastery-flex-section {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(220, 20, 60, 0.3);
}

.mastery-flex-section h2 {
    color: #DC143C;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.mastery-flex-section code {
    background: rgba(220, 20, 60, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    color: #DC143C;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Ramen Dashboard Layout */
.ramen-dashboard {
    display: flex;
    height: 750px;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.05), rgba(220, 20, 60, 0.05));
    border-radius: 10px;
    overflow: visible;
    margin: 0 auto;
    box-sizing: border-box;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    flex: 0 0 200px;
    background: linear-gradient(180deg, #8B0000, #DC143C);
    color: white;
}

.sidebar-header {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
    gap: 0.5rem;
}

.nav-item {
    display: block;
    padding: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-left: 3px solid transparent;
    margin-bottom: 0.5rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
}

/* Active state when radio is checked */
.sidebar-nav input[type="radio"]:checked + .nav-item {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
    border-left-color: white;
    transform: translateX(5px);
}

/* Click effect */
.nav-item:active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.stat-item strong {
    font-size: 2rem;
    color: #FFD700;
}

.dashboard-main {
    display: block;
    padding: 1.5rem;
    width: 100%;
    overflow: scroll;
    height: 750px;
}

.dashboard-top-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(220, 20, 60, 0.2);
    width: 100%;
    align-items: center;
    flex-shrink: 0;
}

.download-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(220, 20, 60, 0.2);
}

.header-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-btn {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 6px;
    background: #8B0000;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.action-btn.priority {
    background: #DC143C;
}

.action-btn:hover {
    background: #600000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: #400000;
}

.action-btn.priority:hover {
    background: #B8001A;
}

.action-btn.priority:active {
    background: #A50018;
}

/* Click ripple effect */
.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.action-btn:active::after {
    width: 100px;
    height: 100px;
}

.orders-grid {
    display: block;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    background-color: rgba(0, 255, 0, 0.2);
    border: 2px solid red;
    clear: both;
    float: none;
    position: relative;
}

.orders-grid > .order-button {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

.order-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 280px;
    max-width: 320px;
    min-width: 250px;
    background: white;
    border-radius: 10px;
    border: 2px solid #E0E0E0;
    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.order-card.priority-order {
    border-color: #DC143C;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #F5F5F5;
}

.order-number {
    font-weight: bold;
    color: #8B0000;
}

.order-time {
    background: #FFD700;
    color: #8B0000;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.order-content {
    flex: 1;
    padding: 1rem;
}

.order-content h4 {
    margin-bottom: 0.8rem;
    color: #333;
}

.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ingredient {
    background: rgba(220, 20, 60, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #8B0000;
}

.order-status {
    padding: 0.8rem;
    text-align: center;
    font-weight: bold;
    color: white;
}

.order-status.preparing { background: #FFA500; }
.order-status.cooking { background: #DC143C; }
.order-status.ready { background: #32CD32; }

/* Flex Properties Demo */
.flex-properties-demo {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.properties-row {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.flex-explanation {
    flex: 0 0 200px;
}

.flex-explanation h4 {
    color: #DC143C;
    margin-bottom: 0.5rem;
}

.growth-container, .shrink-container, .basis-container {
    display: flex;
    flex: 1;
    gap: 1rem;
    min-height: 80px;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.growth-item, .shrink-item, .basis-item {
    background: linear-gradient(135deg, #DC143C, #8B0000);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grow-1 { flex-grow: 1; }
.grow-2 { flex-grow: 2; }
.grow-3 { flex-grow: 3; }

.shrink-container {
    width: 400px; /* Fixed width to force shrinking */
}

.no-shrink { flex: 0 0 150px; }
.normal-shrink { flex: 1 1 150px; }
.high-shrink { flex: 3 1 150px; }

.basis-auto { flex-basis: auto; }
.basis-200 { flex-basis: 200px; }
.basis-50 { flex-basis: 50%; }

/* Advanced Spacing Patterns */
.spacing-patterns {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pattern-demo h4 {
    color: #DC143C;
    margin-bottom: 1rem;
}

.auto-margin-container {
    display: flex;
    gap: 1rem;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.margin-item {
    background: linear-gradient(135deg, #DC143C, #8B0000);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

.margin-item.centered {
    margin-left: auto;
    margin-right: auto;
}

.mixed-container {
    display: flex;
    justify-content: space-between;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.mixed-group {
    display: flex;
    gap: 0.5rem;
}

.mixed-item {
    background: linear-gradient(135deg, #DC143C, #8B0000);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

/* ========================================
   EXPERT RESPONSIVE FLEXBOX (EXPERT PAGE)
   ======================================== */

.expert-flex-section {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 140, 0, 0.08);
    border-radius: 15px;
    border: 2px solid rgba(255, 140, 0, 0.4);
}

.expert-flex-section h2 {
    color: #FF8C00;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

.expert-flex-section code {
    background: rgba(255, 140, 0, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    color: #FF8C00;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Rice Cooker Control Panel */
.rice-cooker-panel {
    display: flex;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(255, 215, 0, 0.1));
    border-radius: 15px;
    padding: 2rem;
}

.control-display {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1.5rem;
}

.display-screen {
    background: linear-gradient(145deg, #2C2C2C, #1A1A1A);
    color: #00FF41;
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: 'Courier New', monospace;
    text-align: center;
    border: 3px solid #333;
}

.display-screen .timer {
    font-size: 2.5rem;
    font-weight: bold;
}

.display-screen .status {
    font-size: 1.2rem;
    color: #FFD700;
}

.display-screen .temperature {
    font-size: 1rem;
    color: #FF6B6B;
}

.progress-indicator {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar {
    background: #E0E0E0;
    border-radius: 20px;
    height: 20px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #FF8C00, #FFD700);
    height: 100%;
    width: 75%;
    border-radius: 20px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #FF8C00;
    font-weight: bold;
}

.control-buttons {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1rem;
    position: relative;
    z-index: 100;
}

.button-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0;
    position: relative;
    z-index: 101;
}

/* Hide the actual input elements */
.control-buttons input[type="checkbox"],
.control-buttons input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* Control Button Styling */
.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
    border: 2px solid #ccc;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
    user-select: none;
    position: relative;
    z-index: 102;
    pointer-events: auto;
    /* Debug styling to ensure buttons are visible and clickable */
    border: 2px solid #666;
}

.control-btn:hover {
    background: linear-gradient(145deg, #e8e8e8, #d8d8d8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Active/Checked state */
input[type="checkbox"]:checked + .control-btn,
input[type="radio"]:checked + .control-btn {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    color: white;
    border-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
}

/* Button type specific colors */
.control-btn.power {
    border-color: #ff6b6b;
}

input:checked + .control-btn.power {
    background: linear-gradient(145deg, #ff6b6b, #e55555);
    border-color: #e55555;
}

.control-btn.start {
    border-color: #4CAF50;
}

.control-btn.stop {
    border-color: #f44336;
}

input:checked + .control-btn.stop {
    background: linear-gradient(145deg, #f44336, #d32f2f);
    border-color: #d32f2f;
}

.control-btn.mode {
    border-color: #2196F3;
}

input:checked + .control-btn.mode {
    background: linear-gradient(145deg, #2196F3, #1976D2);
    border-color: #1976D2;
}

.control-btn.timer {
    border-color: #FF9800;
}

input:checked + .control-btn.timer {
    background: linear-gradient(145deg, #FF9800, #F57C00);
    border-color: #F57C00;
}


/* Download Button */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    width: 400px;
    height: 200px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 999999 !important;
    pointer-events: auto !important;
    text-decoration: none !important;
    text-align: center;
    line-height: 1.2;
}

.download-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.download-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.download-icon {
    font-size: 1.4rem;
    animation: bounce 2s infinite;
}

.download-text {
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Bounce animation for download icon */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Pulse effect on hover */
.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-btn:hover::before {
    opacity: 1;
}

/* Responsive adjustment for header actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .download-btn {
        min-width: 140px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
}



/* Specific Rice Cooker button active states */




/* Dashboard Navigation */
.sidebar-nav input[type="radio"]:checked + .nav-item {
    background: rgba(255, 255, 255, 0.2) !important;
    font-weight: bold !important;
    border-left-color: white !important;
    transform: translateX(5px) !important;
}

/* Dashboard Action Buttons */

.header-actions input[type="checkbox"]:checked + .action-btn {
    background: #400000 !important;
    transform: translateY(-1px) scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.header-actions input[type="checkbox"]:checked + .action-btn.priority {
    background: #A50018 !important;
}

/* Order Card Clicks */

.orders-grid input[type="checkbox"]:checked + .order-card {
    border-color: #4CAF50 !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

.orders-grid input[type="checkbox"]:checked + .order-card .order-status {
    background: #4CAF50 !important;
    color: white !important;
}

.orders-grid input[type="checkbox"]:checked + .order-card .order-status::after {
    content: " ✓ Selected";
}

/* Adaptive Recipe Grid */
.recipe-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.recipe-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    max-width: 350px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.recipe-card.featured {
    border: 3px solid #FF8C00;
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}

.card-image {
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-content h3 {
    color: #333;
    margin: 0;
    font-size: 1.3rem;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
}

.recipe-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    background: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Advanced Responsive Navigation */
.advanced-nav-demo {
    background: rgba(255, 140, 0, 0.1);
    border-radius: 10px;
    padding: 1rem;
}

.responsive-nav {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.brand-icon {
    font-size: 1.8rem;
}

.brand-text {
    font-weight: bold;
    color: #FF8C00;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
    margin: 0 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
}

.nav-actions {
    display: flex;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.nav-btn {
    background: none;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #FF8C00;
    color: white;
    border-color: #FF8C00;
}

.nav-btn.hamburger {
    display: none;
}

.nav-explanation {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 140, 0, 0.05);
    border-radius: 8px;
}

.nav-explanation ul {
    margin: 0.5rem 0 0 1rem;
}

/* Flex Adaptation Demo */
.flex-adaptation-demo {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.demo-container.adaptive-flex {
    display: flex;
    gap: 1rem;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 10px;
    padding: 2rem;
    min-height: 120px;
    flex-wrap: wrap;
}

.demo-item {
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 60px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* Demo boxes for justify-content demonstrations */
.demo-box {
    display: flex;
    margin: 1rem 0;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    gap: 0.5rem;
    min-height: 80px;
    align-items: center;
    position: relative;
}

.demo-box::before {
    content: attr(class);
    position: absolute;
    top: -10px;
    left: 10px;
    background: white;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    color: #666;
    border-radius: 3px;
}

.flex-item-1 {
    flex: 2 1 200px; /* Grows twice as fast, base 200px */
}

.flex-item-2 {
    flex: 1 1 150px; /* Standard growth, base 150px */
}

.flex-item-3 {
    flex: 3 1 180px; /* Grows three times as fast, base 180px */
}

.flex-explanation {
    background: rgba(255, 140, 0, 0.05);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.flex-explanation code {
    background: rgba(255, 140, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    color: #FF8C00;
    font-family: 'Courier New', monospace;
}

/* PURE FLEXBOX ADAPTABILITY (NO MEDIA QUERIES) */

/* All layouts use flexbox properties to naturally adapt to window size */
.rice-cooker-panel {
    flex-wrap: wrap;
}

.control-display {
    min-width: 300px;
}

.control-buttons {
    min-width: 250px;
}

.nav-menu {
    /* Navigation items will compress/expand based on available space */
    flex-wrap: wrap;
}

/* Remove device-specific indicators and just show flex behavior */
.breakpoint-info {
    display: none;
}

/* ========================================
   SIMPLE MASTERY DEMO (PAGE 3)
   ======================================== */

.simple-mastery-demo {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.flex-showcase {
    display: flex;
    gap: 1rem;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 10px;
    padding: 2rem;
    min-height: 120px;
}

.showcase-item {
    background: linear-gradient(135deg, #DC143C, #8B0000);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.showcase-item code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.showcase-item.grow-1 { flex-grow: 1; }
.showcase-item.grow-2 { flex-grow: 2; }

.flex-explanation {
    background: rgba(220, 20, 60, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
}

.flex-explanation h4 {
    color: #DC143C;
    margin-bottom: 1rem;
}

.flex-explanation ul {
    margin: 0;
    padding-left: 1.5rem;
}

.flex-explanation li {
    margin-bottom: 0.5rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.card p {
    color: #f0f0f0;
    margin-bottom: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 0 0.5rem;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    height: 10px;
    width: 100%;
    box-sizing: border-box;
    pointer-events: auto;
    height: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.footer-section h4 {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* ========================================
   GRILL SPACER
   ======================================== */

footer p {
    margin: 0;
    color: #ffffff;
}

/* Invisible spacer to keep grill visible at bottom */
.grill-spacer {
    height: 25vh;
    width: 100%;
    background: transparent;
    pointer-events: none;
}

/* ========================================
   RAMEN BACKGROUND (PAGE 3)
   ======================================== */

.ramen-background {
    background-image: url('images/ramen-background.jpeg');
    background-size: cover;
    background-position: center calc(50% - 300px);
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ========================================
   RAMEN SECTION (PAGE 3)
   ======================================== */

.ramen-section {
    position: relative;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    transform: translateY(var(--ramen-scroll-offset, 0px));
    transition: transform 0.3s ease-out;
}

.ramen-bowl {
    width: max(280px, 20vw);
    height: max(280px, 20vw);
    background-image: var(--ramen-enhanced, url('images/ramen-background.jpeg'));
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    border: 3px solid #8B4513;
    transition: all 0.5s ease;
    position: relative;
    margin: 2rem auto;
}

.ramen-bowl::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6347);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ramen-bowl:hover::before {
    opacity: 0.3;
}

/* ========================================
   EGG SECTION (PAGE 3)
   ======================================== */

.egg-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: -30vh;
    left: 65%;
    width: 25%;
    z-index: -100;
    border-radius: 0;
    overflow: visible;
    margin: 0;
    background: transparent;
    pointer-events: none;
    transform: translateY(var(--egg-scroll-offset, 0px)) translateZ(0);
}

.egg-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20vw;
    height: 25vw;
    background-image: var(--egg-image, url('images/egg-raw.png'));
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
    z-index: -1; /* Behind content */
}

.egg-item:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
}

/* ========================================
   NOODLE SECTION (PAGE 3)
   ======================================== */

.noodle-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: -30vh;
    left: 25%;
    width: 25%;
    z-index: -100;
    border-radius: 0;
    overflow: visible;
    margin: 0;
    background: transparent;
    pointer-events: none;
    transform: translateY(var(--noodle-scroll-offset, 0px)) translateZ(0);
}

.noodle-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 29vw;
    height: 23vw;
    background-image: var(--noodle-image, url('images/noodles-raw.png'));
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease, width 0.5s ease, height 0.5s ease;
    z-index: -1; /* Behind content */
}

.noodle-section.cooked::after {
    width: 43vw;
    height: 34vw;
}

/* ========================================
   TERTIARY NAVIGATION BUTTON
   ======================================== */

.emergency-nav-btn.tertiary {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border: 2px solid #D2691E;
}

.emergency-nav-btn.tertiary:hover {
    background: linear-gradient(135deg, #A0522D, #CD853F);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4);
}

.emergency-nav-btn.quaternary {
    background: linear-gradient(135deg, #DAA520, #FFD700);
    color: #8B4513;
    border: 2px solid #DAA520;
}

.emergency-nav-btn.quaternary:hover {
    background: linear-gradient(135deg, #B8860B, #DAA520);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(218, 165, 32, 0.4);
}

/* ========================================
   RICE COOKER PAGE (PAGE 4)
   ======================================== */

.rice-page {
    background: url('images/rice-cooker-background.jpeg') center calc(50% - 150px)/cover no-repeat fixed;
    background-attachment: fixed;
    min-height: 150vh;
    overflow-x: hidden;
    position: relative;
}

.rice-page .page-container {
    background: rgba(0, 0, 0, 0.3);
    min-height: 100vh;
}

.rice-page .intro-section {
    background: rgba(139, 69, 19, 0.1);
    color: white;
    padding: 2rem;
    margin: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rice-page h1 {
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.rice-page .subtitle {
    color: #FFA500;
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.rice-page h2, .rice-page h3 {
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.rice-page ul li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.rice-page strong {
    color: #FFA500;
}

/* Rice Transformation Section */
.rice-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: -200px;
    left: 50%;
    width: 20%;
    z-index: -100;
    border-radius: 0;
    overflow: visible;
    margin: 0;
    background: transparent;
    pointer-events: none;
    transform: translateY(var(--rice-scroll-offset, 0px)) translateZ(0);
}

.rice-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28vw;
    height: 22vw;
    background-image: var(--rice-image, url('images/rice-raw.png'));
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.6s ease, transform 0.6s ease;
    z-index: 150;
}

.rice-section.cooked::after {
    width: 390px;
    height: 312px;
}

/* Scallions Falling Section */
.scallions-section {
    position: fixed;
    top: -120px;
    left: 60%;
    width: 20%;
    height: 12vw;
    min-width: 60px;
    min-height: 60px;
    max-width: 240px;
    max-height: 240px;
    z-index: -100;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(var(--rice-scroll-offset, 0px));
    transition: opacity 0.5s ease;
}

.scallions-section img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scallions-section.falling {
    opacity: 1;
    animation: scallionsFall 2.5s ease-in forwards;
}

.scallions-section.visible {
    opacity: 1;
}




/* Fish Cake Falling Animation */
.fish-cake-section {
    position: fixed;
    width: 8.5vw;
    height: 8.5vw;
    z-index: -100;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.5s ease;
}

.fish-cake-section.animate-fall {
    opacity: 1;
    animation: fishCakeFall 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}



.fish-cake-section img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fish-cake-1 {
    top: 9vh;
    left: 25%;
}

.fish-cake-2 {
    top: 11vh;
    left: 75%;
}

.fish-cake-3 {
    top: 8vh;
    left: 40%;
}

.fish-cake-4 {
    top: 12vh;
    left: 65%;
}

.fish-cake-5 {
    top: 10vh;
    left: 55%;
}

.fish-cake-section.falling {
    opacity: 1;
}




/* =================================================================== */
/* EMERGENCY FIX - Force all elements to be clickable */
/* =================================================================== */

/* Override any overlay that's blocking clicks */
* {
    pointer-events: auto !important;
}

/* But disable pointer events on decorative elements */
.floating-lanterns,
.lantern-red-1,
.lantern-red-2,
.lantern-orange-1,
.floating-ingredient,
[class*="ingredient-section"]::before,
[class*="ingredient-section"]::after {
    pointer-events: none !important;
}

/* =================================================================== */
/* FRESH BUTTON STYLES - Simple CSS-only clickable buttons */
/* =================================================================== */

/* Force all buttons to be clickable - override any pointer-events issues */
button.nav-button,
button.action-button,
button.order-button, 
button.rice-button {
    pointer-events: auto !important;
    z-index: 9999 !important;
    position: relative !important;
}

/* Navigation buttons for page 5 sidebar */
.nav-button {
    display: block;
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.nav-button:active {
    background: rgba(255, 107, 53, 0.8);
    color: white;
    font-weight: bold;
    transform: translateX(10px);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

/* Action buttons for page 5 header */
.action-button {
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
    border: 2px solid #ff6b35;
    border-radius: 6px;
    background: white;
    color: #ff6b35;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.action-button:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.action-button:active {
    background: #ff6b35;
    color: white;
    transform: translateY(0) scale(0.95);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.6);
}

.action-button.priority {
    border-color: #e55a2b;
    color: #e55a2b;
}

.action-button.priority:active {
    background: #e55a2b;
    color: white;
}

/* Order card buttons for page 5 */
.order-button {
    display: block;
    width: 100%;
    padding: 1rem;
    margin: 0;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: white;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    position: static;
    z-index: 1;
    pointer-events: auto;
}

.order-button:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-button:active {
    background: linear-gradient(145deg, #ff8c42, #ff6b35);
    color: white;
    border-color: #ff6b35;
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.order-button.priority-order {
    border-color: #ff8c42;
    background: linear-gradient(145deg, #fff, #fff8f0);
}

/* Rice cooker buttons for page 4 */
.rice-button {
    flex: 1;
    min-width: 80px;
    padding: 1rem;
    margin: 0.5rem;
    border: 2px solid #FF8C00;
    border-radius: 8px;
    background: white;
    color: #FF8C00;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.rice-button:hover {
    background: rgba(255, 140, 0, 0.1);
    transform: translateY(-2px);
}

.rice-button:active {
    background: #FF8C00;
    color: white;
    transform: translateY(0) scale(0.95);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
}

.rice-button.power {
    border-color: #DC143C;
    color: #DC143C;
}

.rice-button.power:active {
    background: #DC143C;
}

.rice-button.start {
    border-color: #228B22;
    color: #228B22;
}

.rice-button.start:active {
    background: #228B22;
}

.rice-button.stop {
    border-color: #8B0000;
    color: #8B0000;
}

.rice-button.stop:active {
    background: #8B0000;
}

/* =================================================================== */
/* CSS-ONLY RICE COOKER INTERFACE */
/* =================================================================== */

/* Hide the target divs */
.hidden-target {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    visibility: hidden;
}

/* Rice cooker container */
.rice-cooker {
    max-width: 500px;
    margin: 2rem auto;
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Display screen */
.cooker-display {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 3px solid #333;
}

.screen {
    background: linear-gradient(135deg, #0f4c75, #3282b8);
    color: #00ff88;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-family: 'Courier New', monospace;
    border: 2px solid #555;
}

.status-text {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px currentColor;
}

.timer-display {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 15px currentColor;
}

/* Control panel layout */
.control-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.power-controls,
.action-controls,
.mode-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Basic button styles */
.cooker-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    min-width: 80px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.btn-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.btn-text {
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}

/* Hover effects */
.cooker-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Active/pressed effects when clicked */
.cooker-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* CSS-only state changes using :target */
#power:target ~ .rice-cooker .power-btn {
    background: linear-gradient(145deg, #dc2626, #b91c1c);
    color: white;
    border-color: #991b1b;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
}

#start:target ~ .rice-cooker .start-btn {
    background: linear-gradient(145deg, #16a34a, #15803d);
    color: white;
    border-color: #166534;
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.6);
}

#stop:target ~ .rice-cooker .stop-btn {
    background: linear-gradient(145deg, #ea580c, #c2410c);
    color: white;
    border-color: #9a3412;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.6);
}

#white-rice:target ~ .rice-cooker .mode-btn:nth-of-type(1) {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    border-color: #1d4ed8;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

#brown-rice:target ~ .rice-cooker .mode-btn:nth-of-type(2) {
    background: linear-gradient(145deg, #a16207, #92400e);
    color: white;
    border-color: #78350f;
    box-shadow: 0 0 20px rgba(161, 98, 7, 0.6);
}

#steam:target ~ .rice-cooker .mode-btn:nth-of-type(3) {
    background: linear-gradient(145deg, #06b6d4, #0891b2);
    color: white;
    border-color: #0e7490;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}

#warm:target ~ .rice-cooker .mode-btn:nth-of-type(4) {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    color: white;
    border-color: #b45309;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

/* Display changes based on selected modes */
#power:target ~ .rice-cooker .status-text::after {
    content: " - POWERED ON";
    color: #ff4444;
}

#start:target ~ .rice-cooker .status-text::after {
    content: " - COOKING...";
    color: #44ff44;
}

#stop:target ~ .rice-cooker .status-text::after {
    content: " - STOPPED";
    color: #ffaa44;
}

#white-rice:target ~ .rice-cooker .timer-display {
    content: "18:00";
}

#brown-rice:target ~ .rice-cooker .timer-display {
    content: "25:00";
}

#steam:target ~ .rice-cooker .timer-display {
    content: "15:00";
}

#warm:target ~ .rice-cooker .timer-display {
    content: "--:--";
}

/* ========================================
   TOGARASHI SPOON ANIMATION
   ======================================== */

.togarashi-spoon-floating {
    position: fixed;
    width: 20vw;
    height: 20vw;
    min-width: 200px;
    min-height: 200px;
    max-width: 400px;
    max-height: 400px;
    background: url('images/togarashi-spoon.png') center/contain no-repeat;
    z-index: -100;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8) rotate(0deg);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.togarashi-spoon-floating.spoon-appear {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    animation: sprinkleTogarashi 2s ease-in-out infinite;
}

/* Togarashi that stays on ramen */
.togarashi-on-ramen {
    position: fixed;
    width: 20vw;
    height: 20vw;
    min-width: 200px;
    min-height: 200px;
    max-width: 400px;
    max-height: 400px;
    background: url('images/togarashi.png') center/contain no-repeat;
    z-index: -100;
    pointer-events: none;
    opacity: 0;
    border-radius: 15px;
    transform: scale(0.8);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.togarashi-on-ramen.togarashi-appear {
    opacity: 1;
    transform: scale(1);
}

/* Coffee Pouring Animation for Page 5 */
.coffee-animation-section {
    position: absolute; /* Changed from fixed to absolute - follows page content */
    bottom: 1vh; /* Bottom of page content, not viewport */
    right: -9vw; /* Moved right 10vw: was 1vw, now -9vw (further right) */
    width: 800px; /* Smaller but still big: was 3000px */
    height: 600px; /* Smaller but still big: was 2000px */
    z-index: 100;
}

.coffee-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.milk-pitcher-section {
    position: absolute;
    top: -35vh; /* Moved up 15vh more: was -20vh, now -35vh */
    left: calc(120px + 10vw); /* Moved right 5vw more: was 5vw, now 10vw */
    width: 400px; /* 2x bigger: was 200px */
    height: 500px; /* 2x bigger: was 250px */
    z-index: 2;
}

.milk-pitcher {
    width: 400px; /* 2x bigger: was 200px */
    height: 500px; /* 2x bigger: was 250px */
    background: url('images/milk-pitcher.png') center/contain no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: bottom center;
    transition: transform 2s ease-in-out, opacity 1s ease-in-out;
}

.milk-stream {
    position: absolute;
    top: 180px; /* Adjusted for smaller size */
    left: 100px; /* Centered to pour into cup */
    width: 20px; /* Smaller: was 80px */
    height: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    border-radius: 10px; /* Smaller: was 40px */
    opacity: 0;
    transition: height 1s ease-in-out, opacity 0.5s ease-in-out;
    z-index: 1;
}

.coffee-cup-section {
    position: absolute;
    bottom: 0;
    left: 50px; /* Positioned under the pitcher */
    width: 500px; /* 2x bigger: was 250px */
    height: 500px; /* 2x bigger: was 250px */
}

.coffee-cup {
    width: 500px; /* 2x bigger: was 250px */
    height: 500px; /* 2x bigger: was 250px */
    background: url('images/coffee-no-milk.png') center/contain no-repeat;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: background-image 1s ease-in-out;
}

/* Animation states */
.milk-pitcher.pouring {
    transform: rotate(-25deg); /* Just tilt towards cup, no flip */
}

.milk-stream.flowing {
    height: 200px; /* Adjusted for new size: was 800px */
    opacity: 1;
}

.coffee-cup.with-milk {
    background-image: url('images/coffee-with-milk.png');
    /* Coffee stays in fixed container - no additional positioning needed */
}

/* Removed hover effects that were causing coffee to change back and forth */

/* Boba Tea Animation for Page 5 - Bottom Left */
.boba-animation-section {
    position: absolute; /* Changed from fixed to absolute - follows page content */
    bottom: 1vh; /* Bottom of page content, not viewport */
    left: 1vw; /* Bottom left side */
    width: 800px;
    height: 600px;
    z-index: 100;
}

.boba-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.boba-source-section {
    position: absolute;
    top: -30vh; /* High above the tea cup */
    left: calc(120px + 5vw);
    width: 300px;
    height: 200px;
    z-index: 2;
}

.boba-pearls {
    width: 300px;
    height: 200px;
    background: url('images/boba.png') center/contain no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: center;
    transition: transform 2s ease-in-out, top 2s ease-in-out, left 2s ease-in-out, opacity 1s ease-in-out;
}

.boba-stream {
    /* Remove stream entirely */
    display: none;
}

.tea-cup-section {
    position: absolute;
    bottom: 0;
    left: 50px;
    width: 600px; /* 50% bigger: was 400px, now 600px */
    height: 600px; /* 50% bigger: was 400px, now 600px */
}

.tea-cup {
    width: 600px; /* 50% bigger: was 400px, now 600px */
    height: 600px; /* 50% bigger: was 400px, now 600px */
    background: url('images/tea-no-boba.png') center/contain no-repeat;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: background-image 1s ease-in-out;
}

/* Boba animation states */
.boba-pearls.moving {
    top: 52vh; /* Moved down 5vh more: was 47vh, now 52vh */
    left: -50px; /* Move left to center over tea cup */
    transform: scale(0.5); /* Shrink as they "go into" the cup */
}

.boba-stream.flowing {
    /* Remove stream animation */
    display: none;
}

.tea-cup.with-boba {
    background-image: url('images/tea-with-boba.png');
}

.boba-pearls.disappearing {
    opacity: 0;
}

.boba-stream.disappearing {
    opacity: 0;
}

/* Advanced Flexbox Content for Page 5 Dashboard */

/* Advanced Alignment Demos */
.alignment-demos {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.alignment-demo {
    flex: 1;
    min-width: 300px;
}

.alignment-demo h4 {
    color: #d4af37;
    margin-bottom: 1rem;
    text-align: center;
}

.align-container {
    height: 120px;
    border: 2px dashed #d4af37;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
}

.space-around-center {
    justify-content: space-around;
    align-items: center;
}

.space-between-stretch {
    justify-content: space-between;
    align-items: stretch;
}

.align-item {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}


/* Static Seafood (new-page.html) */
.static-cooked-shrimp {
    position: fixed;
    left: 50%;
    top: 60%;
    transform: translateX(-50%);
    z-index: -100;
    pointer-events: none;

}

.static-cooked-shrimp img {
    width: 300px;
    height: auto;
}

.static-cooked-squid {
    position: fixed;
    left: 30%;
    top: 65%;
    transform: translateX(-50%);
    z-index: -100;
    pointer-events: none;
}

.static-cooked-squid img {
    width: 300px;
    height: auto;
}

.static-cooked-fish {
    position: fixed;
    left: 70%;
    top: 65%;
    transform: translateX(-50%);
    z-index: -100;
    pointer-events: none;
}

.static-cooked-fish img {
    width: 300px;
    height: auto;
}

/* Static Pork & Tofu (page2.html) */
.static-cooked-pork {
    position: fixed;
    left: 40%;
    top: 40%;
    transform: translateX(-50%);
    z-index: -100;
    pointer-events: none;
}

.static-cooked-pork img {
    width: 200px;
    height: auto;
}

.static-cooked-tofu {
    position: fixed;
    left: 60%;
    top: 40%;
    transform: translateX(-50%);
    z-index: -100;
    pointer-events: none;
}

.static-cooked-tofu img {
    width: 300px;
    height: auto;
}

.static-cooked-chrysanthemum {
    position: fixed;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    z-index: -100;
    pointer-events: none;
}

.static-cooked-chrysanthemum img {
    width: 400px;
    height: auto;
}

.static-filled-spoon {
    position: fixed;
    left: 25%;
    top: 30%;
    transform: translateX(-50%);
    z-index: -100;
    pointer-events: none;
}

.static-filled-spoon img {
    width: 300px;
    height: auto;
}

/* Static Egg & Noodles (page3.html) */
.static-cooked-egg {
    position: fixed;
    left: 45%;
    top: 58%;
    transform: translateX(-50%);
    z-index: -100;
    pointer-events: none;
}

.static-cooked-egg img {
    width: 300px;
    height: auto;
}

.static-cooked-noodles {
    position: fixed;
    left: 35%;
    top: 40%;
    transform: translateX(-50%);
    z-index: -100;
    pointer-events: none;
}

.static-cooked-noodles img {
    width: 500px;
    height: auto;
}


.static-togarashi-on-ramen {
    position: fixed;
    left: 60%;
    top: 65%;
    transform: translateX(-50%);
    z-index: -100;
    pointer-events: none;
    opacity: 1;
}

.static-togarashi-on-ramen img {
    width: 300px;
    height: auto;
    display: block;
}

.static-fish-cakes {
    position: fixed;
    left: 65%;
    top: 68%;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
    width: 120px;
    height: 100px;
}

.static-fish-cakes img {
    width: 60px;
    height: auto;
    position: absolute;
    opacity: 1;
}

.static-fish-cakes img:nth-child(1) {
    top: 10px;
    left: 15px;
}

.static-fish-cakes img:nth-child(2) {
    top: 25px;
    left: 45px;
}

.static-fish-cakes img:nth-child(3) {
    top: 5px;
    left: 65px;
}

.static-fish-cakes img:nth-child(4) {
    top: 40px;
    left: 20px;
}

.static-fish-cakes img:nth-child(5) {
    top: 35px;
    left: 55px;
}

.static-fish-cakes img:nth-child(5) {
    top: -1px;
    left: -8px;
}

/* Static Rice & Accompaniments (page4.html) */
.static-cooked-rice {
    position: fixed;
    left: 60%;
    top: 35%;
    transform: translateX(-50%);
    z-index: -100;
    pointer-events: none;
}

.static-cooked-rice img {
    width: 300px;
    height: auto;
}

.static-scallions {
    position: fixed;
    left: 60%;
    top: 40%;
    transform: translateX(-50%);
    z-index: -100;
    pointer-events: none;
}

.static-scallions img {
    width: 150px;
    height: auto;
}

/* Static Beverages (page5.html) */
.static-coffee-with-milk {
    position: fixed;
    left: 30%;
    top: 50%;
    transform: translateX(-50%);
    z-index: -100;
    pointer-events: none;
}

.static-coffee-with-milk img {
    width: 300px;
    height: auto;
}

.static-tea-with-boba {
    position: fixed;
    left: 70%;
    top: 45%;
    transform: translateX(-50%);
    z-index: -100;
    pointer-events: none;
}

.static-tea-with-boba img {
    width: 400px;
    height: auto;
}

/* ========================================
   DASHBOARD PAGE ELEMENTS (Static Version)
   ======================================== */

.dashboard-section {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-section h2 {
    color: #8B4513;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.dashboard-cards {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.dashboard-card {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    color: #8B4513;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.card-metric {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0.5rem 0;
}

.card-change.positive {
    color: #27ae60;
    font-weight: bold;
}

.card-change.negative {
    color: #e74c3c;
    font-weight: bold;
}

.data-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.data-table {
    width: 100%;
    background: white;
}

.table-header {
    display: flex;
    background: #8B4513;
    color: white;
    font-weight: bold;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.table-row:nth-child(even) {
    background: #f9f9f9;
}

.table-cell {
    flex: 1;
    padding: 1rem;
    text-align: left;
    min-width: 120px;
}

.congratulations {
    text-align: center;
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    border: 3px solid #8B4513;
}

.mastery-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.badge {
    background: #8B4513;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .dashboard-cards {
        flex-direction: column;
    }
    
    .table-header,
    .table-row {
        flex-direction: column;
    }
    
    .mastery-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Flex Wrapping Demo */
.flex-wrap-demo {
    margin: 2rem 0;
}

.wrap-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(255, 69, 0, 0.1));
    border-radius: 8px;
    min-height: 120px;
}

.wrap-item {
    flex: 1 1 150px;
    padding: 1rem;
    background: linear-gradient(135deg, #FF8C00, #FF4500);
    color: white;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Order demonstration classes */
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-4 { order: 4; }
.order-5 { order: 5; }
.order-6 { order: 6; }

/* Mastery Explanation Grid */
.mastery-explanation {
    margin-top: 2rem;
}

.technique-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.technique-item {
    flex: 1 1 250px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(220, 20, 60, 0.1));
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #DC143C;
}

.technique-item strong {
    color: #8B0000;
    display: block;
    margin-bottom: 0.5rem;
}

/* Advanced Alignment Mastery */
.alignment-mastery-demo {
    margin: 2rem 0;
}

.alignment-showcase {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.5rem;
    min-height: 200px;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.05), rgba(255, 69, 0, 0.05));
    padding: 2rem;
    border-radius: 10px;
}

.align-item {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Specific alignment demonstrations */
.center-demo {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(220, 20, 60, 0.1));
}

.stretch-demo {
    align-items: stretch;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(255, 69, 0, 0.1));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.space-demo {
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(0, 128, 0, 0.1), rgba(0, 255, 0, 0.1));
    display: flex;
    flex-direction: column;
}

.align-item h4 {
    color: #8B0000;
    margin-bottom: 1rem;
}

.mastery-tips {
    margin-top: 2rem;
}

.tip-card {
    background: linear-gradient(135deg, #8B0000, #DC143C);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tip-card h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tip-card ul {
    list-style: none;
    padding: 0;
}

.tip-card li {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tip-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #FFD700;
    font-weight: bold;
}

.tip-card code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* Expert Page Flexbox Layouts */
.grid-flex-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(255, 69, 0, 0.1));
    border-radius: 8px;
}

.grid-item {
    flex: 1 1 200px;
    padding: 1.5rem;
    background: linear-gradient(135deg, #FF8C00, #FF4500);
    color: white;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dynamic-sizing-demo {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.size-item {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.flex-grow-demo {
    flex-grow: 1;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(220, 20, 60, 0.1));
}

.flex-shrink-demo {
    flex-shrink: 2;
    flex-basis: 250px;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(255, 69, 0, 0.1));
}

.flex-basis-demo {
    flex-basis: 300px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(0, 128, 0, 0.1), rgba(0, 255, 0, 0.1));
}

.nav-patterns-demo {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.nav-example {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.horizontal-nav {
    justify-content: space-between;
}

.nav-brand {
    font-weight: bold;
    color: #8B0000;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .dynamic-sizing-demo {
        flex-direction: column;
    }
    
    .grid-flex-demo {
        flex-direction: column;
    }
    
    grid-item {
        flex: none;
    }
}

/* Responsive Flexbox Demo */
.responsive-flex-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(220, 20, 60, 0.1));
    border-radius: 8px;
    margin: 2rem 0;
}

.responsive-item {
    flex: 1 1 200px; /* default fallback */
    padding: 1.5rem;
    background: linear-gradient(135deg, #8B0000, #DC143C);
    color: white;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Different flex behaviors for demonstration */
.responsive-item.flex-small {
    flex: 1 1 150px; /* grows slowly, basis 150px */
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    color: #333;
}

.responsive-item.flex-medium {
    flex: 2 1 200px; /* grows twice as fast, basis 200px */
    background: linear-gradient(135deg, #8B0000, #DC143C);
}

.responsive-item.flex-large {
    flex: 1 1 250px; /* normal growth, larger basis 250px */
    background: linear-gradient(135deg, #228B22, #32CD32);
}

.responsive-item.flex-fixed {
    flex: 0 0 180px; /* fixed width, no grow/shrink */
    background: linear-gradient(135deg, #4169E1, #87CEEB);
}

.responsive-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .responsive-flex-demo {
        flex-direction: column;
    }
    
    .responsive-item {
        flex: none;
        min-height: 60px;
    }
}