html,
body {
  width: 100%;

  margin: 0;
  padding: 0;
}

body {
  font-family: monospace;
  font-size: 16px;
}

#main-view {
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0;
}

h1 {
  font-size: 38px;
  margin-top: 40px;
}

h2 {
  font-size: 34px;
  margin-top: 40px;
}

h3 {
  font-size: 28px;
  margin-top: 28px;
}

h4 {
  font-size: 25px;
  margin-top: 20px;
}

h5 {
  font-size: 24px;
  margin-top: 20px;
}

h6 {
  font-size: 23px;
  margin-top: 20px;
}

p {
  margin: 10px 0;
  font-size: 18px;
}

hr {
  margin: 10px 0;
  padding: 0;

  border: none;
  border-top: 2px solid #ccc;
}

input {
  border: 0;
  outline: 0;
  background: transparent;
  border-bottom: 2px solid;
  width: 200px;
  font-size: 25px;
  font-family: monospace;
}

@-webkit-keyframes blinking {
  0% {
    opacity: 0;
  }
  48% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  98% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@-webkit-keyframes flash {
  0% {
    background-color: rgba(241, 93, 59, 1);
  }
  100% {
    background-color: rgba(241, 93, 59, 0);
  }
}

.flash {
  animation: flash 1.1s linear;
  -webkit-animation: flash 1.1s linear;
}

.flash.quick {
  animation-duration: 0.3s;
  -webkit-animation-duration: 0.3s;
}

[contenteditable='true'].cursor:focus:before {
  color: transparent;
}

[contenteditable='true'].cursor:empty:before {
  content: '';

  border-left: 1px solid;
  animation: blinking 1s linear infinite;
  -webkit-animation: blinking 1s linear infinite;
}

[contenteditable='true']:empty:after {
  content: attr(placeholder);
  display: inline-block; /* For Firefox */

  /*text-decoration: underline;*/
}

/* */

span[contenteditable='true'] {
  outline: none;
  padding: 5px;
  cursor: text;
  display: inline-block; /* For Firefox */
}

a {
  color: #f15d3b;
}

#header {
  background-color: #1f122d;

  width: 100%;
}

#header td:first-of-type {
  width: 1%;
}

#header .logo {
  height: 68px;

  margin: 10px 0px;

  -webkit-filter: drop-shadow(0px 0px 0.8em #f15d3b);
  filter: drop-shadow(0px 0px 0.8em #f15d3b);
}

#header .flat-text-container {
  right: calc(2em + 25px);
}

.glow-logo {
  -webkit-filter: drop-shadow(0px 0px 0.8em #f15d3b);
  filter: drop-shadow(0px 0px 0.8em #f15d3b);
}

.flat-text-container {
  position: relative;

  display: inline-block;

  bottom: 2px;
}

.flat-text-container a {
  text-decoration: none;
}

.flat-text:nth-of-type(2) {
  position: absolute;

  left: 0;
  top: 0;
}

.flat-text {
  margin: 0;

  letter-spacing: 35px;
  margin-right: -35px;

  text-shadow: 0 0 25px #f15d3b;

  font-size: 3em;

  color: #fff;
}

.monospace {
  font-family: monospace;
}

.home-navigation {
  position: absolute;

  margin: 0;

  right: 30px;
  top: 28px;
}

.home-navigation > a {
  color: #fff;

  font-size: 2em;

  text-decoration: none;

  border: 2px solid #fff;

  padding: 5px 10px;
  margin: 0 10px;
}

.centered-absolute {
  position: absolute;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);
}

.slide.full {
  height: 100vh;
}

.pre {
  padding: 1px 4px;

  border-radius: 4px;

  color: white;
  background-color: #1f122d;

  white-space: nowrap;
}

.code,
.example-code {
  background-color: #1f122d;
}

.indent {
  margin-left: 105px;
  text-indent: -105px;
}

.indent * {
  text-indent: 0;
}

.slide > h1 {
  text-align: center;

  font-size: 35px;

  margin-top: 40px;
  margin-bottom: 50px;
}

pre {
  margin: 0;
}

code {
  font-family: monospace;

  word-break: break-word;

  background-color: #1f122d;

  text-align: left;

  padding: 1px 4px;

  border-radius: 4px;
  color: white;
  background-color: #1f122d;
  font-size: 14px;

  vertical-align: middle;
}

pre code,
div.code,
div.example-code {
  padding: 8px 20px;

  border-radius: 10px;
}

div.code div,
div.code pre,
div.example-code div,
div.example-code pre {
  display: grid;
}

code *:not(span) {
  margin-left: 38px;
  text-indent: -38px;
}

.code-container {
  display: inline-block;
}

.code-container,
.code,
.example-code,
pre code {
  max-width: 100%;
}

pre code {
  display: block;

  margin: 0px;

  box-sizing: border-box;

  min-width: 550px;

  white-space: pre-wrap;
}

main {
  width: 100%;
}

pre .skinny code {
  min-width: initial;
}

#downloads > .downloads {
  width: 500px;
}

