/* Custom Transitions for Pathology Regulations Presentation */

/* Slide transitions */
.reveal .slides section {
  transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Enhanced Transitions for Regulation Slides */
.reveal .slides section.regulation-slide {
  transition: transform 0.8s ease, opacity 0.8s ease, background-color 0.8s ease;
}

.reveal .slides section.hipaa-slide {
  background: linear-gradient(to bottom right, rgba(52, 152, 219, 0.1), rgba(255, 255, 255, 0.9));
}

.reveal .slides section.clia-slide {
  background: linear-gradient(to bottom right, rgba(46, 204, 113, 0.1), rgba(255, 255, 255, 0.9));
}

.reveal .slides section.fda-slide {
  background: linear-gradient(to bottom right, rgba(231, 76, 60, 0.1), rgba(255, 255, 255, 0.9));
}

/* Slide Fragment Transitions */
.reveal .slides .fragment {
  transition: all 0.8s ease;
}

.reveal .slides .fragment.visible {
  transition-delay: 0.2s;
}

/* Sequential Fragment Transitions */
.reveal .slides .fragment:nth-child(1) { transition-delay: 0.1s; }
.reveal .slides .fragment:nth-child(2) { transition-delay: 0.2s; }
.reveal .slides .fragment:nth-child(3) { transition-delay: 0.3s; }
.reveal .slides .fragment:nth-child(4) { transition-delay: 0.4s; }
.reveal .slides .fragment:nth-child(5) { transition-delay: 0.5s; }
.reveal .slides .fragment:nth-child(6) { transition-delay: 0.6s; }

/* Custom animation for key terms */
.reveal .key-term {
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.reveal .key-term:hover {
  animation: pulse 1s infinite;
}

/* Definition panel transitions */
.reveal .definition-panel {
  transition: all 0.5s ease;
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
}

.reveal .definition-panel.visible {
  transform: scaleY(1);
  opacity: 1;
}
