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

h1 {
    color: #333;
    margin-bottom: 20px;
}

#chessboard {
    display: grid;
    grid-template-columns: repeat(8, 60px); /* 8 columns, each 60px wide */
    grid-template-rows: repeat(8, 60px);    /* 8 rows, each 60px high */
    border: 2px solid #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.square {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px; /* For piece representation */
    cursor: pointer;
    user-select: none; /* Prevent text selection */
}

.light {
    background-color: #f0d9b5; /* Light square color */
}

.dark {
    background-color: #b58863; /* Dark square color */
}

.selected {
    background-color: yellow !important; /* Highlight selected piece */
}

.highlight-move {
    background-color: rgba(0, 255, 0, 0.5) !important; /* Highlight possible moves */
}

/* Optional: Styling for pieces (using text for now) */
.piece {
    font-size: 40px;
    cursor: grab;
}

.white-piece {
    color: #fff;
    text-shadow: 1px 1px 2px #000;
}

.black-piece {
    color: #000;
    text-shadow: 1px 1px 2px #fff;
}