body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    overflow: hidden;
}

.game-container {
    background-color: #111;
    border: 2px solid #0f0;
    padding: 20px;
    width: 600px;
    height: 600px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.output {
    flex-grow: 1;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    padding-right: 20px; /* add padding to prevent the text from hiding behind the scrollbar */
    box-sizing: border-box;
}

.input-container {
    display: flex;
    align-items: center;
    height: 40px; /* Fixed height for input area */
    box-sizing: border-box;
    margin-top: 10px;
    width: 100%;
    border: 2px solid #0f0; /* Add border around the input area */
    padding: 5px;
    background-color: #222; /* Different background color for input area */
}

#input {
    flex-grow: 1;
    background: none;
    border: none;
    color: #0f0;
    font-family: inherit;
    font-size: 1em;
    outline: none;
    position: relative;
}

#input::after {
    content: '|';
    animation: blink 1s step-start 0s infinite;
    position: absolute;
    right: 0;
}

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

.progress-bar-container {
    width: 100%;
    background-color: #444;
    margin-top: 10px;
    position: relative;
    height: 20px;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: #006400; /* Darker shade of green */
    transition: width 0.3s ease-out;
}

.progress-bar-percentage {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #000;
    font-weight: bold;
}
