* { margin: 0; padding: 0; box-sizing: border-box; } body { background: #1c1c1c; color: #c9a96e; font-family: 'Courier New', Courier, monospace; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 48px 24px; } h1 { font-size: 1.1rem; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 36px; opacity: 0.7; } .controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; width: 100%; max-width: 900px; } textarea#text-input { flex: 1; min-width: 200px; background: #111; border: 1px solid #c9a96e55; color: #c9a96e; padding: 11px 16px; font-family: 'Courier New', monospace; font-size: 1rem; outline: none; transition: border-color 0.2s; resize: vertical; min-height: 46px; line-height: 1.4; } textarea#text-input::placeholder { color: #c9a96e44; } textarea#text-input:focus { border-color: #c9a96e; } select { background-color: #111; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpolyline points='0,0 5,6 10,0' fill='none' stroke='%23c9a96e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; border: 1px solid #c9a96e55; color: #c9a96e; padding: 11px 36px 11px 14px; font-family: 'Courier New', monospace; font-size: 0.9rem; outline: none; cursor: pointer; -webkit-appearance: none; appearance: none; } select:focus { border-color: #c9a96e; } .btn { background: transparent; border: 1px solid #c9a96e; color: #c9a96e; padding: 11px 22px; font-family: 'Courier New', monospace; font-size: 0.9rem; letter-spacing: 2px; cursor: pointer; transition: background 0.15s; } .btn:hover { background: #c9a96e22; } .btn.secondary { border-color: #c9a96e55; opacity: 0.7; } .btn.secondary:hover { background: #c9a96e11; opacity: 1; } .font-size-row { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 900px; margin-bottom: 20px; } .font-size-row label { font-size: 0.8rem; letter-spacing: 1px; opacity: 0.6; white-space: nowrap; } input[type="range"] { flex: 1; max-width: 200px; accent-color: #c9a96e; cursor: pointer; } .font-size-row span { font-size: 0.85rem; opacity: 0.7; min-width: 30px; } #output-wrapper { width: 100%; max-width: 100%; background: #111; border: 1px solid #c9a96e22; overflow-x: auto; min-height: 220px; position: relative; } #output-wrapper.flashed::after { content: attr(data-flash-msg); position: absolute; top: 16px; right: 20px; font-size: 0.75rem; letter-spacing: 2px; color: #c9a96e; animation: fadeOut 1.5s forwards; } @keyframes fadeOut { 0% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; } } pre#ascii-output { color: #c9a96e; font-family: 'Courier New', Courier, monospace; line-height: 1.15; white-space: pre; padding: 36px 32px; display: block; } #status { font-size: 0.78rem; letter-spacing: 1px; opacity: 0.45; margin-top: 18px; } .export-options { display: flex; align-items: center; gap: 20px; width: 100%; max-width: 900px; margin-bottom: 20px; } .color-field { display: flex; align-items: center; gap: 9px; } .color-field label { font-size: 0.8rem; letter-spacing: 1px; opacity: 0.6; white-space: nowrap; } input[type="color"] { -webkit-appearance: none; appearance: none; width: 36px; height: 36px; border: 1px solid #c9a96e55; background: none; cursor: pointer; padding: 2px; border-radius: 0; } input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; } input[type="color"]::-webkit-color-swatch { border: none; } .transparent-label { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; letter-spacing: 1px; opacity: 0.6; cursor: pointer; white-space: nowrap; user-select: none; } .transparent-label:hover { opacity: 1; } .transparent-label input[type="checkbox"] { accent-color: #c9a96e; cursor: pointer; width: 13px; height: 13px; } input[type="color"].disabled { opacity: 0.25; pointer-events: none; } .scale-btn { background: transparent; border: 1px solid #c9a96e55; color: #c9a96e; padding: 5px 12px; font-family: 'Courier New', monospace; font-size: 0.8rem; cursor: pointer; opacity: 0.6; transition: background 0.15s; } .scale-btn:hover { background: #c9a96e11; opacity: 1; } .scale-btn.active { background: #c9a96e22; border-color: #c9a96e; opacity: 1; } /* Custom font dropdown */ .custom-select { position: relative; } .select-btn { background-color: #111; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpolyline points='0,0 5,6 10,0' fill='none' stroke='%23c9a96e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; border: 1px solid #c9a96e55; color: #c9a96e; padding: 11px 36px 11px 14px; font-family: 'Courier New', monospace; font-size: 0.9rem; outline: none; cursor: pointer; text-align: left; white-space: nowrap; min-width: 160px; } .select-btn:focus { border-color: #c9a96e; } .dropdown-list { display: none; position: absolute; top: 100%; left: 0; min-width: 100%; background: #111; border: 1px solid #c9a96e55; z-index: 50; max-height: 280px; overflow-y: auto; } .dropdown-list.open { display: block; } .font-search-wrap { padding: 6px 8px; border-bottom: 1px solid #c9a96e22; position: sticky; top: 0; background: #111; z-index: 1; } #font-search { width: 100%; background: transparent; border: none; border-bottom: 1px solid #c9a96e44; color: #c9a96e; font-family: 'Courier New', monospace; font-size: 0.8rem; padding: 4px 2px; outline: none; } #font-search::placeholder { color: #c9a96e44; } .dropdown-item.hidden { display: none; } .no-font-results { padding: 8px 14px; font-size: 0.8rem; opacity: 0.4; font-family: 'Courier New', monospace; color: #c9a96e; } body.light .font-search-wrap { background: #fff; border-color: #7a5c1e22; } body.light #font-search { border-color: #7a5c1e44; color: #7a5c1e; } body.light #font-search::placeholder { color: #7a5c1e44; } body.light .no-font-results { color: #7a5c1e; } .dropdown-item { padding: 8px 14px; cursor: pointer; color: #c9a96e; font-family: 'Courier New', monospace; font-size: 0.85rem; white-space: nowrap; } .dropdown-item:hover, .dropdown-item.selected { background: #c9a96e22; } .font-preview-panel { display: none; position: absolute; left: calc(100% + 8px); top: 0; background: #111; border: 1px solid #c9a96e55; padding: 14px 16px; z-index: 51; min-width: 220px; max-width: 340px; pointer-events: none; } .font-preview-panel.visible { display: block; } .font-preview-panel .preview-label { font-size: 0.7rem; letter-spacing: 2px; opacity: 0.5; margin-bottom: 8px; } #font-preview-art { font-size: 5px; line-height: 1.15; color: #c9a96e; white-space: pre; overflow: hidden; } /* Light mode — custom dropdown */ body.light .select-btn { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpolyline points='0,0 5,6 10,0' fill='none' stroke='%237a5c1e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); border-color: #7a5c1e55; color: #7a5c1e; } body.light .select-btn:focus { border-color: #7a5c1e; } body.light .dropdown-list { background: #fff; border-color: #7a5c1e55; } body.light .dropdown-item { color: #7a5c1e; } body.light .dropdown-item:hover, body.light .dropdown-item.selected { background: #7a5c1e22; } body.light .font-preview-panel { background: #fff; border-color: #7a5c1e55; } body.light #font-preview-art { color: #7a5c1e; } /* Scrollbar inside dropdown */ .dropdown-list::-webkit-scrollbar { width: 4px; } .dropdown-list::-webkit-scrollbar-track { background: #111; } .dropdown-list::-webkit-scrollbar-thumb { background: #c9a96e44; } #history-nav { display: flex; align-items: center; gap: 10px; margin-top: 10px; } .hist-btn { background: transparent; border: 1px solid #c9a96e55; color: #c9a96e; font-family: 'Courier New', monospace; font-size: 0.85rem; padding: 4px 12px; cursor: pointer; } .hist-btn:hover { background: #c9a96e22; } .hist-btn:disabled { opacity: 0.2; cursor: default; } #history-pos { font-size: 0.78rem; opacity: 0.5; letter-spacing: 1px; min-width: 48px; text-align: center; } body.light .hist-btn { border-color: #7a5c1e55; color: #7a5c1e; } body.light .hist-btn:hover { background: #7a5c1e22; } #shortcuts { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; opacity: 0.35; } #shortcuts span { font-size: 0.72rem; letter-spacing: 0.5px; display: flex; align-items: center; gap: 3px; } kbd { font-family: 'Courier New', monospace; font-size: 0.68rem; border: 1px solid currentColor; padding: 1px 4px; border-radius: 2px; line-height: 1.4; } body.light #shortcuts { opacity: 0.4; } /* Color presets */ #preset-swatches { display: flex; gap: 6px; flex-wrap: wrap; } .preset-swatch { width: 32px; height: 32px; border: 1px solid transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: 'Courier New', monospace; font-size: 11px; font-weight: bold; transition: transform 0.1s, border-color 0.1s; flex-shrink: 0; } .preset-swatch:hover { transform: scale(1.15); } .preset-swatch.active { border-color: white; outline: 1px solid rgba(255,255,255,0.5); } /* Export dropdown */ .export-dropdown { position: relative; } .export-menu { display: none; position: absolute; top: 100%; right: 0; background: #111; border: 1px solid #c9a96e55; z-index: 60; min-width: 140px; padding: 6px 0; } .export-menu.open { display: block; } .export-section-label { font-size: 0.65rem; letter-spacing: 2px; opacity: 0.4; padding: 4px 14px 2px; font-family: 'Courier New', monospace; color: #c9a96e; } .export-item { display: flex; justify-content: space-between; align-items: center; width: 100%; background: transparent; border: none; color: #c9a96e; font-family: 'Courier New', monospace; font-size: 0.85rem; padding: 7px 14px; cursor: pointer; text-align: left; } .export-item:hover { background: #c9a96e22; } .export-hint { font-size: 0.65rem; opacity: 0.45; letter-spacing: 0.5px; } .export-divider { border-top: 1px solid #c9a96e22; margin: 6px 0; } /* Light mode */ body.light .export-menu { background: #fff; border-color: #7a5c1e55; } body.light .export-section-label { color: #7a5c1e; } body.light .export-item { color: #7a5c1e; } body.light .export-item:hover { background: #7a5c1e22; } body.light .export-divider { border-color: #7a5c1e22; } /* Theme toggle button */ #theme-toggle { position: fixed; top: 16px; right: 20px; background: transparent; border: 1px solid #c9a96e55; color: #c9a96e; padding: 6px 14px; font-family: 'Courier New', monospace; font-size: 0.75rem; letter-spacing: 2px; cursor: pointer; opacity: 0.6; transition: opacity 0.15s; z-index: 100; } #theme-toggle:hover { opacity: 1; } #focus-btn { position: fixed; top: 16px; right: 82px; background: transparent; border: 1px solid #c9a96e55; color: #c9a96e; padding: 6px 14px; font-family: 'Courier New', monospace; font-size: 0.75rem; letter-spacing: 2px; cursor: pointer; opacity: 0.6; transition: opacity 0.15s; z-index: 100; } #focus-btn:hover { opacity: 1; } body.light #focus-btn { border-color: #7a5c1e55; color: #7a5c1e; } body.focus-mode .controls, body.focus-mode .font-size-row, body.focus-mode .export-options, body.focus-mode #settings-panel, body.focus-mode #history-nav, body.focus-mode #status, body.focus-mode #shortcuts, body.focus-mode h1 { display: none !important; } body.focus-mode #focus-btn { opacity: 1; letter-spacing: 1px; right: 20px; } body.focus-mode #theme-toggle { right: 86px; } /* ── Settings panel ───────────────────────── */ #settings-btn.active { border-color: #c9a96eaa; opacity: 1; } #settings-panel { display: none; grid-template-columns: repeat(3, 1fr); gap: 20px 32px; width: 100%; max-width: 900px; padding: 20px 24px; border: 1px solid #c9a96e22; background: rgba(0,0,0,0.25); margin-bottom: 20px; box-sizing: border-box; } #settings-panel.open { display: grid; } .settings-col { display: flex; flex-direction: column; gap: 9px; } .sc-label { font-size: 0.6rem; letter-spacing: 2px; opacity: 0.35; padding-bottom: 5px; border-bottom: 1px solid #c9a96e18; margin-top: 6px; } .sc-label:first-child { margin-top: 0; } .sc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .sc-key { font-size: 0.72rem; letter-spacing: 1px; opacity: 0.5; min-width: 72px; white-space: nowrap; } .sc-val { font-size: 0.8rem; opacity: 0.6; min-width: 28px; } .sc-row input[type="range"] { flex: 1; min-width: 50px; max-width: 110px; } .sc-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0 0 0; } .sc-sub input[type="range"] { flex: 1; min-width: 50px; max-width: 110px; } body.light #settings-panel { background: rgba(245,240,232,0.6); border-color: #7a5c1e22; } body.light .sc-label { border-color: #7a5c1e18; } body.light .sc-key { color: #7a5c1e; } body.light #settings-btn.active { border-color: #7a5c1eaa; } @media (max-width: 900px) { #settings-panel { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 560px) { #settings-panel { grid-template-columns: 1fr; } } /* Light mode overrides */ body.light { background: #f5f0e8; color: #7a5c1e; } body.light #theme-toggle { border-color: #7a5c1e55; color: #7a5c1e; } body.light textarea#text-input { background: #fff; border-color: #7a5c1e55; color: #7a5c1e; } body.light textarea#text-input::placeholder { color: #7a5c1e44; } body.light textarea#text-input:focus { border-color: #7a5c1e; } body.light select { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpolyline points='0,0 5,6 10,0' fill='none' stroke='%237a5c1e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); border-color: #7a5c1e55; color: #7a5c1e; } body.light select:focus { border-color: #7a5c1e; } body.light select option { background: #fff; color: #7a5c1e; } body.light .btn { border-color: #7a5c1e; color: #7a5c1e; } body.light .btn:hover { background: #7a5c1e22; } body.light .btn.secondary { border-color: #7a5c1e55; } body.light .btn.secondary:hover { background: #7a5c1e11; } body.light input[type="range"] { accent-color: #7a5c1e; } body.light input[type="color"] { border-color: #7a5c1e55; } body.light .transparent-label input[type="checkbox"] { accent-color: #7a5c1e; } body.light .scale-btn { border-color: #7a5c1e55; color: #7a5c1e; } body.light .scale-btn:hover { background: #7a5c1e11; } body.light .scale-btn.active { background: #7a5c1e22; border-color: #7a5c1e; } body.light #output-wrapper { background: #fafaf5; border-color: #7a5c1e22; } body.light #output-wrapper.flashed::after { color: #7a5c1e; } body.light pre#ascii-output { color: #7a5c1e; } body.light #output-wrapper::-webkit-scrollbar-track { background: #fafaf5; } body.light #output-wrapper::-webkit-scrollbar-thumb { background: #7a5c1e44; } /* Scrollbar */ #output-wrapper::-webkit-scrollbar { height: 4px; } #output-wrapper::-webkit-scrollbar-track { background: #111; } #output-wrapper::-webkit-scrollbar-thumb { background: #c9a96e44; } /* Bookmarks dropdown */ .bm-save-row { display: flex; gap: 6px; padding: 8px 10px; align-items: center; } #bm-name-input { flex: 1; background: transparent; border: none; border-bottom: 1px solid #c9a96e44; color: #c9a96e; font-family: 'Courier New', monospace; font-size: 0.78rem; padding: 3px 2px; outline: none; min-width: 0; } #bm-name-input::placeholder { color: #c9a96e44; } .bm-save-btn { background: transparent; border: 1px solid #c9a96e55; color: #c9a96e; font-family: 'Courier New', monospace; font-size: 0.72rem; padding: 3px 8px; cursor: pointer; letter-spacing: 1px; white-space: nowrap; } .bm-save-btn:hover { background: #c9a96e22; } .bm-item { display: flex; align-items: center; padding: 0 6px 0 14px; } .bm-item-name { flex: 1; background: transparent; border: none; color: #c9a96e; font-family: 'Courier New', monospace; font-size: 0.82rem; padding: 6px 0; cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; } .bm-item-name:hover { opacity: 0.7; } .bm-del-btn { background: transparent; border: none; color: #c9a96e; font-size: 0.7rem; padding: 4px 6px; cursor: pointer; opacity: 0.3; flex-shrink: 0; } .bm-del-btn:hover { opacity: 1; } .bm-empty { padding: 8px 14px 10px; font-size: 0.75rem; opacity: 0.35; font-family: 'Courier New', monospace; color: #c9a96e; } /* Utility color buttons */ .color-util-btn { background: transparent; border: 1px solid #c9a96e55; color: #c9a96e; font-family: 'Courier New', monospace; font-size: 0.72rem; padding: 4px 9px; cursor: pointer; letter-spacing: 0.5px; white-space: nowrap; opacity: 0.7; } .color-util-btn:hover { background: #c9a96e22; opacity: 1; } body.light .color-util-btn { border-color: #7a5c1e55; color: #7a5c1e; } body.light .color-util-btn:hover { background: #7a5c1e22; } body.light #fill-char-input { border-color: #7a5c1e55; color: #7a5c1e; } body.light #bm-name-input { border-color: #7a5c1e44; color: #7a5c1e; } body.light #bm-name-input::placeholder { color: #7a5c1e44; } body.light .bm-save-btn { border-color: #7a5c1e55; color: #7a5c1e; } body.light .bm-save-btn:hover { background: #7a5c1e22; } body.light .bm-item-name { color: #7a5c1e; } body.light .bm-del-btn { color: #7a5c1e; } body.light .bm-empty { color: #7a5c1e; } /* Mobile responsive */ @media (max-width: 640px) { body { padding: 32px 14px; } .controls { gap: 8px; } .select-btn { min-width: 120px; } .font-size-row { flex-wrap: wrap; gap: 8px; } .font-size-row label { min-width: 80px; } .font-size-row input[type="range"] { max-width: none; flex: 1; min-width: 80px; } .export-options { flex-wrap: wrap; gap: 12px; } .font-preview-panel { display: none !important; } #theme-toggle { padding: 5px 10px; font-size: 0.65rem; } #shortcuts { display: none; } } /* All Fonts modal */ #all-fonts-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 200; overflow-y: auto; padding: 40px 24px; } #all-fonts-overlay.open { display: block; } #all-fonts-header { display: flex; align-items: center; justify-content: space-between; max-width: 960px; margin: 0 auto 28px; } #all-fonts-title { font-size: 0.8rem; letter-spacing: 3px; opacity: 0.5; } #all-fonts-close { background: transparent; border: 1px solid #c9a96e55; color: #c9a96e; font-family: 'Courier New', monospace; font-size: 0.8rem; padding: 5px 14px; cursor: pointer; letter-spacing: 1px; } #all-fonts-close:hover { background: #c9a96e22; } #all-fonts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; max-width: 960px; margin: 0 auto; } .af-card { border: 1px solid #c9a96e22; padding: 14px 16px 12px; cursor: pointer; transition: border-color 0.15s, background 0.15s; position: relative; overflow: hidden; } .af-card:hover { border-color: #c9a96e88; background: #c9a96e08; } .af-card.af-current { border-color: #c9a96e; } .af-card-label { font-size: 0.65rem; letter-spacing: 2px; opacity: 0.4; margin-bottom: 10px; } .af-card-art { font-family: 'Courier New', Courier, monospace; font-size: 4px; line-height: 1.15; white-space: pre; color: #c9a96e; overflow: hidden; max-height: 80px; } .af-loading { font-size: 0.7rem; opacity: 0.3; font-family: 'Courier New', monospace; color: #c9a96e; } body.light #all-fonts-overlay { background: rgba(255,255,255,0.92); } body.light #all-fonts-close { border-color: #7a5c1e55; color: #7a5c1e; } body.light #all-fonts-close:hover { background: #7a5c1e22; } body.light .af-card { border-color: #7a5c1e22; } body.light .af-card:hover { border-color: #7a5c1e88; background: #7a5c1e08; } body.light .af-card.af-current { border-color: #7a5c1e; } body.light .af-card-label { color: #7a5c1e; } body.light .af-card-art { color: #7a5c1e; } body.light .af-loading { color: #7a5c1e; } body.light #all-fonts-title { color: #7a5c1e; }