
body {
  margin: 0;
  padding: 0;
  background-color: #f4f7f6;
  color: #333;
  font-family: "Poppins", sans-serif;
}
/* Header Animation */
header {
  background-color: #073f29;
  color: white;
  padding: 20px 0;
  text-align: center;
  font-size: 2rem;
  animation: slideDown 0.5s ease-out;
}

/* Nav Animation */
nav {
  background-color: #097009;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-out;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin-right: 20px;
  animation: slideIn 0.5s ease-out;
  animation-fill-mode: both;
}

/* Delay each nav item slightly */
nav ul li:nth-child(1) { animation-delay: 0.1s; }
nav ul li:nth-child(2) { animation-delay: 0.2s; }
nav ul li:nth-child(3) { animation-delay: 0.3s; }

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ffcc00;
}

/* Main Content Animation */
main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out;
}

.about-main {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  animation: slideUp 0.5s ease-out;
}

.about-section {
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
  animation-delay: 0.3s;
}

.about-section h2,
.about-section h3 {
  color: #073f29;
  font-size: 1.8rem;
  margin-bottom: 10px;
  opacity: 0;
  animation: slideIn 0.5s ease-out forwards;
  animation-delay: 0.2s;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
  animation-delay: 0.4s;
}

/* Form Elements Animation */
input, select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 5px 0;
  width: 100%;
  max-width: 300px;
  transition: all 0.3s ease;
}

input:focus, select:focus {
  border-color: #097009;
  box-shadow: 0 0 5px rgba(9, 112, 9, 0.2);
}

button {
  background-color: #097009;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #073f29;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

button:active {
  transform: translateY(0);
}

/* Results Animation */
#result,
#daily_exchange_result {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #ddd;
  animation: fadeIn 0.5s ease-out;
}



/* Footer Animation */
footer {
  background-color: #073f29;
  color: white;
  text-align: center;
  padding: 20px 0;
  position: relative;
  bottom: 0;
  width: 100%;
  font-size: 0.9rem;
  animation: slideUp 0.5s ease-out;
}

/* Define Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    padding: 20px;
  }

  nav ul li {
    margin-bottom: 10px;
  }

  main {
    padding: 20px;
  }
  
  .about-main {
    padding: 20px;
  }

  input, select {
    width: 100%;
  }
}

/* Add smooth scrolling to the whole page */
html {
  scroll-behavior: smooth;
}

