/* 
  Kuwahara Project Slides - Modern Custom CSS 
  Theme: Purdue Academic (Gold, Black, White)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* Base Override */
.reveal, .reveal.slide {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 30px !important; 
  color: #333333;
}

.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  color: #000000;
  margin-bottom: 24px;
}

.reveal h1 {
  font-size: 2.2em !important;
}

.reveal h2 {
  font-size: 1.6em !important;
  border-bottom: 3px solid #000000;
  padding-bottom: 10px;
  display: inline-block;
  margin-bottom: 1.2em;
}

.reveal h3 {
  font-size: 1.3em !important;
  color: #222222;
}

/* Remove Glassmorphism Panel for Slides and ALIGN LEFT */
.reveal .slides section {
  text-align: left; /* Enforce left alignment */
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transition: all 0.4s ease;
  box-sizing: border-box; 
  width: 100%;
}

.reveal .slides section * {
  text-align: left; /* Ensure children also align left by default */
}

/* But keep center alignment for images inside blocks if needed, or explicitly for certain elements */
.reveal .slides section img {
  display: block;
  margin: 0 auto;
}

/* Typography & Links */
.reveal p {
  line-height: 1.6;
  font-size: 0.95em;
  font-weight: 400;
  color: #333333;
}

.reveal a {
  color: #CFB991; /* Purdue Gold */
  transition: color 0.2s ease;
}

.reveal a:hover {
  color: #000000;
}

/* Lists */
.reveal ul, .reveal ol {
  display: block;
  text-align: left;
  margin-left: 2em;
  margin-bottom: 1em;
}

.reveal li {
  margin-bottom: 12px;
  color: #333333;
}

.reveal li strong {
  color: #000000;
}

/* Hover effects for images */
.reveal img {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  background: #ffffff !important;
}

.reveal img:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Code block customization */
.reveal pre {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Custom fragment fade up */
.reveal .fragment.fade-up {
  transform: translateY(20px);
}
.reveal .fragment.fade-up.visible {
  transform: translateY(0);
}

/* Custom Title Slide Styling */
.reveal section.purdue-title-slide {
  text-align: left;
  padding-left: 5% !important;
}

.reveal section.purdue-title-slide h1 {
  color: #000000;
  border-bottom: none;
  margin-bottom: 0.2em;
}

.reveal section.purdue-title-slide h3 {
  color: #333333;
  font-weight: 400;
}

.reveal section.purdue-title-slide p {
  color: #000000;
  font-weight: 600;
  margin-top: 2em;
}

/* The Black Angled Wedge for the Title Slide Background */
.reveal.purdue-title-state .backgrounds::after {
  content: "";
  position: absolute;
  top: 0;
  right: -10%;
  width: 40%;
  height: 100%;
  background-color: #000000;
  transform: skewX(-15deg);
  z-index: 10;
}

/* Hide footer on title slide to keep it clean */
.reveal.purdue-title-state .footer {
  display: none !important;
}

/* Mermaid adjustments for Light Mode */
.reveal .mermaid {
  background: transparent;
  border-radius: 12px;
  padding: 20px;
}

.reveal .mermaid svg {
  max-width: 100% !important;
  max-height: 800px !important;
  height: auto !important;
}

.reveal .mermaid {
  /* Let Mermaid's JS configuration handle the font size and layout calculation */
}

/* Footer override */
.reveal .footer {
  color: #666666 !important;
  font-size: 0.6em !important;
  font-weight: 400;
}
