html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow: hidden;
}

@media screen and (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.foldable-menu {
    position: absolute;
    bottom: 5vh;
    right: 5vw;
    z-index: 20;
    pointer-events: none;
    display: flex;
    flex-direction: column-reverse;
}

.menu-toggle-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1.1rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 12rem;
}

.menu-toggle-btn:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.menu-content {
    pointer-events: auto;
    margin-bottom: 0.6rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(15px);
    padding: 1rem;
    border-radius: 0;
    box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
    width: 12rem;
    box-sizing: border-box;
}

.menu-content.hidden,
.hidden {
    display: none !important;
}

h1 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #1a1a1a;
}

p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 0.9rem;
}

#depth-info {
    padding: 12px;
    background: #f0f4f8;
    border-radius: 8px;
    font-weight: 600;
    color: #2c5282;
    margin-bottom: 20px;
}

.legend h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 8px;
}

.ramp {
    height: 12px;
    width: 100%;
    background: linear-gradient(to left,
            rgb(15.6% 10.3% 17.3%), rgb(22% 17.8% 32.2%), rgb(25.6% 25.3% 48.3%), rgb(24.2% 35.8% 57.5%), rgb(25.3% 45.9% 59.7%), rgb(28.4% 56% 61.9%), rgb(32.1% 66% 63.8%), rgb(40.1% 76.3% 64.2%), rgb(57.1% 84.8% 64.2%), rgb(79.2% 92.2% 69.7%), rgb(99.3% 99.4% 80%));
    border-radius: 4px;
    margin-bottom: 4px;
}

.labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
}

.layers-toggle {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.layers-toggle h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 12px;
}

.layer-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #444;
}

.layer-wrapper input {
    margin-right: 10px;
    cursor: pointer;
}

.layer-wrapper label {
    cursor: pointer;
    flex: 1;
}

.popup-content {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
}

.popup-content strong {
    color: #2c5282;
    display: block;
    margin-bottom: 4px;
}

.page-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10vh 2vw 5vh 5vw;
    display: flex;
    flex-direction: row;
    gap: 40px;
    box-sizing: border-box;
    pointer-events: none;
}

.card {
    position: relative;
    flex: 0 0 35%;
    height: auto;
    max-height: 100%;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(1px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: none;
    border-radius: 0;
    pointer-events: auto;
    user-select: none;
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    container-type: inline-size;
}

.mobile-toggle-arrow {
    display: none;
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
}

.card.hidden-nav {
    transform: translateX(calc(-100% - 5vw));
}

.nav-toggle-btn {
    position: fixed;
    top: 9vh;
    right: -20px;
    transform: translateY(-50%);
    width: 20px;
    height: 80px;
    background: rgb(235, 88, 81);
    backdrop-filter: blur(10px);
    border-radius: 0px;
    cursor: pointer;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border: none;
    font-size: 0.65rem;
}

.nav-toggle-btn:hover {
    background: #f16565;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
}

.nav-toggle-btn .arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(0deg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.hidden-nav .nav-toggle-btn {
    width: 40px;
    right: -40px;
}

.card.hidden-nav .nav-toggle-btn .arrow-icon {
    transform: rotate(180deg);
}

.icon {
    display: block;
    width: 1em;
    height: 1em;
}

.icon-back {
    width: 20px;
    height: 20px;
}

.icon-chevron {
    width: 32px;
    height: 32px;
}

.icon-arrow-circle {
    width: 54px;
    height: 54px;
}

.icon-arrow-circle.is-flipped {
    transform: scaleX(-1);
}

.icon-sublayer-arrow {
    width: 22px;
    height: 22px;
}

.tabs-container {
    display: flex;
    position: absolute;
    justify-content: space-between;
    top: -30px;
    left: 0;
    height: 30px;
    z-index: 5;
    gap: 2px;
    padding-left: 0;
    pointer-events: auto;
    width: 100%;
    box-sizing: border-box;
}


.tab-item {
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    /* center vertically */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 10px;
    opacity: 0.8;
    background-color: black;
    opacity: 0.5;
    border-radius: 0;
    flex: 1 1 auto;
}

.tab-item:hover {
    opacity: 0.9;
}

.tab-item.active {
    opacity: 1;
    fill-opacity: 1;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}

.tab-item.back-btn {
    background: #ff5e57;
    height: 100%;
    padding: 0 15px;
    opacity: 1;
    z-index: 1;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: auto;
    max-width: 25%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, opacity 0.2s ease;
    gap: 8px;
}

.card.hidden-nav .back-btn {
    transform: translateX(calc(100cqw + 5vw));
}

.tab-item.back-btn:hover {
    background: #ff4757;
}


.card h1 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #333;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 15px;
}

.card-content {
    flex: 0 1 auto;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.card-content::-webkit-scrollbar {
    width: 6px;
}

.card-content::-webkit-scrollbar-track {
    background: transparent;
}

.card-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 3px;
}

#intro-info,
#layer-info,
.sublayer-details {
    padding: 30px;
}

.sublayer-arrows {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: -19px;
    margin-right: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
    pointer-events: auto;
}

.arrow-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 0;
    position: relative;
    overflow: hidden;
}

