@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Lora:ital@0;1&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #6B1E3C;
  font-family: 'Lora', serif;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(#7C2548 0deg 9deg, #6B1E3C 9deg 18deg);
  opacity: 0.6;
  z-index: -1;
}

.container {
  margin: 80px auto;
  max-width: 600px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

header {
  margin-bottom: 30px;
}

h1 {
  font-family: 'Abril Fatface', serif;
  font-size: 42px;
  color: #d4a24c;
  text-align: center;
  line-height: 1.3;
  margin: 0 0 40px;
  text-shadow: 2px 2px 0 #4A1024;
}

.form-container {
  background-color: #F2E8D5;
  border-radius: 4px;
  margin-bottom: 24px;
  padding: 30px 28px;
  border: 3px double #d4a24c;
}

form {
  display: flex;
}

.hint {
  margin-top: 12px;
  opacity: 0.85;
  font-size: 13px;
  color: #F2D9C4;
  text-align: center;
  /* font-style: italic; */
}

.instructions {
  flex: 1;
  padding: 14px 16px;
  border: 1.5px solid #6B1E3C;
  font-size: 16px;
  border-radius: 3px;
  color: #1a1a1a;
  background: #fff;
  /* font-family: 'Lora', serif; */
}

.instructions:focus {
  outline: none;
  border-color: #1B6B6B;
  box-shadow: 0 0 0 2px rgba(27, 107, 107, 0.25);
}

.submit-button {
  margin-left: 12px;
  background: #1b6b6b;
  color: #F2E8D5;
  border: 1.5px solid #d4a24c;
  letter-spacing: 0.03em;
  font-size: 16px;
  border-radius: 3px;
  padding: 14px 26px;
  cursor: pointer;
  font-family: 'Abril Fatface', serif;
  /* font-family: 'Abril Fatface', serif; */
}

.submit-button:hover {
  background: #144F4F;
}

.hidden {
  display: none;
}

.poem {
  background: #F2E8D5;
  border: 1px dashed #6B1E3C;
  border-radius: 4px;
  padding: 24px 22px;
  font-size: 16px;
  line-height: 1.9;
  /* font-style: italic; */
  color: #4A1024;
  text-align: center;
}

.generating {
  animation: blink-animation 1s steps(5, start) infinite;
}

/* @keyframes blink-animation {
  to {
    visibility: hidden;
  }
} */