.page-container {
  width: 100%;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
}

.page-container > #header {
  order: 1;
  padding-left: 10px;
}

.page-container > #content-container {
  display: flex;
  flex-grow: 10;
  order: 2;
}

.page-container > #footer {
  order: 3;
}

header,
footer {
  display: table-row;

  height: 1%;
}

#footer {
  padding: 120px 100px;

  background-color: #0f021d;
}

#footer a,
#footer p {
  color: #f15d3b;

  text-decoration: none;
}

#footer > table {
  width: 100%;

  text-align: center;

  table-layout: fixed;
}

#footer .social a {
  margin: 0 10px;
}

#footer .social img {
  width: 40px;
}

.nowrap {
  white-space: nowrap;
}

.note code {
  min-width: initial;
  width: 100%;
}

.note:before {
  content: '';

  position: absolute;

  top: 28px;
  left: 0px;
  right: 0px;

  border-bottom: 2px solid #1f122d;
}

.note {
  padding: 10px;
  padding-top: 37px;

  /*background-color: #fffaf5;*/

  border: 2px solid #1f122d;
  /*border-radius: 10px;*/

  box-sizing: border-box;

  width: 550px;

  position: relative;

  margin: auto;
}

.note > p:first-child {
  margin-top: 0;
}

.note,
.note p {
  font-size: 15px;
}

.note:after {
  content: 'Note';

  position: absolute;

  top: 3px;
  left: 10px;

  font-size: 16px;
}

.bold {
  font-weight: bold;
}

.dark {
  color: #1f122d;
}

.white {
  color: #f5f5f5;
}

code,
.pure-white {
  color: #fff;
}

.gray {
  color: #888;
}

/* orange */
.primary {
  color: #f15d3b;
}

/* blue */
.secondary1 {
  color: #4da4db;
}

/* aqua */
.secondary2 {
  color: #4dc0b3;
}

/* yellow */
.secondary3 {
  color: #ffd95d;
}

/* green */
.secondary4 {
  color: #9bcb3c;
}

/* red */
.secondary5 {
  color: #f92672;
}

.hljs-title,
.hljs-built_in,
.type {
  color: #4da4db;
  font-weight: bold;
}

/*.hljs,*/
.identifier {
  color: #9bcb3c;
}

.hljs-string,
.text {
  color: #ffd95d;
}

.hljs-keyword,
.modifier {
  color: #f92672;
}

.comment {
  color: #aaa;
}

.dark-border {
  border-color: #1f122d;
}

.white-border {
  border-color: #f5f5f5;
}

.primary-border {
  border-color: #f15d3b;
}

.secondary1-border {
  border-color: #4da4db;
}

.secondary2-border {
  border-color: #4dc0b3;
}

.secondary3-border {
  border-color: #ffd95d;
}

.secondary4-border {
  border-color: #9bcb3c;
}

.dark-background:before {
  background-color: #1f122d !important;
}

.white-background:before {
  background-color: #f5f5f5 !important;
}

.primary-background:before {
  background-color: #f15d3b !important;
}

.secondary1-background:before {
  background-color: #4da4db !important;
}

.secondary2-background:before {
  background-color: #4dc0b3 !important;
}

.secondary3-background:before {
  background-color: #ffd95d !important;
}

.secondary4-background:before {
  background-color: #9bcb3c !important;
}

.transparent.dark-background:before,
.transparent.white-background:before,
.transparent.primary-background:before,
.transparent.secondary1-background:before,
.transparent.secondary2-background:before,
.transparent.secondary3-background:before,
.transparent.secondary4-background:before {
  opacity: 0.85;
}

.dark-background:before,
.white-background:before,
.primary-background:before,
.secondary1-background:before,
.secondary2-background:before,
.secondary3-background:before,
.secondary4-background:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
}

.dark-background,
.white-background,
.primary-background,
.secondary1-background,
.secondary2-background,
.secondary3-background,
.secondary4-background {
  position: relative;
}

a.footnote {
  font-size: 11px;

  position: relative;

  top: 1px;

  text-decoration: none;
}

p.footnote {
  font-size: 12px;
}

#footnotes {
  margin-top: 40px;
}

#footnotes > .header {
}

#footnotes > footnote {
  display: block;
}

#footnotes > footnote > p {
  font-size: 14px;
}

