/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #83a4d4, #b6fbff);
    color: #333;
}

/* Game Container */
.game-container {
    margin: 20px auto;
    max-width: 400px;
    background: #fff;
    border: 2px solid #444;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #444;
}

/* Turn Indicator */
#turn-indicator {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #007acc;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    margin: 20px 0;
}

.cell {
    width: 100px;
    height: 100px;
    border: 2px solid #444;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cell:hover {
    background: #007acc;
    color: white;
    transform: scale(1.1);
}

.cell.taken {
    pointer-events: none;
    background: #ccc;
}

/* Scoreboard */
.score {
    margin: 20px 0;
}

.scoreboard {
    display: flex;
    justify-content: space-around;
}

.scoreboard div {
    text-align: center;
    background: #f9f9f9;
    border: 2px solid #444;
    border-radius: 5px;
    padding: 10px 15px;
    width: 100px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.scoreboard h3 {
    margin: 0;
    color: #444;
}

/* Restart Button */
#restart-btn {
    background: #007acc;
    color: white;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#restart-btn:hover {
    background: #005c99;
}
.cell {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cell.fade-out {
    background-color: #fff;
    transform: scale(0.8);
}

