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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

#app {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

#game-container {
    background-color: white;
    border: 2px solid #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#game-canvas {
    display: block;
    cursor: pointer;
}

#ui {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 200px;
}

.player-area {
    border: 2px solid #333;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
}

.player-area h3 {
    margin-bottom: 10px;
    text-align: center;
}

.holding-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 60px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.piece {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #333;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: transform 0.2s;
}

.piece:hover {
    transform: scale(1.1);
}

.piece.dragging {
    cursor: grabbing;
    opacity: 0.5;
}

.piece.player1 {
    background-color: #4a90e2;
    color: white;
}

.piece.player2 {
    background-color: #e24a4a;
    color: white;
}

.piece.selected {
    border-color: #ffff00;
    border-width: 3px;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

#current-player {
    padding: 15px;
    background-color: white;
    border: 2px solid #333;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

#player-indicator {
    color: #4a90e2;
}

#player-indicator.player2 {
    color: #e24a4a;
}

.instructions-box {
    border: 2px solid #333;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    min-width: 200px;
}

.instructions-box h3 {
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

.instructions-box ul {
    list-style-type: none;
    padding-left: 0;
}

.instructions-box li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.instructions-box li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

.instructions-box strong {
    color: #333;
}

