body, html {
  background: #000;
  color: #fff;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

.header {
  border-bottom: 1px solid #3a3a3c;
}
.nav {
  max-width: 340px;
  margin: 0 auto;
}
.title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.title {
  font-size: 34px;
  font-weight: 700;
  margin-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 0;
}
#language {
  background: none;
  border: 0;
  margin-left: 10px;
  margin-top: 2px;
  font-size: 26px;
  padding: 0 5px;
  border-radius: 4px;
  background-color: #3a3a3a;
  transition: all .3s;
  cursor: pointer;
}
#language:hover {
  background-color: #474747;
}
#table {
  margin: 40px 0;
}
.row {
  display: flex;
  justify-content: center;
}
.square {
  width: 60px;
  height: 60px;
  line-height: 60px;
  border: 2px solid #444;
  display: inline-block;
  margin: 2px;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
}
#keyboard {
  width: 100%;
  margin: 0 auto;
  max-width: 450px;
}
.keyboard__row {
  display: flex;
}
.space {
  flex-grow: .5;
}
.button {
  display: flex;
  flex: 1 1 0;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-transform: uppercase;
  padding: 0;
  border: 0;
  margin: 3px;
  border-radius: 4px;
  height: 55px;
  border: none;
  font-size: 14px;
  color: #fff;
}
.button__large {
  flex-grow: 2.5;
}

.press {
  animation: keydown 50ms ease-out;
}

.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes press {
  from {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.2);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

@media (max-width: 420px) {
  .title {
    font-size: 28px;
    padding-left: 5px;
  }
  #table {
    margin: 10px 0;
  }
  #keyboard {
    position: sticky;
    bottom: 0;
  }
  .button {
    font-size: 12px;
  }
}