body {
    background-color: #1e1e1e;
    color: #f0f0f0;
    font-family: 'Courier New', Courier, monospace;
    padding: 20px;
    margin: 0;
    line-height: 1.6;
}

.terminal {
    max-width: 800px;
    margin: 0 auto;
    background-color: #121212;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    height: 80vh;
    overflow-y: auto;
}

.terminal-header {
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.command-line {
    display: flex;
    margin-bottom: 10px;
}

.prompt {
    color: #4CAF50;
    margin-right: 10px;
}

.input-area {
    flex-grow: 1;
}

#user-input {
    background-color: transparent;
    border: none;
    color: #f0f0f0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    width: 100%;
    outline: none;
}

.output {
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.link {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
}

.command {
    color: #f39c12;
    font-weight: bold;
}

.history-line {
    margin-bottom: 10px;
}

.help-text {
    color: #cc9900;
    font-weight: bold;
}

.error-text {
    color: #ff3333;
    font-weight: bold;
}

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

/* Small version label (bottom-left). Intentionally unobtrusive. */
#version-label {
    position: fixed;
    left: 12px;
    bottom: 8px;
    font-size: 9px;
    color: #000;
    pointer-events: none;
    z-index: 9999;
}

/* Cover letter layout tweaks (scoped so it doesn't affect terminal command output). */
#terminal-output .letter-body {
    max-width: 680px;
}

#terminal-output .letter-body p {
    margin: 0 0 12px 0;
}

#terminal-output .letter-body p:last-child {
    margin-bottom: 0;
}

#terminal-output .letter-body ul {
    margin: 6px 0 0 20px;
    padding: 0;
}

#terminal-output .letter-body li {
    margin-bottom: 6px;
}

#terminal-output .letter-body img {
    width: 100px;
    height: 100px;
    display: block;
    margin-bottom: 10px;
}

#terminal-output .letter-body .flat-button {
    background: transparent;
    border: 1px solid #fff;
    color: #f0f0f0;
    border-radius: 10px;
    padding: 8px 14px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
    margin-bottom: 12px;
}

#terminal-output .letter-body .flat-button:hover {
    background-color: #2a2a2a;
    color: #f0f0f0;
    border-color: #fff;
}

#terminal-output .letter-body .flat-button:focus {
    outline: none;
}

#terminal-output .letter-body .flat-button.active:hover {
    border-color: #4CAF50;
}

#terminal-output .letter-body .flat-button.active:focus {
    outline: none;
}

/* Only the AI version gets the green textbox outline. */
#terminal-output .letter-body .letter-text {
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 12px 0;
}

#terminal-output .letter-body .ai-textbox {
    border: 1px solid #4CAF50;
}

/* Button border only turns green while AI version is active. */
#terminal-output .letter-body .flat-button.active {
    border-color: #4CAF50;
}

/* Colored sign-off for "AISG <—> Jim Wong" */
#terminal-output .letter-body .aisg-red {
    color: #ff3333;
}

#terminal-output .letter-body .jim-orange {
    color: #f39c12;
}