.border {
  border: 1px solid #dee2e6;
}

.border-thick {
  border-width: 3px;
}

.reveal blockquote {
text-align: left;
width: 85%;
border: none;
box-shadow: none;
background: none;
}
.reveal figure { margin: 1em; border: none; }
.reveal section img { border: none; }
.longquote blockquote { font-size: 0.8em; }
.reveal blockquote:before { content: ''; }
.reveal blockquote:after { content: ''; }


/*-- scss:defaults --*/

/*-- scss:rules --*/

/* Fix font sizing issues */
.reveal .slides {
  font-size: 32px; /* Back to reasonable base size */
}

/* Fix paragraph font size */
.reveal p {
  font-size: 0.9em;
  line-height: 1.4; /* Increased line height to prevent overlap */
}

/* Let r-fit-text handle responsive sizing */
.reveal .r-fit-text {
  max-font-size: 2.5em !important;
  min-height: 0; /* Prevent overlap */
}

/* Make reveal figures smaller */
.reveal figure {
  margin: 0em;
} 

.quarto-figure {
    position: relative;
    margin-bottom: 0em;
}

/* Make the title of the title slide smaller */
.reveal.smaller #title-slide > h1.title {
  font-size: 2.2em !important; /* Back to original */
  margin-bottom: 1.5rem;
}

/* Remove the bottom of the subtitle slide */
.reveal.smaller #title-slide .subtitle {
  font-size: 1.1em !important; /* Back to original */
  margin-bottom: 0.8rem;
}

/* Make the author of the title slide smaller */
.reveal.smaller #title-slide > div > div > div {
  font-size: 0.85em !important; /* Slightly increased */
}

/* Fix title slide subtitle specifically */
.reveal #title-slide .subtitle > div {
  font-size: 1.2em !important; /* Override inline style */
}

.reveal #title-slide .subtitle > div > div {
  font-size: 1em !important; /* Make Nomades text larger */
}

/* Make font of the h2 titles smaller */
.reveal.smaller .slides h2 {
  font-size: 1.7em !important; /* Slightly increased */
}

/* Make font of the h3 titles smaller */
.reveal.smaller .slides h3 {
  font-size: 1.3em !important; /* Slightly increased */
}

/* Make font of the h4 titles smaller */
.reveal.smaller .slides h4 {
  font-size: 1.1em !important; /* Slightly increased */
  font-weight: bold;
}

/* Control list item spacing and size */
.reveal .slides ul li {
  font-size: 0.8em; /* Increased from 0.75em */
  margin-bottom: 0.3em; /* Increased spacing */
  line-height: 1.3; /* Increased line height */
}

.reveal .slides ol li {
  font-size: 0.8em; /* Increased from 0.75em */
  margin-bottom: 0.3em; /* Increased spacing */
  line-height: 1.3; /* Increased line height */
}

/* Control table font sizes */
.reveal table {
  font-size: 0.7em; /* Increased from 0.65em */
}

.reveal table th,
.reveal table td {
  padding: 0.3em 0.5em;
  font-size: inherit;
}

/* Control tabset font sizes */
.reveal .panel-tabset .tab-content {
  font-size: 0.8em; /* Increased from 0.75em */
}

.reveal .slide-number > a[href*='title-slide'] {
  display: none;
}

.reveal aside {
  font-size: 45% !important; /* Slightly increased */
}

ul.panel-tabset-tabby li a {
  font-size: 65% !important; /* Slightly increased */
}

.caption{
   text-align: center;
   font-size: 0.75em; /* Slightly increased */
}

.menubar a.logo {
  width: 4em;
  margin: 0;
  padding: 0.25em 0.5em;
}
.menubar a.logo img {
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.v-center-container {
  display: flex !important;
  justify-content: center;
  align-items: top;
  height: 90%;
}

.mjx-math{
  text-align: center 
}

.MathJax, .MathJax_Display  {
    font-size: 75%  !important; /* Slightly increased */
}

.custom-small table {
  font-size: 0.65em; /* Slightly increased */
}

.custom-small-html table {
  font-size: 0.22em; /* Slightly increased */
}

.custom-small-fig #tbl-results > figure > div .reveal .slides {
  text-align: right !important;
}

caption, .figure-caption {
  text-align: center;
  font-size: 0.75em; /* Slightly increased */
}

/* Column layout improvements */
.reveal .columns {
  display: flex;
  align-items: flex-start;
  gap: 1em; /* Increased gap */
  overflow: hidden;
}

.reveal .column {
  flex: 1;
  min-width: 0; /* Prevent column overflow */
  overflow-wrap: break-word;
}

/* Image sizing improvements */
.reveal img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Mermaid diagram font sizing */
.reveal .mermaid {
  font-size: 13px !important; /* Slightly increased */
}

/* Strong text control */
.reveal strong {
  font-weight: bold;
  font-size: inherit;
}

/* Blockquote styling */
.reveal blockquote {
  font-size: 0.85em; /* Slightly increased */
  font-style: italic;
  padding: 0.8em;
  border-left: 4px solid #ccc;
  background: rgba(0, 0, 0, 0.05);
  margin: 0.8em 0;
}

/* Code font sizing */
.reveal code {
  font-size: 0.75em; /* Slightly increased */
}

.reveal pre code {
  font-size: 0.65em; /* Slightly increased */
}

/* Slide content padding */
.reveal .slides section {
  padding: 1em;
  overflow: hidden; /* Prevent content overflow */
}

/* Reduce spacing between elements */
.reveal .slides section > * {
  margin-bottom: 0.6em; /* Slightly increased */
}

/* Special handling for two-column layouts */
.reveal .columns .column p,
.reveal .columns .column li {
  font-size: 0.75em; /* Slightly increased */
  line-height: 1.3; /* Increased line height */
}

/* Reduce spacing in columns */
.reveal .columns .column ul,
.reveal .columns .column ol {
  margin-bottom: 0.3em;
}

.reveal .columns .column ul li,
.reveal .columns .column ol li {
  margin-bottom: 0.1em;
}

/* #tabset-1 {
  font-size: 16px;
} */

/* special css only for the first session */

/* .v-center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90%;
}

 */

/* Prevent text overlap in columns */
.reveal .columns {
  display: flex;
  align-items: flex-start;
  gap: 1em; /* Increased gap */
  overflow: hidden;
}

.reveal .column {
  flex: 1;
  min-width: 0; /* Prevent column overflow */
  overflow-wrap: break-word;
}

/* Prevent overlap in r-fit-text containers */
.reveal .r-fit-text {
  display: block;
  width: 100%;
  overflow: hidden;
}

/* Fix overlap in nested columns with r-fit-text */
.reveal .columns .r-fit-text {
  max-width: 100%;
}

/* Ensure proper spacing for code blocks */
.reveal pre {
  margin: 0.5em 0;
  overflow-x: auto;
}

/* Fix potential overlap in tables */
.reveal table {
  margin: 0.5em auto;
  table-layout: fixed;
  width: 100%;
}

/* #title-slide .subtitle, div.reveal div.slides section.quarto-title-block .subtitle */

