* {
    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;
}

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

.game-info {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: #333;
    margin-bottom: 1rem;
}

.status {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #666;
}

.difficulty-selector {
    margin-bottom: 1rem;
}

.difficulty-selector h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #444;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

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

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

.piece {
    width: 60px;
    height: 60px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    user-select: none;
    pointer-events: none;
}

.square:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.white {
    background-color: #f0d9b5;
}

.black {
    background-color: #b58863;
}

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

.valid-move {
    background-color: rgba(0, 255, 0, 0.3);
}

.controls {
    margin-top: 2rem;
    text-align: center;
}

.controls button {
    background-color: #2196F3;
}

.controls button:hover {
    background-color: #1976D2;
} 