:root {
  --important-color: #e24;
  --important-link-color: #f48;
  --important-link-hover: #d26;
  --standout-color: #509;
  --box-color: #eef;
}

/* Manual override on "UNDER CONSTRUCTION" site header bump-down since my
 * files don't get the banner anyways!
 */
#site-header {
    top: 0pt !important;
}

h1 {
  font-size: 32pt;
}

.reveal pre, .reveal code {
  font-size: 90%;
}

.reveal .sourceCode {
  font-size: 95%;
}

.reveal pre.sourceCode {
  padding: 8pt;
  margin: 8pt auto;
  width: 100%;
  overflow: auto;
}

.reveal pre.sourceCode code {
  padding: 0pt;
  margin: 0pt;
}

.reveal .smallCode .sourceCode {
  font-size: 65%;
}

.reveal sup {
  font-size: 1ex;
}

.reveal sub {
  font-size: 1ex;
}

.reveal table th, .reveal table td {
    vertical-align: top;
}

.reveal .seprows table th, .reveal .seprows table td {
    border-bottom: 2pt solid black;
}

.reveal .memtable table {
    border-collapse: collapse;
}

.reveal .memtable table tr th,
.reveal .memtable table tr td {
    border: 1.5pt solid black;
}

.reveal .memtable table tr th:not(:last-child),
.reveal .memtable table tr td:not(:last-child) {
    background: white;
}

.reveal .memtable table tr th {
    font-weight: normal;
}

.reveal .memtable table tr:last-child th,
.reveal .memtable table tr:last-child td {
    border: 1.5pt solid black;
}

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

.wide-table table {
  width: 100%;
}

.empty-table tbody th img, .empty-table tbody td img {
  margin: 0px;
}

.empty-table tbody th, .empty-table tbody td {
  border: 0px !important;
  padding: 0.4ex 1ex 0.4ex 1ex;
  vertical-align: middle;
}

.crossout {
  text-decoration: line-through;
}

.smallcaps {
  font-variant: small-caps;
}

.standout {
  color: var(--standout-color);
  font-style: italic;
}

.important {
  color: var(--important-color);
}

.important a {
  color: var(--important-link-color) !important;
}

.important a:hover {
  color: var(--important-link-hover) !important;
}

.reveal .box {
    padding: 0.05em 0.25em;
    background: var(--box-color);
    border-radius: 0.15em;
}

.reveal .left {
    text-align: left;
}

.reveal .huge {
  font-size: 200%;
}

.reveal .large {
  font-size: 120%;
}

.reveal .small {
  font-size: 80%;
}

.reveal .smaller {
  font-size: 65%;
}

.reveal .tiny {
  font-size: 40%;
}

.reveal .attribution {
  font-size: 0.6em;
}

.tall {
    height: 80vh;
}

.fullframe {
  width: 100%;
  height: 17em;
}

.fullframe figure {
  width: 100%;
  height: 100%;
}

.fullframe figure img {
  max-width: 100% !important;
  max-height: 100% !important;
  height: 100% !important;
  width: auto !important;
}

img.fullframe {
    position: absolute;
    top: -3vh;
    left: 0pt;
    max-width: 98vw !important;
    max-height: 75vh !important;
    height: 75vh !important;
    width: auto !important;
    margin: 0pt;
}

.bigframe {
  width: 100%;
  height: 14em;
}

.medframe {
  width: 80%;
  height: 10em;
}

.bigframe figure, .medframe figure {
  width: 100%;
  height: 100%;
}

.bigframe figure img, .medframe figure img {
  max-width: 100% !important;
  max-height: 100% !important;
  height: 100% !important;
  width: auto !important;
}

.reveal section div.img-no-border img {
  border: none;
  box-shadow: none;
  background: none;
}

.underline {
  text-decoration: underline;
}

@media print {
  .reveal section.level1 {
    display: none !important;
  }
}

.reveal .fraction {
  display: inline-block;
  position: relative;
  overflow: visible;
  top: -1.3ex;
  height: 2.7ex;
}

.reveal .fraction-top {
  display: inline-block;
  float: left;
  border-bottom: 1pt solid black;
  padding-bottom: 1pt;
}

.reveal .fraction-bottom {
  display: inline-block;
  clear: left;
  float: left;
}

.reveal .equation {
  margin: 0 auto 0 auto;
  width: 100%;
  text-align: center;
}

.reveal .columns {
  width: 100%;
  margin: auto;
  clear: both;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.reveal .columns.top {
  align-items: flex-start;
}

.reveal .columns.bottom {
  align-items: flex-end;
}

.reveal .columns.stretch {
  align-items: stretch;
}

input, textarea {
  font-size: 22pt;
}

.reveal .fragment.replace {
    display: none;
}

.reveal .fragment.replace.current-fragment {
    display: block;
}

.reveal .fragment.replace.visible.final {
    display: block;
}

.alt-only {
    position:absolute;
    left:-10000px;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;
}
