/* --------------------------------- Fonts ---------------------------------- */
@font-face {
  font-family: "Montserrat";
  font-weight: normal;
  font-style: normal;
  src: url("./fonts/Montserrat-Regular.otf");
}

@font-face {
  font-family: "Nunito Light";
  font-weight: normal;
  font-style: normal;
  src: url("./fonts/Nunito-Light.ttf");
}
/* -------------------------------------------------------------------------- */

/* --------------------------------- Reset ---------------------------------- */
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, hr,
details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section,
summary, time, mark, audio, video {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

a { cursor: pointer; }
*:focus { outline: none; }
a:focus { outline: 1px dashed #FFF; }

b { font-weight: bold; }
i { font-style: italic; }
sub { vertical-align: sub; font-size: 80%; }
sup { vertical-align: super; font-size: 80%; }

p, ul, ol { text-align: justify; }
ul { list-style: disc outside none; }
/* -------------------------------------------------------------------------- */

/* ------------------------------ Core Styles ------------------------------- */
@media all {
  .x-hbox, .x-vbox {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    align-items: stretch;
  }
  .x-vbox { flex-direction: column; }
  .x-flex { flex: 1; }

  .x-hbox-half {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    align-items: stretch;
    & > div { width: calc(100% / 2); margin-right: var(--split-margin); }
    & > div:last-child { margin-right: 0; }
  }

  .x-unselectable { -webkit-user-select: none; user-select: none; }
}

/* --------------------------------- Global --------------------------------- */
@media all {
  html {
    overflow-y: scroll;
  }

  body {
    width: 100%;
    background: #272727;
    color: #ccc;
    font-family: "Nunito Light", "helvetica", "arial";
    font-size: 18px;
  }

  h1, h2, h3, h4 {
    color: #ffffff;
    margin: 8px 0px;
    padding: 8px 0px;
    font-family: "Montserrat", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "Tahoma", sans-serif;
  }

  h1 { font-size: 155%; font-weight: bold; }
  h2 { font-size: 125%; font-weight: bold; }
  h3 { font-size: 90%; font-weight: normal; }
  h4 { font-size: 90%; font-weight: normal; }

  p, ul {
    margin: 10px 0px;
    text-align: justify;
    line-height: 140%;
  }

  ul { margin-left: 40px; }
  li { margin-top: 10px; line-height: inherit; }
  td { line-height: inherit; }

  a, a:visited {
    padding-left: 1px;
    padding-right: 1px;
    line-height: inherit;
    color: #5cc3ff;
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }

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

  hr {
    height: 1px;
    margin-top: 15px;
    margin-bottom: 10px;
    background: #777777;
  }

  pre {
    box-sizing: border-box;
    width: 100%;
    margin: 16px 0;
    padding: 1em;
    background: #2a2a2a;
  }

  code {
    font-family: "Consolas", monospace;
    font-size: 14px;
  }

  p code, li code {
    padding: 4px 2px 3px 2px;
    border-radius: 3px;
    background: rgb(255 187 76 / 8%);
    white-space: nowrap;
    color: #ffcda7;
  }

  div.image {
    text-align: center;
    overflow-x: auto;
  }

  .wrap { width: 100%; height: 100%; }
  .hidden { display: none !important; }

  .site-outer {
    box-sizing: border-box;
    width: 100%;
    background: #202020;
  }

  .site-outer > div {
    box-sizing: border-box;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
  }

  .site-header {
    background: #181818;
    padding-bottom: 22px;
  }

  .site-header-title {
    color: #ffffff;
    font-size: 38px;
    text-align: center;
    padding: 15px 0 0 0;
  }

  .site-header-description {
    color: #dddddd;
    font-size: 16px;
    text-align: center;
  }

  .site-header-menu {
    text-align: center;
  }

  .site-header-submenu {
    background: #181818;
    text-align: center;
  }

  .site-menu-item {
    display: inline-block;
    padding: 14px 4px 4px 4px;
    outline: none;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
  }

  .site-menu-item > a, .site-menu-item > a:visited {
    color: inherit;
    border: 1px solid transparent;
    padding: 3px 6px;
  }

  .site-menu-item > a:hover {
    text-decoration: none;
    background: #606060;
  }

  .site-menu-item-sel > a,
  .site-menu-item-sel > a:visited {
    border: 1px solid #ffffff;
    background: #fff;
    color: #3f3f3f;
  }

  .site-menu-item-semi-sel > a,
  .site-menu-item-semi-sel > a:visited {
    border: 1px solid #ffffff;
  }

  .site-header-submenu {
    padding: 0 0 20px 0;
  }

  .site-header-submenu > a,
  .site-header-submenu > a:visited {
    margin: 2px 4px;
    padding: 2px 4px;
    border: 1px solid transparent;
    color: #cecece;
    font-family: inherit;
    font-size: 18px;
  }

  .site-header-submenu > a.active {
    text-decoration: none;
    border: 1px solid #019ffb;
    background: #005279;
    color: #fff;
  }

  .site-header-submenu > a:hover {
    text-decoration: none;
    border: 1px solid #5cc3ff !important;
    color: #fff;
  }

  .site-content {
    padding: 0px 4px;
    background: #181818;
    border-top: solid 1px #4f4f4f;
    color: #ededed;
  }

  .site-content > div {
    padding: 15px 0px;
  }


  .site-footer > div {
    padding: 12px 0;
    font-size: 80%;
    color: #bababa;
  }

  .section, .section-important, .x-section-critical, .section-split > div {
    margin: 15px 0px;
    padding: 8px 15px;
    font-size: 90%;
  }

  .section, .section-split > div {
    background: #2c2c2c;
  }

  .section-important {
    border: solid 1px #fff;
    background: #fff;
    color: #000000;
  }

  .x-section-critical {
    border: solid 1px #ff6c6c;
    background: #692727;
    color: #ffffff;
  }

  .section-important h1, .section-important h2, .section-important h3 { color: #c82525; }
  .section-important code {background: rgba(0, 0, 0, 0.07);color: #3f3f3f;}
  .section-important a, .section-important a:visited { color: #004ebc; }
  .section-important a:focus { outline: 1px dashed #000; }

  .x-section-critical a, .x-section-critical a:visited { color: #75e5ff;}
  .x-section-critical a:focus { outline: 1px dashed #ff6c6c; }

  .x-table {
    box-sizing: border-box;
    /* border: 1px solid #656565; */
    background: #353434;
    width: 100%;
    margin: 12px 0;
    overflow-x: auto;
  }

  .x-table table {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    border-spacing: 0;
  }
  .x-table tr {
    text-align: left;
  }

  .x-table td, .x-table th {
    border: 1px solid #181818;
    border-width: 0px 1px 1px 0px;
    margin-bottom: 5px;
    line-height: inherit;
    padding: 4px 8px;
    text-align: left;
  }

  .x-table th {
    background: #6a6a6a;
    color: #fff;
  }

  .x-table tr:last-child td { border-bottom-width: 0px; }
  .x-table td:last-child, .x-table th:last-child { border-right-width: 0px; }

  .x-table-background-green {background: #106e07;}
  .x-table-background-blue { background: #2763a4; }
  .x-table-background-yellow { background: #66660f; }
  .x-table-background-red { background: #773434; }

  .ui-input {
    padding: 2px 4px;
    border: solid 1px #9e9e9e;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 15px;
  }

  .ui-input:hover {
    border: 1px solid #50c0ff;
  }

  .ui-input:focus {
    border: 1px solid #50c0ff;
    outline: none;
    box-shadow: 0px 0px 6px #50c0ff;
  }

  .ui-button, .ui-button:visited, .ui-button:hover {
    display: inline-block;
    cursor: pointer;
    margin: 2px 6px 2px 0px;
    padding: 2px 4px;
    border: 1px solid #777;
    color: #fff !important;
    background: #171717;
    outline: none !important;
    text-decoration: none;
    font: inherit;
    font-size: 15px;
  }

  .ui-button:hover {
    border: 1px solid #50c0ff;
  }

  .ui-button:focus {
    color: #50c0ff;
    border: 1px solid #50c0ff;
    outline: none;
    box-shadow: 0px 0px 6px #50c0ff;
  }

  .ui-button:active {
    border: 1px solid #fff !important;
    background: #289bdc !important;
    color: #fff !important;
    box-shadow: 0px 0px 6px #50c0ff;
  }

  .ui-inline-check,
  .ui-inline-check:visited,
  .ui-inline-check:hover {
    display: inline-block;
    cursor: pointer;
    padding: 2px 4px;
    background: transparent;
    color: #e2e2e2 !important;
    border: 1px solid #666666;
    outline: none !important;
    text-decoration: none;
    font: inherit;
    font-size: 15px;
  }

  .ui-inline-check:hover {
    border: 1px solid #50c0ff;
  }

  .ui-inline-check:focus {
    border: 1px solid #50c0ff;
    color: #50c0ff;
    outline: none;
    box-shadow: 0px 0px 6px #50c0ff;
  }

  .ui-inline-check:active,
  .ui-inline-check.selected {
    border: 1px solid #95d8fd !important;
    background: #289bdc !important;
    color: #fff !important;
  }

  .radio, .radio:visited, .radio:hover {
    display: inline-block;
    cursor: pointer;
    padding: 2px 4px;
    border: 1px solid transparent;
    background: transparent;
    color: #fff !important;
    outline: none !important;
    text-decoration: none;
    font: inherit;
    font-size: 15px;
  }

  .radio:hover {
    border: 1px solid #50c0ff;
  }

  .radio:focus {
    border: 1px solid #50c0ff;
    color: #50c0ff;
    outline: none;
    box-shadow: 0px 0px 6px #50c0ff;
  }

  .radio:active, .radio.selected {
    border: 1px solid #95d8fd !important;
    background: #289bdc !important;
    color: #fff !important;
  }

  .options-wrap {
    margin-bottom: 4px;
  }

  .monaco-wrap {
    box-sizing: border-box;
    border: solid 1px #b5b5b5;
  }

  .monaco-wrap.focus {
    border: 1px solid #ffffff;
    box-shadow: 0px 0px 3px #ffffff;
  }

  .notebook-wrap {
    box-sizing: border-box;
    border: solid 1px #b5b5b5;
    background: #1e1e1e;
    color: #ececec;
    overflow: auto;
  }

  .notebook {
    display: table;
  }

  .notebook-separator {
    margin: 4px;
    border-top: solid 1px #aaa;
  }

  .notebook-code,
  .notebook-text,
  .notebook-error {
    padding: 2px 4px;
    font-family: monospace;
    word-wrap: break-word;
    font-size: 12px;
  }

  .notebook-error {
    color: #f00;
  }

  .notebook-table {
    padding: 2px 4px;
  }

  .notebook-table > table {
    table-layout: fixed;
  }

  .notebook-table > table th {
    background: #ffffff;
    color: #000;
    font-weight: bold;
  }

  .notebook-table > table th,
  .notebook-table > table td {
    padding: 2px 4px;
    text-align: left;
    border: solid 1px #717171;
  }

  .x-hsplit {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    align-items: stretch;
  }

  .x-hsplit > div { flex: 1 50%; margin: 0 10px; }
  .x-hsplit > div:first-child { margin-left: 0; }
  .x-hsplit > div:last-child { margin-right: 0; }
}

/* --------------------------------- LowRes --------------------------------- */
@media all and (max-width: 800px) {
  .x-hsplit { display: block; }
  .x-hsplit > div { margin: 15px 0 0 0; }

  .section-split {
    margin: 15px 0px;
    padding: 5px 15px;
    border: 1px solid #ff9c82;
    background: rgba(0, 0, 0, 0.4);
    font-size: 90%;
  }
  .section-split > div {
    background: none;
    border: none;
    margin: 0;
  }
}

@media all and (max-width: 640px) {
  p, ul {
    margin-top: 5px;
    margin-bottom: 5px;
  }

  table {
    font-size: 80%;
  }

  .header { padding: 0; }
  .outer > div { max-width: 632px; }
}
/* -------------------------------------------------------------------------- */
