:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}@font-face{font-family:Unifont;src:url(/fonts/unifont.woff) format("woff");font-weight:400;font-style:normal;font-display:swap}:root{--neon-pink: #ff2b9d;--neon-blue: #00f3ff;--dark-bg: #0a0a0f}body{margin:0;padding:0;background-color:var(--dark-bg);font-family:Courier New,monospace;color:var(--neon-blue);min-height:100vh;display:flex;justify-content:center;align-items:center}.app-container{width:100%;max-width:2000px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.5rem;padding:1rem;height:100vh;box-sizing:border-box}.title{font-size:1.2rem;margin:0;color:var(--neon-pink);letter-spacing:.2rem;text-align:center;position:relative;animation:crt-flicker 8s infinite;font-family:Unifont,monospace}.title:before,.title:after{content:"ITOA: Image to ASCII Converter";position:absolute;left:0;right:0;background:var(--dark-bg)}.title:before{text-shadow:2px 0 var(--neon-blue);animation:glitch-1 6s infinite linear alternate-reverse}.title:after{text-shadow:-2px 0 var(--neon-pink);animation:glitch-2 4s infinite linear alternate-reverse}@keyframes crt-flicker{0%{text-shadow:0 0 5px var(--neon-pink)}3%{text-shadow:0 0 10px var(--neon-pink),0 0 20px var(--neon-pink)}4%{text-shadow:none}6%{text-shadow:0 0 10px var(--neon-pink),0 0 20px var(--neon-pink)}7%{text-shadow:0 0 5px var(--neon-pink)}8%{text-shadow:none}9%{text-shadow:0 0 5px var(--neon-pink)}10%{text-shadow:none}11%{text-shadow:0 0 5px var(--neon-pink)}50%{text-shadow:0 0 5px var(--neon-pink)}51%{text-shadow:none}52%{text-shadow:0 0 5px var(--neon-pink)}to{text-shadow:0 0 5px var(--neon-pink)}}@keyframes glitch-1{0%{clip-path:inset(20% -6px 70% 0)}10%{clip-path:inset(80% -6px 5% 0)}20%{clip-path:inset(20% -6px 85% 0)}30%{clip-path:inset(0% -6px 50% 0)}40%{clip-path:inset(60% -6px 30% 0)}50%{clip-path:inset(10% -6px 85% 0)}60%{clip-path:inset(40% -6px 43% 0)}70%{clip-path:inset(5% -6px 95% 0)}80%{clip-path:inset(70% -6px 20% 0)}90%{clip-path:inset(20% -6px 60% 0)}to{clip-path:inset(60% -6px 40% 0)}}@keyframes glitch-2{0%{clip-path:inset(40% 0 60% -6px)}10%{clip-path:inset(20% 0 80% -6px)}20%{clip-path:inset(60% 0 20% -6px)}30%{clip-path:inset(80% 0 5% -6px)}40%{clip-path:inset(10% 0 90% -6px)}50%{clip-path:inset(50% 0 30% -6px)}60%{clip-path:inset(30% 0 60% -6px)}70%{clip-path:inset(70% 0 20% -6px)}80%{clip-path:inset(15% 0 80% -6px)}90%{clip-path:inset(40% 0 50% -6px)}to{clip-path:inset(80% 0 20% -6px)}}.subtitle{font-size:.9rem;margin:0 0 .5rem;color:var(--neon-blue);text-shadow:0 0 5px var(--neon-blue);text-align:center}.drop-zone{width:min(80vh,80vw);height:min(80vh,80vw);border:2px dashed var(--neon-blue);border-radius:8px;display:flex;justify-content:center;align-items:center;transition:all .3s ease;position:relative;overflow:hidden;padding:10px;margin:0 auto;margin-top:1rem;box-sizing:border-box;max-width:95vw;max-height:70vh}.drop-zone:hover{border-color:var(--neon-pink);box-shadow:0 0 20px #00f3ff33}.dragging{border-color:red!important;box-shadow:0 0 30px #ff00004d!important;animation:glitch .3s infinite}.drop-text{display:flex;flex-direction:column;align-items:center;gap:1rem;font-size:1.5rem;color:var(--neon-blue);font-family:Unifont,monospace}.small-text{font-size:.8rem;opacity:.7}.ascii-output{padding:0;margin:var(--ascii-margin-y, 0) var(--ascii-margin-x, 0);font-family:Courier New,monospace;font-size:var(--ascii-font-size, 12px);line-height:var(--ascii-line-height, 12px);display:block;text-align:center;overflow:hidden;box-sizing:border-box;white-space:pre;transform:none;position:relative}.ascii-output::-webkit-scrollbar{display:none}.ascii-output::-webkit-scrollbar-track,.ascii-output::-webkit-scrollbar-thumb,.ascii-output::-webkit-scrollbar-thumb:hover{display:none}.ascii-output:not(:has(div)){white-space:pre;color:var(--neon-pink)}.ascii-output div{white-space:nowrap}.ascii-output span{display:inline-block}@keyframes glitch{0%{transform:translate(0)}20%{transform:translate(-2px,2px)}40%{transform:translate(-2px,-2px)}60%{transform:translate(2px,2px)}80%{transform:translate(2px,-2px)}to{transform:translate(0)}}.controls{display:flex;gap:1rem;margin-bottom:1rem;flex-wrap:wrap;justify-content:center}.size-controls{display:flex;gap:.5rem}.control-btn{background:transparent;border:1px solid var(--neon-blue);color:var(--neon-blue);padding:.5rem 1rem;cursor:pointer;font-family:Unifont,monospace;font-size:.9rem;transition:all .3s ease;position:relative;text-transform:uppercase;min-width:120px;height:36px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.control-btn:not(.active):hover{border-color:var(--neon-pink);color:var(--neon-pink);position:relative}.control-btn:not(.active):hover:before{content:attr(data-text);position:absolute;left:0;right:0;text-align:center;animation:text-flicker 2s linear infinite}@keyframes text-flicker{0%,to{opacity:0;text-shadow:none}15%{opacity:1;text-shadow:-1px 0 var(--neon-blue),1px 0 var(--neon-pink)}17%{opacity:0;text-shadow:none}20%{opacity:1;text-shadow:1px 0 var(--neon-blue),-1px 0 var(--neon-pink),0 0 20px rgba(255,43,157,.5)}22%{opacity:0;text-shadow:none}35%{opacity:1;text-shadow:-1px 0 var(--neon-pink),1px 0 var(--neon-blue),0 0 20px rgba(0,243,255,.5)}37%{opacity:0;text-shadow:none}40%{opacity:1;text-shadow:1px 0 var(--neon-pink),-1px 0 var(--neon-blue)}42%{opacity:0;text-shadow:none}85%{opacity:1;text-shadow:-1px 0 var(--neon-blue),1px 0 var(--neon-pink),0 0 20px rgba(255,43,157,.5)}87%{opacity:0;text-shadow:none}}.control-btn.active{background-image:linear-gradient(to right,red,red 16.67%,#f90 16.67%,#f90 33.33%,#3f0 33.33%,#3f0 50%,#0fc 50%,#0fc 66.67%,#09f 66.67%,#09f 83.33%,#f0f 83.33%,#f0f);background-size:24px 100%;animation:pixel-rainbow 2s linear infinite;color:var(--dark-bg);border:none;text-shadow:none}@keyframes pixel-rainbow{0%{background-position:0 0}to{background-position:24px 0}}.control-btn:focus{outline:none}.control-btn:active{background-color:var(--neon-pink);color:var(--dark-bg)}.control-btn:disabled{opacity:.5;cursor:not-allowed;border-color:var(--neon-blue);color:var(--neon-blue)}.control-btn:disabled:hover{border-color:var(--neon-blue);color:var(--neon-blue)}.control-btn[data-text=Upload]:hover{border-color:#0f0;color:#0f0;background:linear-gradient(180deg,#00ff001a,#00ff000d);text-shadow:0 0 5px #00ff00;position:relative;overflow:hidden}.control-btn[data-text=Upload]:hover:after{content:"10101110101";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(180deg,transparent 0%,rgba(0,255,0,.2) 50%,transparent 100%);animation:matrix-rain 1s linear infinite;font-family:monospace;font-size:10px;line-height:8px;opacity:.5;color:#0f0;pointer-events:none}@keyframes matrix-rain{0%{transform:translateY(-100%)}to{transform:translateY(100%)}}.control-btn[data-text=Save]:not(:disabled):hover{border-color:#f60;color:#f60;text-shadow:0 0 5px #ff6600;position:relative;overflow:hidden;background:#ff66001a}.control-btn[data-text=Save]:not(:disabled):hover:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,transparent 0%,#ff6600 20%,#ff6600 80%,transparent 100%);animation:crt-scan 1.5s linear infinite;opacity:1;box-shadow:0 0 10px #f60,0 0 20px #f60;pointer-events:none}.control-btn[data-text=Save]:not(:disabled):hover:after{content:"SAVE";position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;text-shadow:2px 0 #ff0000,-2px 0 #00ffff;animation:crt-glitch .05s infinite;background:none;z-index:2}@keyframes crt-scan{0%{transform:translateY(-2px)}to{transform:translateY(38px)}}@keyframes crt-glitch{0%,to{clip-path:inset(50% 0 50% 0);transform:translate(0)}25%{clip-path:inset(20% 0 80% 0);transform:translate(-1px)}50%{clip-path:inset(80% 0 20% 0);transform:translate(1px)}75%{clip-path:inset(30% 0 70% 0);transform:translate(-1px)}}@media (max-width: 768px){.title{animation:mobile-title-color 4s infinite}.title:before,.title:after{display:none}@keyframes mobile-title-color{0%,to{color:var(--neon-pink);text-shadow:0 0 5px var(--neon-pink)}50%{color:var(--neon-blue);text-shadow:0 0 5px var(--neon-blue)}}}@media (min-width: 769px){.title{animation:crt-flicker 8s infinite}.title:before,.title:after{content:"ITOA: Image to ASCII Converter";position:absolute;left:0;right:0;background:var(--dark-bg)}.title:before{text-shadow:2px 0 var(--neon-blue);animation:glitch-1 6s infinite linear alternate-reverse}.title:after{text-shadow:-2px 0 var(--neon-pink);animation:glitch-2 4s infinite linear alternate-reverse}}.drop-zone{transition:all .3s ease}.drop-zone.zoomed{cursor:zoom-out}.drop-zone.zoomed .ascii-output{transform:scale(var(--zoom-scale, 1));transform-origin:center;transition:transform .3s ease}.control-btn[data-text=Zoom]{font-size:1.1rem;padding:.5rem;display:flex;align-items:center;justify-content:center;min-width:60px;background:var(--neon-blue);color:var(--dark-bg);border:none;font-weight:700}.control-btn[data-text=Zoom]:hover{background:var(--neon-blue);color:var(--dark-bg)}.control-btn[data-text=Zoom]:not(.active):hover:before{display:none}.drop-zone.zoomed{overflow:auto;cursor:move}.drop-zone.zoomed::-webkit-scrollbar{width:8px;height:8px}.drop-zone.zoomed::-webkit-scrollbar-track{background:var(--dark-bg)}.drop-zone.zoomed::-webkit-scrollbar-thumb{background:var(--neon-blue);border-radius:4px}.drop-zone.zoomed::-webkit-scrollbar-thumb:hover{background:var(--neon-pink)}.drop-zone.zoomed{overflow:auto;cursor:move;scrollbar-width:none;-ms-overflow-style:none}.drop-zone.zoomed::-webkit-scrollbar{display:none}.drop-zone.zoomed::-webkit-scrollbar-track,.drop-zone.zoomed::-webkit-scrollbar-thumb,.drop-zone.zoomed::-webkit-scrollbar-thumb:hover{display:none}.drop-zone.zoomed .ascii-output{cursor:move;max-width:none;max-height:none}.drop-zone.zoomed{overflow:auto;cursor:move;scrollbar-width:none;-ms-overflow-style:none;padding:0}.drop-zone.zoomed .ascii-output{cursor:move;max-width:none;max-height:none;transform:scale(var(--zoom-scale, 1));transform-origin:0 0;transition:transform .3s ease;padding:20px;display:inline-block;margin:0}.drop-zone[class*=zoomed]{overflow:auto;cursor:move;scrollbar-width:none;-ms-overflow-style:none}.drop-zone:not(.zoomed) .ascii-output{cursor:zoom-in}.credit{font-family:Unifont,monospace;color:var(--neon-blue);opacity:.7;margin-bottom:1.5rem;margin-top:0;font-size:.9rem}.credit a{color:var(--neon-pink);text-decoration:none;transition:all .3s ease}.credit a:hover{opacity:1;text-shadow:0 0 5px var(--neon-pink)}.char-controls{display:flex;gap:.5rem;margin-bottom:1rem;flex-wrap:wrap;justify-content:center;align-items:center}.char-preset-select{background:var(--dark-bg);border:1px solid var(--neon-blue);color:var(--neon-blue);padding:.5rem;font-family:Unifont,monospace;font-size:.9rem;cursor:pointer;transition:all .3s ease;border-radius:0;min-width:100px}.char-preset-select:hover{border-color:var(--neon-pink);color:var(--neon-pink)}.char-preset-select:focus{outline:none;box-shadow:0 0 10px #00f3ff4d}.char-input{background:var(--dark-bg);border:1px solid var(--neon-blue);color:var(--neon-blue);padding:.5rem;font-family:Courier New,monospace;font-size:.9rem;transition:all .3s ease;min-width:200px;flex:1;max-width:400px}.char-input:hover{border-color:var(--neon-pink)}.char-input:focus{outline:none;border-color:var(--neon-pink);box-shadow:0 0 10px #ff2b9d4d}@media (max-width: 768px){.char-controls{flex-direction:column;width:100%;max-width:400px}.char-preset-select,.char-input{width:100%;max-width:none}}
