@charset "UTF-8";
@font-face {
  font-family: GillSans;
  src: url("../fonts/GillSans-Light.ttf");
  font-style: normal;
}
@font-face {
  font-family: GillSans;
  src: url("../fonts/GillSans-LightItalic.ttf");
  font-style: italic;
}
@font-face {
  font-family: GillSans;
  src: url("../fonts/GillSans-Regular.ttf");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: GillSans;
  src: url("../fonts/GillSans-Italic.ttf");
  font-weight: bold;
  font-style: italic;
}
@font-face {
  font-family: TitleFont;
  src: url("../fonts/FiraSans-Bold.otf");
}
@font-face {
  font-family: TitleFont;
  src: url("../fonts/FiraSans-BoldItalic.otf");
  font-style: italic;
}
@font-face {
  font-family: TitleFont;
  src: url("../fonts/FiraSans-Heavy.otf");
  font-weight: bold;
}
@font-face {
  font-family: TitleFont;
  src: url("../fonts/FiraSans-HeavyItalic.otf");
  font-weight: bold;
  font-style: italic;
}
@font-face {
  font-family: Menlo;
  src: url("../fonts/Menlo-Regular.ttf");
  font-style: normal;
}
@font-face {
  font-family: Menlo;
  src: url("../fonts/Menlo-Italic.ttf");
  font-style: italic;
}
@font-face {
  font-family: Menlo;
  src: url("../fonts/Menlo-Bold.ttf");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: Menlo;
  src: url("../fonts/Menlo-BoldItalic.ttf");
  font-weight: bold;
  font-style: italic;
}
html {
  --text-size: calc(10 * var(--pt));
  font-size: var(--text-size);
  --dark-text-color: black;
  --light-text-color: white;
  --text-color: var(--dark-text-color);
  --bg-color: white;
  color: var(--text-color);
}

body {
  counter-reset: section-counter;
}

section {
  font-family: "GillSans", "sans-serif";
  background: white no-repeat;
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.5;
}
section.title {
  background-image: url("BG_Title.png");
}
section.title h1 {
  position: relative;
}
section.title .context {
  color: var(--light-text-color);
  text-align: right;
  position: absolute;
  top: calc(14 * var(--mm));
  right: calc(1 * var(--mm));
}
section.title .author {
  color: var(--light-text-color);
  text-align: left;
  position: absolute;
  bottom: calc(14 * var(--mm));
  left: calc(1 * var(--mm));
}
section.title time {
  color: var(--dark-text-color);
  text-align: right;
  position: absolute;
  bottom: calc(2 * var(--mm));
  right: calc(2 * var(--mm));
}
section.title .page-counter {
  display: none;
}
section.section {
  background-image: url("BG_Section.png");
  padding: 0 calc(1 * var(--mm));
}
section.section h1:before {
  content: counter(section-counter, upper-roman) ". ";
  counter-increment: section-counter;
}
section.section h1 {
  position: relative;
  text-align: right;
}
section.section .page-counter {
  display: none;
}
section.single {
  background-image: url("BG_Single.png");
  padding: calc(6 * var(--mm)) calc(3 * var(--mm)) 0 calc(3 * var(--mm));
}
section.split {
  background-image: url("BG_SplitThin.png");
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: calc(3 * var(--mm));
}
section.no-page-counter .page-counter {
  display: none;
}

.side {
  width: calc(61 * var(--mm));
  padding-left: calc(1 * var(--mm));
}
.side:nth-of-type(2) {
  --text-color: var(--light-text-color);
  --bg-color: black;
  color: var(--text-color);
}

ul {
  margin: 0;
  list-style-type: none;
  line-height: 1.5;
  padding-left: calc(3 * var(--mm));
}
ul li:before {
  content: "■ ";
  margin-left: calc(-3 * var(--mm));
}
ul ul {
  font-size: 90%;
}

.slide-footer {
  position: absolute;
  width: 100%;
  bottom: calc(.5 * var(--mm));
  left: 0;
  display: flex;
  justify-content: center;
}

.page-counter {
  text-align: center;
  padding: 0;
  width: calc(12 * var(--mm));
  border: calc(.1 * var(--mm)) black solid;
  border-radius: calc(1 * var(--mm));
  font-size: calc(8 * var(--pt));
  background-color: rgba(255, 255, 255, 0.9);
}

p {
  margin: 0;
}

img {
  height: auto;
  width: auto;
}

pre {
  line-height: 1.5;
  white-space: pre-wrap;
  font-variant-ligatures: none;
  font-size: 85%;
}

code {
  font-family: "Menlo", "monospace";
  font-size: 80%;
}

h1 {
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: "TitleFont", "sans-serif";
  font-weight: bold;
  font-size: calc(22 * var(--pt));
  color: var(--light-text-color);
  -webkit-text-stroke-color: var(--dark-text-color);
  -webkit-text-stroke-width: 0.03em;
}

h2 {
  width: 100%;
  text-align: center;
  font-weight: normal;
  font-family: "TitleFont", "sans-serif";
  color: white;
  font-size: calc(16 * var(--pt));
}

.box {
  --border-width: calc(.8 * var(--mm));
  margin: calc(4 * var(--mm)) 0 calc(2 * var(--mm)) 0;
}
.box .box-top {
  display: flex;
  height: calc(2 * var(--mm));
  flex-direction: row;
}
.box .box-top .box-top-left {
  width: calc(3 * var(--mm));
  border-top: var(--border-width) var(--text-color) solid;
  border-left: var(--border-width) var(--text-color) solid;
}
.box .box-top .box-top-right {
  flex-grow: 1;
  border-top: var(--border-width) var(--text-color) solid;
  border-right: var(--border-width) var(--text-color) solid;
}
.box .box-top .box-title {
  font-weight: bold;
  margin: 0 calc(1 * var(--mm));
  position: relative;
  top: calc(-3 * var(--mm));
}
.box .box-bottom {
  height: calc(2 * var(--mm));
  border-bottom: var(--border-width) var(--text-color) solid;
  border-left: var(--border-width) var(--text-color) solid;
  border-right: var(--border-width) var(--text-color) solid;
}
.box .box-content {
  padding: 0 calc(1 * var(--mm));
}

.no-display {
  display: none !important;
}

.hidden {
  visibility: hidden !important;
}

.highlight {
  background: #FF7;
}

.side:nth-of-type(2) .highlight {
  background: #663;
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.underline {
  text-decoration: underline;
}

.skip {
  margin-bottom: 1em;
}

table {
  border-collapse: collapse;
}

th, td {
  border: calc(.2 * var(--mm)) black solid;
  padding: 0 var(--mm);
}

a {
  color: inherit;
}
