/* UA-specific styles */

/* Set background color for all slides with grid pattern */
.reveal .slides section,
.reveal .slide-background {
  background-color: #F6F5EF !important;
  background-image: 
    linear-gradient(rgba(200, 200, 200, 0.20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 200, 200, 0.20) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0, 0 0;
}

/* Reduce slide height */
.reveal .slides section {
  max-height: 80vh;
  overflow-y: auto;
}

.ua-block {
  background-color: transparent;
  border-left: 5px solid #9E1B34;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
  font-size: 0.95em;
}

.title-slide {
  background-color: #F6F5EF !important;
  color: #9E1B34 !important;
  text-align: center;
  padding: 0px;
}

.reveal .slide-logo {
  display: block;
  position: fixed;
}

.logo-container {
  margin-bottom: 30px;
  text-align: center;
}

.logo-container img {
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.title-slide h1,
.title-slide h2,
.title-slide h3,
.title-slide h4 {
  color: #9E1B34 !important;
  font-size: 2.5em;
}

.section-slide {
  background-color: #F6F5EF !important;
  color: #9E1B34 !important;
}

.section-slide h1 {
  color: #9E1B34 !important;
  font-size: 2em;
  margin-bottom: 30px;
}

.toc {
  list-style-type: none;
  padding: 0;
  margin: 0;
  background-color: #F6F5EF;
}

.toc li {
  margin: 15px 0;
  font-size: 1.2em;
  color: #9E1B34;
}

.toc li a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.toc li a:hover {
  color: #7B1528;
}

.toc li strong {
  color: #9E1B34;
  font-size: 1.1em;
  text-decoration: underline;
}

.reveal .footer,
.reveal .footer-default,
.reveal .footer * {
  color: #9E1B34 !important;
  font-size: 0.9em;
}

.reveal .progress {
  color: #9E1B34;
}

.reveal .controls {
  color: #9E1B34;
}

.reveal .slide-number {
  color: #9E1B34;
  font-size: 0.75em;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4 {
  color: #9E1B34 !important;
  font-size: 1.5em;
}

/* Add line below slide titles */
.reveal h2::after {
  content: "";
  display: block;
  height: 2px;
  width: 1000px;
  margin-top: 10px;
  margin-bottom: 15px;
  background-color: #9E1B34;
}

/* Ensure h3 is crimson red */
.reveal .slide h3 {
  color: #9E1B34 !important;
}

.reveal a {
  color: #9E1B34;
  font-size: 1em;
}

.reveal a:hover {
  color: #7B1528;
}

.reveal code {
  color: #9E1B34;
  background-color: transparent;
  font-size: 0.9em;
}

.reveal pre {
  background-color: transparent;
  border: 1px solid #9E1B34;
  font-size: 0.9em;
}

/* Add smaller text for slide content */
.reveal p, 
.reveal li, 
.reveal div {
  font-size: 0.85em;
}

.reveal .slide-background-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: #9E1B34;
} 


/* Hide empty h2 headers */
h2:empty {
display: none;
} 

/* Add line below slide titles */
.reveal h3::after {
  content: "";
  display: block;
  height: 2px;
  width: 1000px;
  margin-top: 10px;
  margin-bottom: 15px;
  background-color: #9E1B34;
}

/* Content styling classes */
.red {
color: #9E1B34;
font-weight: bold;
}

.blue {
color: #4a90e2;
font-weight: bold;
}

.gray {
color: #7f8c8d;
}

/* Border box classes */
.red-border {
border: 2px solid #9E1B34;
border-radius: 8px;
padding: 15px;
background-color: #f8f9fa;
margin: 10px 0;
}

.blue-border {
border: 2px solid #4a90e2;
border-radius: 8px;
padding: 15px;
background-color: #f0f8ff;
margin: 10px 0;
}

.gray-border {
border: 2px solid #7f8c8d;
border-radius: 8px;
padding: 15px;
background-color: #f5f5f5;
margin: 10px 0;
}

/* Alert box class */
.blue-alert {
border: 2px solid #4a90e2;
border-radius: 8px;
padding: 15px;
background-color: #e6f3ff;
margin: 10px 0;
font-weight: bold;
}

/* Bullet point styling */
.red-bullets {
list-style-type: none;
padding-left: 0;
}

.red-bullets li {
position: relative;
padding-left: 20px;
margin: 8px 0;
}

.red-bullets li::before {
content: "•";
color: #9E1B34;
font-weight: bold;
position: absolute;
left: 0;
}

/* Full slide image */
.reveal .slides section:has(img.full-slide) {
  position: relative;
  padding: 0;
  margin: 0;
  max-height: 100vh !important;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-image: none !important;
}

.reveal .slides section:has(img.full-slide) h3 {
  position: relative;
  z-index: 10;
  background-color: transparent;
  padding: 15px 20px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.reveal .slides section img.full-slide {
  width: 100%;
  flex: 1;
  object-fit: cover;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

/* Math-themed styling */
.reveal .slides section .MathJax,
.reveal .slides section .math {
  font-size: 1.1em;
}

/* Style equations and mathematical expressions */
.reveal .slides section .MathJax_Display {
  margin: 1.5em 0;
  padding: 0.5em;
  background-color: transparent;
  border-radius: 4px;
}

/* Style inline math */
.reveal .slides section .MathJax {
  color: #9E1B34;
}

/* Add subtle border to mathematical blocks */
.reveal .slides section .ua-block {
  background-color: transparent;
  border-left: 5px solid #9E1B34;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Style code blocks to look more mathematical */
.reveal pre {
  background-color: transparent;
  border: 1px solid #9E1B34;
  border-left: 4px solid #9E1B34;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}