body {
  font-family: 'Nunito', sans-serif;
}

/* Fix for mobile height issues */
.h-dvh {
  height: 100vh;
  /* Fallback */
  height: 100dvh;
  /* Dynamic viewport height */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Animation classes */
.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(15px);
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Quiz Styles */
.quiz-option {
  transition: all 0.2s ease;
}

.quiz-option:hover:not(:disabled) {
  transform: translateX(4px);
  background-color: #f8fafc;
}

.quiz-option.correct {
  background-color: #d1fae5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
}


.quiz-option.wrong {
  background-color: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
  opacity: 0.8;
}

/* Responsive improvements for mobile */
@media (max-width: 768px) {

  /* Optimize images for mobile viewport */
  img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }



  /* Better font sizing for small screens */
  .text-4xl {
    font-size: 1.875rem !important;
    /* 30px */
  }

  .text-5xl {
    font-size: 2.25rem !important;
    /* 36px */
  }

  /* Ensure proper spacing in chat window */
  #chatWindow {
    padding-bottom: 8rem !important;
  }
}

/* Very small screens (phones in portrait) */
@media (max-width: 480px) {


  .text-xl {
    font-size: 1.125rem !important;
    /* 18px */
  }
}