canvas {
        display:block;
        /*position:absolute;*/
        top:0;
        left:0;
        margin:0 auto;
        height:100%;
        min-height:448px;
        cursor:crosshair;
        
        /* avoid canvas orange|blue highlight when clicked in Android */
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        
        /* improve canvas crispiness when zoomed */
        image-rendering: -moz-crisp-edges;
        image-rendering: -o-crisp-edges;
        image-rendering: -webkit-optimize-contrast;
        -ms-interpolation-mode: nearest-neighbor;
      }
      @media(max-width:600px){
          canvas {
            min-height: auto;
          }
      }
      #tools {
          position: absolute;
          top: 22px;
          right: 22px;
          text-align: right;
      }
      #tools i{
        color:white;
        font-size:25px;
        cursor: pointer;
      }
      #fps-counter {
        font-family:sans-serif;
        font-size:10px;
        color:white;
        background:black;
      }
      .contenedor-juego.duck{
        background-color: black;
      }
    .logearse{
    color: black;
    position: absolute;
    top: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.4);
     z-index: 500;
      text-align: center;
      display: flex;
      justify-content: center;
      vertical-align: middle;align-items: center;border-radius: 3px; left: 0px;
    }
    .contenedor_texto{
      background-color: white;border: 2px solid #f20041;padding: 10px;border-radius: 18px;color: black;font-size: 12px;
    }

    .texto-nick {
        display: block;
        text-align: center;
        color: black;
        margin-bottom: 17px;
        max-width: 70%;
        margin: 0 auto;
            margin-bottom: 0px;
        margin-bottom: 17px;
    }

    .nickname{
      display: block;
    margin: 0 auto;
        margin-bottom: 0px;
    border: 1px solid black;
    margin-bottom: 10px;
    }
    .confirmar_nickname {
        background-color: #de415d;
        text-decoration: none;
        border: none;
        padding: 10px;
        border-radius: 5px;
        font-weight: bold;
        color: white;
        text-transform: uppercase;
        cursor: pointer;
    }

    #highscore{
              padding: 6px 5px;
        background-color: #de415d;
        color: white;
        float: left;
        width: 100%;
    }
    #highscore h2 {
        display: inline;
        margin-right: 25px;
        margin-top: 0;
        margin-bottom: 0px;
        float: left;
        font-size: 18px;
       
    }

    #highscore span {
        float: left;
        font-weight: bold;
        margin-top: 1px;
          
    }
    .contenedor-juego{
      width:100%;
      background:black;
      margin-bottom:50px;
      float:left;
    }
    .contenedor-juego.activo{

      background:#333333;
     
    }


    .ver_ranking {
        
        color: white;
        padding-left: ;
        position: absolute;
        bottom: 13px;
        left: 20px;
        font-size: 20px;
        cursor: pointer;
        letter-spacing: 4px;
    }

    .contenedor-leaderboard {
        width: 37.5%;
        position: absolute;
        left: 0px;
        top: 23px;
        display: flex;
        justify-content: center;
    }
    .leaderboard {
        width: 80%;
        background: linear-gradient(to bottom, #3a404d, #181c26);
        border-radius: 10px;
        box-shadow: 0 7px 30px rgba(62, 9, 11, 0.3);
    }
    .leaderboard h1 {
        font-size: 18px;
        color: #e1e1e1;
        padding: 12px 13px 12px;
        margin: 0;
        text-align: center;
       
    }
    .leaderboard ol {
        counter-reset: leaderboard;
        margin-bottom: 0px;
    }

    .leaderboard ol li:nth-child(1)::after {
        background: #fa6855;
    }
    .leaderboard ol li::after {
        content: '';
        position: absolute;
        z-index: 1;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fa6855;
        box-shadow: 0 3px 0 rgba(0, 0, 0, 0.08);
        transition: all .3s ease-in-out;
        opacity: 0;
    }
    .leaderboard ol li::before {
        content: counter(leaderboard);
        position: absolute;
        z-index: 2;
        top: 15px;
        left: 15px;
        width: 20px;
        height: 20px;
        line-height: 20px;
        color: #c24448;
        background: #fff;
        border-radius: 20px;
        text-align: center;
    }

    .leaderboard ol li mark {
     
      z-index: 2;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      padding: 18px 10px 18px 50px;
      margin: 0;
      background: none;
      color: #fff;
      
    }
    .leaderboard ol li mark::before, .leaderboard ol li mark::after {
      content: '';
      position: absolute;
      z-index: 1;
      bottom: -11px;
      left: -9px;
      border-top: 10px solid #c24448;
      border-left: 10px solid transparent;
      transition: all .1s ease-in-out;
      opacity: 0;
    }
    .leaderboard ol li mark::after {
      left: auto;
      right: -9px;
      border-left: none;
      border-right: 10px solid transparent;
    }
    .leaderboard ol li small {
        position: relative;
        z-index: 2;
        display: block;
        text-align: right;
      
        color: black;
        font-size: 17px;
        font-weight: bold;
    }
    .leaderboard ol li::after {
      content: '';
      position: absolute;
      z-index: 1;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #fa6855;
      box-shadow: 0 3px 0 rgba(0, 0, 0, 0.08);
      transition: all .3s ease-in-out;
      opacity: 0;
    }
    .leaderboard ol li:nth-child(1) {
      background: #fa6855;
    }
    .leaderboard ol li:nth-child(1)::after {
      background: #fa6855;
    }
    .leaderboard ol li:nth-child(2) {
      background: #e0574f;
    }
    .leaderboard ol li:nth-child(2)::after {
      background: #e0574f;
      box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
    }
    .leaderboard ol li:nth-child(2) mark::before, .leaderboard ol li:nth-child(2) mark::after {
      border-top: 6px solid #ba4741;
      bottom: -7px;
    }
    .leaderboard ol li:nth-child(3) {
      background: #d7514d;
    }
    .leaderboard ol li:nth-child(3)::after {
      background: #d7514d;
      box-shadow: 0 1px 0 rgba(0, 0, 0, 0.11);
    }
    .leaderboard ol li:nth-child(3) mark::before, .leaderboard ol li:nth-child(3) mark::after {
      border-top: 2px solid #b0433f;
      bottom: -3px;
    }
    .leaderboard ol li:nth-child(4) {
      background: #cd4b4b;
    }
    .leaderboard ol li:nth-child(4)::after {
      background: #cd4b4b;
      box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15);
    }
    .leaderboard ol li:nth-child(4) mark::before, .leaderboard ol li:nth-child(4) mark::after {
      top: -7px;
      bottom: auto;
      border-top: none;
      border-bottom: 6px solid #a63d3d;
    }
    .leaderboard ol li:nth-child(5) {
      background: #c24448;
      border-radius: 0 0 10px 10px;
    }
    .leaderboard ol li:nth-child(5)::after {
      background: #c24448;
      box-shadow: 0 -2.5px 0 rgba(0, 0, 0, 0.12);
      border-radius: 0 0 10px 10px;
    }
    .leaderboard ol li:nth-child(5) mark::before, .leaderboard ol li:nth-child(5) mark::after {
      top: -9px;
      bottom: auto;
      border-top: none;
      border-bottom: 8px solid #993639;
    }
    .leaderboard ol li:hover {
      z-index: 2;
      overflow: visible;
    }
    .leaderboard ol li:hover::after {
      opacity: 1;
      -webkit-transform: scaleX(1.06) scaleY(1.03);
              transform: scaleX(1.06) scaleY(1.03);
    }
    .leaderboard ol li:hover mark::before, .leaderboard ol li:hover mark::after {
      opacity: 1;
      transition: all .35s ease-in-out;
    }

    .the-most {
      position: fixed;
      z-index: 1;
      bottom: 0;
      left: 0;
      width: 50vw;
      max-width: 200px;
      padding: 10px;
    }
    .the-most img {
      max-width: 100%;
    }

    .contenedor-leaderboard {
        width: 30%;
        position: absolute;
        left: 0px;
        top: 23px;
        display: flex;
        justify-content: left;
        padding-left: 20px;
    }

    .leaderboard ol li small {
        position: relative;
        z-index: 2;
        display: block;
        text-align: right;
        color: black;
        font-size: 17px;
        font-weight: bold;
    }

    .leaderboard ol li {
        position: relative;
        z-index: 1;
        font-size: 14px;
        counter-increment: leaderboard;
        padding: 18px 10px 18px 50px;
        cursor: pointer;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform: translateZ(0) scale(1, 1);
        transform: translateZ(0) scale(1, 1);
    }

    .leaderboard ol li mark {
        position: absolute;
        z-index: 2;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 18px 10px 18px 50px;
        margin: 0;
        background: none;
        color: #fff;
    }
    @media(max-width:1250px){
  .contenedor_controles_responsive{
  display:flex;
  }
  .contenedor_siguiente_bloque,.ver_intrucciones, .contenedor-controles{
    display:none !important;
  }
  .game{
    height:300px;
    min-width:150px !important;
  }
  .blockrain-start-msg {
   
    font-size: 31px;
    margin-bottom: 16px;
  }
  .blockrain-btn {
    padding: 3px 13px;
  }
  .contenedor_puntos {
    width: 25%;
    position: absolute;
    right: 0px;
    top: 10px;
  }
  .blockrain-score-msg {
    font-size: 8px;
  }
  .contenedor-leaderboard {
    width: 100%;
    position: absolute;
    padding-left:0px;
    left: 0px;
    top: 5px;
    display: none;
    justify-content: center;
    z-index: 1;
  }
  .leaderboard ol li{
    padding: 8px 10px 8px 50px;
  }
  .leaderboard ol li::before {
    
    position: absolute;
    z-index: 2;
    top: 7px;
  }
  .leaderboard ol li mark {
   
    padding: 7px 10px 18px 50px;
  }
  .ver_ranking {
    color: white;
    left: 0;
    bottom: 0;
    text-transform: uppercase;
    position: relative;
    font-size: 20px;
    cursor: pointer;
    letter-spacing: 4px;
    width: 100%;
    text-align: center;
    display: block;
    padding: 5px;
    font-weight: bold;
    background-color: #de415d;
  }
}
@media(max-width:500px){
  .ver_ranking {
   
    color: white;
    padding-left: ;
    left:0px;
    bottom: 0px;
    right: 5px;
    font-size: 15px;
    cursor: pointer;
    letter-spacing: 3px;
}
}

