body {
    background-color: #000; /* Black */
    color: #fff; /* White */
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden; /* Prevent body scrollbars */
}

#game-container {
    background-color: #222; /* Darker gray for container */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 640px; /* Adjusted for canvas + padding */
    height: 440px; /* Adjusted for canvas + padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    color: #fff;
    margin-bottom: 20px;
}

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

#instructions h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

#instructions p {
    font-size: 1.1em;
    margin: 10px 0;
}

button {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s, transform 0.2s;
}

button:hover {
    background-color: #eee;
    transform: translateY(-2px);
}

#gameCanvas {
    background-color: #b4b4b4; /* Gray for board */
    border: 3px solid #fff;
    display: block; /* Remove extra space below canvas */
    margin-bottom: 20px;
}

#controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

#game-status {
    font-size: 1.5em;
    color: #fff;
    font-weight: bold;
}

/* Cell specific styles for drawing on canvas will be handled in JavaScript */