body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    transition: background-color 0.5s ease;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    padding: 20px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.player-form {
    margin-bottom: 20px;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    text-align: center;
}

.player-form input {
    padding: 8px;
    margin: 10px auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 80%;
    max-width: 300px;
    display: block;
    text-align: center;
}

.player-form button {
    width: 80%;
    max-width: 300px;
    padding: 10px;
    margin: 15px auto 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
}

.player-form button:hover {
    background-color: #45a049;
}

.player-info {
    display: none;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.player-info div {
    display: inline-block;
    margin: 0 15px;
    font-weight: bold;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
    margin-bottom: 20px;
}

.cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background-color: #e9ecef;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 5px;
}

.cell:hover {
    background-color: #dee2e6;
    transform: scale(1.05);
}

.cell.highlight {
    background-color: #1e7e34;
    color: black;
}

.game-status {
    font-size: 24px;
    margin: 15px 0;
    text-align: center;
    min-height: 30px;
}

.restart-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.restart-button:hover {
    background-color: #0069d9;
}

.hidden {
    display: none;
}