.home-main-wrapper {
    width: 100%;
}
.eggsheld-block {
    padding: 80px 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}
.green-theme { background-color: #2c724f; }
.sand-theme { background-color: #e6dfcb; }

/* .green-theme { background-color: #2b593f; } */
/* .sand-theme { background-color: #d7d2c4; } */

/* Ensure the main block content sits above side decorations */
.block-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    position: relative; /* Established position context for z-index */
    z-index: 2;         /* Keeps text cards and images layered above side eggs */
}

.center-content {
    align-items: center;
    text-align: center;
}
.block-heading {
    font-size: 3rem;
    margin-bottom: 40px;
    text-align: center; /* Centers the titles directly */
}
.text-yellow {
    font-family: 'Luckiest Guy', cursive;
    color: #ffdc65;
    text-shadow: 3px 3px 0px #000;
}
.text-brown {
    font-family: 'Luckiest Guy', cursive;
    color: #4a341e;
}
/*.text-yellow {
    font-family: 'Luckiest Guy', cursive;
    color: #ebd174;
    text-shadow: 3px 3px 0px #000;
}
.text-brown {
    font-family: 'Luckiest Guy', cursive;
    color: #43311e;
}*/
.block-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}
.block-row.row-reverse {
    flex-direction: row-reverse;
}
.figma-dark-card {
    background-color: #0c0d12;
    border: 3px solid #ffffff;
    padding: 35px;
    border-radius: 6px;
    flex: 1;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
}
.figma-dark-card p {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 400;
}
.block-asset-frame {
    width: 250px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}
.block-img {
    max-width: 100%;
    height: auto;
    -o-object-fit: contain;
       object-fit: contain;
}
/* Carousel Control Elements */
.gallery-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}
.gallery-subheading {
    font-size: 2rem;
    margin-bottom: 0;
}
.nav-arrow, .slider-arrow {
    background: none;
    border: none;
    color: #ebd174;
    font-size: 2.5rem;
    cursor: pointer;
    font-family: 'Luckiest Guy', cursive;
    transition: transform 0.1s;
}
.nav-arrow:hover, .slider-arrow:hover {
    transform: scale(1.2);
}
.cards-slider-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}
/* Drag-to-Scroll UX Additions */
.slider-viewports {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    padding: 1rem 0;
    cursor: -webkit-grab;
    cursor: grab; /* Shows hand grab icon by default */
    -moz-user-select: none;
     -ms-user-select: none;
         user-select: none; /* Prevents text selection highlighting while dragging */
    -webkit-user-select: none;
}

/* When the user actively clicks and drags */
.slider-viewports.active-dragging {
    cursor: -webkit-grabbing;
    cursor: grabbing;
    scroll-behavior: auto; /* Disables smooth transitions temporarily for real-time tracking accuracy */
}
/* Detail Split Area */
.character-details-split {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    width: 100%;
}
/* Promotional Video & Download Button Elements */
.video-container-frame {
    background-color: #000;
    border: 4px solid #000;
    width: 100%;
    max-width: 850px;
    aspect-ratio: 16 / 9;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.15);
    margin-bottom: 50px;
}
.video-container-frame iframe {
    width: 100%;
    height: 100%;
}
.download-container-box {
    margin-top: 20px;
}
.figma-download-btn {
    font-family: 'Luckiest Guy', cursive;
    background-color: #000000;
    color: #ffffff;
    border: 3px solid #ffffff;
    padding: 15px 50px;
    font-size: 1.6rem;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    box-shadow: 6px 6px 0px #43311e;
    transition: transform 0.1s, box-shadow 0.1s;
}
.figma-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #43311e;
}
/* Responsive Scaling Optimization Rules */
@media (max-width: 850px) {
    .block-row, .block-row.row-reverse {
        flex-direction: column;
        gap: 30px;
    }
    .character-details-split {
        flex-direction: column;
    }
}
.gallery-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}
.gallery-subheading {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 0 #222;
}
.nav-arrow, .slider-arrow {
    background: #222;
    color: #ffe066;
    border: none;
    font-size: 2rem;
    padding: 0.2rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 2px 2px 0 #ffe066;
    transition: transform 0.1s;
}

