/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f1f6fa;
  color: #333;
  line-height: 1.6;
  animation: fadeInBody 1s ease-in;
}

/* Animations */
@keyframes fadeInBody {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Sticky Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #77c9c6;
  color: #fff;
  padding: 0rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  animation: slideInDown 0.6s ease-out;
}

.logo {
  font-size: 0.2rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

nav a {
  color: #fff;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, transform 0.2s;
}

nav a:hover {
  color: #ffc107;
  transform: scale(1.05);
}

/* Main Layout */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
  animation: fadeInUp 0.8s ease-out;
}

h1 {
  color: #003366;
  margin-bottom: 0.5rem;
  background-color: #d39c9c;
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
}

.ask-section {
  background: #ebf0df;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  animation: fadeInUp 1s ease;
}

.ask-section input {
  padding: 0.8rem;
  width: 60%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.ask-section input:focus {
  border-color: #003366;
  outline: none;
}

.ask-section button {
  display: block;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  background-color: #003366;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s;
}

.ask-section button:hover {
  background-color: #0055a5;
  transform: scale(1.05);
}

#answerArea {
  background: #eef4fa;
  border-left: 4px solid #003366;
  padding: 1rem;
  border-radius: 4px;
  margin: 1.5rem 0;
  animation: fadeInUp 0.6s ease-out;
}

h2 {
  text-align: center;
  color: #003366;
  margin-top: 2rem;
  animation: fadeInUp 1s ease-in-out;
}

/* Kiosk Section */
.kiosk-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeInUp 1.2s ease-out;
}

.kiosk-group {
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  animation: fadeInUp 1.2s ease-out;
}

.kiosk-group h3 {
  margin-bottom: 0.8rem;
  color: #003366;
}

.kiosk-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.8rem;
  margin: 0.4rem 0;
  font-size: 1rem;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.kiosk-btn:hover {
  background-color: #0055a5;
  transform: scale(1.02);
}

.answer-box {
  margin: 0.4rem 0 1rem 0;
  padding: 0.8rem 1rem;
  background: #eef4fa;
  border-left: 4px solid #003366;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #333;
  animation: fadeInUp 0.5s ease;
}

/* Footer */
footer {
background-color: #003366;
    color: #fff;
    text-align: center;
    padding: 0.1rem 1rem;
    font-size: 0.85rem;
    margin-top: auto;
    animation: fadeInUp 1.4s ease;
}

footer a {
  color: #ffc107;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  text-decoration: underline;
  color: #ffdb58;
}

/* Responsive Design */
@media (max-width: 600px) {
  nav a {
    margin-left: 1rem;
    font-size: 0.9rem;
  }

  .ask-section input {
    width: 90%;
  }

  .kiosk-btn {
    font-size: 0.95rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}
