body {
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}


.container-fluid {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}


.title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.turn-indicator {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #333;
}

#player-symbol {
    color: #007bff;
    font-weight: bold;
}

.scores div {
    font-size: 20px;
    font-weight: 500;
}


.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}


.grid-cell {
    aspect-ratio: 1 / 1;
    width: 100%;
    font-size: 2rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.25);
    color: #ff5733;
    transition: 0.2s ease;
}


.grid-cell:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    cursor: pointer;
    
}

.grid-cell:active {
    transform: scale(0.95);
    border: 1px solid #4a9eff
}



#restart-button {
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 25px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #007bff;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#restart-button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

#restart-button:active {
    transform: translateY(0);
}


.win-effect {
    background-color: #4caf50 !important;
    color: white !important;
    animation: pulse-win 1s infinite;
}



#score-x, #score-o {
    font-size: 20px;
    color: #007bff;
    
}


