body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
}

.game-container {
    text-align: center;
    background-color: #fff;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 15px;
    color: #333;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
}

#message-display {
    font-weight: bold;
    min-width: 150px; /* Prevent layout shifts */
    color: #007bff;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center; /* Center grid items if container is wider */
}

.block {
    background-color: #ddd;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.1s ease-in-out, transform 0.1s ease;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.block:hover {
    border-color: #bbb;
}

/* State when Simon or user activates a block */
.block.lit {
    background-color: #ffcc00; /* Example light-up color */
    border-color: #ffaa00;
    transform: scale(1.05);
    box-shadow: 0 0 15px #ffcc00;
}

/* State when user gets it wrong */
.block.error {
    background-color: #ff4d4d;
    border-color: #cc0000;
}

/* Disable clicks visually */
.game-grid.disabled .block {
    cursor: not-allowed;
    opacity: 0.7;
}
.game-grid.disabled .block:hover {
     border-color: #ccc; /* Prevent hover effect when disabled */
}


#start-button {
    padding: 10px 20px;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: white;
    transition: background-color 0.2s ease;
}

#start-button:hover {
    background-color: #218838;
}

#start-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Align items vertically */
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 10px; /* Add gap between items */
}

#message-display {
    font-weight: bold;
    min-width: 150px;
    text-align: center; /* Center message */
    flex-grow: 1; /* Allow message to take space */
    color: #007bff;
}

.mute-toggle {
    padding: 5px 10px;
    font-size: 0.9em;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #eee;
    color: #333;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mute-toggle:hover {
    background-color: #ddd;
    border-color: #bbb;
}

.mute-toggle.muted {
    background-color: #f8d7da; /* Light red background when muted */
    border-color: #f5c6cb;
    color: #721c24;
}