:root {
  color-scheme: dark;
  --accent: #28d7d3;
}

html, body {
  padding: 0;
  margin: 0;
}

body {
  background: #444;
  color: #ccc;
  font-size: 18px;
  font-family: helvetica, arial, sans-serif;
  line-height: 1.7em;
  overscroll-behavior: none;
}
body::-webkit-scrollbar {
  display: none;
}
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

[hide] {
  display: none;
}

span[flex] {
  flex: 1;
}

a, a:visited {
  color: var(--accent);
}

[link] {
  cursor: pointer;
  user-select: none;
}
[link]:hover {
  color: var(--accent);
}

button[link] {
  border: 0;
  background: transparent;
  color: #ccc;
  font-size: 1em;
}

h1, h2 {
  font-weight: 100;
  margin: 3em 0 1em;
}

p {
  margin: 1em 0 2em;
}

img {
  border-radius: 0.2em;
  box-shadow: 0 0 3px 3px rgba(0, 0, 0, 0.2);
}
img:nth-of-type(2n+1) {
  float: right;
  margin: 0 0 2em 2em;
}
img:nth-of-type(2n) {
  float: left;
  margin: 0 2em 2em 0;
}

header, main, footer {
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: max(1em, 50% - 400px);
  padding-right: max(1em, 50% - 400px);
}

header {
  position: sticky;
  background: rgba(51, 51, 51, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 5rem;
  box-sizing: border-box;
}
header h1 {
  margin: 0;
}
header #menu {
  display: none;
  border: 0;
  background: transparent;
  font-size: 2em;
  cursor: pointer;
}
header #menu span {
  display: block;
  width: 1em;
  height: 2px;
  background: #ccc;
  margin: 0.2em 0;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, transform-origin 0.2s ease-in-out;
}
header #menu.active span:nth-child(1) {
  transform: rotate(45deg);
  transform-origin: 4px;
}
header #menu.active span:nth-child(2) {
  opacity: 0;
}
header #menu.active span:nth-child(3) {
  transform: rotate(-45deg);
  transform-origin: 4px;
}
@media screen and (max-width: 700px) {
  header #menu {
    display: block;
  }
  header nav#big-nav {
    display: none;
  }
}
header button[link] {
  padding: 0 1em;
}
header button[link]:last-child {
  padding-right: 0;
}
header button[link]:hover {
  text-decoration: underline;
}

nav#small-nav {
  display: none;
}

@media screen and (max-width: 700px) {
  nav#small-nav {
    display: block;
    position: fixed;
    background: rgba(51, 51, 51, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 10;
    top: 5rem;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.2s ease-in-out;
  }
  nav#small-nav.active {
    transform: scaleX(1);
  }
  nav#small-nav button[link] {
    background: none;
    border: 0;
    display: block;
    width: 100%;
    text-align: center;
    padding: 1em 0;
    font-size: 1.5em;
  }
  nav#small-nav button[link]:hover {
    background: var(--accent);
    color: #333;
    text-decoration: none;
  }
}
main {
  padding-bottom: 6rem;
}
main h1:first-child, main h2:first-child {
  margin-top: 1em;
}
main section {
  display: none;
}
main section.active {
  display: block;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.4em 1em;
  background: rgba(68, 68, 68, 0.2666666667);
  backdrop-filter: blur(10px);
  text-align: center;
  font-size: 70%;
}
