/**
 * Custom DZslides-like theme for reveal.js
 * by Paweł Widera
 */
section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
  color: #222;
}

/*********************************************
 * FONTS
 *********************************************/
@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 400;
	src: local("Oswald Regular"), local("Oswald-Regular"), url("../resources/oswald.woff") format("woff");
}

@font-face {
	font-family: "FiraCode";
	font-style: normal;
	font-weight: 500;
	src: local("Fira Code"), local("Fira Code Regular"), local("FiraCode-Regular"), url("../resources/firacode.woff") format("woff");
}
@font-face {
	font-family: "FiraCode";
	font-style: normal;
	font-weight: 700;
	src: local("Fira Code Bold"), local("FiraCode-Bold"), url("../resources/firacode_bold.woff") format("woff");
}

math {
	font-family: "Asana Math","Cambria Math","STIXGeneral","XITS Math",math;
}

/*********************************************
 * GLOBAL STYLES
 *********************************************/
:root {
	--r-main-color: white;
	--r-background-color: #1C1C1C;

	--r-link-color: #A6E22E;
	--r-link-color-dark: #068DE9;
	--r-link-color-hover: #C2F230;

	--r-highlight-color: #FF0066;
	--r-title-color: #FAE50B;

	--r-selection-color: #FFF;
	--r-selection-background-color: #BEE4FD;

	--r-table-color: #999;
}

body {
	color: white;
	background-color: black;
}

.reveal-viewport {
	background: black;
}

.reveal {
	font-family: "Oswald", sans-serif;
	font-size: 26px;
	color: var(--r-main-color);
	background: var(--r-background-color);
}

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

.reveal .slides section {
	line-height: 1.3;
}
.reveal .slides section.level2 {
	top: 10px !important;
}

.reveal .slides section h1 + p {
	margin-top: 40px;
}

/*********************************************
 * HEADERS
 *********************************************/
.reveal h1, .reveal h2, .reveal h3 {
	word-wrap: break-word;
}

.reveal h1 {
	margin: 50px 100px 0 100px;
	font-size: 50px;
	text-align: left;
	text-shadow: -1px -1px 0 #000;
}
.reveal .level1 h1 {
	margin: 270px 0;
	vertical-align: middle;
	text-align: center;
}
.reveal .level2 h1 {
	margin: 20px 0;
	font-size: 40px;
	text-align: center;
	color: var(--r-title-color);
}

.reveal h2 {
	margin: 150px 0 0 0;
	font-size: 30px;
	text-align: center;
	color: var(--r-title-color);
}

.reveal h3 {
	color: var(--r-highlight-color);
}

/*********************************************
 * FIRST SLIDE
 *********************************************/
.reveal .firstslide h1 {
	margin-top: 100px;
}
.reveal .firstslide h1 span {
	display: block;
	margin-top: 1em;
	font-size: 20px;
	font-variant: small-caps;
	color: var(--r-link-color);
}

.reveal footer {
	position: relative;
	bottom: -150px;
	width: 100%;
}
.reveal footer div {
	float: right;
	margin-right: 50px;
	font-size: 20px;
	color: #FF0066;
}
.reveal footer a {
	float: left;
	margin-left: 50px;
}

/*********************************************
 * OTHER
 *********************************************/
.reveal strong {
	color: var(--r-highlight-color);
}

.reveal p, .reveal q {
	margin: 20px auto 35px auto;
	width: 700px;
	clear: both;
	text-align: left;
}
.reveal q {
	display: block;
	margin-top: 140px;
	font-style: italic;
}
.revael q:after {
	content: "";
}
.reveal q:before {
	content: "";
}

.reveal figure, .reveal video, .reveal iframe {
  max-width: 95%;
  max-height: 95%;
}
.reveal video {
	width: 90%;
	margin: 0 5%;
}
.reveal figure {
	text-align: center;
}
.reveal figure img {
	margin: 0 auto;
}

.reveal ul {
	float: left;
	min-width: 150px;
	margin-top: 70px;
	margin-left: 50px;
	padding-right: 40px;
	border-right: 4px solid white;
	font-size: 30px;
	text-align: right;
}
.reveal li {
  list-style-type: none;
}

.reveal pre {
	font-size: 13px;
	text-align: left;
}
.reveal .fragment pre {
	margin-top: 2em;
}
.reveal pre > code {
	margin: 0 20px;
}
.reveal code {
	white-space: pre;
	font-family: "FiraCode", monospace;
	text-rendering: optimizeLegibility;
}

.reveal table {
	margin: auto;
	border-collapse: collapse;
	border-spacing: 0;
	color: #ccc;
}
.reveal tr:last-child td {
	border-bottom: 1px solid var(--r-table-color);
}
.reveal th {
	font-weight: bold;
	color: var(--r-highlight-color);
	border-top: 1px solid var(--r-table-color);
	border-bottom: 2px solid var(--r-table-color);
}
.reveal th, .reveal td {
	text-align: left;
	padding: 0.2em 0.5em;
}
.reveal th[align=center], .reveal td[align=center] {
	text-align: center;
}
.reveal th[align=right], .reveal td[align=right] {
	text-align: right;
}

.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 cite {
	display: block;
	font-size: 50%;
}

.reveal hr {
	border: 1px solid #999;
}

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

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

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

.reveal .overview .slides section:hover {
	outline: 10px solid red;
}

/*********************************************
 * PROGRESS BAR
 *********************************************/
.reveal .progress {
	height: 2px;
	color: #999;
	background: rgba(0, 0, 0, 0.2);
}

/*********************************************
 * PRINT BACKGROUND
 *********************************************/
@media print {
  .backgrounds {
    background-color: var(--r-background-color);
  }
}

/*********************************************
 * SPECIAL CUSTOM CLASSES
 *********************************************/
.reveal .code {
	position: absolute;
	top: 90px;
	right: 25px;
	text-align: right;
}
.reveal .code a, em {
	color: #0BE5FA;
	background-color: transparent;
}

.reveal .side {
	float: left;
	min-width: 150px;
	margin-top: 70px;
	margin-left: 25px;
	text-align: center;
}

/*********************************************
 * SVG ICONS
 *********************************************/
.icon, .icon-fill, .icon-chat {
	display: inline-block;
	width: 1em;
	height: 1em;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.icon {
	fill: none;
}
.icon-fill, .icon-chat {
	fill: currentColor;
}
.icon-chat {
	margin-bottom: -10px;
}
.question-counter {
	display: inline-block;
	padding: 9px;
	margin-left: -28px;
	font-size: 0.5em;
	color: black !important;
}

/* disable colour palette */
#chalkboard .palette, #chalkboard .boardhandle, #notescanvas .palette {
	display: none;
}
