/**
 * IARC theme for reveal.js
 * 
 * International Agency for Research on Cancer
 * Custom theme with IARC branding
 */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Montserrat:wght@600;700;800&display=swap");
section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
  color: #fff;
}

/*********************************************
 * GLOBAL STYLES
 *********************************************/
:root {
  --r-background-color: #2b3257;
  --r-main-font: Open Sans, Helvetica Neue, Helvetica, Arial, sans-serif;
  --r-main-font-size: 38px;
  --r-main-color: #f19c82;
  --r-block-margin: 20px;
  --r-heading-margin: 0 0 20px 0;
  --r-heading-font: Montserrat, Helvetica Neue, Helvetica, Arial, sans-serif;
  --r-heading-color: #ffffff;
  --r-heading-line-height: 1.2;
  --r-heading-letter-spacing: -0.02em;
  --r-heading-text-transform: none;
  --r-heading-text-shadow: none;
  --r-heading-font-weight: 700;
  --r-heading1-text-shadow: none;
  --r-heading1-size: 2.8em;
  --r-heading2-size: 2em;
  --r-heading3-size: 1.5em;
  --r-heading4-size: 1.2em;
  --r-code-font: Monaco, Courier New, monospace;
  --r-link-color: #ffffff;
  --r-link-color-dark: rgb(216.75, 216.75, 216.75);
  --r-link-color-hover: white;
  --r-selection-background-color: white;
  --r-selection-color: #fff;
  --r-overlay-element-bg-color: 0, 0, 0;
  --r-overlay-element-fg-color: 240, 240, 240;
}

.reveal-viewport {
  background: #2b3257;
  background-color: var(--r-background-color);
}

.reveal {
  font-family: var(--r-main-font);
  font-size: var(--r-main-font-size);
  font-weight: normal;
  color: var(--r-main-color);
}

.reveal ::selection {
  color: var(--r-selection-color);
  background: var(--r-selection-background-color);
  text-shadow: none;
}

.reveal ::-moz-selection {
  color: var(--r-selection-color);
  background: var(--r-selection-background-color);
  text-shadow: none;
}

.reveal .slides section,
.reveal .slides section > section {
  line-height: 1.3;
  font-weight: inherit;
}

/*********************************************
 * HEADERS
 *********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  margin: var(--r-heading-margin);
  color: var(--r-heading-color);
  font-family: var(--r-heading-font);
  font-weight: var(--r-heading-font-weight);
  line-height: var(--r-heading-line-height);
  letter-spacing: var(--r-heading-letter-spacing);
  text-transform: var(--r-heading-text-transform);
  text-shadow: var(--r-heading-text-shadow);
  word-wrap: break-word;
}

.reveal h1 {
  font-size: var(--r-heading1-size);
}

.reveal h2 {
  font-size: var(--r-heading2-size);
}

.reveal h3 {
  font-size: var(--r-heading3-size);
}

.reveal h4 {
  font-size: var(--r-heading4-size);
}

.reveal h1 {
  text-shadow: var(--r-heading1-text-shadow);
}

/*********************************************
 * OTHER
 *********************************************/
.reveal p {
  margin: var(--r-block-margin) 0;
  line-height: 1.3;
}

/* Remove trailing margins after titles */
.reveal h1:last-child,
.reveal h2:last-child,
.reveal h3:last-child,
.reveal h4:last-child,
.reveal h5:last-child,
.reveal h6:last-child {
  margin-bottom: 0;
}

/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
  max-width: 95%;
  max-height: 95%;
}

.reveal strong,
.reveal b {
  font-weight: bold;
}

.reveal em {
  font-style: italic;
}

.reveal ol,
.reveal dl,
.reveal ul {
  display: inline-block;
  text-align: left;
  margin: 0 0 0 1em;
}

.reveal ol {
  list-style-type: decimal;
}

.reveal ul {
  list-style-type: disc;
}

.reveal ul ul {
  list-style-type: square;
}

.reveal ul ul ul {
  list-style-type: circle;
}

