/* De Ward PWA: rustig, groot genoeg voor een kind, LICHT (Robins wens 12-8). */ :root { --bg: #f4f5f9; --card: #ffffff; --ink: #1b2230; --dim: #5b6472; --line: #e3e6ee; /* dunne scheiding tussen aanrakende kaarten */ --accent: #5a32e6; --on-accent: #ffffff; --bg-top: #eef0f7; --bg-bottom: #f7f8fb; --alarm: #c47a00; --ok: #2f9e52; } * { box-sizing: border-box; } /* Het hidden-attribuut wint ALTIJD. Zonder deze regel verslaat elke eigen display-regel (zoals de flex van #thread) de browser-default display:none, en dan staat een 'verborgen' overlay gewoon over de pagina heen. Dat was precies de vastzittende gespreks-overlay van 12-8. */ [hidden] { display: none !important; } body { margin: 0; padding: 16px calc(16px + env(safe-area-inset-right)) 32px calc(16px + env(safe-area-inset-left)); background: linear-gradient(var(--bg-top), var(--bg-bottom)) fixed, var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; } h1 { font-size: 1.4rem; margin: 8px 0 20px; } h2 { font-size: 1rem; margin: 24px 0 10px; color: var(--dim); font-weight: 600; } /* De hulpknop is het belangrijkste element op deze pagina en ziet er ook zo uit: vol breed, grote raakzone, geen concurrentie eromheen. */ .help button { width: 100%; padding: 18px; border: 0; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 1.1rem; font-weight: 600; } .help button:disabled { background: #d8dce6; color: var(--dim); } .help .hint { margin: 8px 2px 0; color: var(--dim); font-size: .85rem; } .list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .card { background: var(--card); border-radius: 12px; padding: 12px 14px; } .row { display: flex; align-items: center; gap: 10px; } .name { font-weight: 600; margin: 0; } .hint { color: var(--dim); font-size: .85rem; margin: 6px 0 0; } .empty { color: var(--dim); } .chip { margin-left: auto; font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: #eef0f6; color: var(--dim); } .chip.ok { background: rgba(70,194,106,.16); color: var(--ok); } .chip.away { background: rgba(239,159,39,.16); color: var(--alarm); } /* Misvormd krijgt de alarmkleur, onbereikbaar bewust NIET: niet-weten is geen misconfiguratie. Maar het is ook geen goedkeuring, dus het staat er wel. */ .note { margin: 8px 0 0; font-size: .85rem; padding: 6px 9px; border-radius: 8px; } .note.alarm { background: rgba(239,159,39,.16); color: var(--alarm); } .note.unknown { background: rgba(154,167,187,.14); color: var(--dim); } /* ── De feed ──────────────────────────────────────────────────────────── */ .post { background: var(--card); border-radius: 12px; padding: 12px 14px; border: 2px solid transparent; } .post .avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; } .post .when { margin-left: auto; color: var(--dim); font-size: .8rem; } .post .cw { color: var(--alarm); font-size: .85rem; margin: 6px 0 0; } .post .body { margin-top: 8px; overflow-wrap: anywhere; } .post .body img, .post .body video { max-width: 100%; height: auto; border-radius: 8px; } /* Waar de boei zou landen. Zichtbaar oplichten, want mikken met een vinger zonder terugkoppeling is gokken. */ .post.hover { border-color: var(--accent); } /* ── De reddingsboei ──────────────────────────────────────────────────── */ #buoy { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 76px; height: 76px; border: 0; border-radius: 50%; background: transparent; font-size: 52px; line-height: 1; /* Zonder dit vecht slepen met scrollen en verlies je hem halverwege. */ touch-action: none; cursor: grab; z-index: 50; } #buoy.dragging { cursor: grabbing; transform: scale(1.1); } dialog#help-dialog { border: 0; border-radius: 16px; padding: 18px; max-width: 420px; width: calc(100% - 32px); background: var(--card); color: var(--ink); } dialog#help-dialog::backdrop { background: rgba(0,0,0,.5); } dialog#help-dialog h2 { margin: 0 0 10px; font-size: 1.05rem; color: var(--ink); } dialog#help-dialog label { display: block; color: var(--dim); font-size: .85rem; margin-bottom: 4px; } dialog#help-dialog textarea { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #fbfbfe; color: var(--ink); padding: 8px; font: inherit; } dialog#help-dialog menu { display: flex; gap: 8px; justify-content: flex-end; margin: 14px 0 0; padding: 0; } dialog#help-dialog button { border: 0; border-radius: 10px; padding: 10px 14px; background: #eef0f6; color: var(--ink); font: inherit; } dialog#help-dialog button.primary { background: var(--accent); color: var(--on-accent); font-weight: 600; } /* Voor schermlezers, niet voor het oog. */ .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } /* ── De hemel ─────────────────────────────────────────────────────────── */ /* Ligt achter alles en draait altijd. In kaartenstand is hij decor; in berichtenstand vallen de kaarten weg en is hij de interface. */ #sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; } #app { position: relative; z-index: 1; } .topbar { display: flex; align-items: center; gap: 12px; } .topbar h1 { margin: 8px 0 20px; } .topbar #mode { margin-left: auto; border: 0; border-radius: 999px; padding: 8px 16px; background: #eef0f6; color: var(--ink); font: inherit; } /* De kaarten vallen weg, de hemel blijft: dezelfde beweging als in de app. */ body.messages-mode .help, body.messages-mode .cards { display: none; } /* ── De zwaai-hand ────────────────────────────────────────────────────── */ /* Zelfde hoek als de boei; ze wisselen elkaar af met de stand. */ #hand { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 76px; height: 76px; border: 0; border-radius: 50%; background: transparent; font-size: 52px; line-height: 1; touch-action: none; cursor: grab; z-index: 50; } #hand.dragging { cursor: grabbing; transform: scale(1.1); } /* ── Het gesprek over de hemel ────────────────────────────────────────── */ #thread { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; /* Doorschijnend: de hemel eronder blijft zichtbaar draaien, net als de glazen bubbels in de app. */ background: rgba(244, 245, 249, .78); backdrop-filter: blur(14px); } #thread header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; } #thread header h2 { margin: 0; font-size: 1.05rem; } #thread-close { border: 0; background: #eef0f6; color: var(--ink); border-radius: 10px; padding: 8px 12px; font-size: 1rem; } #thread-list { flex: 1; overflow-y: auto; padding: 8px 16px; display: flex; flex-direction: column; gap: 8px; } .bubble { max-width: 78%; padding: 10px 12px; border-radius: 14px; background: var(--card); } .bubble.out { align-self: flex-end; background: var(--accent); color: var(--on-accent); } .bubble.out .when { color: rgba(255,255,255,.7); } .bubble.wave { font-size: 1.4rem; } .bubble .when { display: block; margin-top: 4px; font-size: .7rem; color: var(--dim); } .bubble .body img { max-width: 100%; border-radius: 8px; } #thread-form { display: flex; gap: 8px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); } #thread-form input { flex: 1; border-radius: 999px; border: 1px solid var(--line); background: #fbfbfe; color: var(--ink); padding: 10px 16px; font: inherit; } #thread-form button { border: 0; border-radius: 999px; padding: 10px 18px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; } /* ── Het zwaai-paneel ─────────────────────────────────────────────────── */ dialog#wave-dialog { border: 0; border-radius: 16px; padding: 18px; max-width: 320px; width: calc(100% - 48px); background: var(--card); color: var(--ink); text-align: center; } dialog#wave-dialog::backdrop { background: rgba(0,0,0,.4); } dialog#wave-dialog h2 { margin: 0 0 12px; font-size: 1.05rem; } .wave-answers { display: grid; gap: 8px; } .wave-answers button { border: 0; border-radius: 10px; padding: 12px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; } #wave-cancel { margin-top: 10px; border: 0; background: none; color: var(--dim); font: inherit; } /* ── De vriendenkiezer achter de (+) ──────────────────────────────────── */ dialog#friends-dialog { border: 0; border-radius: 16px; padding: 18px; max-width: 380px; width: calc(100% - 48px); max-height: 70vh; overflow-y: auto; background: var(--card); color: var(--ink); } dialog#friends-dialog::backdrop { background: rgba(0,0,0,.4); } dialog#friends-dialog h2 { margin: 0 0 12px; font-size: 1.05rem; } .friend button.row { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none; color: var(--ink); padding: 4px 2px; font: inherit; cursor: pointer; } .friend .avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; } .friend .wie { display: flex; flex-direction: column; } #friends-cancel { margin-top: 12px; border: 0; background: none; color: var(--dim); font: inherit; } /* ── De composer ──────────────────────────────────────────────────────── */ .feed-head { display: flex; align-items: center; gap: 12px; } .feed-head h2 { margin: 24px 0 10px; } #compose-open { margin-left: auto; border: 0; border-radius: 999px; padding: 8px 16px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; } dialog#compose-dialog { border: 0; border-radius: 16px; padding: 16px; max-width: 480px; width: calc(100% - 32px); background: var(--card); color: var(--ink); } dialog#compose-dialog::backdrop { background: rgba(0,0,0,.5); } .compose-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .compose-head #compose-cancel { border: 0; background: #eef0f6; color: var(--ink); border-radius: 10px; padding: 8px 12px; font-size: 1rem; } .compose-head #compose-vis { flex: 1; border-radius: 10px; border: 1px solid var(--line); background: #fbfbfe; color: var(--ink); padding: 8px; font: inherit; } .compose-head .primary { border: 0; border-radius: 10px; padding: 8px 16px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; } .compose-head .primary:disabled { background: #3a3f4d; color: var(--dim); } #compose-text { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fbfbfe; color: var(--ink); padding: 10px; font: inherit; resize: vertical; } .compose-media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; } .media-chip { position: relative; display: flex; align-items: center; gap: 6px; background: #fbfbfe; border-radius: 10px; padding: 6px 8px; } .media-chip img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; } .media-chip .kind { font-size: 1.2rem; } .media-chip .name { font-size: .8rem; color: var(--dim); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .media-chip .drop { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #000; color: #fff; font-size: .75rem; line-height: 1; } .compose-tools { display: flex; align-items: center; gap: 8px; margin-top: 12px; } .compose-tools .tool { font-size: 1.4rem; cursor: pointer; padding: 4px 8px; border-radius: 10px; background: #fbfbfe; } .compose-tools .hint { margin-left: auto; } /* ── Het kaartraster: meer kolommen naarmate er ruimte is ─────────────── */ /* Robins wens (12-8): op desktop net als op mobiel en tablet MEERDERE kolommen. auto-fill met een minimum vult zelf op: één kolom op een smalle telefoon, twee op een tablet, drie of meer op een breed scherm. */ /* Masonry ZONDER tussenruimtes, zoals de Shaer-apps (Robins wens 12-8): de kaarten raken elkaar, gepakt in kolommen die naar breedte meer worden. CSS multi-column vult zelf van boven naar beneden; een dunne lijn scheidt twee aanrakende kaarten zodat ze niet in elkaar overlopen. */ .cards { column-width: 280px; column-gap: 0; column-rule: 1px solid var(--line); } .cards .post { break-inside: avoid; margin: 0; border-radius: 0; border-bottom: 1px solid var(--line); } /* De eerste kaart in elke kolom mag geen rand bovenlangs missen; de scheiding zit onderaan, dus alleen de allerlaatste in beeld valt weg. Geen probleem: de feed eindigt toch met de rand van de sectie. */ /* ── De mini-speler ───────────────────────────────────────────────────── */ #mini-player { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--card); box-shadow: 0 6px 24px rgba(20,30,60,.18); border: 1px solid var(--line); max-width: 520px; margin: 0 auto; } #mini-player #mini-toggle { border: 0; border-radius: 50%; width: 40px; height: 40px; background: var(--accent); color: var(--on-accent); font-size: 1rem; } #mini-player #mini-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #mini-player #mini-close { border: 0; background: none; color: var(--dim); font-size: 1rem; } /* ── De themakiezer ───────────────────────────────────────────────────── */ .icon-btn { border: 0; background: #eef0f6; border-radius: 999px; width: 38px; height: 38px; font-size: 1.1rem; } dialog#theme-dialog { border: 0; border-radius: 16px; padding: 18px; max-width: 320px; width: calc(100% - 48px); background: var(--card); color: var(--ink); text-align: center; } dialog#theme-dialog::backdrop { background: rgba(0,0,0,.4); } dialog#theme-dialog h2 { margin: 0 0 14px; font-size: 1.05rem; } .swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } .swatch { width: 100%; aspect-ratio: 1; border: 3px solid transparent; border-radius: 50%; cursor: pointer; } .swatch.chosen { border-color: var(--ink); } #theme-close { margin-top: 14px; border: 0; background: none; color: var(--dim); font: inherit; }