/* General page styling */
body {
  font-family: 'Helvetica', 'Arial', sans-serif;
  background: linear-gradient(120deg, #f0f4f8, #d9e2ec);
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(to right, #a3cef1, #f4d35e);
  color: #1b1b2f;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  animation: fadeInDown 1.2s ease forwards;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1rem;
  font-style: italic;
}

/* Main container */
.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Message boxes */
.post {
  background: #ffffffdd;
  border-left: 5px solid #f4a261;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.5s; }
.fade-in:nth-child(3) { animation-delay: 0.8s; }
.fade-in:nth-child(4) { animation-delay: 1.1s; }
.fade-in:nth-child(5) { animation-delay: 1.4s; }
.fade-in:nth-child(6) { animation-delay: 1.7s; }
.fade-in:nth-child(7) { animation-delay: 2s; }

.fade-in-delayed {
  opacity: 0;
  animation: fadeIn 2.5s forwards;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(to right, #f4a261, #e76f51);
  color: #fff;
  position: relative;
}

footer p {
  max-width: 600px;
  margin: 0 auto 1rem;
  font-style: italic;
}

/* Buttons */
button {
  cursor: pointer;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  background: linear-gradient(to right, #ffb347, #ffcc33);
  color: #1b1b2f;
  transition: transform 0.2s ease, background 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, #ffcc33, #ffb347);
}

/* Popup */
.popup {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffffee;
  border: 2px solid #f4a261;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 100;
}

.popup p {
  font-weight: bold;
  color: #1b1b2f;
}

.popup .buttons {
  display: flex;
  justify-content: space-around;
}

.popup .hidden {
  display: none;
}

/* Animations */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Text color gradients for posts */
.post:nth-child(1) p { color: #264653; }
.post:nth-child(2) p { color: #2a9d8f; }
.post:nth-child(3) p { color: #e9c46a; }
.post:nth-child(4) p { color: #f4a261; }
.post:nth-child(5) p { color: #e76f51; }
.post:nth-child(6) p { color: #8ab17d; }
.post:nth-child(7) p { color: #6d6875; }

/* Responsive adjustments */
@media (max-width: 600px) {
  .container { padding: 0 0.5rem; }
  footer p { font-size: 0.9rem; }
  button { font-size: 0.9rem; padding: 0.6rem 1rem; }
}