
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  background: linear-gradient(135deg, #2d5016, #4a7c59, #6b8e23, #8fbc8f);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  color: #2c3e2d;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.floating-leaves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.leaf {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #228b22;
  border-radius: 0 100% 0 100%;
  animation: float 15s infinite linear;
  opacity: 0.7;
}

.leaf:nth-child(1) { left: 10%; animation-delay: 0s; }
.leaf:nth-child(2) { left: 20%; animation-delay: 2s; }
.leaf:nth-child(3) { left: 30%; animation-delay: 4s; }
.leaf:nth-child(4) { left: 40%; animation-delay: 6s; }
.leaf:nth-child(5) { left: 50%; animation-delay: 8s; }
.leaf:nth-child(6) { left: 60%; animation-delay: 10s; }
.leaf:nth-child(7) { left: 70%; animation-delay: 12s; }
.leaf:nth-child(8) { left: 80%; animation-delay: 14s; }

@keyframes float {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

header {
  background: linear-gradient(135deg, #1e3a1e, #2d5016);
  color: #f0f8e8;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  position: relative;
  z-index: 10;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
  to { text-shadow: 2px 2px 20px rgba(144, 238, 144, 0.8); }
}

header p {
  font-size: 1.2em;
  opacity: 0.9;
}

nav {
  background: rgba(240, 248, 232, 0.95);
  padding: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav a {
  margin: 0 20px;
  text-decoration: none;
  color: #2d5016;
  font-weight: bold;
  font-size: 1.1em;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
}

nav a:hover {
  background: #6b8e23;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(107, 142, 35, 0.4);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
}

section {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  margin: 30px 0;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #228b22, #6b8e23, #8fbc8f);
  border-radius: 20px 20px 0 0;
}

section h2 {
  color: #2d5016;
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #6b8e23;
  border-radius: 2px;
}

section p {
  line-height: 1.8;
  font-size: 1.1em;
  text-align: justify;
  margin-bottom: 20px;
}

.story-content {
  font-size: 1.15em;
  line-height: 1.9;
  text-align: left;
}

.story-content p {
  margin-bottom: 25px;
  text-indent: 30px;
}

ul {
  padding-left: 30px;
  margin: 20px 0;
}

li {
  margin: 10px 0;
  font-size: 1.1em;
  line-height: 1.6;
}

footer {
  background: linear-gradient(135deg, #1e3a1e, #2d5016);
  color: #f0f8e8;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.question {
  background: rgba(255, 255, 255, 0.95);
  padding: 25px;
  margin: 20px 0;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-left: 5px solid #6b8e23;
}

.question h3 {
  color: #2d5016;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.options {
  margin: 15px 0;
}

.options label {
  display: block;
  margin: 10px 0;
  padding: 10px;
  background: rgba(240, 248, 232, 0.7);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.options label:hover {
  background: rgba(107, 142, 35, 0.2);
  transform: translateX(5px);
}

.options input[type="radio"] {
  margin-right: 10px;
}

.feedback {
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
  font-weight: bold;
  display: none;
}

.feedback.correct {
  background: rgba(34, 139, 34, 0.2);
  color: #1e5e1e;
  border: 2px solid #228b22;
}

.feedback.incorrect {
  background: rgba(220, 20, 60, 0.2);
  color: #8b0000;
  border: 2px solid #dc143c;
}

.submit-btn {
  background: linear-gradient(135deg, #6b8e23, #228b22);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 142, 35, 0.4);
}

.character-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 25px;
  margin: 20px 0;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-top: 4px solid #6b8e23;
}

.character-card h3 {
  color: #2d5016;
  font-size: 1.5em;
  margin-bottom: 15px;
  text-align: center;
}

.character-info {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 15px;
  margin: 15px 0;
}

.character-info strong {
  color: #2d5016;
}

@media (max-width: 768px) {
  .container {
    padding: 20px 10px;
  }
  
  section {
    padding: 25px 20px;
    margin: 20px 0;
  }
  
  header h1 {
    font-size: 2em;
  }
  
  nav a {
    margin: 5px 10px;
    padding: 8px 15px;
    font-size: 1em;
  }
  
  .character-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8em;
  }
  
  section {
    padding: 20px 15px;
  }
  
  nav a {
    display: block;
    margin: 5px 0;
  }
}