@import url("https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap");
/* Tell Quarto/Mermaid to use Indie Flower */
:root {
    --mermaid-font-family: "Indie Flower";
}

/* Give list markers room so they don't get clipped */
ol, ul {
  padding-left: 1.2em;  /* adjust 1.2–2.0em to taste */
  margin-left: 0;
}

/* If you're in revealjs slides (common place clipping happens) */
.reveal .slides section {
  overflow: visible;
}


/* Make Mermaid diagrams scale to the container instead of keeping weird sizes */
.reveal .slides section.mermaid-slide {
  overflow: visible !important;
}
.reveal .mermaid {
  max-width: 100%;
}

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

.reveal .mermaid svg foreignObject {
  overflow: visible !important;
}

.reveal .mermaid svg text {
  transform: translateY(-50px);
}

.shadow-img {
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  transition: box-shadow 0.3s ease;
}

.reveal {
 /*  width: 1200px !important;*/
 /* max-width: 100%; */
}

.reveal .slides {
  padding: 0 !important;
}

.reveal .participation-slide {
    background-color: #1a1a2e; color: #f8f8ff;
}


.smaller {
    font-size: 0.9em;
    overflow-wrap: break-word;
}

.small {
    font-size: 0.7em;
    overflow-wrap: break-word;
}

.smallest {
    font-size: 0.6em;
    overflow-wrap: break-word;
}

.tiny {
    font-size: 0.4em;
    overflow-wrap: break-word;
}

.sscrollable {
  max-height: 600px;  /* adjust based on your slide size */
  overflow-y: auto;

  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.25)
  );
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 14px;  /* height of the hint area */

  /* a bit of padding so text isn't right up against the fade */
  padding-bottom: 10px;
 
}

.indented {
  margin-left: 1em;  /* or padding-left */
}

/* styles.css */
/* DIALOGUES */
/* General callout container */
.callout-assistant,
.callout-user {
  border-left: 4px solid #999;
  padding: 1em;
  margin: 1em 0;
  border-radius: 6px;
  background-color: #fdfdfd;
}

/* Justify content */
.callout-assistant .callout-content,
.callout-user .callout-content {
  text-align: justify;
}

/* Assistant styling */
.callout-assistant {
  border-left-color: #007BFF;
  background-color: #e9f1ff;
  text-align: left;
  max-width: 70%; /* or whatever width you want */
  margin-right: auto; /* push it away from the left */
}

/* User styling */
.callout-user {
  border-left-color: #e83e8c;
  background-color: #fff0f5;
  text-align: right;
  max-width: 70%; /* or whatever width you want */
  margin-left: auto; /* push it away from the left */
}

/* QUOTES */
.quote-box {
  border-left: 4px solid #555;
  background-color: #f9f9f9;
  padding: 1em;
  margin: 1em 0;
  font-style: italic;
}

.quote-source {
  font-style: normal;
  font-weight: bold;
  text-align: right;
  margin-top: 0.5em;
  color: #888;
}


.reveal .footnotes {
  position: absolute;
  bottom: 0rem; /* or 0.5rem or even 0 to push to bottom */
  font-size: 0.8em;
  opacity: 0.8;
}


/* TOOLTIP */
.tooltip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted #666;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%; /* above the text */
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  color: #fff;
  padding: 0.4em 0.6em;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 0.8em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 100;
}

.tooltip:hover::after {
  opacity: 1;
}

.centering {
    text-align: center;
}


/* CONSIDER THE FOLLOWING THEME */
/* Subtle graph-paper background */
.reveal {
  background-color: #f9fafb;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Centered white “card” behind the content.
   The active version is below; the older all-sections version was removed
   because nested CSS comments can invalidate the stylesheet. */

.reveal .slides section:not(:has(section)):not(.no-card)::before {
  content: "";
  position: absolute;
  top: -2%;
  left: -2%;
  right: -2%;
  bottom: -10%;
  border-radius: 18px;
  background-color: rgba(255,255,255,0.96);
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.08);
  z-index: -1;
}


/* Optional: inner padding so text isn't glued to the edge 
.reveal .slides section > * {
  padding: 1.2em 2em;
}*/

