body {
    background-color: #000;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 10px;
    font-size: 16px;
    overflow: auto;
}

#game-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #0f0;
    padding: 10px;
    min-height: 98vh;
    height: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

#output {
    flex-grow: 0;
    overflow-y: auto;
    margin-bottom: 10px;
    white-space: pre-wrap; /* Preserve whitespace and wrap text */
    line-height: 1.4;
    font-size: clamp(14px, 2.5vw, 16px); /* Responsive font size */
}

#options-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.option-button {
    background-color: #002200;
    color: #0f0;
    border: 1px solid #0f0;
    padding: 10px 15px;
    font-family: inherit;
    font-size: clamp(14px, 2.5vw, 16px); /* Responsive font size */
    cursor: pointer;
    text-align: center;
    min-width: 120px;
    border-radius: 5px;
    touch-action: manipulation; /* Improve touch response */
}

.option-button:hover, .option-button:active {
    background-color: #004400;
}

.option-button:link, .option-button:visited, .option-button:hover, .option-button:active {
    text-decoration: none;
    color: #0f0;
}

@media (max-width: 600px) {
    #game-container {
        padding: 5px;
        min-height: 100vh;
        height: auto;
    }
    
    #output {
        margin-bottom: 5px;
    }
    
    #options-area {
        gap: 5px;
        padding: 5px 0;
    }
    
    .option-button {
        padding: 8px 10px;
        min-width: 100px;
    }
}

/* Style for specific game elements if needed */
.location {
    font-weight: bold;
    color: #fff; /* White for location names */
}

.character {
    font-style: italic;
    color: #0ff; /* Cyan for character names */
}

.item {
    color: #ff0; /* Yellow for items */
}
