div.mlkeyboard {
  font-family: Tahoma, Arial, sans-serif;
  position: fixed;
  bottom: 0;
  right: 50%;
  -ms-transform: translateX(50%);
  -webkit-transform: translateX(50%);
  -moz-transform: translateX(50%);
  -o-transform: translateX(50%);
  transform: translateX(50%);
}

div.mlkeyboard li,
div.mlkeyboard ul {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box
}

div.mlkeyboard ul {
  background: #eee;
  list-style: none;
  font-size: 12px;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none
}

div.mlkeyboard ul li {
  float: left;
  margin: 0 0 .5% .5%;
  width: 6%;
  text-align: center;
  background: #fff;
  border: 1px solid #f9f9f9;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-color: #e5e5e5;
  cursor: pointer
}

div.mlkeyboard ul li.active {
  background-color: #e6ffd8;
  border-color: #6fda54
}

div.mlkeyboard ul li:hover {
  background-color: #ffd488;
  border-color: #ffae6e
}

div.mlkeyboard ul .mlkeyboard-capslock,
div.mlkeyboard ul .mlkeyboard-left-shift,
div.mlkeyboard ul .mlkeyboard-tab {
  clear: left
}

div.mlkeyboard ul .mlkeyboard-tab {
  width: 7%
}

div.mlkeyboard ul .mlkeyboard-capslock {
  width: 12%
}

div.mlkeyboard ul .mlkeyboard-return {
  width: 8%
}

div.mlkeyboard ul .mlkeyboard-left-shift {
  width: 14%
}

div.mlkeyboard ul .mlkeyboard-right-shift {
  width: 12%
}

div.mlkeyboard ul .mlkeyboard-space {
  width: 50%
}

div.mlkeyboard ul li:nth-child(54) {
  clear: left
}

div.mlkeyboard ul li:nth-child(54),
div.mlkeyboard ul li:nth-child(56) {
  width: 22%;
  text-transform: lowercase;
  font-size: 12px
}

div.mlkeyboard ul.mlkeyboard-modifications {
  position: absolute;
  background: rgba(133, 133, 133, .6);
  border-radius: 5px;
  display: none;
  padding: 8px
}

@media screen and (min-width:540px) {
  div.mlkeyboard ul .mlkeyboard-right-shift {
    width: 96px;
    margin-right: 0
  }
}

@media screen and (min-width:700px) and (max-width:991.98px) {
  div.mlkeyboard ul {
    width: 670px;
    height: 230px;
    margin: 0 auto;
    padding: 0;
    border-radius: 5px 5px 0 0
  }

  div.mlkeyboard ul li {
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: 2px
  }

  div.mlkeyboard ul .mlkeyboard-backspace {
    width: 66px
  }

  div.mlkeyboard ul .mlkeyboard-tab {
    width: 65px
  }

  div.mlkeyboard ul .mlkeyboard-capslock {
    width: 75px
  }

  div.mlkeyboard ul .mlkeyboard-return {
    width: 76px
  }

  div.mlkeyboard ul .mlkeyboard-left-shift {
    width: 100px
  }

  div.mlkeyboard ul .mlkeyboard-space {
    width: 360px
  }

  div.mlkeyboard ul li:nth-child(54),
  div.mlkeyboard ul li:nth-child(56) {
    width: 125px;
    text-transform: lowercase;
    font-size: 12px
  }

  div.mlkeyboard ul.mlkeyboard-modifications {
    height: 46px
  }
}

@media screen and (min-width:992px) {
  div.mlkeyboard ul {
    width: 752px;
    height: 260px;
    margin: 0 auto;
    padding: 0;
    border-radius: 5px 5px 0 0
  }

  div.mlkeyboard ul li {
    width: 46px;
    height: 46px;
    line-height: 46px;
    margin: 2px
  }

  div.mlkeyboard ul .mlkeyboard-backspace {
    width: 70px
  }

  div.mlkeyboard ul .mlkeyboard-tab {
    width: 69px
  }

  div.mlkeyboard ul .mlkeyboard-capslock {
    width: 84px
  }

  div.mlkeyboard ul .mlkeyboard-return {
    width: 84px
  }

  div.mlkeyboard ul .mlkeyboard-left-shift,
  div.mlkeyboard ul .mlkeyboard-right-shift {
    width: 110px
  }

  div.mlkeyboard ul .mlkeyboard-space {
    width: 430px
  }

  div.mlkeyboard ul li:nth-child(54),
  div.mlkeyboard ul li:nth-child(56) {
    width: 130px;
    text-transform: lowercase;
    font-size: 12px
  }

  div.mlkeyboard ul.mlkeyboard-modifications {
    height: 46px
  }
}

/* Responsive 4K App Scaling Fix */
@media screen and (min-width: 1200px) {
  div.mlkeyboard {
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
    width: 100%;
    max-width: 2160px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    z-index: 10000;
  }

  div.mlkeyboard li,
  div.mlkeyboard ul {
    box-sizing: content-box;
  }

  div.mlkeyboard ul {
    width: 1870px;
    height: auto;
    margin: 0 auto;
    padding: 20px 0;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
  }

  div.mlkeyboard ul li {
    width: 115px;
    height: 115px;
    line-height: 115px;
    margin: 5px;
    font-size: 36px;
    border-radius: 12px;
  }

  div.mlkeyboard ul .mlkeyboard-backspace {
    width: 175px;
  }

  div.mlkeyboard ul .mlkeyboard-tab {
    width: 173px;
  }

  div.mlkeyboard ul .mlkeyboard-capslock {
    width: 210px;
  }

  div.mlkeyboard ul .mlkeyboard-return {
    width: 210px;
  }

  div.mlkeyboard ul .mlkeyboard-left-shift,
  div.mlkeyboard ul .mlkeyboard-right-shift {
    width: 275px;
  }

  div.mlkeyboard ul .mlkeyboard-space {
    width: 1100px;
  }

  div.mlkeyboard ul li:nth-child(54),
  div.mlkeyboard ul li:nth-child(56) {
    width: 355px;
    font-size: 30px;
    text-transform: lowercase;
  }

  div.mlkeyboard ul.mlkeyboard-modifications {
    height: 115px;
    padding: 15px;
    display: none;
  }
}