body {
  font-family: 'Comic Neue', cursive;
  background: linear-gradient(to bottom, #f4f1e9, #d8e3c2);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #3e3b2b;
}

.container {
  text-align: center;
  padding: 20px;
  background: #fffaf0cc;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 90%;
  max-width: 600px;
}

h1 {
  color: #3c5a3a;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.1rem;
  color: #5a5035;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

input[type="text"] {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #b0a48f;
  width: 60%;
  font-size: 1rem;
}

button {
  background-color: #81a969;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #6f945a;
}

.story-title {
  color: #44663f;
  font-size: 1.3rem;
  margin-top: 10px;
}

.story-box {
  background: linear-gradient(to right, #f7f6ed, #e6f0d5);
  border-radius: 15px;
  padding: 20px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.1);
  min-height: 120px;
  white-space: pre-wrap;
  font-size: 1.05rem;
  color: #3e3b2b;
  margin-bottom: 15px;
  text-align: left;
}

.hidden {
  display: none;
}

footer {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #6b6348;
}

@media (max-width: 600px) {
  .input-group {
    flex-direction: column;
    gap: 10px;
  }

  input[type="text"] {
    width: 100%;
  }

  button {
    width: 100%;
  }
}
