@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    /* Ensure there is enough space to scroll comfortably to get the 3D scroll effect */
    height: 400vh;
}

#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none; /* Let clicks pass if needed, though threejs handles raycast on window */
}

/* Scroll Indicator Styling */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    animation: floatBounce 2.5s infinite ease-in-out;
    transition: opacity 0.6s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
}

.scroll-indicator.hidden {
    opacity: 0;
}

@keyframes floatBounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, -15px);
    }
}

/* Boiler Room Style Submenu Overlay */
#boiler-submenu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 50;
    
    /* The severe translucent glass blur */
    background: rgba(10, 0, 0, 0.45);
    backdrop-filter: blur(25px) grayscale(20%);
    -webkit-backdrop-filter: blur(25px) grayscale(20%);
    
    /* Industrial themed borders */
    border: 3px solid var(--theme-color, #ff1111);
    border-left: 10px solid var(--theme-color, #ff1111);
    
    padding: 3rem;
    box-shadow: 0 0 50px var(--theme-glow, rgba(255, 0, 0, 0.15)), inset 0 0 30px rgba(0, 0, 0, 0.9);
    max-width: 500px;
    width: 85%;
    
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    opacity: 1;
    visibility: visible;
}

#boiler-submenu.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.9);
}

.boiler-header {
    font-size: 0.8rem;
    color: var(--theme-color, #ff1111);
    letter-spacing: 5px;
    margin-bottom: 20px;
    font-weight: bold;
}

.boiler-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 var(--theme-color, #ff1111);
}

.boiler-content {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid var(--theme-border-color, rgba(255, 17, 17, 0.3));
    padding-top: 20px;
}

#close-boiler {
    width: 100%;
    background: var(--theme-color, #ff1111);
    color: #000;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 2px;
}

#close-boiler:hover {
    background: #ffffff;
    color: var(--theme-color, #ff1111);
    box-shadow: 0 0 20px var(--theme-hover-glow, rgba(255, 17, 17, 0.6));
}

#boiler-submenu.theme-red {
    --theme-color: #ff1111;
    --theme-glow: rgba(255, 0, 0, 0.15);
    --theme-border-color: rgba(255, 17, 17, 0.3);
    --theme-hover-glow: rgba(255, 17, 17, 0.6);
}

#boiler-submenu.theme-green {
    --theme-color: #00aa00;
    --theme-glow: rgba(0, 170, 0, 0.15);
    --theme-border-color: rgba(0, 170, 0, 0.3);
    --theme-hover-glow: rgba(0, 170, 0, 0.6);
}

#boiler-submenu.theme-blue {
    --theme-color: #0088ff;
    --theme-glow: rgba(0, 136, 255, 0.15);
    --theme-border-color: rgba(0, 136, 255, 0.3);
    --theme-hover-glow: rgba(0, 136, 255, 0.6);
}
