
body {
  text-align: center;
  font-family:'roboto';
}
button {
  padding: 5px 10px;
  background: #eee;
  border: 0px;
}
table {
  border-collapse: collapse;
  font-size: 16px;
  margin: auto;
  border: solid 2px #777;
  transition: all .5s;
}

table td {
  border: solid 1px #333;
  vertical-align: middle;
  transition: all .5s;
    position: relative;
    width: calc(100% / 9);
    height: calc(100% / 9);
}

.brd_r {
  border-left: solid 3px #000;
}
.brd_b {
  border-top: solid 3px #000;
}

.play span {
  color: #999!important;
  font-weight: bold!important
}
.active {
  background: #fff;
  box-shadow: 0px 0px 30px rgba(0,0,0,0.3);
}
.over {
  opacity: .8;
  background: #7a7a7a
}
.over .brd_r, .over .brd_b {
  border-color: #444
}
.over span {
  color: var(--color-primary)!important;
  font-weight: bold!important;
}
.over .play span {
  color: #222!important
}

.game {
  margin: auto;
  border-radius: 30px;
  border: solid 8px #21353f;
  background: #fff;
  overflow: hidden;
  margin-bottom: 1em
}
input {
  width: 100%;
  height: 100%;
  background: #0000;
  border: 0;
  outline: 0px;
  box-shadow: none;
  font-size: 16px;
  text-align: center;
  margin: 0px;
  padding: 0px;
}
.numbers {
  background: #FFFFFF;
  position: absolute;
  left: 0px;
  width: 100%;
  padding: 15px;
  text-align: center;
  border-top: solid 10px;
  margin-top: -10px;
  z-index: 9999
}
.numbers div {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background: var(--color-primary);
  color: #fff;
  line-height: 40px;
  margin: 2px;
  display: inline-block;
  cursor: pointer;;
  user-select: none;
      font-size: 25px;
}
#grid {
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%
}
#grid td span {
  width: 100%;
  height: 100%;
  display: block;
  font-size: 3vh;
  color: #21353f;
  font-weight: normal;
      display: inline;
}
.sudoku {
  padding: 15px;
  position: relative;
}
#sudoku {
  position: relative;
  background: #fff;
  height: 100%;
  width: 100%;
  box-shadow: 0px 0px 50px rgba(0,0,0,0.3);
border: solid 15px #fff;
}
.sudoku {
  margin-top: 50px!important;
}
@media screen and (max-width : 414px){
  .game {
    border: solid 2px #fff;
    border-radius: 5px;
  }
  td span {
    font-size: 20px!important;
  }
  .sudoku {
    padding: 5px;
    margin-top: 10px!important;
  }
  .controls {
    position: absolute;
    width: 100%;
    bottom: 15px;
  }
}
@media screen and (max-height : 650px){
  .game {
    border: solid 2px #fff;
    border-radius: 5px;
    border-bottom: solid 2px #d0d4d6;
  }
  #sudoku {
    border: 0px!important
  }

}
@media screen and (max-height : 414px){
  .controls .btn {
    font-size: 12px!important
  }
  .numbers {
  right: 0px;
  top: 150px;
  width: 54%;
  left: auto;
  }
  .sudoku {
    padding: 5px;
    margin-top: 10px!important;
  }
  td span {
    font-size: 10px!important;
    display: block!important
  }
}
#grid sup {
  font-weight: bold;
  color: #a71308;
  position: absolute;
  top: 10px;
  right: 5px;
}
.win {
  color: #4CAF50;
  font-weight: bold;
  background: #e1f1e1
}
.loose {
  color:#F44336;
  font-weight: bold;
  background: var(--color-secondary)
}
@media screen and (max-width:768px){

  #sudoku {
     border: 0px;
  }
  #grid sup {
    font-size: 10px;
  }
  .sudoku {
    padding: 5px;
    margin-top: 10px!important;
  }
}
