@font-face {
  font-family: Standard;
  src: url("../fonts/standard-book-webfont.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: Standard;
  src: url("../fonts/standard-bold-webfont.ttf") format("truetype");
  font-style: normal;
  font-weight: bold;
}

html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  margin: 0;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

img,
video {
  display: block;
  height: auto;
  max-width: 100%;
}

iframe {
  border: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

td:not([align]),
th:not([align]) {
  text-align: left;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

html {
  font-size: 16px;
  /*-moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;*/
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: black;
}

@media screen and (min-width: 1000px) {
  html {
    font-size: 1.6vw;
  }
}

article,
aside,
figure,
footer,
header,
hgroup,
section {
  display: block;
}

body,
button,
input,
select,
textarea {
  font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

code,
pre {
  -moz-osx-font-smoothing: auto;
  -webkit-font-smoothing: auto;
  font-family: monospace;
}

body {
  font-family: Standard, sans-serif;
  font-size: 1rem;
  cursor: default;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a:active {
  color: yellow;
}

.header {
  position: absolute;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: black;
  background-color: white;
}

.header h1,
.header h2 {
  position: absolute;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 100%;
  font-weight: bold;
  text-align: center;
}

.header h1 {
  top: 50%;
  font-size: 3rem;
}

.header h2 {
  display: none;
  top: 75%;
  font-size: 1.5rem;
}

.nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: absolute;
  z-index: 888;
  bottom: -4.125rem;
  left: 0;
  width: 100%;
  background: rgb(0,0,0);
  background: -webkit-gradient(linear, left bottom, left top, color-stop(25%, rgba(0,0,0,1)), to(rgba(0,0,0,0)));
  background: -o-linear-gradient(bottom, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
  background: linear-gradient(0deg, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1);
  -webkit-transition: bottom 1s;
  -o-transition: bottom 1s;
  transition: bottom 1s;
}

.loaded .nav {
  bottom: 0;
}

.nav a {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 0px;
  flex: 1 1 0;
  padding: 1.5rem;
  font-weight: bold;
  text-align: center;
  color: dimgray;
  text-shadow: 0 .05em .05em black;
}

.nav a:not(.opened):hover {
  color: red;
  -webkit-transition: color .5s;
  -o-transition: color .5s;
  transition: color .5s;
}

.nav .opened {
  color: yellow;
}

.imagemachine {
  position: absolute;
  z-index: 777;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: black;
}

.imagemachine iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) translateZ(0);
  transform: translate(-50%, -50%) translateZ(0);
  width: 50%;
  height: 100%;
  overflow: hidden !important;
  mix-blend-mode: difference;
  -webkit-transition: left .5s;
  -o-transition: left .5s;
  transition: left .5s;
}

.loaded .image {
  left: 25%;
}

.loaded .text {
  left: 75%;
}

.section {
  position: absolute;
  z-index: 777;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 1em 1em 4.4375rem;
  line-height: 1.25;
  color: red;
  text-shadow: 0 .05em .05em black;
  background: rgb(0,0,0);
  background: -webkit-gradient(linear, left bottom, left top, color-stop(50%, rgba(0,0,0,1)), to(rgba(0,0,0,0)));
  background: -o-linear-gradient(bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  background: linear-gradient(0deg, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1);
  -webkit-transition: top 1s;
  -o-transition: top 1s;
  transition: top 1s;
}

@media screen and (min-width: 1000px) {
  .section {
    font-size: 1.5rem;
  }
}

.section::-webkit-scrollbar {
  display: none;
}

.section.opened {
  top: 0;
}

.section-close {
  display: none;
  position: fixed;
  top: 1em;
  right: 2em;
  font-weight: bold;
}

.section.opened .section-close {
  display: block;
}

.section-title {
  position: -webkit-sticky;
  position: sticky;
  top: -1em;
  width: 100%;
  margin: -1em -1em 1em -1em;
  padding: 1em 1em 0 1em;
  font-weight: bold;
  text-align: center;
  background: rgb(0,0,0);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(50%, rgba(0,0,0,1)), to(rgba(0,0,0,0)));
  background: -o-linear-gradient(top, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  background: linear-gradient(180deg, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1);
  opacity: 0;
}

.section.opened .section-title {
  opacity: 1;
  transition: opacity 1s;
  transition-delay: 1s;
}

.content a {
  text-decoration: underline;
}

.content a:hover {
  color: yellow;
}

.content h1 {
  margin-left: 1em;
  font-weight: bold;
}

.content h1:not(:first-child) {
  margin-top: 2em;
}

.content h1 + p,
.content h2 + p,
.content h3 + p {
  text-indent: 0;
}

.content h2 {
  margin-left: 1em;
  font-weight: normal;
  text-decoration: underline;
}

.content h2:not(:first-child) {
  margin-top: 1em;
}

.content h3 {
  margin-left: 1em;
  font-weight: normal;
}

.content h3:not(:first-child) {
  margin-top: 1em;
}

.content p {
  text-indent: 1em;
}

.content li {
  margin-left: 1em;
  text-indent: -1em;
}

.content details summary {
  display: inline;
  outline: 0;
  cursor: pointer;
}

.content summary::-webkit-details-marker {
  display: none;
}

.content details u:hover {
  color: yellow;
}

.content details p {
  display: inline;
}

.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  max-width: calc(100% - 2rem);
  width: auto;
  max-height: calc(100% - 2rem);
  height: auto;
}