/* Body and Container Setup */
body {
    margin: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Landing Overlay */
#landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFF0;
    /* Warm Cream */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#landing-overlay h1 {
    color: #00352F;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
    padding: 0 20px;
}

#start-button {
    background-color: #00352F;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    min-width: 200px;
    min-height: 50px;
}

#start-button:active {
    transform: scale(0.95);
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(0, 53, 47, 0.15);
    border-left-color: #00352F;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-top: 20px;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   TRANSPARENT INTERACTION LAYER
   Zero-opacity, full-screen div that sits above the AR scene.
   Captures the first tap after landing to perform final media unlock.
   Removed from DOM (display:none) after first tap via JS.
───────────────────────────────────────────────────────────────────────────── */
#interaction-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 50;
    /* Above AR scene (z:0), below UI (z:10) — catches taps on camera view */
    display: none;
    /* Shown after landing overlay is dismissed */
    cursor: pointer;
}

/* Persistent UI Container */
#ui-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 35px;
    z-index: 100;
    /* Above interaction layer */
    display: none;
    /* Shown after start button click */
}

/* Icon Row */
.buttons-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    pointer-events: auto;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 10px;
}

/* Icon Button */
.icon-btn {
    background-color: #00352F;
    color: #FFFFF0;
    border: none;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s, background-color 0.15s;
    text-decoration: none;
    position: relative;
}

.icon-btn:active {
    transform: scale(0.88);
    background-color: #004d44;
}

.icon-label {
    position: absolute;
    bottom: -22px;
    font-size: 11px;
    color: #FFFFF0;
    background-color: #00352F;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

/* Hide MindAR's default HUD */
.mindar-ui-loading {
    display: none !important;
}