body {
  font-family: 'Consolas', monospace;
  text-align: center;
  background-color: bisque;
}

h1 {
  margin-bottom: 20px;
}

#pic {
  width: 125px;
  height: 167px;
  object-fit: none;
  margin-bottom: 20px;
}

#pic.l0 {
  object-position: 125px 0;
}

#pic.l1 {
  object-position: 0 0;
}

#pic.l2 {
  object-position: -125px 0;
}

#pic.l3 {
  object-position: -250px 0;
}

#pic.l4 {
  object-position: -375px 0;
}

#pic.l5 {
  object-position: 0 -167px;
}

#pic.l6 {
  object-position: -125px -167px;
}

#pic.l7 {
  object-position: -250px -167px;
}

#pic.l8 {
  object-position: -375px -167px;
}

#mask {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 8px;
  margin-bottom: 10px;
}

#keyboard {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  justify-content: center;
  max-width: 400px;
  margin: 20px auto;
}

#keyboard button {
  font-size: 18px;
  padding: 10px;
  border: 1px solid #333;
  background-color: white;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 5px;
  outline: 1px solid black;
}

#keyboard button:hover {
  background-color: lightgray;
}

#keyboard button:disabled {
  cursor: not-allowed;
  color: white;
}

#restart {
  font-size: 18px;
  padding: 10px;
  border: 1px solid #333;
  background-color: white;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 5px;
  outline: 1px solid black;
}

#restart:hover {
  background-color: lightgray;
}

#keyboard button.found:disabled,
.found {
  background-color: forestgreen;
}


#keyboard button.fail:disabled,
.fail {
  background-color: maroon;
}

.win {
  color: forestgreen;
}

.lose {
  color: maroon;
}

#body.win {
  background-color: darkseagreen;
}

#body.lose {
  background-color: darksalmon;
}