body {
    background-color: #2c001e;
    font-family: 'Ubuntu Mono', monospace;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#terminal {
    width: 100%;
    max-width: 1000px; /* Base width for aspect ratio calculation */
    aspect-ratio: 16 / 10; /* Enforces the 16:10 orientation */
    height: auto; /* Height is determined by width + aspect-ratio */
    max-height: 90vh; /* Prevents terminal from being too tall on certain screens */
    background-color: #300a24;
    border: 1px solid #4d4d4d;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 15px;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    color: #eeeeec;
}

/* Custom scrollbar for a better look */
#terminal::-webkit-scrollbar {
    width: 8px;
}

#terminal::-webkit-scrollbar-track {
    background: #300a24;
}

#terminal::-webkit-scrollbar-thumb {
    background-color: #5c5c5c;
    border-radius: 4px;
}

#output {
    flex-grow: 1;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.output-line {
    margin-bottom: 2px;
}

.prompt-line {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevents the prompt line from shrinking */
}

.prompt {
    margin-right: 8px;
    white-space: nowrap;
}

.prompt-user {
    color: #87d7af; /* Light Green */
}

.prompt-colon {
    color: #eeeeec;
}

.prompt-dir {
    color: #87afff; /* Light Blue */
}

.prompt-dollar {
    color: #eeeeec;
    margin-left: 2px;
}

#input {
    background: none;
    border: none;
    color: #eeeeec;
    font-family: 'Ubuntu Mono', monospace;
    font-size: 1em;
    width: 100%;
    outline: none;
    caret-shape: block; /* Makes the cursor a block */
}

.highlight {
    color: #fce94f; /* Yellow for titles */
}

.highlight-secondary {
    color: #729fcf; /* Blue for secondary info like dates/positions */
}

a {
    color: #87afff; /* Light Blue */
    text-decoration: underline;
}

a:hover {
    color: #ffffff;
    filter: brightness(1.2);
}