@media screen and (max-height : 414px) {
  .controls .btn {
    font-size: 12px !important
  }
}

#grid {
  border-collapse: collapse;
  font-size: 16px;
  margin: auto;
  border: solid 2px #777;
  width: 100%;
  height: 100%
}

#grid .column {
  vertical-align: middle;
  position: relative;
}

#grid .column span {
  transition: all .3s;
}

#grid .column.play span {
  background-color: #333333 !important;
}

#grid .column.select span {
  background-color: #607d8b !important;
}

#grid .column.error:not(.play) span {
  background-color: #E2001A !important;
}

#grid .column.error.play span {
  box-shadow: inset 0px 0px 0px 5px #E2001A;
}

.brd_r {
  border-left: solid 3px #000;
}

.brd_b {
  border-top: solid 3px #000;
}
.card-body h2 {
  font-size: 24px;
}
.play span {
  color: #999 !important;
  font-weight: bold !important
}

.over {
  opacity: .5;
  background: #000
}

.over .brd_r, .over .brd_b {
  border-color: #444
}

.game {
  margin: auto;
  border-radius: 30px;
  border: solid 8px #2cc8da;
  overflow: hidden;
  background: #fff;
  margin-bottom: 1em
}

.numbers {
  background: #2cc8da;
  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: #c13017;
  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;
  border-radius: 20px;
}

#grid .column span {
  width: 100%;
  height: 100%;
  display: block;
  font-size: 25px;
  font-weight: normal;
  display: inline;
}

@media screen and (max-width : 414px) {
  .game {
    border: solid 2px #fff;
    border-radius: 5px;
    border-bottom: solid 20px #d0d4d6;
    height: 100% !important;
  }

  .column span {
    font-size: 16px !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;
  }

  .column span {
    font-size: 12px !important;
    border-radius: 5px
  }

}

@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;
  }
}

#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 .column {
    height: 35px;
  }

  #grid .column div {
    width: 23.3px;
    height: 25.3px;
    line-height: 28px;
  }

  #grid sup {
    margin-top: -11px;
    margin-left: 2px;
    font-size: 10px;
  }

}


#grid {
  border: 0px
}

#grid .column {
  vertical-align: middle;
  transition: background .3s;
  border-radius: 15%;
  padding: 0;
  width: calc(100% / 6);
  display: block;
  height: 100%;
  padding: 3px;
  float: left
}

#grid .rows {
  height: calc(100% / 6);
}

#grid .column span {
  width: 100%;
  height: 100%;
  display: block;
  font-size: 55px;
  color: #fff;
  font-weight: normal;
  display: inline-block;
  border: solid 2px #333333;
  border-radius: 15px;
}

.c_0 span::before {
  position: absolute;
  content: ' ';
  background: url(../img/losange.png);
  background-size: cover;
  width: 30px;
  height: 30px;
  font-size: 50px;
  color: #fff !important;
  left: calc(50% - 15px);
  top: calc(50% - 15px);
}

.c_1 span::before {
  position: absolute;
  content: '';
  width: 30px;
  height: 30px;
  border-radius: 100%;
  background: #fff !important;
  left: calc(50% - 15px);
  top: calc(50% - 15px);
  align-items: center;
  display: grid;
}

.play {}

.select {}

.error {}

.play.error {
  box-shadow: inset 0px 0px 0px 5px #fff;
}

@media screen and (max-width : 768px) {
  .c_0 span::before, .c_1 span::before {
    font-size: 5vh;
  }

  .play.error {
    box-shadow: inset 0px 0px 0px 1vw #fff !important;
  }

  .column {
    width: calc(100% / 6 - 4px);
    margin: 2px !important
  }

  #grid .column {
    width: calc(100% / 6 - 4px);
    height: calc(100% - 4px);
    padding: 0px;
  }

  .c_0 span::before {
    position: absolute;
    content: ' ';
    background: url(../img/losange.png);
    background-size: cover;
    width: 20px;
    height: 20px;
    color: #fff !important;
    left: calc(50% - 10px);
    top: calc(50% - 10px);
  }

  .c_1 span::before {
    position: absolute;
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background: #fff !important;
    left: calc(50% - 10px);
    top: calc(50% - 10px);
    align-items: center;
    display: grid;
  }
}

@media screen and (max-width:991px) and (min-width: 639px) {

  .c_0 span::before {
    position: absolute;
    content: ' ';
    background: url(../img/losange.png);
    background-size: cover;
    width: 40px;
    height: 40px;
    color: #fff !important;
    left: calc(50% - 20px);
    top: calc(50% - 20px);
  }

  .c_1 span::before {
    position: absolute;
    content: '';
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background: #fff !important;
    left: calc(50% - 20px);
    top: calc(50% - 20px);
    align-items: center;
    display: grid;
  }

}

@media screen and (min-width: 992px) {
  #grid {
    overflow: hidden;
  }
}

@media screen and (min-width:1200px) {
  .iconGame {
    width: 200px;
    position: absolute;
    z-index: 999;
  }

}

#dynamix_selector #grid {
  max-height: 400px !important;
  max-width: 400px !important;
}

.main_grid {
  min-height: 250px !important;
  min-width: 250px !important;
  max-height: 700px !important;
  max-width: 700px !important;
}