:root {
  --loadingDotBgFirstColor--: #7ef9ff;
  --loadingDotBgSecondColor--: #89cff0;
  --loadingDotBgThirdColor--: #4682b4;
  --loadingDotBgFourthColor--: #0f52ba;
  --loadingDotBgFifthColor--: #000080;
}

body {
  font-family: 'Noto Serif SC', serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f4f4f9, #d8e3e7);
  color: #333;
}

.container {
  max-width: 600px;
  margin: 50px auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
  color: #007bff;
}

p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

input {
  width: 100%;
  padding: 12px;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 20px;
  outline: none;
  transition: all 0.3s;
}

input:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

button {
  width: 100%;
  padding: 14px;
  background-color: #007bff;
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0056b3;
}

.result {
  margin-top: 30px;
  padding: 40px 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
}

.result h3 {
  font-size: 22px;
  color: #007bff;
  margin-bottom: 10px;
}

.result p {
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
}

footer {
  text-align: center;
  margin-top: 50px;
  font-size: 14px;
  color: #777;
}

.poem-content {
  background-image: linear-gradient(135deg, #ABDCFF 10%, #0396FF 100%);
  padding: 15px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.poem-detail {
  background-image: linear-gradient(135deg, #CE9FFC 10%, #7367F0 100%);
  padding: 20px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.result .loading-content p {
  color: #535455;
}

/* loading style */
.loading-container {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  overflow: hidden;
  display: none;
}

.loading-content {
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.loading {
  display: flex;
  animation-delay: 1s;
}

.loading .dot {
  position: relative;
  border-radius: 50%;
  width: 2em;
  height: 2em;
  margin: 0.8em;
}


.loading .dot::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  animation: wave 2s ease-out infinite;
}

.loading .dot:nth-child(1) {
  background: var(--loadingDotBgFirstColor--);
}

.loading .dot:nth-child(1)::before {
  animation-delay: 0.2s;
}

.loading .dot:nth-child(2) {
  background: var(--loadingDotBgSecondColor--);
}

.loading .dot:nth-child(2)::before {
  animation-delay: 0.4s;
}

.loading .dot:nth-child(3) {
  background: var(--loadingDotBgThirdColor--);
}

.loading .dot:nth-child(3)::before {
  animation-delay: 0.6s;
}

.loading .dot:nth-child(4) {
  background: var(--loadingDotBgFourthColor--);
}

.loading .dot:nth-child(4)::before {
  animation-delay: 0.8s;
}

.loading .dot:nth-child(5) {
  background: var(--loadingDotBgFifthColor--);
}

.loading .dot:nth-child(5)::before {
  animation-delay: 1s;
}

@keyframes wave {

  50%,
  75% {
    transform: scale(2.5);
  }

  80%,
  100% {
    opacity: 0;
  }
}