/**
 * Common theme for reveal.js presentations
 * 
 * A dark theme with green and red accent colors
 * By Hitoshi Amano (@amachang)
 */

/*********************************************
 * GLOBAL STYLES
 *********************************************/

:root {
  --r-background-color: #222222;
  --r-main-font: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'YuGothic', Meiryo, sans-serif;
  --r-main-font-size: 32px;
  --r-main-color: #ffffff;
  --r-block-margin: 0;
  --r-heading-margin: 0;
  --r-heading-font: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'YuGothic', Meiryo, sans-serif;
  --r-heading-color: #ffffff;
  --r-heading-line-height: 1.2;
  --r-heading-letter-spacing: normal;
  --r-heading-text-transform: none;
  --r-heading-text-shadow: none;
  --r-heading-font-weight: 700;
  --r-heading1-text-shadow: none;
  --r-heading1-size: 50px;
  --r-heading2-size: 40px;
  --r-heading3-size: 30px;
  --r-heading4-size: 20px;
  --r-code-font: monospace;
  --r-link-color: #42affa;
  --r-link-color-hover: #8dcffc;
  --r-selection-background-color: rgba(66, 175, 250, 0.75);
  --r-selection-color: #fff;
  --r-overlay-element-bg-color: 240, 240, 240;
  --r-overlay-element-fg-color: 0, 0, 0;
  
  /* Custom colors for common theme */
  --accent-green: #00ff00;
  --accent-red: #ff0000;
  --dark-bg: #1a1a1a;
  
  /* Font size variables */
  --font-size-big-text: 60px;
  --font-size-list: 36px;
  --font-size-emoji: 40px;
  --font-size-subtitle: 20px;
  --font-size-pre: 0.55em;
  --font-size-small: 0.6em;
  
  /* Presentation title */
  --font-size-presentation-title: 24px;
}

.reveal-viewport {
  background: var(--r-background-color);
  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: 0;
  padding: 0;
  line-height: 1.3;
}

/* 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;
  padding: 0;
}

.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: 0;
  padding: 0;
}

.reveal dt {
  font-weight: bold;
}

.reveal dd {
  margin: 0;
  padding: 0;
}

.reveal blockquote {
  display: block;
  position: relative;
  width: 70%;
  margin: 0 auto;
  padding: 0;
  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: 0 auto;
  padding: 0;
  text-align: left;
  font-size: var(--font-size-pre);
  font-family: var(--r-code-font);
  line-height: 1.2em;
  word-wrap: break-word;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.reveal table th,
.reveal table td {
  text-align: left;
  padding: 0;
  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: var(--font-size-small);
  line-height: 1.2em;
  vertical-align: top;
}

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

/*********************************************
 * LINKS
 *********************************************/

.reveal a {
  color: var(--r-link-color);
  text-decoration: none;
  -webkit-transition: color .15s ease;
  -moz-transition: color .15s ease;
  transition: color .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);
}

/*********************************************
 * IMAGES
 *********************************************/

.reveal section img {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.reveal section img.plain {
  border: 0;
  box-shadow: none;
}

.reveal a img {
  -webkit-transition: all .15s linear;
  -moz-transition: all .15s linear;
  transition: all .15s linear;
}

.reveal a:hover img {
  background: none;
  border: none;
  box-shadow: none;
}

/*********************************************
 * 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);
  }
}

/*********************************************
 * CUSTOM STYLES FOR COMMON THEME
 *********************************************/

/* Presentation title */
.reveal .slides .presentation-title {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: var(--font-size-presentation-title);
  color: #cccccc;
  z-index: 100;
  font-weight: 300;
  white-space: nowrap;
  text-align: left;
}

/* Green highlight text */
.reveal .green,
.reveal .highlight-green {
  color: var(--accent-green);
  font-weight: bold;
}

/* Red highlight text */
.reveal .red,
.reveal .highlight-red {
  color: var(--accent-red);
  font-weight: bold;
}

/* Speaker notes styling */
.reveal .speaker-notes p {
  line-height: 1.4;
  margin-bottom: 0.6em;
}

/* Universal speaker notes bottom spacing */
.reveal .speaker-notes > *:last-child {
  margin-bottom: 100px;
}

/*********************************************
 * SLIDE TYPES
 *********************************************/

/* Impact slide - single h1 only */
.reveal section.impact h1 {
  font-size: var(--r-heading1-size);
  font-weight: 700;
  line-height: 1.4;
}

/* For multi-line impact slides */
.reveal section.impact h1 br {
  display: block;
  content: "";
  margin-top: 20px;
}

/* Emoji-only slide - even bigger than impact */
.reveal section.emoji-only h1 {
  font-size: 120px;
  line-height: 1;
}

/* Title + Big Text slide */
.reveal section.title-bigtext > h1:first-child,
.reveal section.title-bigtext > h2:first-child {
  margin-bottom: 40px;
  color: #999999;
  font-size: var(--r-heading2-size);
}

.reveal section.title-bigtext .big-text {
  font-size: var(--font-size-big-text);
  line-height: 1.4;
  font-weight: 700;
  color: #ffffff;
}

/* For multi-line big text */
.reveal section.title-bigtext .big-text br {
  display: block;
  content: "";
  margin-top: 20px;
}

/* Title + List slide */
.reveal section.title-list {
  text-align: left;
  padding-left: 60px;
}

.reveal section.title-list > h1:first-child,
.reveal section.title-list > h2:first-child {
  margin-bottom: 40px;
  color: #999999;
  font-size: var(--r-heading2-size);
  text-align: left;
}

.reveal section.title-list ul,
.reveal section.title-list ol {
  font-size: var(--font-size-list);
  line-height: 1.5;
  text-align: left;
  margin-left: 0;
  list-style: none;
  padding-left: 0;
}

.reveal section.title-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

/* Custom bullet point - vertical bar */
.reveal section.title-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 8px;
  height: 1.2em;
  background-color: #666666;
  display: block;
}





.reveal pre code {
  color: #ffffff;
  background-color: transparent;
  padding: 0;
}




