* {
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #1a1a1a;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: #2d2d2d;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #4CAF50;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.player-input {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.player-input.hidden {
    display: none;
}

input {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
}

.score-board {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 30px;
    background-color: #3a3a3a;
    padding: 20px;
    border-radius: 5px;
}

.score {
    text-align: center;
    flex: 1;
}

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

.cell {
    background-color: #444;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.cell.x {
    color: #4CAF50;
}

.cell.o {
    color: #2196F3;
}

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    flex: 1;
}

button:hover {
    transform: translateY(-2px);
}

.new-game {
    background-color: #4CAF50;
    color: white;
}

.reset {
    background-color: #f44336;
    color: white;
}

.status {
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
    color: #4CAF50;
    width: 100%;
}

.difficulty-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #3a3a3a;
    border-radius: 5px;
    margin-top: 10px;
}

.difficulty-selector label {
    font-weight: bold;
}

.difficulty-selector select {
    padding: 8px;
    border-radius: 4px;
    border: none;
    background-color: #444;
    color: white;
}

#startButton {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}