body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #222;
  color: #fff;
  font-family: Arial, sans-serif;
}

#chessboard {
  display: grid;
  grid-template-columns: repeat(8, 60px);
  grid-template-rows: repeat(8, 60px);
  border: 4px solid #333;
}

.square {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.square img.piece {
  width: 90%;
  height: 90%;
  object-fit: contain;
  pointer-events: none;
}

.square.selected {
  outline: 3px solid blue;
}
.square.highlight-move {
  outline: 3px solid rgba(0, 0, 255, 0.5); /* lighter blue for moves */
}

.square.highlight-capture {
  outline: 3px solid red; /* red border for captures */
}


.dark {
  background: #769656;
}

.light {
  background: #eeeed2;
}
