* {
  box-sizing: border-box;
}

body {
  font-family: monospace;
  margin: 0;
  background: #121212;
  display: grid;
  place-content: center;
  min-height: 100vh;
  padding: 25px;
  font-size: 20px;
  color: #E0E0E0;
}

.keyboard_wrapper {
  width: 740px;
  padding: 25px;
  border-radius: 15px;
  box-shadow: -4px -4px 8px #000000, 4px 4px 8px #333333;

  background-color: #2B2B2B;
  background-image: linear-gradient(315deg, #2B2B2B 0%, #1F1F1F 74%);
}

.keyboard_wrapper .display {
  background-color: #1E1E1E;
  position: relative;
  font-size: 18px;
  font-family: inherit;
  height: 150px;
  border-radius: 15px;

  padding: 20px;
  overflow: hidden;
  overflow-y: auto;
  border: 2px inset #333;
  white-space: pre-wrap;
  box-shadow: inset 2px 2px 5px #000000, inset -2px -2px 5px #444;
  color: #E0E0E0;
}

.keyboard_wrapper .display::before {
  content: "";
  display: inline-block;
  height: 100%;
  width: 100%;
  background-image: linear-gradient(45deg, #ffffff1a, #0000004d);
  position: absolute;
  left: 0;
  top: 0;
}

.keyboard_wrapper .key {
  margin-top: 20px;
  text-transform: lowercase;
  user-select: none;
}

.keyboard_wrapper .key .row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  gap: 20px;
}

.keyboard_wrapper .key .row span {
  width: 50px;
  height: 50px;
  display: grid;
  place-content: center;
  border-radius: 8px;
  box-shadow: 3px 3px 6px #000000, -3px -3px 6px #444;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.3s;
  background-color: #333;
  color: #E0E0E0;
}

.keyboard_wrapper .key .row span.caps,
.keyboard_wrapper .key .row span.backspace {
  width: calc(50px * 1.6);
  display: flex;
  gap: 5px;
  align-items: center;
}

.keyboard_wrapper .key .row span.space {
  width: calc(50px * 9.4);
}

.keyboard_wrapper .key .row span.active,
.keyboard_wrapper .key .row span:hover {
  color: orangered;
  background-color: #444;
}

.keyboard_wrapper .key .row span.active,
.keyboard_wrapper .key .row span:active {
  box-shadow: inset 3px 3px 6px #000000, inset -3px -3px 6px #555;
}

.keyboard_wrapper .key.uppercase {
  text-transform: capitalize;
}
