html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #ffb2d0;
  font-family: Georgia, serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  position: relative;
  width: 320px;
  padding: 30px;
  border-radius: 16px;
  background: #fffaf0;
  box-shadow: 4px 6px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform-origin: top left;
  transition: transform 800ms ease;
}

.card.droop {
  transform: rotate(-10deg) translateY(20px);
}

.card h1 {
  cursor: pointer;
  min-height: 48px;
  margin-top: 0;
}

input,
textarea,
select {
  width: 100%;
  margin: 10px 0;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
  box-sizing: border-box;
}

textarea {
  resize: none;
  height: 80px;
}

button {
  background: #bc5470;
  transition: background-color 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: white;
  font-size: 18px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
}

button:hover {
  background: #d04261;
}

button:disabled {
  opacity: 0.75;
  cursor: wait;
}

#response {
  min-height: 1.4em;
}

#missWord {
  display: inline-block;
  position: relative;
}

.word-fall {
  animation: fallWord 2.4s ease-in forwards;
}

@keyframes fallWord {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 1;
  }
  20% {
    transform: translate(30px, 60px) rotate(40deg);
  }
  40% {
    transform: translate(-20px, 140px) rotate(-30deg);
  }
  60% {
    transform: translate(25px, 240px) rotate(70deg);
  }
  80% {
    transform: translate(-15px, 340px) rotate(-50deg);
  }
  100% {
    transform: translate(10px, 480px) rotate(100deg);
    opacity: 0;
  }
}
