@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9fff9;
  color: #2d4032;
  line-height: 1.7;
}

header {
  background-color: #2e7d32;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s;
  position: absolute;
  bottom: -4px;
  left: 0;
}

nav a:hover::after {
  width: 100%;
}

main {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
}

section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  animation: fadeIn 0.6s ease-in-out;
}

h1, h2 {
  color: #1e4620;
  margin-bottom: 1rem;
}

ul {
  padding-left: 1.5rem;
}

img {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-btn, .secondary-btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.main-btn {
  background-color: #4caf50;
  color: white;
}

.main-btn:hover {
  background-color: #388e3c;
}

.secondary-btn {
  background-color: #2e7d32;
  color: white;
  margin: 0.5rem;
}

.secondary-btn:hover {
  background-color: #1b5e20;
}

.link-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.final-image {
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .link-grid {
    flex-direction: column;
    align-items: center;
  }
}

.hidden {
  display: none;
}

#progress-container {
  width: 100%;
  background-color: #ddd;
  height: 10px;
  border-radius: 5px;
  margin-bottom: 1rem;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  background-color: #4caf50;
  width: 0%;
  transition: width 0.3s ease;
}
.answer-btn {
  display: block;
  padding: 1rem;
  margin: 0.5rem 0;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  background-color: #e0f2f1;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.answer-btn:hover {
  background-color: #c8e6c9;
}

.correct {
  background-color: #a5d6a7 !important;
}

.wrong {
  background-color: #ef9a9a !important;
}
.answer-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  margin: 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: #e8f5e9;
  border: 2px solid #4caf50;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-align: left;
  color: #2d4032;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.answer-btn:hover:not(:disabled) {
  background-color: #c8e6c9;
  transform: scale(1.02);
}

.answer-btn.correct {
  background-color: #a5d6a7 !important;
  border-color: #2e7d32;
}

.answer-btn.wrong {
  background-color: #ffcdd2 !important;
  border-color: #c62828;
  color: #b71c1c;
}

#next-btn {
  margin-top: 1.5rem;
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#next-btn:hover:not(:disabled) {
  background-color: #388e3c;
  transform: scale(1.03);
}

#next-btn:disabled {
  background-color: #a5d6a7;
  cursor: not-allowed;
  opacity: 0.7;
}
#result {
  background-color: #e8f5e9;
  border: 2px solid #81c784;
  padding: 2rem;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  animation: fadeIn 0.6s ease-in-out;
  max-width: 600px;
  margin: 2rem auto;
}

#result h2 {
  color: #2e7d32;
  font-size: 2rem;
  margin-bottom: 1rem;
}

#score {
  font-size: 1.5rem;
  color: #1b5e20;
  margin-bottom: 2rem;
}
