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

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

.container {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    min-width: 200px;
}

.color-selection, .controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-btn, .control-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.color-btn {
    background-color: #4CAF50;
    color: white;
}

.control-btn {
    background-color: #2196F3;
    color: white;
}

.color-btn:hover, .control-btn:hover {
    opacity: 0.9;
}

.chessboard {
    width: 560px;
    height: 560px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    border: 2px solid #333;
}

.square {
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.white {
    background-color: #f0d9b5;
}

.black {
    background-color: #b58863;
}

.square.selected {
    background-color: #7b61ff;
}

.square.valid-move {
    background-color: #90EE90;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    min-width: 200px;
}

.status {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.move-history {
    max-height: 400px;
    overflow-y: auto;
}

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

.move-history li {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
} 