@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: breakword;
}

.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 
.reveal .slides section::before {
  content: "";
  position: absolute;
  top: -2%;
  left: -2%;
  right: -2%;
  bottom: -16%;
  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;   /* sit behind the slide content */
}*/

.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;
}

