Light Clock Triangle
by Chantal Roth
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Elastic Universe: The Math of Time Dilation</title>
<style>
:root { --bg: #050b14; --panel: #0f1929; --text: #c0cbe3; --accent: #4cc2ff; --c-light: #ffd700; --c-matter: #ff5c8d; --grid: #1a2639; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Segoe UI', Roboto, sans-serif; overflow: hidden; display: flex; flex-direction: column; height: 100vh; }
header { padding: 15px 20px; background: var(--panel); border-bottom: 1px solid #2a3b55; display: flex; justify-content: space-between; align-items: center; z-index: 20; }
h1 { margin: 0; font-size: 20px; color: #fff; letter-spacing: 0.5px; }
.sub { font-size: 13px; color: #6b81a8; margin-top: 4px; }
.main-container { flex: 1; position: relative; display: flex; justify-content: center; align-items: center; background: radial-gradient(circle at center, #0b1524 0%, #050b14 100%); overflow: hidden; }
canvas { box-shadow: 0 0 40px rgba(0,0,0,0.5); border-radius: 4px; background: transparent; cursor: grab; }
canvas:active { cursor: grabbing; }
/* Controls Sidebar */
.controls { width: 340px; background: var(--panel); padding: 20px; border-left: 1px solid #2a3b55; display: flex; flex-direction: column; gap: 15px; z-index: 10; overflow-y: auto; box-shadow: -5px 0 20px rgba(0,0,0,0.3); }
.control-group { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #6b81a8; margin-bottom: 4px; }
input[type=range] { width: 100%; cursor: pointer; accent-color: var(--accent); }
select { background: #1e2f4a; color: #fff; border: 1px solid #364e75; padding: 8px; border-radius: 4px; width: 100%; cursor: pointer; }
.readout { display: flex; justify-content: space-between; font-family: monospace; color: var(--accent); font-size: 14px; }
.toggle-btn {
background:...