/* css/space.css - 3D space entry button and overlay */

#enter-space {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
    font-family: monospace;
    font-size: 14px;
    color: var(--accent-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    letter-spacing: 1px;
    text-shadow: 0 0 4px var(--glow-color), 0 0 12px var(--glow-color);
    transition: text-shadow 0.2s;
}

#enter-space:hover {
    text-shadow: 0 0 6px var(--glow-color), 0 0 20px var(--glow-color), 0 0 40px var(--glow-color);
}

@media (max-width: 768px) {
    #enter-space { display: none !important; }
}

/* Solid backdrop sitting below the CSS3D and WebGL layers.
   Prevents the real 2D website from showing through transparent WebGL pixels at screen edges. */
#space-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #14141a;
}

/* Three.js canvas override — paper.js sets z-index: 1000 on its elements, so we go above */
#space-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1001 !important;
    background: none !important;
}

#space-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1003;
    pointer-events: none;
}

/* Top strip — click anywhere here to re-enter navigation mode.
   Positioned away from the iframe area so it doesn't block interaction. */
#space-click-to-start {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 14px;
    color: rgba(240, 240, 240, 0.55);
    pointer-events: auto;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.35);
    text-shadow: 0 0 8px var(--glow-color);
    letter-spacing: 0.5px;
}

#space-crosshair {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.65);
    font-size: 20px;
    font-family: monospace;
    user-select: none;
    pointer-events: none;
    line-height: 1;
}

#space-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 12px;
    color: rgba(240, 240, 240, 0.35);
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

#space-exit {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--accent-color);
    background: none;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    text-shadow: 0 0 4px var(--glow-color), 0 0 12px var(--glow-color);
    transition: text-shadow 0.2s;
}

#space-exit:hover {
    text-shadow: 0 0 6px var(--glow-color), 0 0 20px var(--glow-color), 0 0 40px var(--glow-color);
}
