@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

body {
  background-color: #f5f3ff;
  margin: 0 100px;
  color: #111827;
  font-family: "Roboto", sans-serif;
}
header {
  margin-bottom: 30px;
  margin-top: 70px;
}
h1 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.5;
  background: linear-gradient(to right, #2563eb, #9333ea);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.emoji {
  -webkit-text-fill-color: #2563eb;
  background: none;
}
.subtext {
  text-align: center;
  color: #6b7280;
  font-size: 20px;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  width: 100%;
  margin: 0 50px;
}
.hidden {
  display: none;
}
label {
  display: block;
  margin: 0 auto;
  padding: 5px 10px;
  color: #6b7280;
  font-weight: 600;
}
textarea {
  resize: none;
  border-radius: 5px;
  border: none;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  width: 600px;
  height: 300px;
  padding: 15px 10px;
  font-size: 16px;
}
textarea::placeholder {
  color: #64748b;
  font-size: 15px;
}
.result {
  width: 600px;
  max-height: 300px;
  padding: 15px 10px;
  font-size: 16px;
  border-radius: 5px;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow-y: auto;
}
textarea,
.result {
  background-color: #ffffff;
  color: #111827;
  border-left: 3px solid #2563eb;
}
textarea:focus {
  outline: none;
}
.generateBtn {
  background: linear-gradient(to right, #2563eb, #9333ea);
  color: white;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  display: block;
  margin: 5px auto;
}
.generateBtn:hover {
  background: #1d4ed8;
  transform: scale(1.1);
  transition: all 200ms ease-in-out;
}
.generateBtn:focus {
  outline: 2px solid #9333ea;
  outline-offset: 2px;
}
footer {
  text-align: center;
  margin: 30px 0;
  font-size: 15px;
}
a {
  background: linear-gradient(to right, #2563eb, #9333ea);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
a:hover {
  -webkit-text-fill-color: #1d4ed8;
  background: none;
}
.generating {
  animation: blink-animation 1s steps(5, start) infinite;
}

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