html {
  background: #ddd;
  height: 100dvh;
}

body {
  display: flex;
  height: 100dvh;

  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0;

  color: #444;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;

  background-image: url(../gfx/aao.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50vw auto;

  animation: fade_in 1s ease-in-out forwards;
  opacity: 0;
}

#wrapper {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  width: auto;
  height: 100dvh;
}

#wrapper > * {
  display: block;
  width: 100dvw;
}

header {
  flex-grow: 1;
  visibility: hidden;
}

footer, details > summary {
  padding: 15px 0;
  background-color: #bbb;
  font-size: 2rem;
  text-align: center;
}

footer a, details > summary span {
  color: inherit;
  font-variant: small-caps;
  text-decoration: none;
  letter-spacing: 0.15rem;
  font-kerning: none;
}

footer a:focus {
  outline: none;
}

footer a:hover, summary:hover {
  color: #222;
}

footer small {
  font-size: 0.85rem;
}

section {
  position: absolute;
  width: 100%;
  height: calc(100v - 60px);
}

details > summary {
  display: block;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: .3s;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > div {
  display: flex;
  align-items: center;
  justify-content:center;
  overflow: auto;
  height: calc(100dvh - 138px);
  user-select: none;
  margin: 0;
  padding: 0;
  background: #000;
}

details[open] > div {
  animation-name: fade_in;
  animation-duration: 0.3s;
}

.video-js {
  max-height: 100%;
}

@keyframes fade_in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-color-scheme: dark) {
  html {
    background: #222;
  }

  body {
    color: #aaa;
    background-image: url(../gfx/aao_inv.svg);
  }

  footer, details > summary {
    background-color: #333;
  }

  footer a:hover, #wrapper summary:hover {
    color: #ddd;
  }
}

@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable_subset.woff2") format("woff2");
}

@font-face {
  font-family: InterVariable;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable-Italic_subset.woff2") format("woff2");
}

@supports (font-variation-settings: normal) {
  body {
    font-family: 'InterVariable', sans-serif;
    letter-spacing: unset;
    font-kerning: normal;
  }
}
