/* === General Reset & Layout === */
html,
body {
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    color: #f7f7f7;
    font-family: Menlo, Monaco, "Courier New", monospace;
}

/* === Main Content Section === */
main {
    text-align: center;
    padding: 1rem;
    width: 100%;
    z-index: 10;
}

.ascii-container {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding: 0 1rem;
    white-space: pre;
    font-size: 1.1rem;
    color: #ff77ff;
    text-shadow:
        0 0 5px #ff77ff,
        0 0 10px #ff44ff,
        0 0 20px #cc00cc;
    animation: glowFade 3s ease-in-out infinite alternate;
}

@keyframes glowFade {
    from {
        text-shadow:
            0 0 5px #ff77ff,
            0 0 10px #ff44ff,
            0 0 20px #cc00cc;
    }
    to {
        text-shadow:
            0 0 2px #ff99ff,
            0 0 5px #ff66ff,
            0 0 10px #990099;
    }
}

.tagline {
    font-size: 1.2em;
    color: #77ffff;
    text-shadow:
        0 0 5px #77ffff,
        0 0 10px #33ffee;
    margin-bottom: 1rem;
}

.blurb {
    font-size: 1em;
    max-width: 600px;
    margin: 0 auto;
    color: #cccccc;
    line-height: 1.5;
    padding: 0 1rem;
}

/* === Boot Animation === */
.boot-sequence {
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.4;
    color: #00ffaa;
    padding: 1rem;
    white-space: pre-wrap;
    animation: typeboot 3s steps(60, end) forwards;
    overflow: hidden;
    border-right: 0.15em solid #00ffaa;
    text-align: left;
    max-width: 900px;
    margin: 2rem auto;
    background-color: #0a0a0a;
    border-radius: 8px;
    border: 1px solid #222;
    box-shadow: 0 0 20px #00ffaa55;
    box-sizing: border-box;
}

@keyframes typeboot {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* === Terminal Container === */
#terminal-container {
    text-align: left;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto 4rem auto;
    background-color: #0a0a0a;
    display: none;
    overflow-y: auto;
    overflow-x: auto;
    padding: 0;
    box-shadow: 0 0 20px #00ffaa55;
    border: 1px solid #222;
    border-radius: 8px;
    box-sizing: border-box;
}

/* === XTerm.js Styling === */
.xterm {
    width: 100%;
    padding: 0;
    background-color: #0a0a0a !important;
    box-sizing: border-box;
}

.xterm .xterm-viewport {
    scrollbar-width: none;
}

.xterm .xterm-cursor-block {
    background-color: #00ffff !important;
    animation: blink 1.2s step-end infinite;
}

.xterm .xterm-selection {
    background: rgba(255, 20, 147, 0.5);
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}
