@font-face {
  font-family: 'Monoid Regular';
  src: url('Monoid-Regular.eot');
  /* IE9 Compat Modes */
  src: url('Monoid-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('Monoid-Regular.woff2') format('woff2'), /* Super Modern Browsers */
  url('Monoid-Regular.woff') format('woff'), /* Pretty Modern Browsers */
  url('Monoid-Regular.ttf') format('truetype');
  /* Safari, Android, iOS */
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Monoid Bold';
  src: url('Monoid-Bold.eot');
  /* IE9 Compat Modes */
  src: url('Monoid-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('Monoid-Bold.woff2') format('woff2'), /* Super Modern Browsers */
  url('Monoid-Bold.woff') format('woff'), /* Pretty Modern Browsers */
  url('Monoid-Bold.ttf') format('truetype');
  /* Safari, Android, iOS */
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'Monoid Italic';
  src: url('Monoid-Italic.eot');
  /* IE9 Compat Modes */
  src: url('Monoid-Italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('Monoid-Italic.woff2') format('woff2'), /* Super Modern Browsers */
  url('Monoid-Italic.woff') format('woff'), /* Pretty Modern Browsers */
  url('Monoid-Italic.ttf') format('truetype');
  /* Safari, Android, iOS */
  font-weight: normal;
  font-style: normal;
}
@font-face {
    font-family: 'monoisomeregular';
    src: url('monoisome-regular.eot');
    src: url('monoisome-regular.eot?#iefix') format('embedded-opentype'),
         url('monoisome-regular.woff2') format('woff2'),
         url('monoisome-regular.woff') format('woff'),
         url('monoisome-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/*

GENERAL STYLE */

body, .regular {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Monoid Regular", monospace;
  color: #535353;
  background-color: white;
  font-size: 12px;
  -webkit-font-feature-settings: "liga" 1, "calt" 1;
  font-feature-settings: "liga" 1, "calt" 1;
}
* {
  box-sizing: border-box;
}
::-moz-selection {
  color: white;
  background: #446fbd;
}
::selection {
  color: white;
  background: #446fbd;
}
.noselect {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.alarm {
  color: hsl(339, 48%, 50%);
}

/*

TYPOGRAPHY */

p {
  font-size: 1em;
  margin-bottom: 2em;
  margin-top: 10px;
  line-height: 1.6;
}
h1, h2, h3 {
  line-height: 1em;
}
h1 {
  font-weight: bold;
  font-family: "Monoid Bold", monospace;
  font-size: 22vmin;
  letter-spacing: calc(-26vmin / 30);
  margin-top: 8vh;
}
h2 {
  font-weight: bold;
  font-family: "Monoid Bold", monospace;
  font-size: 1.5em;
  letter-spacing: calc(-1em / 30);
  color: #434343;
  margin: 22px 0 14px -1px;
  -webkit-font-feature-settings: "ss11";
  font-feature-settings: "ss11";
}
h3 {
  font-weight: normal;
  font-family: "Monoid Italic", monospace;
  font-size: 5vmin;
  -webkit-font-feature-settings: "ss11";
  font-feature-settings: "ss11";
}
.hljs-comment {
  font-weight: normal;
  font-family: "Monoid Italic", monospace;
}
a, #close {
  color: #446fbd;
  text-decoration: none;
}
.monoisome, #test {
  font-family: "monoisomeregular", monospace;
}

/*

JUMBO */

header {
  text-align: center;
  height: 85vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #333333;
}
header * {
  position: relative;
}
#h1load {
  position: absolute;
  top: -5%;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: white;
}
.loaded #h1load {
  width: 0;
  -webkit-transition: width 360ms steps(6, end) 100ms;
  transition: width 360ms steps(6, end) 100ms;
}
h3 {
  opacity: 0;
  -webkit-transition: 1000ms ease 570ms;
  transition: 1000ms ease 570ms;
}
.loaded h3 {
  opacity: 1;
}

/*

CONTENT */

.blabla {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 0;
  max-width: 1500px;
  margin: 0 auto;
  -webkit-transform: translate3d(0, 15vh, 0);
  transform: translate3d(0, 15vh, 0);
  margin-bottom: 15vh;
}
.loaded .blabla {
  -webkit-transition: 300ms cubic-bezier(0.215, 0.61, 0.355, 1) 1200ms;
  transition: 300ms cubic-bezier(0.215, 0.61, 0.355, 1) 1200ms;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  margin-bottom: 0;
  padding-bottom: 40px;
}
.blabla > section {
  width: 380px;
  padding: 5 15px;
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
}
.blabla > section > p, .blabla > section > form, .blabla > section > h2 {
  padding: 0 5px;
}

/*

SETTINGS */

input {
  display: none;
}
.clickme, .clickme2, .tabs span, #themechooser span, #letterspacing span, #teaser, input + label {
  color: rgba(83, 83, 83, 0.5);
}
.active, input:checked + label {
  text-decoration: underline;
  color: #535353 !important;
}
label, .clickme, .clickme2, #themechooser span, #letterspacing span, .tabs span {
  cursor: pointer;
}
#txt[placeholder]:empty:before {
  content: attr(placeholder);
  -webkit-transition: .4s ease;
  transition: .4s ease;
}
#txt[placeholder]:empty:focus:before {
  opacity: 0;
}
#txt[placeholder]:not(:empty) {
  opacity: 1;
}
#txt {
  outline: none;
  min-height: 90vh;
}
#settings span {
  display: inline-block;
}
.button {
  border-radius: 4px;
  background-color: #446fbd;
  color: white;
  padding: 2px 12px 3px 11px;
  margin-top: 18px;
  margin-right: 2px;
  line-height: 32px;
  -webkit-transition: 0.2s ease;
  transition: 0.2s ease;
  display: inline-block;
  box-shadow: inset 0 0 0px 1px rgba(0, 0, 0, 0.2), inset 0 0 10px 0px rgba(0, 0, 0, 0.05);
}
.button:hover, .button:focus {
  background-color: #3e64aa;
  box-shadow: inset 0 0 0px 1px rgba(0, 0, 0, 0.1), inset 0 0 10px 0px rgba(0, 0, 0, 0.01);
}
.button:active {}
.button .icon {
  font-size: 2em;
  -webkit-transform: translateY(5px);
  -ms-transform: translateY(5px);
  transform: translateY(5px);
  width: 1em;
}
.tight, label[for=tight] {
  letter-spacing: -0.06666666667em;
}
.halftight, label[for=halftight] {
  letter-spacing: -0.03333333333em;
}
.halfloose, label[for=halfloose] {
  letter-spacing: 0.03333333333em;
}
.loose, label[for=loose] {
  letter-spacing: 0.06666666667em;
}
label[for=ss01] {
  -webkit-font-feature-settings: "ss01" 1;
  font-feature-settings: "ss01" 1;
}
label[for=ss02] {
  -webkit-font-feature-settings: "ss02" 1;
  font-feature-settings: "ss02" 1;
}
label[for=ss03] {
  -webkit-font-feature-settings: "ss03" 1;
  font-feature-settings: "ss03" 1;
}
label[for=ss04] {
  -webkit-font-feature-settings: "ss04" 1;
  font-feature-settings: "ss04" 1;
}
label[for=ss05] {
  -webkit-font-feature-settings: "ss05" 1;
  font-feature-settings: "ss05" 1;
}
label[for=ss06] {
  -webkit-font-feature-settings: "ss06" 1;
  font-feature-settings: "ss06" 1;
}
label[for=ss07] {
  -webkit-font-feature-settings: "ss07" 1;
  font-feature-settings: "ss07" 1;
}
label[for=ss08] {
  -webkit-font-feature-settings: "ss08" 1;
  font-feature-settings: "ss08" 1;
}

