body {
  background-color: darkslategrey;
  color: bisque;
}

h1 {
  text-align: center;
}

.text {
  display: block;
  margin: 0 auto;
  width: 70%;
  height: 60%;
  outline: 2px solid black;
  color: black;
  background-color: bisque;
  border-radius: 10px;
  padding: 20px;
}

canvas {
  width: 1024px;
  height: 602px;
  margin: 0;
  padding: 0;
  outline: 2px solid black;
  background-color: white;
}

.panel {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.base {
  width: 1024px;
  padding: 0;
  margin: 10px auto;
}

input {
  width: 60px;
  height: 20px;
}

.rulesBoxes {
  display: flex;
  column-gap: 10px;
  flex-direction: row;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.rulesBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid bisque;
  padding: 5px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  letter-spacing: 5px;
}

.buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

button {
  margin: 0;
  padding: 5px 10px;
  border-radius: 5px;
}

.active {
  border-color: dimgray;
  background-color: bisque;
}