body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23e0e0e0"/><circle cx="20" cy="20" r="5" fill="%23d0d0d0"/><circle cx="50" cy="40" r="7" fill="%23d0d0d0"/><circle cx="80" cy="25" r="6" fill="%23d0d0d0"/><circle cx="30" cy="70" r="8" fill="%23d0d0d0"/><circle cx="70" cy="75" r="5" fill="%23d0d0d0"/></svg>');
}

.game-container {
    text-align: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 90%;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.game-info {
    margin-bottom: 20px;
}

.status {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    background-color: #e0e0e0;
    color: #333;
}

.status.black-turn {
    background-color: #e0e0e0;
    color: #333;
}

.status.white-turn {
    background-color: #f5f5f5;
    color: #333;
}

.status.win {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.status.draw {
    background-color: #ffecb3;
    color: #ff8f00;
}

.scores {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.score {
    font-size: 18px;
    font-weight: bold;
}

.black {
    color: #333;
}

.white {
    color: #f5f5f5;
    text-shadow: 0 0 2px #333;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 2px;
    margin: 30px auto;
    max-width: 500px;
    background-color: #8d6e63;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cell {
    aspect-ratio: 1;
    background-color: #8bc34a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cell:hover {
    background-color: #7cb342;
    transform: translateY(-2px);
}

.cell.valid-move {
    background-color: #aed581;
    animation: pulse 1s infinite;
}

.cell.valid-move::after {
    content: "";
    position: absolute;
    width: 30%;
    height: 30%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(174, 213, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(174, 213, 129, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(174, 213, 129, 0);
    }
}

.cell.black-piece::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 80%;
    background-color: #333;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.cell.white-piece::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 80%;
    background-color: #f5f5f5;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.cell.black-piece:hover::after, .cell.white-piece:hover::after {
    transform: scale(1.1);
}

.cell.flip-animation::after {
    animation: flip 0.5s ease-in-out;
}

@keyframes flip {
    0% {
        transform: scale(1);
        background-color: #333;
    }
    50% {
        transform: scale(0);
        background-color: #757575;
    }
    100% {
        transform: scale(1);
        background-color: #f5f5f5;
    }
}

.controls {
    margin: 20px 0;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    transition: background-color 0.3s;
    margin: 0 5px;
}

button:hover {
    background-color: #1976D2;
}

#pass-btn {
    background-color: #ff9800;
}

#pass-btn:hover {
    background-color: #f57c00;
}

.instructions {
    margin-top: 20px;
    padding: 15px;
    background-color: #e3f2fd;
    border-radius: 8px;
    text-align: left;
}

.instructions h3 {
    margin-top: 0;
    color: #1976d2;
}

.instructions p {
    margin: 10px 0;
    color: #555;
}

@media (max-width: 768px) {
    .game-container {
        padding: 20px;
    }
    
    .status {
        font-size: 20px;
    }
    
    .scores {
        flex-direction: column;
        gap: 10px;
    }
    
    .game-board {
        max-width: 90%;
        padding: 5px;
        gap: 1px;
    }
    
    button {
        padding: 10px 15px;
        font-size: 14px;
    }
}