
/* ANNOTATION: Version 1.9.9 Stylesheet (Complete) */
/* CHANGE: Added styles for the footer and footer links. */

body { background-color: #1a1a1a; color: #00ff00; font-family: 'Press Start 2P', cursive; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; font-size: 14px; overflow: hidden; }
body.crt-effect-on::after { content: " "; display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06)); background-size: 100% 4px, 3px 100%; z-index: 2; pointer-events: none; }
.container { width: 95%; max-width: 1200px; height: 95vh; padding: 20px; border: 2px solid #00ff00; box-shadow: 0 0 15px #00ff00; background-color: #0d0d0d; display: flex; flex-direction: column; }
header { text-align: center; margin-bottom: 20px; text-shadow: 0 0 5px #00ff00; flex-shrink: 0; }
header p { color: #55ff55; font-size: 12px; }
.main-content { display: flex; gap: 20px; flex-grow: 1; min-height: 0; }
.controls { flex-basis: 250px; flex-shrink: 0; display: flex; flex-direction: column; gap: 15px; overflow-y: auto; padding-right: 10px; }
fieldset { border: 1px solid #00ff00; padding: 10px; transition: opacity 0.3s ease; }
fieldset:disabled { opacity: 0.5; border-color: #555; }
fieldset:disabled legend { color: #777; }
legend { color: #ffff55; padding: 0 5px; }
.tool-select label, .toggle-switch label { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; cursor: pointer; }
.pattern-preview { display: inline-block; width: 16px; height: 16px; border: 1px solid #00ff00; background-color: #0d0d0d; image-rendering: pixelated; }
.pattern-preview.solid { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1" viewBox="0 0 1 1"><rect fill="%2300ff00" width="1" height="1"/></svg>'); }
.pattern-preview.dither50 { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2" viewBox="0 0 2 2"><rect fill="%2300ff00" width="1" height="1"/><rect fill="%2300ff00" x="1" y="1" width="1" height="1"/></svg>'); }
.pattern-preview.dither25 { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2" viewBox="0 0 2 2"><rect fill="%2300ff00" width="1" height="1"/></svg>'); }
.pattern-preview.linesH { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"><path d="M 0 1 H 4" stroke-width="1" stroke="%2300ff00"/></svg>'); background-size: 4px; }
.pattern-preview.crosshatch { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"><path d="M 0 1 H 4 M 1 0 V 4" stroke-width="1" stroke="%2300ff00"/></svg>'); background-size: 4px; }
select { width: 100%; background-color: #0d0d0d; color: #00ff00; border: 1px solid #00ff00; padding: 5px; font-family: inherit; font-size: 12px; }
select:focus { outline: 1px solid #ffff55; }
.color-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 5px; }
.color-swatch { width: 100%; padding-bottom: 100%; border: 2px solid #555555; cursor: pointer; transition: transform 0.2s; position: relative;}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.selected { border-color: #ffff55; box-shadow: 0 0 10px #ffff55; }
input[type="range"] { width: 100%; }
.button-group { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.undo-redo-group { display: flex; gap: 10px; }
button { background-color: #555555; color: #ffffff; border: 2px solid #ffffff; padding: 10px; font-family: inherit; cursor: pointer; text-transform: uppercase; width: 100%; }
button:disabled { background-color: #333; color: #777; border-color: #555; cursor: not-allowed; }
.effects-buttons { display: flex; gap: 10px; margin-bottom: 10px; }
#clearBtn:hover:not(:disabled) { background-color: #ff5555; color: #0d0d0d; border-color: #ff5555; }
#saveBtn:hover:not(:disabled) { background-color: #55ff55; color: #0d0d0d; border-color: #55ff55; }
#glitchBtn { background-color: #5555FF; margin-bottom: 0; }
#glitchBtn:hover:not(:disabled) { background-color: #FFFF55; color: #0d0d0d; border-color: #FFFF55; }
#corruptBtn { background-color: #aa0000; margin-bottom: 0; }
#corruptBtn:hover:not(:disabled) { background-color: #ff5555; color: #0d0d0d; border-color: #ff5555; }
#asciiBtn { background-color: #33aa33; margin-top: 10px; }
#asciiBtn:hover:not(:disabled) { background-color: #55ff55; color: #0d0d0d; border-color: #55ff55; }
#undoBtn:hover:not(:disabled), #redoBtn:hover:not(:disabled) { background-color: #00AAAA; color: #0d0d0d; border-color: #00AAAA; }
.canvas-wrapper { flex-grow: 1; min-width: 0; border: 2px solid #00aaaa; box-shadow: 0 0 10px #00aaaa inset; aspect-ratio: 640 / 480; }
#designCanvas { background-color: #000; cursor: crosshair; display: block; width: 100%; height: 100%; }
#designCanvas.eraser-cursor { cursor: cell; }
#designCanvas.basic-cursor { cursor: text; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 20, 0, 0.75); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-hidden { display: none; }
.modal-content { background-color: #0d0d0d; border: 2px solid #00ff00; padding: 20px; width: 90%; max-width: 800px; box-shadow: 0 0 25px #00ff00; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.modal-header h3 { margin: 0; text-shadow: 0 0 5px #00ff00; }
.close-btn { background: none; border: none; color: #ff5555; font-size: 20px; cursor: pointer; padding: 0; width: auto; }
.ascii-output { background-color: #000; border: 1px solid #00aaaa; padding: 10px; height: 400px; overflow: auto; white-space: pre; color: #00ff00; font-family: 'Courier New', Courier, monospace; line-height: 1; font-size: 10px; margin-bottom: 15px; }
#copyAsciiBtn { background-color: #00AAAA; }
.basic-input { width: 100%; height: 350px; background-color: #000; border: 1px solid #00aaaa; color: #00ff00; font-family: 'Courier New', Courier, monospace; font-size: 16px; padding: 10px; margin-bottom: 15px; resize: none; box-sizing: border-box; }
.basic-input:focus { outline: 1px solid #ffff55; }
.basic-buttons { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#runBasicBtn { background-color: #55ff55; color: #0d0d0d; border-color: #55ff55; order: 2; }
#cmdRefBtn { background-color: #00AAAA; color: #0d0d0d; border-color: #00AAAA; order: 1; }
.error-log { color: #ff5555; font-size: 12px; flex-grow: 1; text-align: right; }
.color-tooltip { position: absolute; bottom: 105%; left: 50%; transform: translateX(-50%); background-color: #ffff55; color: #0d0d0d; padding: 2px 5px; font-size: 10px; border: 1px solid #0d0d0d; white-space: nowrap; z-index: 10; pointer-events: none; display: none; }
.color-swatch:hover .color-tooltip { display: block; }
.command-ref-content { height: 50vh; overflow-y: auto; background-color: #000; border: 1px solid #00aaaa; padding: 15px; }
.command-ref-content h4 { color: #ffff55; text-shadow: 0 0 5px #ffff55; border-bottom: 1px solid #555; padding-bottom: 5px; margin-top: 20px; margin-bottom: 10px; }
.command-ref-content h4:first-child { margin-top: 0; }
.command-ref-content dl { margin: 0 0 15px 0; }
.command-ref-content dt { color: #55ff55; font-family: 'Courier New', Courier, monospace; font-size: 14px; margin-bottom: 5px; }
.command-ref-content dd { color: #bbb; font-size: 12px; margin-left: 20px; line-height: 1.4; }

/* FOOTER STYLES */
footer {
    border-top: 1px solid #00ff00;
    margin-top: 10px;
    padding-top: 10px;
    text-align: center;
    font-size: 10px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

footer a {
    color: #55ff55;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

footer a:hover {
    color: #ffff55;
    text-shadow: 0 0 8px #ffff55;
}

footer span {
    color: #00aaaa;
}