/* tutorial.css */
#tutorial-overlay {
  z-index: 9998;
  /* Ensure the overlay covers the entire viewport */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
}

#tutorial-overlay:not(.hidden) {
  display: block;
}

#tutorial-modal {
  z-index: 10000;
  max-width: 400px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  position: fixed;
}

#tutorial-highlight {
  z-index: 9999;
  transition: all 0.3s ease;
  position: fixed;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #tutorial-modal {
    max-width: 300px;
    margin: 10px;
  }
  
  #tutorial-modal .p-6 {
    padding: 1rem;
  }
  
  #tutorial-modal .text-xl {
    font-size: 1.25rem;
  }
  
  #tutorial-modal .text-sm {
    font-size: 0.75rem;
  }
}

/* Animation for tutorial modal */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

#tutorial-modal:not(.hidden) {
  animation: fadeIn 0.3s ease-out;
}

/* Additional fix to ensure overlay doesn't block interaction when hidden */
#tutorial-overlay.hidden,
#tutorial-modal.hidden,
#tutorial-highlight.hidden {
  display: none;
}