@font-face {
  font-family: 'MEKsans-Italic';
  font-style: normal;
  src: url('./fonts/MEKSans-Italic.woff') format('woff');
}

:root {
  --doc-height: 100%;
 }

body {
  background-color: #000;
  margin: 0;
  padding: 0;
}

* {
  font-family: 'MEKsans-Italic', monospace;
  color: #fff;
}

h1 {
  font-size: 3em;
}

iframe {
  border: none;
}

main {
  margin-top: 3em;
  margin-bottom: 3em;
}

img {
  image-rendering: pixelated;
}

video {
  max-height: 650px;
} 

main > * {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  margin: 0 0 3em 0;
}

section > *, footer {
  display: flex;
  flex-direction: column;
  margin-left: max(calc(50% - 400px),2em);
  margin-right: max(calc(50% - 400px),2em);
  max-width: min(800px,calc(100% - 4em))
}

section > .wide {
  margin-left: max(calc(50% - 400px),0px);
  margin-right: max(calc(50% - 400px),0px);
  max-width: min(800px,100%)
}

footer p {
  margin: 0;
  font-size: 0.8rem;
}

footer img {
  width: 100%;
  height: 32px;
  object-fit: contain;
  margin: 3em 0 15em;
}

.centered {
  align-items: center;
}

.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 2em;
  text-align: center;
}

.subsection {
  margin-bottom: 2em;
}

#nullmachine {
  height: calc(var(--doc-height) + -6em);
  transition: all 0.5s ease-in-out;
}

#nullmachine .title, #nullmachine .footer {
  flex-direction: column;
}

#nullmachine .title  * {
  margin: 0;
  padding: 0;
}

#nullmachine .footer {
  margin-top: 1em;
  /* height: 5em; */
}

#nullmachine #more {
  font-size: 1em;
  margin: 1em 0 0 0;
}

#nullmachine #reload, .button-like{
  display: block;
  background-color: #000;
  font-size: 1.5em;
  border: solid 2px #fff;
  text-decoration: none;
  padding: 0 0.5em;
}

#nullmachine #reload:hover, .button-like:hover{
  background-color: #fff;
  color: #000;
  border: solid 2px #fff
}

#nullmachine iframe {
  background: #000;
  flex: 1 1 auto;
}

.buttons {
  gap: 1em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.hidden {
  opacity: 0;
}

.socials {
  display: flex;
  gap: .5em;
  flex-wrap: wrap;
  margin: 1em 0;
}

figure {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

figure img {
  max-height: 400px;
  object-fit: contain;
}

figure .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}

#tile-examples img {
  width: 60px;
  image-rendering: pixelated;
  border: 2px solid #fff;
}