/* LOAD OVERLAY */

#loadoverlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-color: white;
  z-index: 100;
  opacity: 1;
}
.loaded #loadoverlay {
  display: none;
}

/* SAFARI ALERT */

.alert {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background-color: hsla(341, 67%, 43%, 0.9);
  box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 2px 5px 0 rgba(0, 0, 0, 0.15);
  color: white;
  text-align: center;
  z-index: 101;
  padding: 0 10px;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: 0.2s ease;
  transition: 0.2s ease;
}
.alert p {
  margin-bottom: 10px;
}
noscript.alert {
  visibility: visible;
  opacity: 1;
  top: 0;
  padding: 12px;
  height: 40px;
}
noscript a {
  text-decoration: underline;
  color: white;
}
.safari #safari {
  -webkit-transition: 1s ease 3s;
  transition: 1s ease 3s;
  opacity: 1;
  visibility: visible;
}
#safari #ok {
  float: right;
  cursor: pointer;
  font-family: "Monoid Bold", monospace;
}

/*

POST DOWNLOAD OVERLAY */

#postdownload {
  position: fixed;
  top: -20vh;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 101;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.96);
  -webkit-transform: translate3D(0, -100vh, 0);
  -ms-transform: translate3D(0, -100vh, 0);
  transform: translate3D(0, -100vh, 0);
  -webkit-transition: all 1000ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
  transition: all 1000ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
}
.downloaded #postdownload {
  -webkit-transform: translate3D(0, 0, 0);
  -ms-transform: translate3D(0, 0, 0);
  transform: translate3D(0, 0, 0);
  -webkit-transition: all 1000ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 1000ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#postdownload p {
  font-size: 4vmin;
  margin: 20vh 2% 0 2%;
}
#close {
  font-size: 12vmin;
  position: absolute;
  top: 20vh;
  right: 3.5vmin;
  cursor: pointer;
  -webkit-transform: translate3d(0, 0, 0) rotate(0deg);
  transform: translate3d(0, 0, 0) rotate(0deg);
  -webkit-transition: all 1000ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
  transition: all 1000ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
}
.downloaded #close {
  -webkit-transform: translate3d(0, 0, 0) rotate(360deg);
  transform: translate3d(0, 0, 0) rotate(360deg);
  -webkit-transition: all 1000ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 1000ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/*

CODE */

