body {
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  overflow: hidden;
  user-select: none;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.board {
  display: grid;
  grid-template-columns: repeat(10, 50px);
  grid-template-rows: repeat(10, 50px);
  border-radius: 1.25%;
  border: 5px solid black;
  margin-bottom: 15px;
}

.board-square {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pieceBlack, .pieceWhite {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: black 3px solid;
}

.pieceBlack {
  background-color: #1C1C1C;
}

.pieceWhite {
  background-color: white;
}

.kingBlack::before, .kingWhite::before {
  content: "🜲";
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 24px;
}

.kingBlack::before {
  color: white;
}

.pieceHighlight {
  width: 35px;
  height: 35px;
  border: white 3px solid;
  border-radius: 100%;
  opacity: 25%;
}


/* The switch - the box around the slider */
.switch {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

  input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}


.menu-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Zwart met transparantie */
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Zodat het boven het bord ligt */
  text-align: center;
  transition: 4s;
}

.menu-screen h1 {
  font-size: 36px;
  text-shadow: 1px 1px 2px black;
}

.menu-screen p {
  font-size: 18px;
  text-shadow: 1px 1px 2px black;
}

.menu-screen button {
  padding: 10px 20px;
  font-size: 18px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 50px;
  text-shadow: 1px 1px 2px black;
}

.menu-screen button:hover {
  background-color: #218838;
}