body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #eee;
  margin: 0;
  font-family: Arial, sans-serif;
}

.chessboard {
  display: grid;
  grid-template-columns: repeat(8, 60px);
  grid-template-rows: repeat(8, 60px);
  border: 2px solid #333;
}

.chessboard div {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.chessboard div:nth-child(odd):nth-child(-n+8),
.chessboard div:nth-child(even):nth-child(n+9):nth-child(-n+16),
.chessboard div:nth-child(odd):nth-child(n+17):nth-child(-n+24),
.chessboard div:nth-child(even):nth-child(n+25):nth-child(-n+32),
.chessboard div:nth-child(odd):nth-child(n+33):nth-child(-n+40),
.chessboard div:nth-child(even):nth-child(n+41):nth-child(-n+48),
.chessboard div:nth-child(odd):nth-child(n+49):nth-child(-n+56),
.chessboard div:nth-child(even):nth-child(n+57):nth-child(-n+64) {
  background-color: #769656; /* Dark square */
}

.chessboard div:not(:nth-child(odd):nth-child(-n+8)):not(:nth-child(even):nth-child(n+9):nth-child(-n+16))
:not(:nth-child(odd):nth-child(n+17):nth-child(-n+24)):not(:nth-child(even):nth-child(n+25):nth-child(-n+32))
:not(:nth-child(odd):nth-child(n+33):nth-child(-n+40)):not(:nth-child(even):nth-child(n+41):nth-child(-n+48))
:not(:nth-child(odd):nth-child(n+49):nth-child(-n+56)):not(:nth-child(even):nth-child(n+57):nth-child(-n+64)) {
  background-color: #eeeed2; /* Light square */
}
