@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  /* min-height: 1000px; */
  background: #edf4ff;
  padding: 50px 0;
}
.btn {
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 10px;
  outline: none;
  border: none;
  /*background: #15d556;*/
  background: #64bd55;
  color: #fff;
  box-shadow: 4px 4px #159956;
  transition: all ease 0.3s;
}
.btn:active {
  transform: translate(4px, 4px);
  transition: all ease 0.3s;
  box-shadow: none;
}

.sudoku {
  display: flex;
  position: relative;
  width: 100%;
  height: fit-content;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.win-win {
  display: none;
  position: absolute;
  width: 100%;
  height: 100vh;
  background-color: #000c;
  z-index: 9999;
}
.win-card {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 500px;
  height: 360px;
  top: 50%;
  left: 50%;
  background: #edf4ff;
  text-align: center;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  box-shadow: 10px 10px #777;
}
.win-card h2 {
  font-size: 54px;
}

.win-card .newgame {
  position: absolute;
  bottom: 30px;
  align-self: center;
}
.table-header {
  display: flex;
  position: relative;
  width: 458px;
  padding: 20px 0;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}
.newgame {
  /*position: relative;*/
}
.level-container {
  display: none;
  position: absolute;
  left: 4px;
  width: 118px;
  border-top: 2px solid #fff0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.game-level {
  width: 100%;
  padding: 15px 0 15px 20px;
  background: #64bd55;
  color: #fff;
  text-align: start;
}
.game-level:hover {
  background: #5cab4f;
}
#table-container {
  border-collapse: collapse;
  border: 4px solid #2879ff;
}

.box {
  width: 50px;
  height: 50px;
  border: 2px solid #aaa;
  background: #edf4ff;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  /*cursor: pointer;*/
  transition: all ease 0.3s;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -o-user-select: none;
}
/*.box:hover{
  transform: scale(1.1);
  box-shadow: 1px 1px 5px #555;
}*/
.box.box-nonEditable {
  font-weight: 700;
  background: #cae4ff;
}
.box.box-editable {
  font-weight: 500;
  color: #333;
}

tr:nth-child(3n) {
  border-bottom: 4px solid #2879ff;
}
td:nth-child(3n) {
  border-right: 4px solid #2879ff;
}

#numpad {
  display: flex;
  width: 458px;
  margin-top: 15px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.numkey {
  width: 50px;
  height: 50px;
  margin: 5px 15px;
  background: transparent;
  border: 4px solid #999;
  outline: none;
  border-radius: 10px;
  font-size: 24px;
  cursor: grab;
}
.numkey:last-child {
  color: #fff;
  background: #d65757;
  border-color: #822727;
}
.numkey:last-child:active {
  background: #d65757;
  border-color: #822727;
}
.numkey:active {
  background: #ccc;
  transform: scale(0.96);
  box-shadow: none;
}
@media (max-width: 600px) {
  .win-card h2 {
    font-size: 10vw;
    transform: translateY(-5vw);
  }
  .win-card button {
    bottom: 7vw;
  }
  .table-header {
    width: 91vw;
  }
  .box {
    width: 10vw;
    height: 10vw;
  }
  .win-card {
    width: 95vw;
    height: 66vw;
  }
  #numpad {
    width: 91vw;
  }
  .numkey {
    width: 12vw;
    height: 12vw;
    margin: 5px 3vw;
  }
}
