Files
the-nexus/style.css
Alexander Whitestone 91bc05288d
Some checks failed
CI / validate (pull_request) Has been cancelled
feat: add rain/snow weather toggle with particle systems
Implements Three.js Points-based particle system for rain and snow.
- Rain: 3000 particles, fast vertical fall, blue-white tint
- Snow: 1500 particles, slow drift with x-axis sway, white
- Cycle button:  Weather → 🌧 Rain → ❄ Snow → repeat
- Full scene setup (renderer, camera, lighting, grid floor)
- Particles reset to top when they fall below y=0

Fixes #117
2026-03-23 23:58:32 -04:00

91 lines
1.6 KiB
CSS

/* === DESIGN SYSTEM === */
:root {
--color-bg: #0a0a1a;
--color-primary: #00ffcc;
--color-secondary: #7b2fff;
--color-accent: #ff6b35;
--color-text: #e0e0e0;
--color-text-muted: #666680;
--font-body: 'Courier New', monospace;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background: var(--color-bg);
color: var(--color-text);
font-family: var(--font-body);
overflow: hidden;
width: 100vw;
height: 100vh;
}
/* === HUD LAYOUT === */
#hud {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 10;
}
.hud-controls {
position: absolute;
top: 8px;
right: 8px;
pointer-events: all;
}
.hud-controls--left {
right: auto;
left: 8px;
}
/* === HUD BUTTON === */
.hud-btn {
background-color: rgba(0, 255, 204, 0.15);
color: var(--color-primary);
border: 1px solid var(--color-primary);
padding: 5px 10px;
border-radius: 4px;
font-size: 12px;
font-family: var(--font-body);
cursor: pointer;
transition: background-color 0.2s ease, color 0.2s ease;
white-space: nowrap;
}
.hud-btn:hover {
background-color: rgba(0, 255, 204, 0.3);
}
/* === AUDIO TOGGLE === */
#audio-toggle {
font-size: 14px;
}
#audio-toggle.muted {
background-color: rgba(102, 102, 128, 0.15);
color: var(--color-text-muted);
border-color: var(--color-text-muted);
}
/* === WEATHER TOGGLE === */
#weather-toggle[data-mode="rain"] {
background-color: rgba(153, 204, 255, 0.2);
color: #99ccff;
border-color: #99ccff;
}
#weather-toggle[data-mode="snow"] {
background-color: rgba(255, 255, 255, 0.15);
color: #ffffff;
border-color: #ffffff;
}