body {
    font-family: 'Roboto Mono', monospace;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 1rem;
    overflow: hidden;
    /* Add this line to animate the color change */
    transition: background-color 1.5s ease;
}

/* New class for the outskirts (white background) */
.bg-outskirts {
    background-color: #f5f5f5; /* Full sunlight */
}


/* New class for the town road */
.bg-town {
    background-color: #5F9EA0; /* Cadet Blue (Greyish Cyan) */
}

/* New class for indoors */
.bg-indoors {
    background-color: orange; /* Dark Grey */
}

.game-container {
    width: 100%;
    max-width: 900px;
    height: 90vh;
    max-height: 800px;
    background-color: #1e1e1e;
    border: 2px solid #555;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-output {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1rem;
    line-height: 1.5;
    scrollbar-width: thin;
    scrollbar-color: #444 #1e1e1e;
    border-bottom: 2px solid #333;
}
.terminal-output::-webkit-scrollbar {
    width: 8px;
}
.terminal-output::-webkit-scrollbar-track {
    background: #1e1e1e;
}
.terminal-output::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 4px;
}

.terminal-input-container {
    display: flex;
    padding: 1rem 1.5rem;
    align-items: center;
    background-color: #222;
}

.prompt {
    color: #4CAF50;
    font-weight: bold;
    flex-shrink: 0;
    padding-right: 0.5rem;
}

#terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #e0e0e0;
    font-family: 'Roboto Mono', monospace;
    flex-grow: 1;
    font-size: 1rem;
    caret-color: #e0e0e0;
}

.command-history-item {
    color: #00bcd4;
}

.game-message {
    color: #e0e0e0;
}

.story-text {
    color: #f5f5f5;
}

.command-help {
    color: #FFC107;
}

.error-message {
    color: #FF5252;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}