body {
    background-color: #000;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

#game-container {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    border: 2px solid #0f0;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 0 15px #0f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(0, 20, 0, 0.75);
}

#game-output {
    flex-grow: 1;
    overflow-y: auto;
    white-space: pre-wrap;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #0f0 #000;
}

#input-container {
    display: flex;
    align-items: center;
}

.prompt {
    margin-right: 10px;
}

#user-input {
    background-color: transparent;
    border: none;
    color: #0f0;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    outline: none;
}

/* Blinking cursor effect */
#user-input:focus {
    animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    from, to { box-shadow: 1px 0 0 0 #0f0; }
    50% { box-shadow: 1px 0 0 0 transparent; }
}

/* Scrollbar styling for webkit browsers */
#game-output::-webkit-scrollbar {
    width: 8px;
}

#game-output::-webkit-scrollbar-track {
    background: #000;
}

#game-output::-webkit-scrollbar-thumb {
    background-color: #0f0;
    border-radius: 4px;
    border: 1px solid #000;
}