body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    color: #333;
}

#game-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

h1 {
    color: #1a237e; /* Dark blue */
    margin-bottom: 20px;
}

#instructions p {
    margin: 5px 0;
    color: #555;
}

.data-box {
    background-color: #000;
    color: #0f0; /* Green text */
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5em;
    padding: 20px;
    margin: 20px auto;
    border-radius: 4px;
    min-height: 100px; /* Ensure box doesn't collapse when empty */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align text left */
    line-height: 1.6;
}

.data-box span {
    display: block; /* Each data point on a new line */
}

#input-area {
    margin-top: 20px;
}

#input-area p {
    font-weight: bold;
    margin-bottom: 10px;
}

#input-timer {
    color: #d32f2f; /* Red */
    font-weight: bold;
}

#input-status {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

#input-status span {
    font-weight: bold;
    font-size: 1.2em;
}

.status-black-fill {
    background-color: black;
    color: white !important; /* Ensure text color is white for contrast */
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-block; /* Ensures padding is applied correctly */
}

#input-status > div.hidden-status {
    display: none; /* Hide status indicators for non-required items */
}

#data-input {
    width: 80%;
    padding: 10px;
    font-size: 1.1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

#results-area {
    margin-top: 20px;
    padding: 15px;
    background-color: #e8f5e9; /* Light green */
    border: 1px solid #a5d6a7; /* Green border */
    border-radius: 4px;
}

#results-area h2 {
    color: #2e7d32; /* Darker green */
    margin-bottom: 10px;
}

#results-area #next-round-message {
    margin-top: 15px;
    font-style: italic;
    color: #555;
}

#detailed-results p {
    margin: 5px 0;
    font-size: 0.95em;
}

#detailed-results .correct {
    color: green;
}

#detailed-results .incorrect {
    color: red;
    text-decoration: line-through;
}

#round-info {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #666;
    font-weight: bold;
}

#difficulty-selection {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

#difficulty-selection h2 {
    margin-bottom: 15px;
    color: #555;
}

.difficulty-btn {
    background-color: #7986cb; /* Lighter Indigo */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin: 0 5px;
}

.difficulty-btn:hover {
    background-color: #5c6bc0; /* Slightly darker */
}

.difficulty-btn.selected {
    background-color: #3949ab; /* Indigo */
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.4);
}

.difficulty-btn:disabled {
     background-color: #bdbdbd;
     cursor: not-allowed;
}

#results-difficulty {
    text-transform: capitalize;
}

button {
    background-color: #3949ab; /* Indigo */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

button:hover {
    background-color: #1a237e; /* Darker indigo */
}

button:disabled {
    background-color: #9fa8da; /* Lighter indigo */
    cursor: not-allowed;
    opacity: 0.7; /* Make it clearer it's disabled */
}

#final-results-area {
    margin-top: 20px;
    padding: 15px;
    background-color: #e3f2fd; /* Light blue */
    border: 1px solid #90caf9; /* Blue border */
    border-radius: 4px;
}

#final-results-area h2 {
    color: #1565c0; /* Darker blue */
    margin-bottom: 10px;
}

#final-results-area p {
    margin: 8px 0;
    font-size: 1.1em;
}

.hidden {
    display: none;
}