#codewrapper {
  overflow-x: hidden;
  padding: 0 5px;
}
.code {
  margin: 0 -10vh;
  line-height: 16px;
  height: 0;
  box-shadow: inset 0 0 20vh rgba(0, 0, 0, 0.1), inset 0 0 3vh rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  -webkit-transition: box-shadow 0.2s ease, background-color 0.4s ease;
  transition: box-shadow 0.2s ease, background-color 0.4s ease;
}
.code.current {
  height: auto;
}
pre {
  padding: 0 10vh;
  border: 0px;
  max-height: 10000vh;
  overflow-y: hidden;
  position: relative;
  margin: 0 !important;
}
.code:not(.current) pre {
  max-height: 0;
  -webkit-transition: max-height 0s .4s;
  transition: max-height 0s .4s;
}
code {
  padding: 5vw 0;
  overflow-y: hidden !important;
  opacity: 0;
  visibility: hidden;
  -moz-tab-size: 2;
  -o-tab-size: 2;
  tab-size: 2;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  white-space: pre;
  word-wrap: normal;
  display: block;
}
.current code {
  opacity: 1;
  visibility: visible;
}
.code {
  background-color: #fafafa;
  color: hsl(0, 0%, 28%);
}
.hljs-keyword, .hljs-class, .hljs-tag, .hljs-pseudo, .hljs-attr_selector, .hljs-constant, .xml .hljs-title {
  color: #446fbd;
}
.hljs-comment {
  color: hsl(0, 0%, 62%);
}
.hljs-title, .hljs-attribute, .hljs-params {
  color: #8757ad;
}
.hljs-variable {
  color: #535353;
}
.hljs-string, .hljs-pi, .language-less .hljs-keyword, .xml .hljs-value {
  color: #e88501;
}
.hljs-number, .xml .hljs-attribute {
  color: #6d8600;
}
.black .code {
  background-color: black;
}
.black .code span, .black .code code {
  color: white !important;
}
.white .code {
  background-color: white;
  box-shadow: none;
}
.white .code span, .white .code code {
  color: black !important;
}
.dark .code {
  background-color: hsl(39, 6%, 12%);
  color: #dddddd;
  box-shadow: inset 0 0 20vh rgba(0, 0, 0, .8), inset 0 0 3vh rgba(0, 0, 0, 1), inset 0 0 0 1px rgba(0, 0, 0, 1);
  -webkit-transition: box-shadow 1.2s ease, background-color 0.4s ease;
  transition: box-shadow 1.2s ease, background-color 0.4s ease;
}
.dark .hljs-keyword, .dark .hljs-class, .dark .hljs-tag, .dark .hljs-pseudo, .dark .hljs-attr_selector, .dark .hljs-constant, .dark .xml .hljs-title {
  color: #6c9ef8;
}
.dark .hljs-comment {
  color: #767676;
}
.dark .hljs-title, .dark .hljs-attribute, .dark .hljs-params {
  color: #b77fdb;
}
.dark .hljs-variable {
  color: #dddddd;
}
.dark .hljs-string, .dark .hljs-pi, .dark .language-less .hljs-keyword, .dark .xml .hljs-value {
  color: #D89333;
}
.dark .hljs-number, .dark .xml .hljs-attribute {
  color: #85a300;
}

/*

JUMP */

#jump {
  text-align: center;
  margin: 10vh 0;
}

/*

RESPONSIVE */

@media (max-width: 500px) {
  .blabla > section {
    width: auto;
    max-width: 500px;
  }
  pre code {
    padding-left: 10px;
    padding-right: 10px;
  }
  .blabla {
    padding: 0 10px;
  }
  .blabla section {
    padding: 0;
  }
}
@media (min-width: 501px) and (max-width: 900px) {
  .blabla > section {
    width: auto;
    max-width: 900px;
  }
  pre code {
    padding-left: 20px;
    padding-right: 20px;
  }
  .blabla {
    padding: 0 20px;
  }
  .blabla section {
    padding: 0;
  }
}
@media (min-width: 901px) {
  pre code {
    padding-left: 40px;
    padding-right: 40px;
  }
  .blabla {
    padding: 0 10px;
  }
  .blabla section {
    padding: 0 30px;
  }
}
@media (min-width: 1100px) {
  pre code {
    padding-left: 60px;
    padding-right: 60px;
  }
  .blabla {
    padding: 0 30px;
  }
  .blabla section {
    padding: 0 30px;
    max-width: 463px;
  }
}
#grid {
  display: none;
}

/*#grid {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAABnRSTlMAAAAAAABupgeRAAAADUlEQVR4AWOgKXj9GgADIQHXhV5mogAAAABJRU5ErkJggg==);
    background-repeat: repeat;
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}*/