.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
  display: block;
  margin-left: 40px;
}

.reveal dt {
  font-weight: bold;
}

.reveal dd {
  margin-left: 40px;
}

.reveal blockquote {
  display: block;
  position: relative;
  width: 70%;
  margin: var(--r-block-margin) auto;
  padding: 5px;
  font-style: italic;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
}

.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
  display: inline-block;
}

.reveal q {
  font-style: italic;
}

.reveal pre {
  display: block;
  position: relative;
  width: 90%;
  margin: var(--r-block-margin) auto;
  text-align: left;
  font-size: 0.55em;
  font-family: var(--r-code-font);
  line-height: 1.2em;
  word-wrap: break-word;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

.reveal code {
  font-family: var(--r-code-font);
  text-transform: none;
  tab-size: 2;
}

.reveal pre code {
  display: block;
  padding: 5px;
  overflow: auto;
  max-height: 400px;
  word-wrap: normal;
}

.reveal .code-wrapper {
  white-space: normal;
}

.reveal .code-wrapper code {
  white-space: pre;
}

.reveal table {
  margin: auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.reveal table th {
  font-weight: bold;
}

.reveal table th,
.reveal table td {
  text-align: left;
  padding: 0.2em 0.5em 0.2em 0.5em;
  border-bottom: 1px solid;
}

.reveal table th[align=center],
.reveal table td[align=center] {
  text-align: center;
}

.reveal table th[align=right],
.reveal table td[align=right] {
  text-align: right;
}

.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
  border-bottom: none;
}

.reveal sup {
  vertical-align: super;
  font-size: smaller;
}

.reveal sub {
  vertical-align: sub;
  font-size: smaller;
}

.reveal small {
  display: inline-block;
  font-size: 0.6em;
  line-height: 1.2em;
  vertical-align: top;
}

.reveal small * {
  vertical-align: top;
}

.reveal img {
  margin: var(--r-block-margin) 0;
}

/*********************************************
 * LINKS
 *********************************************/
.reveal a {
  color: var(--r-link-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

.reveal a:hover {
  color: var(--r-link-color-hover);
  text-shadow: none;
  border: none;
}

.reveal .roll span:after {
  color: #fff;
  background: var(--r-link-color-dark);
}

/*********************************************
 * Frame helper
 *********************************************/
.reveal .r-frame {
  border: 4px solid var(--r-main-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.reveal a .r-frame {
  transition: all 0.15s linear;
}

.reveal a:hover .r-frame {
  border-color: var(--r-link-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
}

/*********************************************
 * NAVIGATION CONTROLS
 *********************************************/
.reveal .controls {
  color: var(--r-link-color);
}

/*********************************************
 * PROGRESS BAR
 *********************************************/
.reveal .progress {
  background: rgba(0, 0, 0, 0.2);
  color: var(--r-link-color);
}

/*********************************************
 * PRINT BACKGROUND
 *********************************************/
@media print {
  .backgrounds {
    background-color: var(--r-background-color);
  }
}
.reveal .slides {
  text-align: left;
}
.reveal .slides section {
  height: 100%;
  padding: 60px 60px !important;
  top: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.reveal .slides h1, .reveal .slides h2, .reveal .slides h3, .reveal .slides h4, .reveal .slides h5, .reveal .slides h6 {
  text-align: left;
  margin: 0 0 15px 0 !important;
}
.reveal .slides p, .reveal .slides ol, .reveal .slides pre {
  text-align: left;
  margin: 5px 0 !important;
}
.reveal a:hover {
  color: #f19c82 !important;
}
.reveal .slide-background.iarc-primary-bg {
  background-color: #ffffff !important;
}
.reveal .slide-background.iarc-secondary-bg {
  background-color: #f19c82 !important;
}
.reveal .slide-background.iarc-accent-bg {
  background-color: #e74c3c !important;
}
.reveal .title-slide h1 {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 10px !important;
  text-transform: none;
}
.reveal .title-slide h2 {
  color: #f19c82;
  font-weight: 400;
  font-size: 1.3em;
  font-size: 1.7em !important;
  margin-bottom: 8px !important;
}
.reveal .title-slide h3 {
  color: #f19c82;
  font-weight: 300;
  font-size: 1em;
  margin-bottom: 5px !important;
}
.reveal strong, .reveal b {
  color: #ffffff;
  font-weight: 700;
}
.reveal em {
  color: #e74c3c;
  font-style: italic;
}
.reveal ul, .reveal ol {
  margin-left: 51px !important;
  padding-left: 0 !important;
}
.reveal ul li, .reveal ol li {
  margin-bottom: 5px;
  padding-left: 0;
}
.reveal ul li::marker, .reveal ol li::marker {
  color: #ffffff;
}
.reveal blockquote {
  border-left: 5px solid #ffffff;
  padding: 10px 15px;
  margin: 5px 0;
  font-style: italic;
  background: #ecf0f1;
}
.reveal table {
  margin: 5px 0 !important;
}
.reveal table th {
  background-color: #ffffff;
  color: white;
  font-weight: 600;
  padding: 8px;
}
.reveal table td {
  padding: 6px 8px;
}
.reveal table tr:nth-child(even) {
  background-color: #ecf0f1;
}
.reveal pre {
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
  border-left: 5px solid #ffffff;
  margin: 10px 0 !important;
}
.reveal pre code {
  padding: 15px;
  max-height: 600px;
}
.reveal code {
  background: #ecf0f1;
  color: #e74c3c;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}
.reveal pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.reveal .accent {
  color: #e74c3c !important;
}
.reveal .primary {
  color: #ffffff !important;
}
.reveal .secondary {
  color: #f19c82 !important;
}
.reveal .info-box {
  background: white;
  border-left: 5px solid #ffffff;
  padding: 10px 15px;
  margin: 10px 0;
  text-align: left;
}
.reveal .warning-box {
  background: rgb(252.6, 237.1, 235.5);
  border-left: 5px solid #e74c3c;
  padding: 10px 15px;
  margin: 10px 0;
  text-align: left;
}
.reveal .success-box {
  background: rgb(230.738028169, 249.561971831, 238.685915493);
  border-left: 5px solid #27ae60;
  padding: 10px 15px;
  margin: 10px 0;
  text-align: left;
}
.reveal .footer {
  position: absolute;
  bottom: 1em;
  left: 1em;
  font-size: 0.6em;
  color: rgb(248, 205.5, 192.5);
}
.reveal .progress span {
  background: #ffffff;
}
.reveal .controls {
  color: #ffffff;
}

@media screen and (max-width: 768px) {
  .reveal .slides section {
    padding: 40px 30px 120px 30px !important;
  }
  .reveal h1 {
    font-size: 2.2em !important;
    margin: 15px 0 12px 0 !important;
  }
  .reveal h2 {
    font-size: 1.8em !important;
    margin: 12px 0 10px 0 !important;
  }
  .reveal h3 {
    font-size: 1.4em !important;
    margin: 10px 0 8px 0 !important;
  }
  .reveal p, .reveal ul, .reveal ol {
    font-size: 1.1em !important;
    margin: 8px 0 !important;
  }
  .reveal ul, .reveal ol {
    margin-left: 35px !important;
  }
  .reveal li {
    margin-bottom: 8px !important;
  }
}
@media screen and (max-width: 480px) {
  .reveal .slides section {
    padding: 30px 20px 100px 20px !important;
  }
  .reveal h1 {
    font-size: 1.8em !important;
    margin: 12px 0 10px 0 !important;
  }
  .reveal h2 {
    font-size: 1.5em !important;
    margin: 10px 0 8px 0 !important;
  }
  .reveal h3 {
    font-size: 1.2em !important;
    margin: 8px 0 6px 0 !important;
  }
  .reveal p, .reveal ul, .reveal ol {
    font-size: 1em !important;
    margin: 6px 0 !important;
  }
  .reveal ul, .reveal ol {
    margin-left: 30px !important;
  }
  .reveal li {
    margin-bottom: 6px !important;
  }
}