.arrow-btn::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: rgba(126, 126, 126, 0);
    transition: background-color 0.2s ease;
    pointer-events: none;
}

.arrow-btn:hover:not(:disabled)::after,
.arrow-btn:focus-visible:not(:disabled)::after {
    background: rgba(126, 126, 126, 0.16);
}

.arrow-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.arrow-btn .icon-arrow-circle {
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1;
}

.arrow-btn:disabled .icon-arrow-circle {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 40vh;
    overflow: hidden;
    position: relative;
    background: #2c3e50;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

#sublayer-img,
#sublayer-img-next {
    opacity: 1;
    transition: opacity 320ms ease;
    will-change: opacity;
}

#sublayer-img {
    z-index: 1;
}

#sublayer-img-next {
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

#sublayer-img-next.is-visible {
    opacity: 1;
}

.sublayer-footer {
    margin: 8px 30px 0 30px;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #777;
}

.sublayer-details h1 {
    font-size: 1.8rem;
    margin-top: 10px;
    margin-bottom: 20px;
}

.sublayer-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.sublayers-list {
    margin-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.sublayer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    padding-right: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}

.sublayer-item:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.02);
}

.sublayer-item.active {
    color: #2c5282;
}

.sublayer-item .chevron {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.feature-icon {
    width: 128px;
    height: 128px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img,
.tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#feature-title {
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
}

#feature-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    white-space: pre-wrap;
}

#layer-desc {
    white-space: pre-wrap;
}

#sublayer-desc {
    white-space: pre-wrap;
}

.card-footer {
    padding-top: 0;
    margin-top: 20px;
}

.footer-title {
    display: block;
    margin: 0 -30px 0 -30px;
    padding: 15px 30px;
    background: #f5f5f5;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
    border-top: 1px solid #eee;
}

.grid-menu {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 25px;
    z-index: 5;
    pointer-events: none;
    overflow-y: auto;
    padding-right: 10px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.9);
    /* Slightly more transparent */
    backdrop-filter: blur(2px);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    pointer-events: auto;
    user-select: none;
    height: auto;
    width: 26%;
}

.grid-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.grid-item:hover .tile-icon {
    transform: scale(1.02);
}

.grid-item .tile-icon {
    width: 40%;
    aspect-ratio: 1/1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.grid-item .tile-label {
    font-size: 1rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.grid-item .tile-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #555;
    margin-bottom: 15px;
}

.grid-item .explora-link {
    margin-top: auto;
    color: #ff7675;
    font-weight: 400;
    font-size: 0.85rem;
    text-decoration: underline;
    text-align: right;
    align-self: flex-end;
}

.grid-item .explora-link::after {
    display: none;
}

.subgroup-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.subgroup-navigation.hidden {
    display: none;
}

/* Colors for specific layers */
.grid-item[data-layer="objectes_no_id"] .tile-icon {
    background: #4a69bd !important;
}

.grid-item[data-layer="esculleres_submergida"] .tile-icon {
    background: #f6b93b !important;
}

.grid-item[data-layer="esculleres_emergida"] .tile-icon {
    background: #78acc5 !important;
}

.grid-item[data-layer="esculls_port"] .tile-icon {
    background: #A3D9FF !important;
}

.grid-item[data-layer="isobates"] .tile-icon {
    background: #55efc4 !important;
}

#subgroup-counter {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c5282;
    min-width: 60px;
    text-align: center;
}

