body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f7f1;
  margin: 0;
  padding: 1rem;
  color: #333;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}

h1 {
  font-family: 'Brush Script MT', cursive;
  font-size: 3rem;
  color: #d67f7f;
  text-shadow: 1px 1px 1px #b55252;
}

form {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 2px 4px 8px rgba(213, 127, 127, 0.3);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

input[type="text"],
textarea {
  font-size: 1rem;
  padding: 0.6rem;
  border: 2px solid #d67f7f;
  border-radius: 8px;
  resize: none;
}

button {
  background-color: #d67f7f;
  color: white;
  padding: 0.75rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #b55252;
}

#diary {
  max-width: 700px;
  margin: 0 auto;
}

.city-entry {
  background: #fff6f6;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  margin-bottom: 2rem;
  box-shadow: 2px 3px 10px rgba(214, 127, 127, 0.3);
  border: 1px dashed #d67f7f;
}

.city-entry h2 {
  font-family: 'Brush Script MT', cursive;
  font-size: 2rem;
  color: #b55252;
  margin-bottom: 0.3rem;
}

.city-entry p {
  font-size: 1rem;
  margin-bottom: 1rem;
  white-space: pre-line;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.gallery img {
  width: 150px;
  border-radius: 10px;
  box-shadow: 1px 1px 5px rgba(181, 82, 82, 0.4);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.confirm-message {
  text-align: center;
  margin-top: 1rem;
  color: #28a745;
  font-weight: bold;
  font-size: 1rem;
  animation: fadeOut 2s ease-out forwards;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; display: none; }
}
