/* ============================================================ TERMINAL PORTFOLIO — CSS Golden CRT aesthetic with flicker, bloom, scanlines ============================================================ */ :root { --gold: #e8c200; --gold-bright: #ffe060; --gold-glow: #ffcf00; --gold-dim: #a88a18; --gold-dark: #5c4800; --bg: #060400; --bg-surface: #0e0900; --font: 'Inconsolata', 'Courier New', monospace; --item-h: 28px; } * { box-sizing: border-box; margin: 0; padding: 0; } html, body { width: 100%; height: 100%; overflow: hidden; background: #000; } body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--gold); background: radial-gradient(ellipse at 50% 35%, #1a1100 0%, #090600 45%, #000 100%); position: relative; } /* ── Scanlines overlay ─────────────────────────────────────── */ body::before { content: ''; position: fixed; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.10) 2px, rgba(0, 0, 0, 0.10) 3px); pointer-events: none; z-index: 900; } /* ── CRT vignette ──────────────────────────────────────────── */ body::after { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, 0.65) 100%); pointer-events: none; z-index: 901; } /* ── Terminal window ───────────────────────────────────────── */ #terminal { position: fixed; top: 14px; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; border: 3px solid var(--gold); background: radial-gradient(ellipse at 50% 28%, var(--bg-surface) 0%, var(--bg) 100%); z-index: 10; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7); } /* ── Title bar ─────────────────────────────────────────────── */ #titlebar { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px; border-bottom: 2px solid var(--gold-dim); font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-glow); flex-shrink: 0; background: rgba(255, 183, 0, 0.025); user-select: none; } #current-path { color: var(--gold-dim); letter-spacing: 1px; font-weight: 400; font-size: 13px; } /* ── Terminal body ─────────────────────────────────────────── */ #terminal-body { flex: 1; overflow: hidden; position: relative; } .view { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 8px 16px; } .view.hidden { display: none; } /* ── Tree view ─────────────────────────────────────────────── */ #tree-view { /* populated by JS */ } .tree-prompt { color: var(--gold-glow); font-weight: 700; flex-shrink: 0; white-space: pre; font-size: 15px; margin-bottom: 4px; user-select: none; } .tree-sep { border: none; border-top: 1px solid var(--gold-dim); flex-shrink: 0; margin: 3px 0; opacity: 0.6; } .tree-items-wrap { flex: 1; overflow: hidden; position: relative; } .tree-items-inner { position: absolute; top: 0; left: 0; right: 0; /* translateY controlled by JS for scrolling */ } .tree-item { height: var(--item-h); line-height: var(--item-h); padding: 0 8px; white-space: pre; cursor: pointer; color: var(--gold); font-size: 15px; user-select: none; transition: background 0.05s; } .tree-item.item-dir { color: var(--gold-bright); font-weight: 700; } .tree-item.item-parent { color: var(--gold-dim); } .tree-item:hover:not(.selected) { background: rgba(200, 164, 0, 0.10); } .tree-item.selected { background: var(--gold); color: #000 !important; text-shadow: none !important; animation: none; font-weight: 700; } .tree-item.item-dir.selected { background: var(--gold-bright); } .tree-scroll-info { flex-shrink: 0; font-size: 13px; color: var(--gold-dim); padding: 0 8px; height: var(--item-h); line-height: var(--item-h); user-select: none; } /* ── Page view ─────────────────────────────────────────────── */ #page-header { flex-shrink: 0; color: var(--gold-glow); font-weight: 700; font-size: 15px; white-space: pre; margin-bottom: 4px; user-select: none; } #page-scroll-area { flex: 1; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; border-top: 1px solid var(--gold-dim); padding-top: 8px; } #page-scroll-area::-webkit-scrollbar { display: none; } #page-content { color: var(--gold); font-size: 15px; line-height: 1.75; padding-bottom: 20px; } /* Markdown content styling */ #page-content h1 { font-size: 1.5em; color: var(--gold-bright); text-transform: uppercase; letter-spacing: 2px; border-bottom: 2px double var(--gold-dim); padding-bottom: 6px; margin-bottom: 16px; } #page-content h2 { font-size: 1.2em; color: var(--gold-glow); letter-spacing: 1px; margin: 20px 0 10px; } #page-content h3 { font-size: 1.05em; color: var(--gold-bright); margin: 14px 0 6px; } #page-content p { margin-bottom: 10px; line-height: 1.65; } #page-content ul, #page-content ol { padding-left: 22px; margin-bottom: 10px; } #page-content li { margin-bottom: 3px; } #page-content strong { color: var(--gold-bright); font-weight: 700; } #page-content em { color: var(--gold-glow); font-style: italic; } #page-content hr { border: none; border-top: 1px solid var(--gold-dim); margin: 14px 0; opacity: 0.5; } #page-content a { color: var(--gold-bright); text-decoration: underline; } #page-content code { background: rgba(200, 164, 0, 0.12); border: 1px solid var(--gold-dark); padding: 1px 4px; font-family: var(--font); color: var(--gold-bright); font-size: 0.92em; } #page-content pre { background: rgba(0, 0, 0, 0.45); border: 1px solid var(--gold-dim); padding: 10px; overflow-x: auto; margin-bottom: 12px; } #page-content pre code { background: none; border: none; padding: 0; color: var(--gold-glow); } #page-content blockquote { border-left: 3px solid var(--gold-dim); padding-left: 14px; color: var(--gold-glow); margin: 12px 0; font-style: italic; } /* ── Text bloom animation ──────────────────────────────────── */ @keyframes text-bloom { 0%, 100% { text-shadow: 0 0 7px var(--gold), 0 0 14px rgba(232, 194, 0, 0.45); } 50% { text-shadow: 0 0 10px var(--gold-bright), 0 0 22px var(--gold-glow), 0 0 38px rgba(255, 220, 60, 0.28); } } /* ── Status bar ────────────────────────────────────────────── */ #statusbar { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px; border-top: 2px solid var(--gold-dim); font-size: 13px; letter-spacing: 1px; color: var(--gold); flex-shrink: 0; background: rgba(255, 183, 0, 0.02); user-select: none; } .key { color: var(--gold-bright); font-weight: 700; cursor: pointer; padding: 2px 7px; border: 1px solid var(--gold); letter-spacing: 0; transition: background 0.1s; } .key:hover { background: rgba(200, 164, 0, 0.2); } /* ── Rectangular cursor block ──────────────────────────────── */ #cursor-block { position: fixed; width: 9px; height: 18px; background: var(--gold-bright); pointer-events: none; z-index: 2000; opacity: 0; transform: translate(0, -9px); } #cursor-block.active { animation: cursor-blink 0.52s step-end infinite; } @keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } } /* ── Boot screen ───────────────────────────────────────────── */ #boot-screen { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 30px 40px; z-index: 50; font-size: 16px; line-height: 2; color: var(--gold); } #boot-screen.hidden { display: none; } .boot-line { white-space: pre; } .boot-ok { color: var(--gold-bright); } .boot-dim { color: var(--gold-dim); } /* ── Selection ─────────────────────────────────────────────── */ ::selection { background: rgba(200, 164, 0, 0.35); text-shadow: none; } /* ID elements */