/* styles.css */
body {
    font-family: 'Press Start 2P', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000;
    color: #00FF00;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#game-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #00FF00;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* Prevents overflow */
}

.game-display {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    color: #00FF00;
    font-size: 1.2rem;
    white-space: pre-wrap; /* Preserve whitespace for formatting */
}

.game-input {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #00FF00;
    background-color: rgba(0, 0, 0, 0.8);
}

.input-text {
    flex-grow: 1;
    color: #00FF00;
    background: none;
    border: none;
    outline: none;
    font-size: 1.2rem;
    caret-color: transparent; /* Hide default caret */
}

.user-input {
    color: #00FF00; /* User input color */
    padding-left: 20px; /* Indent the user input */
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: #00FF00;
    animation: blink 1s infinite;
    vertical-align: bottom;
}

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