:root { color-scheme: dark; }

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #0b1425;
  color: #f8fafc;
  font: 16px/1.4 Arial, sans-serif;
}

.toolbar {
  background: #17243a;
  text-align: center;
  padding: 8px 4px;
  border-bottom: 1px solid #39475e;
  position: sticky;
  top: 0;
  z-index: 2;
}

.controls, .utilities { display: inline-block; vertical-align: middle; }
.utilities { margin-left: 14px; }

.button {
  display: inline-block;
  vertical-align: middle;
  padding: 8px 12px;
  border: 1px solid #637793;
  border-radius: 6px;
  background: #263953;
  color: #fff;
  font: bold 16px/1.3 Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

a.button, button.button { cursor: pointer; }
a.button:hover, button.button:hover { background: #3d5472; }
.button:focus, .gallery a:focus {
  outline: 3px solid #ffdd80;
  outline-offset: 2px;
}

.button.primary {
  background: #d6ebff;
  color: #102046;
}

a.button.primary:hover { background: #fff; }
.button[aria-disabled="true"] {
  background: transparent;
  color: #a7b5c9;
  border-color: #45566e;
}

.position {
  display: inline-block;
  vertical-align: middle;
  min-width: 64px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}

.stage { margin: 0; padding: 6px; text-align: center; }

.slide {
  display: block;
  margin: 0 auto;
  width: 100%;
  width: calc(133.333vh - 100px);
  max-width: 100%;
  height: auto;
}

.presentation:fullscreen { background: #0b1425; }
.presentation:-webkit-full-screen { background: #0b1425; }
.presentation.expanded {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: auto;
  background: #0b1425;
  z-index: 3;
}

[hidden] { display: none !important; }

.gallery {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 8px;
  text-align: center;
}

.gallery h1 { margin: 5px 0 12px; font-size: 23px; }
.gallery ol { list-style: none; margin: 16px 0 0; padding: 0; }
.gallery li {
  display: inline-block;
  vertical-align: top;
  width: 180px;
  max-width: 44%;
  padding: 5px;
}
.gallery a {
  display: block;
  padding: 5px;
  border: 1px solid #637793;
  border-radius: 6px;
  background: #263953;
  color: #fff;
  text-decoration: none;
}
.gallery a:hover { background: #3d5472; }
.gallery img { display: block; width: 100%; height: auto; margin-bottom: 4px; }

@media (max-width: 580px) {
  .controls, .utilities { display: block; }
  .utilities { margin: 5px 0 0; }
  .slide { width: calc(133.333vh - 154px); }
}

@media (max-height: 250px) {
  .slide { width: 100%; max-width: 350px; }
}
