:root {
    --bg-color: #0a0a0a;
    --text-color: #00ff00;
    --dim-text: #008800;
    --header-bg: #1a1a1a;
    --font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --cursor-color: #00ff00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    line-height: 1.4;
    overflow: hidden;
}

.minimal-footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #555;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    user-select: none;
}

.minimal-footer a {
    color: #888;
    transition: color 0.3s ease;
}

.minimal-footer a:hover {
    color: var(--text-color);
    border-bottom: 1px solid var(--text-color);
}

.copyright {
    color: #444;
}

.terminal {
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    aspect-ratio: 16 / 10;
}

.terminal-header {
    background: var(--header-bg);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8rem;
    color: #888;
}

.terminal-body {
    padding: 20px;
    flex-grow: 1;
    font-size: 1rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 3px;
}

.line {
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    white-space: pre-wrap;
    word-break: break-all;
}

.prompt-symbol {
    color: #fff;
    margin-right: 10px;
    user-select: none;
}

.command-text {
    color: #00ff00;
    outline: none;
}

.output-block {
    color: var(--text-color);
    margin-bottom: 15px;
    width: 100%;
}

.ascii-name {
    font-size: 0.6rem;
    line-height: 1.1;
    margin-bottom: 15px;
    white-space: pre;
    color: #fff;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2rem;
    background: var(--cursor-color);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

a:hover {
    border-bottom: 1px solid #00ff00;
}

#terminal-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 600px) {
    .terminal-body {
        font-size: 0.85rem;
    }

    .ascii-name {
        font-size: 0.35rem;
    }

    .terminal {
        aspect-ratio: auto;
        min-height: 80vh;
    }
}