/* styles.css */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

.game-container {
    text-align: center;
}

h1 {
    margin-bottom: 20px;
}

#game-status {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
}

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

.cell {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

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

.cell.X {
    animation: popX 0.3s;
}

.cell.O {
    animation: popO 0.3s;
}

@keyframes popX {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes popO {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.winning-cell {
    background-color: #ffeb3b; /* Highlight color */
}

#reset-button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    background-color: #333;
    color: #fff;
    border: none;
    transition: background-color 0.3s;
}

#reset-button:hover {
    background-color: #555;
}

@media (max-width: 500px) {
    .board {
        grid-template-columns: repeat(3, 70px);
        grid-gap: 3px;
    }

    .cell {
        width: 70px;
        height: 70px;
        font-size: 1.5em;
    }
}