/* Hide mobile-specific header on desktop */
.mobile-only-header {
    display: none !important;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .page-content {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        gap: 0 !important;
        height: 100vh !important;
        width: 100% !important;
        overflow: hidden !important;
        justify-content: flex-end !important;
        /* Push everything to bottom */
    }

    .grid-menu {
        order: 1 !important;
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        flex: 1 !important;
        padding: 20px !important;
        gap: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        height: auto !important;
        overflow-y: auto !important;
    }

    .card {
        order: 2 !important;
        margin-top: auto !important;
        /* Force to bottom if alone */
        display: flex !important;
        flex-direction: column !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        max-height: 90vh !important;
        background: white !important;
        border-radius: 0 !important;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1) !important;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 10 !important;
        pointer-events: auto !important;
        overflow: hidden !important;
        transform: none !important;
        position: relative !important;
    }

    .card.hidden-nav {
        max-height: 82px !important;
        transform: none !important;
        overflow: visible !important;
    }

    /* Padding adjustment when hidden */
    .card.hidden-nav .card-content {
        pointer-events: none;
    }

    /* Hide individual titles on mobile as they are now in the header */
    #feature-title,
    #layer-title,
    #sublayer-title {
        display: none !important;
    }

    .card-content {
        transition: padding 0.5s ease-in-out !important;
        order: 1 !important;
    }

    /* Hide desktop toggle btn on mobile */
    .nav-toggle-btn {
        display: none !important;
    }

    /* Old mobile-only-header logic removed */

    .mobile-only-header {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        min-height: 82px !important;
        padding: 4px 14px 10px 14px !important;
        background: white !important;
        border-bottom: 1px solid #eee !important;
        cursor: default !important;
        font-weight: 800 !important;
        font-size: 1.1rem !important;
        color: #333 !important;
        box-sizing: border-box !important;
        position: relative !important;
        flex-shrink: 0 !important;
        order: 1 !important;
        /* Ensure it's always at the top of the card */
    }

    /* SHOW HEADER ALWAYS on mobile */
    .card:not(.hidden-nav) .mobile-only-header {
        display: flex !important;
    }

    /* Keep a translucent header strip while collapsed. */
    .card.hidden-nav {
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(10px);
    }

    /* Hide handle icon when collapsed */
    .card.hidden-nav .mobile-only-header::before {
        display: none !important;
    }

    /* .mobile-only-header::before {
        content: '';
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin-bottom: 4px;
    } */

    .mobile-header-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        align-items: stretch !important;
        height: 100% !important;
        gap: 4px !important;
    }

    .mobile-header-main-row {
        width: 100%;
        min-height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-header-main-row:focus,
    .mobile-header-main-row:focus-visible,
    .mobile-header-main-row:active {
        outline: none;
        background: transparent;
    }

    .mobile-header-nav-row {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    #mobile-title {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1rem;
        font-weight: 800;
        text-align: left;
    }

    .mobile-toggle-arrow {
        transition: transform 0.5s ease-in-out !important;
        position: static !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        z-index: 100 !important;
        cursor: pointer;
        width: 22px;
        height: 22px;
    }

    .mobile-toggle-arrow .mobile-toggle-arrow-icon {
        width: 22px;
        height: 22px;
        transform: rotate(180deg);
        transition: transform 0.5s ease-in-out !important;
    }

    /* Flip chevron when collapsed */
    .card.hidden-nav .mobile-toggle-arrow .mobile-toggle-arrow-icon {
        transform: rotate(0deg);
    }

    .mobile-chapter-menu {
        position: relative;
        flex: 0 0 auto;
    }

    .mobile-chapter-menu-btn {
        appearance: none;
        border: none;
        background: transparent;
        color: #333;
        border-radius: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        width: 26px;
        height: 26px;
        padding: 0;
        line-height: 1;
        box-shadow: none;
    }

    .mobile-chapter-menu-btn:hover {
        opacity: 0.8;
    }

    .mobile-chapter-menu-btn[aria-expanded="true"] {
        opacity: 0.7;
    }

    .mobile-chapter-menu-btn:disabled {
        opacity: 0.35;
        cursor: default;
    }

    .mobile-chapter-menu-icon {
        width: 24px;
        height: 24px;
    }

    .mobile-chapter-dropdown {
        position: absolute;
        right: 0;
        top: 100%;
        bottom: auto;
        min-width: 220px;
        max-width: 260px;
        max-height: 42vh;
        overflow-y: auto;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        z-index: 140;
    }

    .mobile-chapter-dropdown[data-direction="up"] {
        top: auto;
        bottom: 100%;
        transform-origin: bottom right;
    }

    .mobile-chapter-dropdown[data-direction="down"] {
        top: 100%;
        bottom: auto;
        transform-origin: top right;
    }

    .mobile-chapter-option {
        width: 100%;
        appearance: none;
        border: none;
        border-bottom: 1px solid #efefef;
        background: #fff;
        color: #333;
        text-align: left;
        font-size: 0.85rem;
        font-weight: 700;
        padding: 10px 12px;
        cursor: pointer;
    }

    .mobile-chapter-option:last-child {
        border-bottom: none;
    }

    .mobile-chapter-option:hover {
        background: #f6f6f6;
    }

    .mobile-chapter-option.is-empty {
        color: #666;
        cursor: default;
        font-weight: 600;
    }

    /* Grid menu moved to top via order */

    .grid-item {
        width: 100% !important;
        padding: 12px;
        box-sizing: border-box;
    }

    .grid-item .tile-label {
        font-size: 0.9rem;
    }

    .grid-item .tile-description {
        display: none;
    }

    /* Bottom Navigation Row for Mobile */
    .mobile-bottom-nav {
        display: flex;
        order: 3 !important;
        /* After content */
        justify-content: space-between;
        gap: 12px;
        align-items: center;
        padding: 12px 20px;
        background: white;
        border-top: 1px solid #f0f0f0;
        box-sizing: border-box;
    }

    .tabs-container {
        position: static;
        margin: 0;
        padding: 0;
        background: none;
        border: none;
        height: auto;
        width: auto !important;
        display: flex !important;
        flex: 1 1 0;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tabs-container::-webkit-scrollbar {
        display: none;
    }


    .tab-item {
        display: none !important;
    }

    .tab-item.back-btn {
        display: flex !important;
        background: #333 !important;
        color: white;
        padding: 10px 18px;
        border-radius: 6px;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.85rem;
        width: auto !important;
        max-width: none;
        margin: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        opacity: 1 !important;
        align-items: center;
    }

    .tab-item.back-btn::after {
        content: none;
    }

    .tab-item.back-btn::before {
        content: none;
    }

    .sublayer-arrows {
        position: static;
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 0;
        z-index: 10;
        pointer-events: auto;
    }

    .arrow-btn {
        width: 44px;
        height: 44px;
        border: none;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
    }

    .arrow-btn .icon-arrow-circle {
        width: 44px;
        height: 44px;
    }

    /* Introduction/Info area adjustment */
    .card-content {
        order: 2 !important;
        flex: 1 1 auto !important;
        min-height: 0;
        /* Between header and nav */
        overflow-y: auto;
    }

    #intro-info,
    #layer-info,
    .sublayer-details {
        padding: 20px;
    }

    .hero-image {
        height: 30vh;
    }

    .foldable-menu {
        bottom: 12vh;
        right: 5vw;
        z-index: 0;
    }
}

