@font-face { font-family: Minecraftia; src: url("./assets/font/Minecraftia-Regular.ttf") format("truetype"); } /* Theme Variables */ :root { --bg: #181818; --panel: #202020; --card: #202020; --muted: #aaa; --accent: #f39c12; --glass: rgba(243, 156, 18, 0.1); --glass-2: rgba(243, 156, 18, 0.05); --text: #eee; --button-text: #000; --radius: 12px; --font-family: 'Inter', ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial; --repeat-gradient: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 48px); } /* Purple Magic Theme */ [data-theme="purple"] { --bg: #1a0d2b; --panel: #0e1627; --card: #2b1a47; --muted: #b8a4d2; --accent: #a100a1; --glass: rgba(161, 0, 161, 0.1); --glass-2: rgba(161, 0, 161, 0.05); --text: #e6d7f8; --button-text: #2b0047; } /* Classic Dark Theme */ [data-theme="dark"] { --bg: #071021; --card: #0e1627; --muted: #b0b8c4; --accent: #36b37e; --glass: rgba(255, 255, 255, 0.1); --glass-2: rgba(255, 255, 255, 0.02); --text: #e6eef6; --button-text: #042018; } /* Light Theme */ [data-theme="light"] { --bg: #f0f4f8; --panel: #ffffff; --card: #ffffff; --muted: #6b7280; --accent: #10b981; --glass: rgba(0, 0, 0, 0.05); --glass-2: rgba(0, 0, 0, 0.03); --text: #1f2937; --button-text: #ffffff; } /* Nether Theme */ [data-theme="nether"] { --bg: #2f0b0b; --panel: #3f1616; --card: #3f1616; --muted: #d4a29a; --accent: #e25822; --glass: rgba(255, 69, 0, 0.1); --glass-2: rgba(255, 69, 0, 0.05); --text: #f4d7d3; --button-text: #3f1208; } * { box-sizing: border-box; } /* Font Classes */ .font-default { font-family: var(--font-family); } .font-pressstart { font-family: 'Press Start 2P', cursive; font-size: clamp(14px, 2.5vw, 16px); } .font-vt323 { font-family: 'VT323', monospace; font-size: clamp(16px, 2.8vw, 18px); } body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--text); } a { color: var(--accent); text-decoration: none; } .color-row.dragging { opacity: 0.5; background: rgba(255, 255, 255, 0.1); } /* Hero Content */ .center { width: 100%; margin: 0 auto; padding: clamp(5px, 5vw, 40px) clamp(12px, 2vw, 20px); } /* About Hero */ .about-hero { text-align: center; padding: clamp(5px, 2vw, 10px) clamp(12px, 2vw, 20px); background: var(--repeat-gradient); } .about-hero h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: clamp(12px, 2vw, 20px); width: 100%; } .about-hero p { font-size: clamp(0.9rem, 2.5vw, 1.1rem); max-width: 600px; margin: 0 auto clamp(16px, 3vw, 30px); color: var(--muted); } .cta-buttons { display: flex; gap: clamp(12px, 2vw, 16px); justify-content: center; flex-wrap: wrap; } .cta-button { padding: clamp(10px, 1.5vw, 12px) clamp(16px, 2.5vw, 24px); font-size: clamp(1rem, 2vw, 1.1rem); font-weight: 600; color: var(--text); background: var(--accent); border: none; border-radius: 6px; cursor: pointer; transition: background 0.3s ease, transform 0.2s ease; } .cta-button:hover, .cta-button:focus { transform: translateY(-5px); box-shadow: 0 5px 15px var(--glass); } .cta-button.secondary { background: var(--card); border: 1px solid var(--glass); color: var(--text); } /* Responsive Design */ .theme { display: flex; justify-content: center; align-items: center; background: var(--card); color: var(--text); border: 1px solid var(--glass); border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); z-index: 1001; width: 30%; margin: auto; margin-bottom: 15px; text-align: center; font-size: 22px; } .theme select { background: var(--panel); color: var(--text); border-radius: 6px; padding: 8px 12px; font-size: 1rem; cursor: pointer; } /* Main app container */ .app { display: grid; gap: 20px; margin-top: 20px; max-width: 1200px; margin-left: auto; margin-right: auto; } /* Remove side margins on mobile for full-width layout */ @media (max-width: 899px) { .app { max-width: none; margin-left: 0; margin-right: 0; padding-left: 12px; /* Optional: small inner padding for content breathing room */ padding-right: 12px; } } /* Also ensure body has no margin */ body { margin: 0; padding: 0; } /* Top textarea - full width */ .textarea { grid-column: 1 / -1; /* Span all columns */ } /* Two-column layout for left and right */ @media (min-width: 900px) { .app { grid-template-columns: 1fr 1fr; /* 50% left, 50% right */ } .left { grid-column: 1; } .right { grid-column: 2; } } /* On mobile/small screens: stack everything vertically */ @media (max-width: 899px) { .app { grid-template-columns: 1fr; } .left, .right { grid-column: 1 / -1; } } /* Optional: make preview larger and more prominent */ .right .preview { font-size: 2.5em; min-height: 250px; margin-bottom: 20px; } /* Ensure sections inside left/right don't add extra gaps */ .left>.section, .right>.section { margin-bottom: 18px; } /* Fix underline position (was too low) */ .underline-span::after { bottom: -2px; /* Better alignment with text */ } .strikethrough-span::after { top: 50%; } .section { background: var(--panel); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; } label { display: block; margin-bottom: 8px; font-weight: bold; } textarea, .custom-select, input[type=text], input[type=number] { width: 100%; padding: 10px; background: #111; color: #fff; border: none; border-radius: 8px; font-family: inherit; resize: vertical; } button { background: var(--accent); color: var(--button-text); border: none; border-radius: 8px; padding: 10px 16px; cursor: pointer; margin: 6px 6px 6px 0; font-weight: bold; } button.active { opacity: 0.85; } button.small { padding: 6px 10px; font-size: 0.9em; } /* Custom tooltip on hover */ .format { position: relative; cursor: pointer; } .format:hover::after { content: attr(data-tooltip); /* We'll use data-tooltip instead of title */ position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 0.9em; white-space: nowrap; z-index: 100; margin-bottom: 10px; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; pointer-events: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); } .format:hover::before { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: #333; margin-bottom: 2px; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; } .format:hover::after, .format:hover::before { opacity: 1; visibility: visible; } .flex { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; } .flex-group { flex: 1; min-width: 280px; } .color-row { display: flex; align-items: center; gap: 8px; background: #111; padding: 8px; border-radius: 8px; margin-bottom: 8px; } .color-picker { width: 50px; height: 50px; border: none; border-radius: 8px; cursor: pointer; } .color-hex { width: 90px; padding: 8px; background: #000; color: #0f0; border: none; border-radius: 6px; font-family: monospace; } .preview { font-size: 2.2em; padding: 40px 20px; border-radius: 12px; min-height: 200px; max-height: 400px; text-align: center; font-family: 'Minecraft', Minecraftia, monospace; position: relative; overflow: auto; background-size: cover; background-position: center; transition: background 0.3s; /* Fix wrapping issues */ white-space: pre-wrap; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; max-width: 100%; width: 100%; box-sizing: border-box; } /* Interactive Gradient Bar */ .gradient-bar-container { position: relative; height: 32px; background: #111; border-radius: 12px; margin-top: 12px; padding: 4px 0; cursor: default; touch-action: none; } .gradient-bar { position: absolute; top: 4px; left: 0; width: 100%; height: 24px; border-radius: 12px; pointer-events: none; } .stop-knob { position: absolute; width: 24px; height: 24px; background: white; border: 3px solid #000; border-radius: 50%; top: 4px; transform: translateX(-50%); cursor: grab; z-index: 10; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); } .stop-knob:active { cursor: grabbing; } /* Background Selector Thumbnails */ .bg-selector { display: grid; grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)); gap: 12px; margin-top: 10px; } .bg-option { height: 55px; border: 4px solid transparent; border-radius: 12px; cursor: pointer; background-size: cover; background-position: center; transition: border 0.2s, transform 0.2s; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } .bg-option:hover { transform: scale(1.05); } .bg-option.selected { border-color: var(--accent); box-shadow: 0 0 15px rgba(243, 156, 18, 0.6); } .bg-option.transparent { background: repeating-conic-gradient(#ccc 0% 25%, #fff 25% 50%) 50% / 20px 20px; } .presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; } .preset-btn { padding: 10px; font-size: 0.9em; background: #333; color: #fff; } .preset-btn:hover { background: #555; } #more-presets { display: none; } #colors-container { cursor: grab; } .advanced-toggle { background: var(--accent); color: var(--button-text); font-size: 1.2em; width: 100%; text-align: left; padding: 14px; margin-bottom: 0; border-radius: 12px 12px 0 0; } .advanced-content { background: var(--panel); padding: 18px; border-radius: 0 0 12px 12px; margin-bottom: 18px; display: none; } .sub-section { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #333; } .sub-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; } .sub-title { color: var(--accent); font-size: 1.1em; margin-bottom: 12px; } .placeholder-hint { font-size: 0.85em; color: var(--muted); background: #111; padding: 10px; border-radius: 8px; margin-top: 8px; line-height: 1.4; } .output { background: #111; color: #fff; padding: 12px; border-radius: 8px; white-space: pre-wrap; word-break: break-all; min-height: 100px; font-family: monospace; position: relative; max-height: 170px; overflow-y: auto; } .char-count { font-size: 0.9em; color: var(--muted); text-align: right; margin-top: 5px; } .warning { color: #ff6666; font-weight: bold; } #custom-format-section { display: none; } /* Solid underline & strikethrough */ .underline-span { position: relative; text-decoration: none; } .underline-span::after { content: ''; position: absolute; left: 0; bottom: 20px; width: 100%; height: 3px; background: currentColor; } .strikethrough-span { position: relative; } .strikethrough-span::after { content: ''; position: absolute; left: 0; top: 40%; width: 100%; height: 3px; background: currentColor; transform: translateY(-50%); } /* Real Obfuscated (Magic) Effect */ .obfuscated-span { position: relative; display: inline-block; overflow: hidden; visibility: hidden; } .obfuscated-span::after { content: attr(data-rand); position: absolute; left: 0; top: 0; visibility: visible; color: inherit; font: inherit; } /* Enhanced SEO Content Section */ .seo-content { margin: 60px auto; max-width: 1100px; padding: 0 20px; } .content-wrapper { line-height: 1.8; font-size: 1.05rem; } .intro-banner { text-align: center; padding: 60px 20px; background: linear-gradient(135deg, var(--panel) 0%, var(--card) 100%); border-radius: 16px; margin-bottom: 60px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); } .banner-title { font-size: clamp(2rem, 2.5vw, 1.5rem); margin: 0 0 24px 0; color: var(--accent); } .banner-desc { font-size: 1.2rem; max-width: 800px; margin: 0 auto 32px; opacity: 0.9; } .gradient-preview { font-size: 0.8rem; font-family: Minecraftia, monospace; margin: 40px 0; padding: 20px; background: #000; color: #0f0; border-radius: 12px; display: block; /* Changed from inline-block */ width: 100%; max-width: 100%; box-sizing: border-box; word-break: break-all; /* Critical: breaks long §x sequences */ overflow-wrap: break-word; /* Extra safety */ text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); line-height: 1.4; /* Improves readability if it wraps */ } .preview-caption { font-style: italic; opacity: 0.8; margin-top: 16px; } .section-title { font-size: clamp(1.8rem, 4vw, 2.4rem); text-align: center; margin: 60px 0 32px; color: var(--accent); } .fun-fact { background: var(--glass); padding: 20px; border-radius: 12px; margin: 32px 0; border-left: 4px solid var(--accent); font-style: italic; } .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin: 40px 0; } .feature-item { background: var(--panel); padding: 24px; border-radius: 12px; text-align: center; transition: transform 0.3s ease; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } .feature-item:hover { transform: translateY(-8px); } .feature-icon { font-size: 3rem; margin-bottom: 16px; } .feature-item h4 { margin: 0 0 12px 0; color: var(--accent); } .steps-list { counter-reset: step; padding-left: 0; list-style: none; max-width: 800px; margin: 40px auto; } .steps-list li { padding-left: 60px; position: relative; margin-bottom: 24px; font-size: 1.1rem; } .steps-list li::before { content: counter(step); counter-increment: step; position: absolute; left: 0; top: 0; background: var(--accent); color: var(--button-text); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; } .examples-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin: 50px 0; } .example-card { background: var(--panel); padding: 24px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); text-align: center; } .example-card h4 { color: var(--accent); margin-bottom: 16px; } .gradient-code { display: block; background: #000; color: #0f0; padding: 20px; border-radius: 8px; font-family: monospace; font-size: 0.95rem; margin: 20px 0; border: 1px solid #333; overflow-x: auto; overflow-y: hidden; white-space: pre-wrap; /* Allows wrapping at natural points */ word-wrap: break-word; /* Breaks long words if needed */ overflow-wrap: anywhere; /* Modern, aggressive wrapping */ max-width: 100%; width: 100%; box-sizing: border-box; line-height: 1.5; } /* Mobile-specific: smaller font + more aggressive wrapping */ @media (max-width: 768px) { .gradient-code { font-size: 0.8rem; padding: 16px; white-space: pre-wrap; word-break: break-all; /* Force break anywhere on very small screens */ overflow-x: auto; -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */ } .theme { width: auto; } } /* Subtle scrollbar styling (optional but nice) */ .gradient-code::-webkit-scrollbar { height: 8px; } .gradient-code::-webkit-scrollbar-track { background: #111; border-radius: 4px; } .gradient-code::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; } /* Optional: Add a subtle scrollbar style for better look */ .gradient-code::-webkit-scrollbar { height: 8px; } .gradient-code::-webkit-scrollbar-track { background: #111; border-radius: 4px; } .gradient-code::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; } .example-card p { opacity: 0.9; font-size: 0.95rem; } .faq { margin: 60px 0; max-width: 900px; margin-left: auto; margin-right: auto; } .faq details { margin-bottom: 16px; background: var(--panel); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); } .faq summary { padding: 20px; font-weight: 600; cursor: pointer; font-size: 1.1rem; } .faq summary::marker { color: var(--accent); } .faq p { padding: 0 20px 20px; margin: 0; } .tips-list { background: var(--panel); padding: 32px; border-radius: 12px; margin: 40px 0; border-left: 4px solid var(--accent); } .tips-list li { margin-bottom: 16px; padding-left: 8px; font-size: 1.05rem; } .closing-paragraph { text-align: center; font-size: 1.3rem; margin: 80px auto; max-width: 800px; line-height: 1.6; opacity: 0.95; } /* Mobile adjustments */ @media (max-width: 768px) { .intro-banner { padding: 40px 16px; margin-bottom: 40px; } .gradient-preview { font-size: 0.8rem; padding: 16px; } .gradient-code { font-size: 0.9rem; padding: 16px; } .feature-grid, .examples-grid { grid-template-columns: 1fr; } } .usecases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin: 50px 0; } .usecase-card { background: var(--panel); padding: 32px 24px; border-radius: 16px; text-align: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--glass); } .usecase-card:hover { transform: translateY(-10px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); } .usecase-icon { font-size: 3.5rem; margin-bottom: 20px; display: block; } .usecase-card h4 { color: var(--accent); margin: 0 0 16px 0; font-size: 1.3rem; } .usecase-card p { opacity: 0.9; line-height: 1.6; } /* Mobile: stack cards */ @media (max-width: 768px) { .usecases-grid { grid-template-columns: 1fr; gap: 20px; } .usecase-card { padding: 24px 20px; } .usecase-icon { font-size: 3rem; } }