@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  display: flex;
  color: white;
  flex-flow: row wrap;
  background-color: #1e1e1e;
  padding: 2rem;
  min-height: 100vh;
  gap: 2rem;
}
body > * {
  flex: 1;
  min-width: fit-content;
}
a {
  color: inherit;
}
.btn {
  padding: 0.3rem 0.5rem;
  font-family: inherit;
  margin: 0.2rem;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid black;
}
.btn:hover {
  background-color: rgb(196, 196, 196);
}
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column nowrap;
  gap: 1rem;
}
.container h1 {
  font-size: 3rem;
}
.btns {
  display: flex;
  flex-flow: row wrap;
  gap: 0.3rem;
}
.btns > * {
  flex-grow: 1;
}
.travail-btn {
  flex-basis: 100%;
}
.board-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: min(500px, 100%);
}
.board {
  max-width: min(80vw, 400px);
  display: grid;
  aspect-ratio: 1/1;
  width: 100%;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  border: 2px solid white;
}
.board.active .square {
  cursor: pointer;
}
.square {
  display: flex;
  align-items: center;
  justify-content: center;
}
.square.dark {
  background-color: black;
}
.square.light {
  background-color: white;
}
.board.active .square.dark:hover,
.square.dark.active {
  background-color: rgb(101, 101, 101);
}
.board.active .square.light:hover,
.square.light.active {
  background-color: rgb(181, 181, 181);
}
.square.path {
  background-color: rgba(0, 200, 0, 0.3); /* light green */
  transition: background-color 0.3s ease;
}
