body {
  background-image: url(/image/happy.png);
  background-repeat: no-repeat;
  background-size: cover;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

a {
  color: #f36b9f;
}

a:hover {
  color: #f30460;
}

.container {
  margin: 100px auto;
  max-width: 600px;
}

header {
  margin-bottom: 30px;
}

h1 {
  font-weight: 800;
  font-size: 36px;
  line-height: 1.5;
}

.form-container {
  padding: 15px 20px;
  background-color: #fcf8f5;
  border-radius: 8px;
  box-shadow: 0px 20px 60px rgba(65, 50, 100, 0.08);
  margin-bottom: 30px;
  opacity: 0.8;
}

form {
  display: flex;
}

.hint {
  line-height: 1.5;
  margin-top: 5px;
  font-size: 12px;
  opacity: 0.6;
}

.instruction {
  padding: 16px;
  border: 1px solid rgba black;
  width: 80%;
  font-size: 16px;
  border-radius: 20px;
  line-height: 20px;
}

.submit-button {
  margin-left: 15px;
  background: #f36b9f;
  border: none;
  border-radius: 40px;
  padding: 14px 24px;
  width: 150px;
  font-size: 16px;
  color: #fcf8f5;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition-duration: 0.4;
}

.submit-button:hover {
  background: #f185af;
  color: #fcf8f5;
}

.submit-button:focus-visible {
  outline: 2px solid rgb(3, 200, 249);
}

.poem {
  font-size: 16px;
  background-color: #fcf8f5;
  padding: 20px;
  line-height: 2;
  box-shadow: 0px 20px 60px rgba(39, 33, 66, 0.03);
  border-radius: 8px;
  opacity: 0.8;
  border-left: 2px solid #f36b9f;
}

.hidden {
  display: none;
}

.poem em {
  color: #f36b9f;
}

footer {
  text-align: center;
  font-size: 13px;
  margin-top: 30px;
}

/* HTML: <div class="loader"></div> */
.loader {
  --c1: #690570;
  --c2: #f36b9f;
  width: 40px;
  height: 80px;
  border-top: 4px solid var(--c1);
  border-bottom: 4px solid var(--c1);
  background: linear-gradient(
      90deg,
      var(--c1) 2px,
      var(--c2) 0 5px,
      var(--c1) 0
    )
    50%/7px 8px no-repeat;
  display: grid;
  overflow: hidden;
  animation: l5-0 2s infinite linear;
}
.loader::before,
.loader::after {
  content: "";
  grid-area: 1/1;
  width: 75%;
  height: calc(50% - 4px);
  margin: 0 auto;
  border: 2px solid var(--c1);
  border-top: 0;
  box-sizing: content-box;
  border-radius: 0 0 40% 40%;
  -webkit-mask:
    linear-gradient(#000 0 0) bottom/4px 2px no-repeat,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  background:
    linear-gradient(var(--d, 0deg), var(--c2) 50%, #0000 0) bottom / 100% 205%,
    linear-gradient(var(--c2) 0 0) center/0 100%;
  background-repeat: no-repeat;
  animation: inherit;
  animation-name: l5-1;
}
.loader::after {
  transform-origin: 50% calc(100% + 2px);
  transform: scaleY(-1);
  --s: 3px;
  --d: 180deg;
}
@keyframes l5-0 {
  80% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(0.5turn);
  }
}
@keyframes l5-1 {
  10%,
  70% {
    background-size:
      100% 205%,
      var(--s, 0) 100%;
  }
  70%,
  100% {
    background-position: top, center;
  }
}
