:root {
  --fg-color: #fff;
  --bg-color: #000;
  --layout-transition-time: 1s;
  --menu-fades-time: 500ms;
}

* { box-sizing: border-box; }

body {
  overflow: hidden;
}

body,
input,
button {
  box-sizing: border-box;
  padding: 0; margin: 0;
  font-family: "better-serif", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#loader {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #1c1c36;
  background: radial-gradient(circle, rgba(106,106,167,1) 0%, rgba(28,28,54,1) 100%);
  color: #fff;
  opacity: 1;
  transition: opacity 1s;
  font-size: 20px;
}

#loader #password {
  color: #fff;
  border: 2px solid rgb(28, 28, 54);
  padding: 20px;
  background: rgba(28,28,54,0.5);
  border-radius: 25px;
  font-size: 20px;
}

#netnet {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -30;

  transition: filter .5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#nn-output {
  position: absolute;
  z-index: -20;
}

#nn-output > iframe {
  /* HACK: at 100% it creates scrollbars for some reason */
  height: 99.7% !important;
}

#nn-window {
  position: absolute;
  min-width: 300px;
  min-height: 200px;
  border: 4px solid var(--fg-color);
  background-color: rgba(0, 0, 0, 0);
}

#nn-window > #nn-bg-canvas {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: -10;
}

#nn-window > #nn-menu {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  padding: 15px 15px 5px 5px;
  color: var(--fg-color);
}

#nn-window > #nn-menu > #face  {
  cursor: pointer;
  height: 26px;
  font-family: sans-serif;
  text-rendering: auto;
  -webkit-font-smoothing: auto;
  transition: font-size var(--layout-transition-time);
}

#nn-window > #nn-menu > #face > span {
  display: inline-block;
  transform-origin: center;
  padding: 0px 2px 0px 5px;
}

#nn-window > #nn-editor {
  overflow-y: scroll;
  height: calc(100% - 60px);
  scrollbar-width: none;
  scrollbar-color: var(--fg-color) rgba(0,0,0,0);
}