.nav-arrow:hover, .slider-arrow:hover {
    transform: scale(1.1);
}
.cards-slider-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 3rem;
    width: 100%;
}
.slider-viewports {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    padding: 1rem 0;
}
/* Hide default horizontal layout scrollbars visually */
.slider-viewports::-webkit-scrollbar {
    display: none;
}
.slider-viewports {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* Base Dynamic Thumb Cards Layout */
.carousel-card {
    flex: 0 0 auto;
    background: #222;
    border: 3px solid transparent;
    border-radius: 12px;
    padding: 1rem;
    width: 170px; /* Increased from 130px to comfortably hold full names */
    text-align: center;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.carousel-card img {
    width: 100px; /* Slightly upscaled to match the wider card context */
    height: 100px;
    -o-object-fit: contain;
       object-fit: contain;
    margin-bottom: 0.5rem;
    pointer-events: none;
}
.carousel-card.center {
    border-color: #ffe066;
    background: #333;
    transform: scale(1.05);
}
.carousel-card:hover {
    transform: translateY(-4px);
}
.card-title-text {
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    white-space: normal; /* Allows text to wrap to a second line instead of clipping */
    overflow: visible;
    text-overflow: clip;
    line-height: 1.3;
}
/* Layout Split Containers Details Display Panels */
.character-details-split {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}
.character-info-box {
    background: rgba(34, 34, 34, 0.9);
    border-radius: 12px;
    padding: 2rem;
    color: #fff;
    box-shadow: 4px 4px 0 #ffe066;
}
.character-desc-img-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.character-desc-text-side {
    flex: 1;
    min-width: 280px;
}
.character-name {
    font-family: 'Luckiest Guy', cursive;
    font-size: 3rem;
    color: #ffe066;
    margin-bottom: 1rem;
}
.character-desc-text {
    font-size: 1.1rem;
    line-height: 1.6;
}
.character-main-img-side {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.character-main-img-side img {
    max-width: 100%;
    max-height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
}
/* Secondary Asset-Switcher Tab Rows */
.character-art-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.character-art-box {
    background: #222;
    border: 3px solid transparent;
    border-radius: 8px;
    padding: 1rem;
    width: 200px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.character-art-box img {
    width: 100%;
    height: 130px;
    -o-object-fit: contain;
       object-fit: contain;
    border-radius: 4px;
}

.character-art-label {
    color: #fff;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: bold;
}

.character-art-box.active-tab {
    border-color: #ffe066;
    background: #333;
}

/* Draggable Audio Control Panel Styling */
.audio-control-panel {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #222222;
    border: 3px solid #ffffff;
    border-radius: 50px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    cursor: -webkit-grab;
    cursor: grab;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: none;
}

.audio-control-panel.is-dragging {
    cursor: -webkit-grabbing;
    cursor: grabbing;
}

.audio-icon-wrapper {
    position: relative;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-icon-wrapper img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
    transition: transform 0.15s ease;
}

.audio-icon-wrapper:hover img {
    transform: scale(1.1);
}

/* Absolute cross overlay configurations for muted state indicator */
.status-stop-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hidden-mute {
    display: none !important;
}

/* Input Slider Custom Styling Specs */
#audio-volume-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
          appearance: none;
    width: 110px;
    height: 6px;
    background: #555;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#audio-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ebd174;
    border: 2px solid #222;
    cursor: pointer;
    -webkit-transition: background-color 0.1s;
    transition: background-color 0.1s;
}

#audio-volume-slider::-webkit-slider-thumb:hover {
    background: #ffffff;
}

#audio-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ebd174;
    border: 2px solid #222;
    cursor: pointer;
    -moz-transition: background-color 0.1s;
    transition: background-color 0.1s;
}

.eggsheld-block {
    position: relative; /* Set baseline coordinates context for decorations */
    overflow: hidden;   /* Keeps decorative image overflows from causing page scrollbars */
}

/* --- Global Decoration Structural Layer --- */
.section-top-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none; /* Allows user mouse interaction to click items right through the image frames */
    background-repeat: repeat-x;
    background-position: top center;
}

.section-bottom-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none; /* Allows user mouse interaction to click items right through the image frames */
    background-repeat: repeat-x;
    background-position: bottom center;
}

/* --- Cloud Line Art Element Definition --- */
.cloud-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px; /* Increased from 120px to accommodate larger clouds without clipping */
    pointer-events: none;
    overflow: hidden;
}

/* Base style for procedurally generated cloud elements */
.generated-cloud {
    position: absolute;
    height: auto;
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* --- Grass Line Art Element Definition --- */
.grass-decor {
    background-image: url('/assets/img/Grass Cartoon - CROPPED NO BG.png');
    background-size: auto 45px; /* Adjust height profile as needed */
    height: 45px;
}

/* Chicken Line Art Element Definition */
.chicken-decor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px; /* Slightly taller bounding box to handle scale variances */
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Base style for procedurally generated chicken elements */
.generated-chicken {
    position: absolute;
    bottom: -5px; /* Anchors feet to bottom area */
    height: auto; /* Uses width to scale proportionately */
    transition: transform 0.2s ease;
}

/* Extra section base padding adjustments so text doesn't overlap the line art backgrounds */
.eggsheld-block.green-theme {
    padding-top: 130px;    /* Added extra space on top so text doesn't crash into the clouds */
    padding-bottom: 115px;
}
.eggsheld-block.sand-theme {
    padding-top: 130px;    /* Added extra space on top so text doesn't crash into the clouds */
    padding-bottom: 145px; /* Extra breathing room for randomized chickens */
}

/* ==========================================================================
   FLOATING / HOVERING ANIMATION EFFECT
   ========================================================================== */

/* Defines a gentle, smooth up-and-down motion */
@-webkit-keyframes floatBob {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px); /* Moves upward slightly */
    }
    100% {
        transform: translateY(0px);
    }
}
@keyframes floatBob {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px); /* Moves upward slightly */
    }
    100% {
        transform: translateY(0px);
    }
}

/* Applies the infinite floating motion to images inside feature block frames */
.block-asset-frame img {
    -webkit-animation: floatBob 3.5s ease-in-out infinite;
            animation: floatBob 3.5s ease-in-out infinite;
    will-change: transform; /* Optimizes hardware performance for fluid movement */
}

/* (Optional) Stagger animation timing so images don't float synchronously */
.block-row:nth-child(even) .block-asset-frame img {
    -webkit-animation-delay: 0.8s;
            animation-delay: 0.8s; /* Offsets every second block image */
}

/* --- Side Decoration Containers (Sunny Side Up Eggs) --- */
.side-decor-left,
.side-decor-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 140px; /* Bounding margin width on left and right sides */
    pointer-events: none;
    overflow: hidden;
    z-index: 0; /* Send decoration layer behind block content */
}

.side-decor-left {
    left: 0;
}

.side-decor-right {
    right: 0;
}

/* Base style for procedurally generated egg elements */
.generated-egg {
    position: absolute;
    height: auto;
    pointer-events: none;
}