body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f4f9;
}

.container {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
}

#status {
    margin: 15px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
    margin: 20px auto;
    border: 3px solid #333;
    background-color: #333; /* For the grid lines */
    width: 315px; /* 3*100 + 2*5 + 2*3 */
}

.cell {
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.1s;
}

.cell:hover {
    background-color: #ddd;
}

.cell.x {
    color: #d9534f; /* Red for X */
}

.cell.o {
    color: #5cb85c; /* Green for O */
}

#restart-button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.2s;
}

#restart-button:hover {
    background-color: #0056b3;
}