/**
 * The blue theme I use for most of my personal talks.
 *
 * Based on Beige theme for reveal.js by Hakim El Hattab <hakim.se>
 */
@import url(tikhon-fonts.css);

/*********************************************
 * GLOBAL STYLES
 *********************************************/
:root {
  --base: #C0D9FB;
  --bg-inner: white;
  --text: #3f3f3f;
  --title: #052d69;

  --blackboard-bg: #0C1021;
}

body {
  background: var(--base);
  background: -webkit-radial-gradient(center, circle cover, var(--bg-inner) 0%, var(--base) 100%);
}

.reveal {
  /* TODO: figure out how to manage this differently in different
   presentations! */
  font-size: 40px;

  font-family: Junction, Helvetica, Arial, sans-serif;
  font-weight: normal;
  color: var(--text); }

::selection {
  color: #fff;
  background: none;
  text-shadow: none; }

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

/*********************************************
 * TITLE PAGE
 *********************************************/
.reveal .title {
    position : relative;
    top : 50px;

    color : var(--base);
}

.reveal h1.title {
    /* font-size : 160px; */
    margin-bottom : -2%;
}

.reveal h2.title {
    font-size : 120px;
}

.reveal .subtitle {
    position : relative;
    top : 50px;

    font-family : "Kaushan Script";
    font-size : 90px;
    color : var(--base);
}

.reveal .author {
    position : relative;
    top : 250px;

    font-size : 70px;
    color : var(--base);
}

/*********************************************
 * SECTION SLIDES
 *********************************************/
.reveal section.section-slide h2 {
    color : var(--base);
}

/*********************************************
 * HEADERS
 *********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  margin: 0 0 20px 0;
  color: var(--title);
  font-family: Aller;
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  word-wrap: break-word; }

/* Render italics in headers in a script typeface. */
.reveal h1 i,
.reveal h2 i,
.reveal h3 i,
.reveal h4 i,
.reveal h5 i,
.reveal h6 i {
    font-family : "Kaushan Script";
    font-style : normal;
    letter-spacing : -0.04em;
    margin-right : 0.2em;
}

.reveal h1 {
  font-size: 140px; }

.reveal h2 {
  font-size: 120px; }

.reveal h3 {
  font-size: 1.55em; }

.reveal h4 {
  font-size: 1em; }

.reveal h1 {
  text-shadow: none; }

/*********************************************
 * OTHER
 *********************************************/
.reveal p {
  margin: 20px 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 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 q,
.reveal blockquote {
  quotes: none; }

.reveal blockquote {
  display: block;
  position: relative;
  width: 70%;
  margin: 20px 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 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 tr:last-child td {
  border-bottom: none; }

.reveal sup {
  vertical-align: super; }

.reveal sub {
  vertical-align: sub; }

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

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

/*********************************************
 * LINKS
 *********************************************/
.reveal a {
  color: #0a57ca;
  text-decoration: none;
  -webkit-transition: color .15s ease;
  -moz-transition: color .15s ease;
  transition: color .15s ease; }

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

.reveal .roll span:after {
  color: #fff;
  background: #063781; }

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

.figure {
  display : inline-block;
}

/* Images with transparent backgrounds that don't need a border or
   box-shadow. */
.reveal img.no-background, .reveal .no-background img {
    margin-top : -3%;
    margin-bottom : -3%;
    border : none;
    box-shadow : none;
    background : none;
}

/* Stacking several images on top of each other, with each image
   having a drop shadow. */
.reveal ul.stacked {
  height : 600px;
  width : 50%;

  list-style : none;

  margin-left : 15%;
  margin-top : -50px;
  margin-bottom : 30px;
}

.reveal ul.stacked > li {
  position : absolute;
  display : inline-block;

  height : 550px;
  margin : 0;

  border: none;

  transform-origin: 80% 150%;
}

.reveal ul.stacked > li img {
  width : 400px;
  height : 550px;
  margin : 0;

  padding : 0;

  border-width : 2px;
  box-shadow : 5px -2px 10px rgba(0, 0, 0, 0.8);
}

.reveal ul.stacked > li:nth-child(1) {
  transform : rotate(10deg) translate(0, 20%);
}

.reveal ul.stacked > li:nth-child(2) {
  transform : rotate(5deg) translate(0, 10%);
}

.reveal ul.stacked > li:nth-child(3) {
  transform : rotate(0deg) translate(0, 0);
}

.reveal ul.stacked > li:nth-child(4) {
  transform : rotate(-5deg) translate(0, -10%);
}

.reveal ul.stacked > li:nth-child(5) {
  transform : rotate(-10deg) translate(0, -20%);
}

.reveal .no-background p {
    margin : 0;
    padding-bottom : 0;
}

.reveal section img {
  margin: 15px 0px;
  background: rgba(255, 255, 255, 0.12);
  border: 4px solid var(--text);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }

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

.reveal a:hover img {
  background: rgba(255, 255, 255, 0.2);
  border-color: #0a57ca;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }

/*********************************************
 * NAVIGATION CONTROLS
 *********************************************/
.reveal .controls div.navigate-left,
.reveal .controls div.navigate-left.enabled {
  border-right-color: #0a57ca; }

.reveal .controls div.navigate-right,
.reveal .controls div.navigate-right.enabled {
  border-left-color: #0a57ca; }

.reveal .controls div.navigate-up,
.reveal .controls div.navigate-up.enabled {
  border-bottom-color: #0a57ca; }

.reveal .controls div.navigate-down,
.reveal .controls div.navigate-down.enabled {
  border-top-color: #0a57ca; }

.reveal .controls div.navigate-left.enabled:hover {
  border-right-color: var(--title); }

.reveal .controls div.navigate-right.enabled:hover {
  border-left-color: var(--title); }

.reveal .controls div.navigate-up.enabled:hover {
  border-bottom-color: var(--title); }

.reveal .controls div.navigate-down.enabled:hover {
  border-top-color: var(--title); }

/*********************************************
 * PROGRESS BAR
 *********************************************/
.reveal .progress {
  background: rgba(0, 0, 0, 0.2); }

.reveal .progress span {
  background: #0a57ca;
  -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
  -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }

/*********************************************
 * SLIDE NUMBER
 *********************************************/
.reveal .slide-number {
  color: #0a57ca; }

.reveal h2 > a {
  font-size: 70%; }

/** CODE FORMATTING **/

.reveal code {
  font-family: "DejaVu Sans Mono";
  padding: 5px 10px;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.25);
}

.reveal pre {
  display: block;
  position: relative;
  width: 90%;
  margin: 20px auto;
  text-align: left;
  font-size: 0.55em;
  font-family: monospace;
  line-height: 1.2em;
  word-wrap: break-word;
}

.reveal pre code {
  display: block;
  padding: 20px;
  max-height: 600px;
  word-wrap: normal;
  background: var(--blackboard-bg);
  color: #DCDCDC;
  border: none;
}

.reveal ul {
  margin-top: 30px;
}

.reveal ul li {
  width: 110%;
  margin-bottom: 20px;
}

.MathJax_Display { margin-top : 2ex !important; margin-bottom : 2ex !important }
