* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.scores {
    display: flex;
    gap: 20px;
}

.score {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

.score .disc {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #333;
}

.score .disc.black {
    background-color: #000;
}

.score .disc.white {
    background-color: #fff;
}

.current-player {
    font-weight: bold;
}

.game-status {
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    background-color: #e0e0e0;
}

.game-area {
    display: flex;
    gap: 20px;
}

.board-container {
    flex: 1;
}

.board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1/1;
    margin: 0 auto;
    background-color: #2c802c;
    border: 2px solid #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
    position: relative;
    cursor: pointer;
}

.cell.valid-move::before {
    content: "";
    position: absolute;
    width: 30%;
    height: 30%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}
@media (max-width: 768px) {
    .cell.valid-move::before {
        width: 40%;
        height: 40%;
    }
}

.disc {
    position: absolute;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.disc.black {
    background: radial-gradient(circle at 30% 30%, #555, #000);
    border: 1px solid #000;
}

.disc.white {
    background: radial-gradient(circle at 30% 30%, #fff, #ddd);
    border: 1px solid #999;
}

.sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.controls {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.controls button {
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 15px;
}

.controls button:hover {
    background-color: #2980b9;
}

.ai-toggle label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.difficulty {
    margin-top: 10px;
}

.difficulty label {
    display: block;
    margin-bottom: 5px;
}

.difficulty select {
    width: 100%;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.move-history {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.move-history h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.move-history ul {
    list-style-type: none;
}

.move-history li {

padding: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .game-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .scores {
        width: 100%;
        justify-content: space-around;
    }
    
    .game-area {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .board {
        max-width: 100%;
    }
    
    .move-history {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    .scores {
        gap: 10px;
    }
    
    .score .disc {
        width: 16px;
        height: 16px;
    }
    
    .controls button {
        padding: 12px;
        font-size: 1rem;
    }
    
    .difficulty select {
        padding: 8px;
        font-size: 0.9rem;
    }
}
