div.game-area {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

div.word-row {
  padding: 8px;
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

div.game-area input {
  height: 50px;
  width: 50px;
  text-align: center;
  font-size: 32px;
  border-radius: 5px;
  margin: 8px;
}

.correct {
  background-color: green !important;
}

.misplaced {
  background-color: orange !important;
}

.incorrect {
  background-color: gray !important;
}

input[disabled] {
  color: black;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.apply-shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

div.keyboard {
  display: grid;
  grid-template-columns: repeat(10, 2.6rem);
  gap: .5rem;
  justify-content: center;
  align-content: start;
}

div.keyboard > span {
  display: grid;
  place-items: center;
  height: 2.6rem;
  border: 1px solid #bbb;
  border-radius: .45rem;
  background: #f7f7f7;
  font: 600 1rem/1 system-ui, sans-serif;
  user-select: none;
}

button {
  padding: 8px;
  font-size: 16px;
  font-variant: small-caps;
}

dialog {
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1)
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5)
}

#menu {
  background: #ccc;
  padding: 5px;
}

body {
  margin: 0;
}