/* Grid background stays on the whole deck */
.reveal {
  background-color: #f9fafb;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ======================================================================
   AI Readiness Arcade components
   ----------------------------------------------------------------------
   These rules support the custom blocks used in readiness-arcade.qmd:
   .arcade-card, .danger-card, .checkpoint, .white-title, and the warning
   callout/card patterns used throughout the learning arcade.
   ====================================================================== */

:root {
  --arcade-ink: #172033;
  --arcade-muted: #4b5563;
  --arcade-panel: rgba(255, 255, 255, 0.97);
  --arcade-card-bg: #f8fbff;
  --arcade-card-border: #3b82f6;
  --arcade-card-accent: #2563eb;
  --arcade-check-bg: #f0fdf4;
  --arcade-check-border: #22c55e;
  --arcade-check-accent: #15803d;
  --arcade-danger-bg: #fff7ed;
  --arcade-danger-border: #f97316;
  --arcade-danger-accent: #c2410c;
  --arcade-warning-bg: #fffbeb;
  --arcade-warning-border: #f59e0b;
  --arcade-warning-accent: #b45309;
  --arcade-code-bg: #f3f4f6;
  --arcade-code-border: #d1d5db;
  --arcade-shadow: 0 0.55rem 1.25rem rgba(15, 23, 42, 0.10);
  --arcade-shadow-small: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.08);
}

/* Title slide: keep image-based title slides dark and uncluttered. */
.reveal .slides section.white-title::before {
  display: none !important;
}

.white-title,
.white-title h1,
.white-title h2,
.white-title h3,
.white-title p,
.white-title .author,
.white-title .date,
.white-title .quarto-title-author-name {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

/* General slide readability refinements for dense instructional slides. */
.reveal {
  color: var(--arcade-ink);
}

.reveal strong {
  color: #0f172a;
}

.reveal em {
  color: #334155;
}

.reveal .slides section {
  line-height: 1.18;
}

.reveal .slides section > h3:first-child {
  margin-bottom: 0.45em;
}

/* A friendly card for rules, boss keys, level maps, and synthesis slides. */
.reveal .arcade-card {
  position: relative;
  margin: 0.7em 0;
  padding: 0.85em 1em 0.85em 1.15em;
  border: 2px solid var(--arcade-card-border);
  border-left: 0.55em solid var(--arcade-card-accent);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.13), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--arcade-card-bg) 100%);
  box-shadow: var(--arcade-shadow);
}

.reveal .arcade-card::after {
  content: "🔬";
  position: absolute;
  top: -0.78em;
  right: 0.8em;
  padding: 0.12em 0.38em;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: var(--arcade-shadow-small);
  font-size: 0.85em;
}

/* Orange card for deliberately deferred or potentially risky ideas. */
.reveal .danger-card {
  position: relative;
  margin: 0.7em 0;
  padding: 0.85em 1em 0.85em 1.15em;
  border: 2px solid var(--arcade-danger-border);
  border-left: 0.55em solid var(--arcade-danger-accent);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.15), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, var(--arcade-danger-bg) 100%);
  box-shadow: var(--arcade-shadow);
}

.reveal .danger-card::before {
  content: "⚠️ save for later";
  display: inline-block;
  margin-bottom: 0.45em;
  padding: 0.16em 0.55em;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--arcade-danger-accent);
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Green checkpoint blocks are intentionally frequent; keep them compact. */
.reveal .checkpoint {
  position: relative;
  margin: 0.65em 0;
  padding: 0.7em 0.9em 0.75em 3.1em;
  border: 1.5px solid var(--arcade-check-border);
  border-radius: 15px;
  background:
    radial-gradient(circle at 96% 0%, rgba(34, 197, 94, 0.13), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--arcade-check-bg) 100%);
  box-shadow: var(--arcade-shadow-small);
}

.reveal .checkpoint::before {
  content: "✓";
  position: absolute;
  left: 0.82em;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 1.55em;
  height: 1.55em;
  border-radius: 999px;
  background: var(--arcade-check-accent);
  color: #ffffff;
  font-weight: 900;
  line-height: 1;
}

.reveal .checkpoint::after {
  content: "checkpoint";
  display: block;
  margin-bottom: 0.18em;
  color: var(--arcade-check-accent);
  font-size: 0.68em;
  font-weight: 850;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

/* Quarto warning callouts, plus the explicit .callout-warning block in the QMD. */
.reveal .callout-warning,
.reveal div.callout.callout-warning {
  margin: 0.7em 0;
  padding: 0.7em 0.95em;
  border: 1.5px solid var(--arcade-warning-border);
  border-left: 0.5em solid var(--arcade-warning-accent);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, var(--arcade-warning-bg) 100%);
  box-shadow: var(--arcade-shadow-small);
}

