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

@contentTitleColor: #333;
@contentDecorationColor: red;
@headerColor: #fff;
@footerBackground: #fff;
@footerColor: #333;

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }

*, *:before, *:after { box-sizing: border-box; }

html, body {
  height: 100%;
  background: @colorMain;
}

.docui-header,
.docui-main,
.docui-nav,
.docui-footer {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4rem;
  color: #646C7F;
  text-rendering: optimizeLegibility;
  @media (min-width: 600px) {
    font-size: 18px;
  }
}

.docui-header {
  position: relative;
  padding: 2.8rem 1.4rem;
  z-index: 10;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  .docui-header-content {
    opacity: 1;
    z-index: 10;
    text-align: center;
    color: @headerColor;
    text-shadow: 2px 2px #343536;
  }
  .docui-header-content-title {
    padding: 0;
    margin: 0;
    font-size: 2.6rem;
    line-height: 1.5em;
  }
  .docui-header-content-description {
    padding: 0;
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.5em;
  }
  .docui-header-content-version {
    padding: 0;
    margin: 0;
    font-size: .9rem;
    line-height: 1.5em;
    &:before, &:after {
      display: inline-block;
      margin: 0 .5em;
    }
    &:before {
      content: '{';
    }
    &:after {
      content: '}';
    }
  }
  .docui-scrolldown {
    position: absolute;
    bottom: 10px;
    left: 50%;
    margin-left: -13px;
    svg {
      width: 26px;
      opacity: 1;
      transition: opacity .5s;
    }
    .docui-stroke {
      color: @headerColor;
    }
    .docui-scroller {
      color: @headerColor;
      animation: docuiupdown 1s infinite;
    }
    @keyframes docuiupdown {
      0% { transform: translate(0, 0) }
      50% { transform: translate(0, 5px) }
      100% { transform: translate(0, 0) }
    }
  }
  @media (min-width: 700px) {
    height: 90vh;
    margin-bottom: 0;
    .docui-header-content {
      position: relative;
      top: 50%;
      transform: translateY(-50%);
    }
  }
}

.docui-nav {
  @padding-v: .7rem;
  @padding-h: .7rem;

  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 220px;
  background: @colorMain;
  padding: 0 0 1.4rem;
  z-index: 200;
  overflow: auto;
  display: none;
  &.docui-fixed {
    position: fixed;
  }
  .docui-nav-header {
    color: #fff;
    padding: @padding-v @padding-h;
    background: darken(@colorMain, 5%);
  }
  a {
    display: block;
    line-height: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: @padding-v @padding-h;
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: capitalize;
    -webkit-font-smoothing: subpixel-antialiased;
    &:hover {
      background: rgba(255, 255, 255, 0.3);
    }
  }
  .docui-sub-sections {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
  }
  .docui-visible {
    background: rgba(255, 255, 255, 0.13);
  }
  .docui-visible .docui-sub-sections {
    display: block;
  }
  a.docui-current {
    background: lighten(@colorMain, 15%);
  }
  .docui-level-0 > a {
    font-weight: 400;
  }
  .docui-level-1 > a {
    padding-left: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
  }
}

.docui-main {
  position: relative; z-index: 100;
  .docui-section {
    padding: 2rem 1.4rem;
    &:last-of-type {
      padding-bottom: 8.4rem;
    }
    & > *.docui-highlight {
      max-width: 900px;
    }
    &:nth-child(odd) {
      background: @sectionBgDark;
    }
    &:nth-child(even) {
      background: @sectionBgLight;
    }
    & > h3:first-child{
      margin-top: 0;
      border: 10px solid red !important;
    }
  }
  .docui-section, .docui-content {
    & > h2 {
      font-size: 1.6rem;
      margin: 2rem 0 1rem;
      padding: 0 0 1rem;
      text-transform: capitalize;
      color: @contentTitleColor;
      position: relative;
      text-transform: uppercase;
      text-align: center;
      // letter-spacing: 3px;
      font-family: "Rokkitt", serif;
    }
    & > h3 {
      font-size: 1.4rem;
      margin-top: 2.5rem;
      padding: .5rem 0 .5rem;
      text-transform: capitalize;
      font-weight: 700;
      color: @contentTitleColor;
      border-bottom: 2px solid @contentDecorationColor;
    }

    & > h4 {
      font-size: 1.2rem;
      margin: 2rem 0 .5rem;
      padding: 0;
      color: lighten(@contentTitleColor, 10%);
    }
    .docui-annotation {
      font-size: .75em;
      text-align: right;
      margin: 1.5rem 0 .2rem;
      font-style: italic;
    }
  }
  .docui-section {
    & > .docui-content,
    & > h2,
    & > h3,
    & > h4,
    & > .docui-annotation {
      max-width: 720px;
      margin-left: auto;
      margin-right: auto;
      clear: both;
      &:first-child {
        margin-top: 0;
      }
    }

  }
  .docui-content {
    p {
      margin-bottom: 1rem;
      line-height: 1.5rem;
    }
    &.docui-content-code {
      padding-top: 1rem;
    }
    &.docui-content-preview {
      padding-bottom: 1rem;
    }
    pre {
      overflow: auto;
      margin-top: 0;
      &:before {
        content: 'Code markup';
        display: block;
        background: #dadbdd;
        font-family: Arial, sans-serif;
        text-indent: 10px;
        padding-top: 2px;
        padding-bottom: 2px;
        font-size: 12px;
        border-radius: 5px 5px 0 0;
      }
      code {
        font-family: "Courier New", Courier, monospace;
        font-size: .8rem;
        line-height: 1rem;
        display: block;
        background: #323435;
        color: #333;
        font-family: Menlo, Monaco, Consolas, monospace;
        line-height: 1.5em;
        border: @colorMain;
        padding: 1rem;
      }
    }
    > *:last-child {
      margin-bottom: 0;
    }
  }
}

@media (min-width: 940px) {
  .docui-main {
    padding-left: 220px;
  }
  .docui-nav {
    display: block;
  }
  .docui-content pre {
    margin-left: -1.4rem;
    margin-right: -1.4rem;
  }
}

.docui-footer {
  z-index: 5000;
  position: relative;
  display: block;
  padding: 1.4rem 1.4rem 2.8rem;
  background: @footerBackground;
  color: @footerColor;
  font-size: 0.8rem;
  text-align: center;
  a {
    color: @footerColor;
    text-decoration: none;
    border-bottom: 1px dashed @footerColor;
    &:hover {
      border-color: @footerColor;
      border-bottom: 1px solid @footerColor;
    }
    & > * {
      max-width: 720px;
      margin-left: auto;
      margin-right: auto;
    }
  }
}

.docui-content {
  .hljs {
    color: #ddd!important;
    .docui-hljs-comment {
      color: #888!important;
    }
    .docui-hljs-tag {
      color: #fff!important;
    }
    .docui-hljs-name {
      color: #fff!important;
    }
    .docui-hljs-attr {
      color: #fff!important;
    }
    .docui-hljs-string {
      color: #ea4da6!important;
    }
  }
  pre .hljs {
    display: block;
    overflow: auto;
  }
}
