body {
  background: #111;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
#controls {
  display: flex;
  align-items: center;
  justify-content: center;
}
#controls button {
  padding: 1rem;
}
#game {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
#game-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  overflow: hidden;
}
.board {
  width: 300px;
  height: 380px;
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  grid-gap: 5px;
  padding: 10px;
  box-sizing: border-box;
}
.guess {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 5px;
}
.tile-container {
  display: inline-block;
}
.tile {
  border: 2px solid #3a3a3c;
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  line-height: 2rem;
  font-weight: bold;
  vertical-align: middle;
  box-sizing: border-box;
  color: #d7dadc;
  text-transform: uppercase;
  user-select: none;
}
.tile::before {
  content: '';
  display: inline-block;
  padding-bottom: 100%;
}
#keyboard {
  margin: 0 8px;
  user-select: none;
  height: 170px;
}
.keyboard-row {
  display: flex;
  width: 100%;
  margin: 0 auto 8px;
  touch-action: manipulation;
}
.key {
  font-family: inherit;
  font-weight: bold;
  border: 0;
  padding: 0;
  margin: 0 6px 0 0;
  height: 50px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  background-color: #818384;
  color: #d7dadc;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.3);
}
.message {
  width: 100%;
  position: absolute;
  will-change: opacity, visibility;
}
.message.hide {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 300ms, opacity 300ms;
}
.message.show {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s linear 0s, opacity 300ms;
}
.message .text {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  letter-spacing: 0.2rem;
}
.correct {
  background-color: #538d4e;
}
.oop {
  background-color: #b59f3b;
}
.wrong {
  background-color: #333;
}
#footer {
  width: 100%;
  text-align: center;
}
#bmac {
  color: teal;
  font-family: sans-serif;
  text-decoration: none;
}