.reveal .callout-warning .callout-title-container,
.reveal .callout-warning .callout-title {
  color: var(--arcade-warning-accent);
  font-weight: 850;
}

/* Make custom cards behave nicely with common Quarto/Reveal content. */
.reveal .arcade-card > :first-child,
.reveal .danger-card > :first-child,
.reveal .checkpoint > :first-child,
.reveal .callout-warning > :first-child {
  margin-top: 0;
}

.reveal .arcade-card > :last-child,
.reveal .danger-card > :last-child,
.reveal .checkpoint > :last-child,
.reveal .callout-warning > :last-child {
  margin-bottom: 0;
}

.reveal .arcade-card p,
.reveal .danger-card p,
.reveal .checkpoint p,
.reveal .callout-warning p {
  margin: 0.35em 0;
}

.reveal .arcade-card ul,
.reveal .arcade-card ol,
.reveal .danger-card ul,
.reveal .danger-card ol,
.reveal .checkpoint ul,
.reveal .checkpoint ol,
.reveal .callout-warning ul,
.reveal .callout-warning ol {
  margin-top: 0.35em;
  margin-bottom: 0.35em;
}

.reveal .arcade-card li,
.reveal .danger-card li,
.reveal .checkpoint li,
.reveal .callout-warning li {
  margin: 0.18em 0;
}

/* Tables appear often in the arcade. Keep them readable inside cards and slides. */
.reveal table {
  font-size: 0.78em;
  border-collapse: collapse;
  margin: 0.45em auto;
}

.reveal table th,
.reveal table td {
  padding: 0.28em 0.48em;
  border-bottom: 1px solid rgba(100, 116, 139, 0.24);
}

.reveal table th {
  color: #0f172a;
  background: rgba(148, 163, 184, 0.13);
  font-weight: 800;
}

.reveal .arcade-card table,
.reveal .danger-card table,
.reveal .checkpoint table,
.reveal .callout-warning table {
  width: 100%;
  font-size: 0.88em;
}

/* Inline code and code blocks: compact but visible on slides. */
.reveal code {
  padding: 0.05em 0.22em;
  border-radius: 0.28em;
  background: var(--arcade-code-bg);
  color: #7c2d12;
  border: 1px solid rgba(209, 213, 219, 0.7);
}

.reveal pre code {
  display: block;
  max-height: 440px;
  padding: 0.85em;
  overflow: auto;
  line-height: 1.2;
  border-radius: 12px;
  color: inherit;
  background: #f8fafc;
  border: 1px solid var(--arcade-code-border);
}

.reveal .cell-output pre code,
.reveal .cell-output-display pre code {
  background: #ffffff;
}

/* Dense slides: use .sscrollable when content is useful but too tall. */
.reveal .sscrollable {
  max-height: min(68vh, 650px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.45em;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.55) rgba(226, 232, 240, 0.65);
}

.reveal .sscrollable::-webkit-scrollbar {
  width: 0.42em;
}

.reveal .sscrollable::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.65);
  border-radius: 999px;
}

.reveal .sscrollable::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.55);
  border-radius: 999px;
}

/* Reveal columns sometimes look cramped in dense decks. */
.reveal .columns {
  gap: 0.9em;
  align-items: flex-start;
}

.reveal .columns .column > :first-child {
  margin-top: 0;
}

.reveal .columns .column > :last-child {
  margin-bottom: 0;
}

/* Small utility classes already existed; this tightens nested content slightly. */
.reveal .small p,
.reveal .smaller p,
.reveal .smallest p {
  margin-top: 0.35em;
  margin-bottom: 0.35em;
}

.reveal .small pre code {
  font-size: 0.9em;
}

/* Make images generated by notebooks fit the slide/card system. */
.reveal img,
.reveal svg {
  max-width: 100%;
  height: auto;
}

.reveal .cell-output-display img,
.reveal .cell-output-display svg {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Print/export fallback: shadows can look heavy in PDF. */
@media print {
  .reveal .arcade-card,
  .reveal .danger-card,
  .reveal .checkpoint,
  .reveal .callout-warning {
    box-shadow: none;
  }
}