.tree-item a {
  color: #f5f5f5;

  text-decoration: none;
}

.tree-item.selected a.selected {
  font-weight: bold;

  color: #f15d3b;
}

tree-browser {
  display: block;
}

.tree-browser {
  text-align: left;
}

.tree-browser:not(.open) {
  display: none;
}

.tree-browser.root {
  position: relative;
}

.sub-tree-browser {
  margin-left: 20px;
}

.tree-browser .link-container {
  padding-left: 7px;
}

.tree-browser td {
  vertical-align: top;
}

.tree-browser .tree-item {
  position: relative;
}

.tree-browser .tree-item.children:before {
  content: '';

  position: absolute;

  border-radius: 10px;

  width: 2px;

  left: -12px;
  top: 8px;
  bottom: 3px;

  -webkit-filter: drop-shadow(0px 0px 4px #f15d3b);
  filter: drop-shadow(0px 0px 4px #f15d3b);

  background-color: #f5f5f5;

  -webkit-transition: 0.1s ease all;
  transition: 0.1s ease all;

  -webkit-transition-property: opacity;
  transition-property: opacity;

  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  -webkit-perspective: 1000;
  perspective: 1000;

  opacity: 0;
}

.neon-shadow {
  -webkit-filter: drop-shadow(0px 0px 4px #f15d3b);
  filter: drop-shadow(0px 0px 4px #f15d3b);
}

.tree-browser .tree-item.selected.children.open:before {
  opacity: 1;
}

.tree-browser .arrow {
  margin-top: 1px;
}

.arrow {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;

  border-left: 6px solid #f5f5f5;

  display: inline-block;

  -webkit-transition: 0.2s linear all;
  transition: 0.2s linear all;

  -webkit-transition-property: transform;
  transition-property: transform;

  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  -webkit-perspective: 1000;
  perspective: 1000;

  transform: rotate(0deg);
}

.arrow.down {
  transform: rotate(90deg);
}

.arrow.invisible {
  opacity: 0;
}

.share-modal {
  width: 400px;

  position: fixed;

  border: 7px solid white;
  padding: 20px;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -100vh);

  background-color: rgba(31, 18, 45, 0.95);

  -webkit-transition: 0.2s linear all;
  transition: 0.2s linear all;

  -webkit-transition-property: opacity, transform;
  transition-property: opacity, transform;

  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;

  -webkit-perspective: 1000;
  perspective: 1000;

  opacity: 0;

  pointer-events: none;

  z-index: 5;
}

.share-modal.active {
  opacity: 1;

  pointer-events: all;

  transform: translate(-50%, -50%);
}

.share-modal table {
  width: 100%;

  table-layout: fixed;

  text-align: center;
}

.share-modal img {
  height: 40px;
}

.share-modal h1 {
  color: white;

  font-size: 25px;

  text-align: left;

  margin-bottom: 10px;
}

.share-modal input {
  width: 100%;

  font-size: 15px;

  margin-bottom: 25px;

  border: 0;
  background-color: white;
}

.share-modal .copy-link {
  font-size: 50%;
}

.share-modal-background {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 4;
  backdrop-filter: blur(3px);
}

pre:not(.full).centered {
  text-align: center;
}

pre:not(.full) > code {
  display: inline-block;
  width: auto;
}

.hljs-deletion,
.hljs-number,
.hljs-type {
  color: rgba(241, 93, 59);
}

.hljs-comment {
  color: #c9c0c0;
}

.hljs-operator {
  color: inherit;
}

.hljs-variable {
  color: #9bcb3c;
}

[id] {
  scroll-margin-top: 20px;
}

a.anchor-button {
  position: absolute;
  left: 2em;
  top: 50%;
  display: none;
  transform: translate(calc(-100% - 3px), -50%);
}

*:hover > a.anchor-button {
  display: inline;
}

* > a.anchor-button {
  height: 0.75em;
}

a.anchor-button > svg {
  vertical-align: top;
}

div > a.anchor-button > svg {
  height: 20px;
}

:not(div) > a.anchor-button > svg {
  width: 100%;
  height: 100%;
}

a.anchor-button > img {
  vertical-align: top;
}

div > a.anchor-button > img {
  height: 20px;
}

:not(div) > a.anchor-button > img {
  height: 100%;
}

.anchor-button-container {
  margin-left: -2em;
  padding-left: 2em;
}

.anchor-button-container .anchor-button-content {
  -webkit-transition: 0.1s ease backgroud-color;
  transition: 0.1s ease background-color;
}

.anchor-button-container .anchor-button-content:hover {
  background-color: rgb(255, 132, 100, 0.6);
}

.issues {
  font-size: smaller;
}
