
.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    background-color: #00BCD4;
    padding: 10px;
    border-radius: 10px;
    width: 340px;
    margin: 1rem auto;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: #314351;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

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

.cell.x::before, .cell.x::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 10%;
    background-color: #fff;
    border-radius: 5px;
}

.cell.x::before {
    transform: rotate(45deg);
}

.cell.x::after {
    transform: rotate(-45deg);
}

.cell.o::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    border: 10px solid #fff;
    border-radius: 50%;
}

.score-board {
    max-width: 450px;
    width: 100%;
    margin: auto;
    background: #f8f9fa;
    border-radius: 6px;
}

.night .score-board{
    background-color: #444;
}

.score-item {
    padding: 0.5rem 0.75rem;
    width: calc(100% / 3);
    display: inline-block;
    float: left;
    text-align: center;
}

.night .score-item{
    color:#ddd;
}

.score-value {
    color: #2c3e50;
    font-size: 0.8rem;
}

.night .score-value {
    color: #ddd;
}


.controls {
    text-align: center;
}

.controls button {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 4px;
    cursor: pointer;
    height: 1.5rem;
    line-height: 1.5rem;
}

.controls button#go-game{
    background-color: #FF9800;
}

.modal-content {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem 0;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: calc(100% - 1rem);
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: none;
}

.night .modal-content{
    background-color: #444;
}

.modal-content h2{
    margin-bottom: 1rem;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.modal-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button.x {
    background-color: var(--primary-color);
}

.modal-button.o {
    background-color: var(--secondary-color);
}

.modal-button:hover {
    transform: scale(1.1);
}

.game-info {
    text-align: center;
    font-size: 0.7rem;
    margin: 0 auto 1rem auto;
}

.winning-cell {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { background-color: var(--primary-color); }
    50% { background-color: var(--secondary-color); }
    100% { background-color: var(--primary-color); }
}