
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;
  width: 100%;
  height: 100%
}

table td {
  border: solid 1px #333;
  vertical-align: middle;
  transition: all .5s;
    position: relative;
}

.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: .5;
  background: #000
}
.over .brd_r, .over .brd_b {
  border-color: #444
}
.game {
  margin: auto;
  border-radius: 30px;
  border: solid 8px #21353f;
  overflow: hidden;
  background: #fff;
  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: #21353f;
  position: absolute;
  left: 0px;
  width: 100%;
  padding: 5px;
  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;
}
#grid {
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  margin: auto;
}
#grid td span {
  width: 100%;
  height: 100%;
  display: block;
  font-size: 25px;
  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;
    border-bottom: solid 20px #d0d4d6;
    height: 100%!important;
  }
  td span {
    font-size: 12px!important;
  }
  .sudoku {
    padding: 5px;
    margin-top: 10px!important;
  }
}
@media screen and (max-height : 550px){
  .game {
    border: solid 2px #fff;
    border-radius: 5px;
    border-bottom: solid 0px #d0d4d6;
    height: 107%!important;
    margin-top: -10px;
  }
  td span {
    font-size: 12px!important;
  }

}
@media screen and (max-width : 850px) and (max-height : 414px){
  .controls {
    position: absolute;
    top: 75px;
    right: 20px
  }
  .numbers {
  right: 0px;
  top: 150px;
  width: 54%;
  left: auto;
  }
  .sudoku {
    padding: 5px;
    margin-top: 10px!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: #ffe4e1
}
@media screen and (max-width:768px){
  .r0 td {
    height: 35px;
  }
  #sudoku {
     border: 0px;
  }
  #grid table td div {
    width: 23.3px;
    height: 25.3px;
    line-height: 28px;
  }
  #grid sup {
    margin-top: -11px;
    margin-left: 2px;
    font-size: 10px;
  }
  .sudoku {
    padding: 5px;
    margin-top: 10px!important;
  }
}

body {
  overflow-y: auto!important;
  height: auto!important;
  padding-bottom: 20px
}