@media(max-width:468px){
  .contenedor_controles_responsive{
  display:flex;
  }
  .contenedor_siguiente_bloque,.ver_intrucciones{
    display:none !important;
  }
  .game{
    height:300px;
    min-width:150px !important;
  }
  .blockrain-start-msg {
   
    font-size: 31px;
    margin-bottom: 16px;
  }
  .blockrain-btn {
    padding: 3px 13px;
  }
  .contenedor_puntos {
    width: 25%;
    position: absolute;
    right: 0px;
    top: 10px;
  }
  .contenedor_lineas{
    width:25%;
  }
  .blockrain-score-msg {
    font-size: 8px;
}
  .blockrain-lineas-msg {
    font-size: 8px;
  }


  .blockrain-game-over-msg {
    font-size: 36px;
    line-height: 39px;
    margin-bottom:15px;
  }
  .blockrain-btn.blockrain-game-over-btn {
    font-family: 'tetris';
    letter-spacing: 5px;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    background: #46bddf;
    line-height: 19px;
    text-transform: uppercase;
       padding: 0px 3px;
  }

  .blockrain-score-num , .blockrain-score-nivel, .blockrain-score-lineas{
    font-size: 15px;
    color: white;
  }
  .contenedor_lineas {
   
    top: 55px;
  }

}

@media(max-width:450px){
  #tools {
    position: absolute;
    top: 3px;
    right: 5px;
    text-align: right;
  }
  #tools i{
    font-size:20px;
  }
}
.informacion {
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 17px;
    float: left;
    width: 100%;
}

.tg  {border-collapse:collapse;border-spacing:0;width:100%;margin-top:10px;} 
.tg td{color:black;font-family: Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;  background-color: rgb(57, 186, 252, 0.4);}
.tg th{ font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;}
.tg .tg-baqh{text-align:center;vertical-align:middle}
.tg .tg-lqy6{text-align:right;vertical-align:top}
.tg .tg-yw4l{vertical-align:top}
.tg td.decorado, .tg th.decorado {
   font-weight:bold;
        color: black;
   background-color: rgb(222, 65, 93, 0.4);
}
.decorado{
    font-weight:bold;
 
}
.premios-tres{
  text-align: center;
  color:black;
}

.informacion {
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 17px;
}
