/* style.css */

body {
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', sans-serif;
  background-image: linear-gradient(to bottom right, #f8f8f8, #ffffff);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* This makes the background fixed */
  color: #333;
  min-height: 100vh; /* Ensure body takes at least full viewport height */
  transition: background-image 1s ease-in-out;
}

header .banner {
  background-color: #ffdce0;
  color: #5a2a27;
  padding: 1rem;
  font-size: 1.2rem;
  text-align: center;
  font-family: 'Kosugi Maru', sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#container {
  width: 95%;
  max-width: 650px;
  margin: 2rem auto; /* Keeps the centered layout */
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 12px;
  min-height: 40vh;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3px);
}

/* ... the rest of your CSS remains the same ... */

h1 {
  font-family: 'Kosugi Maru', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.jp {
  font-size: 0.9rem;
  color: #777;
  font-family: 'Kosugi Maru', sans-serif;
  margin-left: 0.4rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
button {
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  background-color: #ff9aa2;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #ff7f8c;
}

#output {
  margin-top: 2rem;
}

#output .info-box {
  border: 2px solid #ffd700;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s ease;
  white-space: pre-wrap;
}

#output h2 {
  font-family: 'Kosugi Maru', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

#output p {
  font-style: italic;
  color: #444;
  margin-top: 1rem;
}

#reflectionText.poem {
  font-family: 'Kosugi Maru', serif;
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  white-space: pre-wrap;
}

#reflectionText.loading {
  font-style: normal;
  font-weight: bold;
  font-family: monospace;
  color: #999;
  animation: dots 1.5s infinite;
}

.diary-log {
  margin-top: 2rem;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.diary-entry {
  border-bottom: 1px dashed #ccc;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dots {
  0% {
    content: "Loading";
  }

  33% {
    content: "Loading.";
  }

  66% {
    content: "Loading..";
  }

  100% {
    content: "Loading...";
  }
}

@media (max-width: 576px) {
  #container {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  form {
    gap: 0.75rem;
  }

  input,
  button {
    font-size: 0.9rem;
    padding: 0.6rem;
  }

  #output h2 {
    font-size: 1.25rem;
  }
}
