/* === Blackwall Theme v3 by Fanx404 === */

:root {
    --color-background: #080a0c;
    --color-text: #c5c7d3;
    --color-primary: #f3e600;
    --color-secondary: #00aaff;
    --color-error: #ff003c;
    --font-mono: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
}

/* --- Base & Resets --- */
body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-mono);
    margin: 0;
    padding: 2rem;
    overflow-x: hidden;
}

/* --- Abyss & Noise Effects --- */
.abyss-gradient {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background: linear-gradient(to bottom, transparent 0%, var(--color-background) 80%);
    pointer-events: none;
    z-index: 1000;
}

body::before { /* Scanlines */
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.04) 1px, transparent 2px);
    pointer-events: none;
    z-index: 10000;
    opacity: 0.5;
}

body::after { /* Noise */
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiGAAABCFBMVEUDAAAgICAgICB1dXV1dXV1dXVwcHAAAAAWFhYAAABWVlYAAAAAAAB1dXV1dXVwcHAAAAAgICAAAAAgICAAAAAgICAAAAAgICB1dXV1dXV1dXVwcHAAAAAgICAAAAAgICAAAAAgICAAAAAWFhYAAABWVlYAAAAAAAB1dXV1dXVwcHAAAAAgICAAAAAgICAAAAAgICAAAAAgICB1dXV1dXV1dXVwcHAAAAAgICAAAAAgICB1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXVwcHAAAAAgICAAAAAgICB1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXVwcHAAAAAgICAAAAAgICB1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXVwcHAAAAAgICB1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXVwcHCAgIBfX18AAABqamqkpKSioqKhoaEhISEhISEhISEBAQEAAAABAQEAAAAAAAAAAAAAAAAAAAAsT1FAAAAAW3RSTlMAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRkdISUpLTE1OT1BSU1RVVldYWVpbXF1eX2Znb3CVg/3+A18N6AAAARBJREFUeNrt1EtOAkEUxvEFrgJ3d3d3d3d3d8/9C0RERNoiAtd/4PbmA3g53r55M/vhmb05T/NIIQYAx7MizLAsy7Isy5O0o2z/jL5O07R5Gzbt1EURN2zbtm1b15Zt2/Zt2/btm3//o/4NogBwvi6LsqyINMmyjKso2zbLsizLsiTN2jYt0zR5h2/b5u1a5u0GDOM0z/MMz/Esj/I0z/M8z3M8z7M8y/M8j3M8y3M8y3I8yzM8y3M8yzI8z/Msz/I8z/I8z3M8z7M8z/M8z7M8z/M8z7M8z/M8z/M8z/M8z/M8z/M8z/M8z/M8z/M8z/M8z/M8z/M8z/M8z/M8z/M8z3M8z/M8T3M8z/P8z/P8/wPzAz4ARe3wIbwAAAAASUVORK5CYII=');
    pointer-events: none;
    z-index: 9999;
    animation: noise 0.5s steps(2, end) infinite;
    opacity: 0.1; /* Reduced opacity */
}

@keyframes noise {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3%, -5%); }
  20% { transform: translate(-8%, 3%); }
  30% { transform: translate(4%, -12%); }
  40% { transform: translate(-3%, 15%); }
  50% { transform: translate(-8%, 5%); }
  60% { transform: translate(8%, 0%); }
  70% { transform: translate(0%, 8%); }
  80% { transform: translate(2%, 18%); }
  90% { transform: translate(-5%, 5%); }
}

/* --- Wall & Text Effects --- */
#wall-container {
    text-align: justify;
    word-break: break-all;
    padding-bottom: 100px; /* Space for the footer */
    position: relative; /* For inner absolute positioned elements if needed */
}

#wall-container p {
    font-size: 0.8rem;
    line-height: 1.3;
    margin: 0 0 1em 0;
    color: #33000a;
    animation: text-pulse 15s infinite alternate;
    transition: color 1s, transform 0.1s, opacity 0.5s; /* Added opacity transition */
}

@keyframes text-pulse {
    from { color: #2a0008; }
    to { color: #4d0010; }
}

.shake {
    animation: shake-anim 0.1s linear infinite; /* Faster, continuous shake */
}

@keyframes shake-anim {
    0% { transform: translate(0.5px, 0.5px); }
    25% { transform: translate(-1px, -0.5px); }
    50% { transform: translate(0.5px, -1px); }
    75% { transform: translate(-0.5px, 1px); }
    100% { transform: translate(0.5px, 0.5px); }
}

.glitch-char-color { color: var(--color-error); }
.glitch-char-pos { transform: translate(1px, -1px); display: inline-block; } /* More subtle position glitch */
.glitch-char-swap { /* This will be visually handled by replacing char with symbol */
    color: var(--color-secondary);
    text-shadow: 0 0 3px var(--color-secondary);
}

/* --- Footer --- */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--color-text);
    background-color: var(--color-background);
    border-top: 1px solid rgba(243, 230, 0, 0.2);
    z-index: 5000;
}