:root{
  --color-primary: #ec1c28;
}

.reveal, .reveal-viewport {
  font-family: Segoe UI, Source Sans Pro, Helvetica, sans-serif !important;
}

.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 .reveal p{
  font-family: Segoe UI, Source Sans Pro,  Helvetica, sans-serif;
  font-weight: normal;
}

/* title slide */
section#title-slide.center.present {
  display: flex !important;
  flex-direction: column;
  text-align: left;
  padding-top: 140px;
  min-height: 50vh;        
  /*padding-top: 145px;
  min-height: 70vh;   */
}

p.subtitle{
  color: white;
  background-color: var(--color-primary);
  font-size: 18pt;
  text-align: left;
  width:670px;
  clip-path: polygon(0 0, 100% 0%, 95% 100%, 0% 100%);
  margin-left: -250px;
  padding-left: 250px;
  padding-right:250px;
}

h1.title{
  color: var(--color-primary);
  font-size: 38pt;
  text-align: left;
}

.download-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-top: 54px;
  /*padding-top: 80px;
  */
}

.presenter {
  font-size: 18pt;
  margin-top: auto;
  /* padding-top: 100px;
  */
}

.download-btn {
  margin-left: 20px ;
  background-color: white;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background-color 0.2s ease;
}

.download-btn:hover {
  background-color: var(--color-primary);
  color: white !important;
}

div.footer.footer-default{
  color: white;
  background-color: var(--color-primary);
  text-align: right;
  clip-path: polygon(2% 0%, 100% 0%, 100% 100%, 0% 100%);
  width: 400px;
  padding-right: 200px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 8pt;
  letter-spacing: 0.1em;
  bottom: 0px;
  right: -100px;
}

h2#toc-title{
  font-size: 40pt;
}

h2 {
  align-content: end;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 16px;      
}

#TOC nav ul li {
  font-size: 24pt;
}

#TOC nav ul {
  margin: 80px 0px 0px 40px;
}

/* slide titles*/
.reveal h2{
  font-size: 24pt;
  height: 65px !important;
  max-width: 65ch !important;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
section.title-slide.slide.level1.center.present{
  position: relative !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
}

section.title-slide.slide.level1.center.present h1 {
  color: white;
  background-color: var(--color-primary);
  text-align: left;
  font-size: 40pt;
  clip-path: polygon(0 0, 100% 0%, 95% 100%, 0% 100%);
  margin-left: -250px;
  padding-left: 265px;
  height: 9vh
  } 
  
section.title-slide.slide.level1.center.present p {
 font-size: 24pt;
 color: var(--color-primary);
 position: absolute;
 top: 70px; /* Adjust this to push it further down or up */
 left: 20px;
 right: 0;
 margin: 0;
 } 
 
.reveal .slide-number {
  top: 10px;
  bottom: 0px;
}

.reveal .slide aside {
   font-size: 0.4em;
   position: relative;
   top: 10px;
 }
 
.reveal table {
  font-size: 10pt; 
  margin-right: 50px;
  margin-top: 10px;
  float: right;
 }

.reveal td{
  text-align: right !important;
  border-bottom: none !important;
}
 
.reveal th{
  border-bottom: none !important;
}
 
 .data-source {
   font-size: 10pt;
   line-height: 1;
   position: fixed;
   bottom: -35px;    
 }
 
 /*no numbers on source list */
 .data-source ol li{
   list-style: none;
 }
 
 .data-source ol{
   margin: 0;
 }
 
 .data-source::before {
   content: "Source(s):";
   display: block;
 }

.ashm-lineplot {
  display: block;
  background: white;
  height: auto;
  height: intrinsic;
  max-width: 100%;
  font-size: 10pt; 
}
.ashm-lineplot text,
.ashm-lineplot tspan {
  white-space: pre;
}

.ashm-lineplot-legend-swatches{
  font-size: 10pt !important;
}

.complete_plot{
  display: flex;
  gap: 10px;
  align-items: center; 
}

.legend_container{
  /*padding-top: 2%;*/
  width: 9%
}

.ashm-lineplot-legend-swatch {
  margin-right: 0px !important ;
  margin-bottom: 10px; !important;
}

.cell-output-display {
  width: 1100px !important;
}

.quarto-chart-container {
  height: 500px;
  width: 100%;
}

/* Expand the hidden hit/click area of the edge buttons */
.reveal .controls button {
  width: 50px !important;    
  height: 50px !important;   
  pointer-events: auto;       
}

/* Force the right button box to expand leftward into the screen */
.reveal .controls .navigate-right {
  right: 50px !important;
  left: auto !important;
}

.reveal code {
  font-size: 9pt;
  color: rgb(110.5, 110.5, 110.5);
  line-height: 1.2;
  display: inline-block;
}

.dph-logo-center {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 250px !important;
  height: auto !important;
}

#global-help {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  font-family: sans-serif;
}

#global-help button {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: none;
  background: #918F8F;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

#global-help button:hover {
  background: var(--color-primary);
}
/* tabbed to */
#global-help button:focus-visible {
  background: var(--color-primary);
}

#global-help div {
  display: none;
  position: absolute;
  top: 45px;
  left: 0;
  width: 280px;
  background: #fff;
  color: #000;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-size: 12pt;
}

#global-help div.show {
  display: block;
}

#global-help ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}


/* 'keyboard' keys */
kbd {
  border-radius: 3px;
  padding: 0px 4px;
  font-family: sans-serif;
  font-size: 0.85em;
  line-height: 1;
}

.reveal li a:hover, .reveal p a:hover {
  /*background-color: yellow;*/
  text-decoration: underline;
}