* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-family: sans-serif;
  --active_color: #fff8f0;
  --hover_btn_color: #eff2f1;
  --active-hightlight_color: #ece9e5;
}

button {
  font-weight: bold;
  border: none;
  border-radius: 10px;
  background-color: rgb(126, 147, 173);
  color: white;
}
button:hover {
  cursor: pointer;
  background-color: rgba(126, 147, 173, 0.644);
}

.sudoku {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin: 40px auto;
}

.control-pannel .number-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 30px 0;
}

.control-pannel__subcontrol {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.control-pannel__btn {
  height: 40px;
  margin: 10px;

  width: calc(50% - 10px);
}

select {
  height: 40px;
  margin: 10px;

  width: calc(50% - 10px);
}

#show-solution__btn {
  height: 40px;
  margin: 10px;
  border-radius: 50%;
  width: 40px;
}

#submit__btn {
  height: 40px;
  margin: 10px;
  border-radius: 50%;
  width: 40px;
}

#redo__btn {
  height: 40px;
  margin: 10px;
  width: 40px;
  border-radius: 50%;
}

#erase__btn {
  border-radius: 50%;
  height: 40px;
  margin: 10px;
  width: 40px;
}

.control-pannel__subcontrol__btns {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: calc((100% / 4 - 10px));
  text-align: center;
  margin: auto;
}

.control-pannel .number-pad__item {
  font-size: 2rem;
  height: 88px;
  width: 88px;
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  outline: 1px solid lightgrey;
  border-radius: 5px;
  background-color: lightgrey;
  color: white;
}

.control-pannel .number-pad__item:hover {
  cursor: pointer;
  background-color: #afc1d6;
}
.control-pannel .number-pad__item:active {
  transform: scale(0.95);
}

.sudoku__container {
  height: 540px;
  width: 540px;
  padding: 0;
  border: 2px solid black;
  display: flex;
  flex-direction: column;
}

.soduku__row:nth-child(3) {
  border-bottom: 2px solid black;
}

.soduku__row:nth-child(6) {
  border-bottom: 2px solid black;
}

.sudoku__squares:nth-child(3) {
  border-right: 2px solid black;
}

.sudoku__squares:nth-child(6) {
  border-right: 2px solid black;
}

.soduku__row {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: calc(100% / 9);
}

.sudoku__squares {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: calc(100% / 9);
  border-right: 1px solid lightgrey;
  border-bottom: 1px solid lightgrey;
  font-size: 2rem;
}

.sudoku__squares:last-child {
  border-right: none;
}

.soduku__row:nth-child(3) .sudoku__squares {
  border-bottom: none;
}

.soduku__row:nth-child(6) .sudoku__squares {
  border-bottom: none;
}

.sudoku__squares:hover {
  cursor: pointer;
  background-color: var(--hover_btn_color);
}

.sudoku__squares--active {
  background-color: var(--active_color);
}

.sudoku__squares--active:hover {
  background-color: var(--active_color);
}

.right_blue {
  color: blue;
  font-weight: bolder;
}

.highlightSame {
  background-color: var(--active-hightlight_color);
}

.guess_input {
  color: rgb(138, 138, 138);
}
.wrong_red {
  color: red;
  font-weight: bolder;
}
