:root {
    --bg-color: #050505;
    --terminal-bg: #0f0f0f;
    --text-color: #00ff41;
    --text-dim: #008f11;
    --font-main: 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
}

/* Optional subtle noise overlay for atmosphere */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.05;
    pointer-events: none;
    z-index: 10;
}

.terminal-container {
    background-color: var(--terminal-bg);
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 255, 65, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.terminal-header {
    background-color: #151515;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #222;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.btn.red { background-color: #ff5f56; }
.btn.yellow { background-color: #ffbd2e; }
.btn.green { background-color: #27c93f; }

.title {
    color: #888;
    font-size: 14px;
    margin-left: 10px;
    flex-grow: 1;
    text-align: center;
    opacity: 0.7;
}

.terminal-body {
    padding: 20px 25px;
    min-height: 300px;
    font-size: 16px;
    line-height: 1.6;
}

.line {
    margin-bottom: 8px;
    word-break: break-word;
}

.prompt {
    color: var(--text-dim);
    margin-right: 8px;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--text-color);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

.glow {
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

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

@media (max-width: 600px) {
    .terminal-body {
        font-size: 14px;
        padding: 15px;
        min-height: 250px;
    }
}
