html {
  width: 100%;
  height: 100%;
}

body {
  color: #333;
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  font-family: 'Segoe UI', serif;
  font-size: 14px;
}

p [href*='#'] {
  color: #428bca;
  text-decoration: none;
}

p [href*='#']:hover {
  color: #1f4881;
  text-decoration: none;
}

.nav-button {
  padding: 0 1.5em 5em 0;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  opacity: 0.7;
  line-height: 16px;
  transition: left 0.3s ease-in-out;
}

.nav-button span {
  display: block;
  padding: 6px;
  background-color: rgba(243, 247, 249, 0.7);
  transform-origin: 0 0;
  transform: rotate(-90deg) translate(-100%, 0);
  border-radius: 0 0 0 5px;
}

.nav-button:hover {
  opacity: 1;
}

.nav-button.open {
  left: 230px;
}

.toc-wrapper {
  transition: left 0.3s ease-in-out;
  overflow-y: auto;
  overflow-x: hidden;
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  bottom: 0;
  width: 230px;
  background-color: #eee;
  font-size: 13px;
  font-weight: 700;
  border-right: 1px solid #ccc;
}

.toc-wrapper .logo {
  margin-top: 12px;
  margin-left: 15px;
  margin-bottom: 12px;
  height: 34px;
  width: 138px;
  max-width: 100%;
}

h1 ~ ul {
  max-width: calc(50% - 4em);
}

h4 + ul {
  max-width: calc(50% - 6.125em);
  margin-left: 30px;
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 0 28px;
}

.toc-wrapper ul,
.toc-wrapper li {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 28px;
}

.toc-wrapper li {
  color: #000;
  transition-property: background;
  transition-timing-function: linear;
  transition-duration: 200ms;
}

.content p,
.content li {
  line-height: 1.6;
  margin-top: 0;
  word-wrap: break-word;
}

.content li p {
  margin-bottom: 0;
}

.toc-wrapper li:first-child {
  border-top: 1px solid #ccc;
}

.toc-link.active {
  background-color: #0f75d4;
  color: #fff;
}

.nav-button img {
  height: 16px;
  vertical-align: bottom;
  border: 0;
}

.toc-link {
  padding: 0 15px;
  display: block;
  overflow-x: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
  color: #000;
  transition-property: background;
  transition-timing-function: linear;
  transition-duration: 130ms;
}

.page-wrapper {
  margin-left: 230px;
  position: relative;
  background-color: #fff;
  min-height: 100%;
  padding-bottom: 1px;
}

.page-wrapper .dark-box {
  width: 50%;
  background-color: #2e3336;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
}

.page-wrapper .lang-selector {
  position: fixed;
  z-index: 50;
  background-color: #1e2224;
  width: 100%;
  font-weight: 700;
}

.lang-selector a {
  display: block;
  float: left;
  color: #fff;
  text-decoration: none;
  padding: 0 10px;
  line-height: 30px;
  outline: 0;
}

.lang-selector .active {
  background-color: #86c40c;
  color: #fff;
}

.lang-selector:after {
  content: '';
  clear: both;
  display: block;
}

.content {
  transform: translateZ(0);
  position: relative;
  overflow-x: hidden;
}

.content code {
  height: auto;
  display: block;
  font-family: 'Consolas', 'Menlo', 'Monaco', 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;
  font-size: 12px;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 3px;
  border-radius: 3px;
}

.inline {
  display: inline;
  word-wrap: break-word;
}

.content pre {
  position: relative;
  font-family: 'Consolas', 'Menlo', 'Monaco', 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;
  font-size: 12px;
  overflow: auto;
  max-height: 60vh;
  background-color: #1e2224;
  color: #fff;
  margin: 0;
  width: 50%;
  float: right;
  clear: right;
  box-sizing: border-box;
  padding-left: 2em;
  resize: vertical;
}

.content:after {
  content: '';
  display: block;
  clear: both;
}

.content h1,
.content h2,
.content h3 {
  font-weight: 700;
  margin-right: 50%;
  padding: 0 28px;
  box-sizing: border-box;
  display: block;
  word-wrap: break-word;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content table {
  padding: 0 28px;
  box-sizing: border-box;
  display: block;
  width: 50%;
}

.lang-wrapper {
  position: absolute;
  margin-top: 23px;
  margin-left: 180px;
  top: 0;
  left: 0;
}

.lang-wrapper .lang-en-fr {
  text-decoration: none;
  padding: 4px 10px;
  text-align: center;
  background: #fff;
  border: 2px solid #d9d9d9;
  border-radius: 4px;
  color: #485a73;
  font-weight: 600;
}

.content h4 {
  margin: 0;
  font-size: 12px;
}

.content h1 ~ p {
  padding: 0 28px;
  box-sizing: border-box;
  display: block;
  margin-right: 50%;
}

.content h1,
.content div {
  clear: both;
}

.content h1 {
  font-size: 25px;
  margin-top: 0;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  margin-bottom: 21px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  background-color: #fdfdfd;
}

.content h2 {
  font-size: 19px;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.content h3 {
  font-size: 15px;
  margin-bottom: 0.8em;
}

.content table th,
.content table td {
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.content table th {
  padding: 5px 10px;
  border-bottom: 1px solid #ccc;
  vertical-align: bottom;
}

.content table thead th {
  white-space: nowrap;
}

.content table {
  padding: 0;
}

.content table td {
  padding: 10px 0 10px 10px;
}

tr {
  table-layout: fixed;
}

[href],
tbody tr {
  cursor: pointer;
}

tbody > tr {
  color: #428bca;
  text-decoration: none;
}

tbody > tr:hover {
  color: #1f4881;
  text-decoration: none;
}

.content table tr:last-child {
  border-bottom: 1px solid #ccc;
}

tr:nth-child(odd) > td {
  background-color: #fff;
}

tr:nth-child(even) > td {
  background-color: #fbfcfd;
}

.content pre > code {
  background-color: transparent;
}

.content blockquote {
  background-color: #1e2224;
  color: #fff;
  margin: 0;
  width: 50%;
  float: right;
  clear: right;
  box-sizing: border-box;
}

.content blockquote > p {
  background-color: #191d1f;
  padding: 13px 2em;
  color: #eee;
  margin: 0;
  clear: both;
}

.query {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

.parameter {
  font-weight: 400;
  box-sizing: border-box;
  background: #fafcfc;
  border: 1px solid #f0f4f7;
  border-radius: 4px;
  color: #b93d6a;
  font-family: 'Source Code Pro', 'Menlo', monospace;
  font-size: 13px;
  line-height: 20px;
}

.lang-selector.mobile {
  display: none;
}

.highlight {
  background-color: #1e2224;
}

.no-margin-bottom {
  margin-bottom: 0;
}

@media (max-width: 930px), (max-device-width: 930px) {
  .toc-wrapper {
    left: -230px;
  }

  .toc-wrapper.open {
    left: 0;
  }

  .page-wrapper {
    margin-left: 0;
  }

  .nav-button {
    display: block;
  }
}

@media (max-width: 700px), (max-device-width: 700px) {
  h1 ~ ul {
    max-width: inherit;
  }

  .content table thead th {
    white-space: normal;
  }

  .content table {
    padding: 0;
  }

  h4 + ul {
    max-width: inherit;
    margin-left: 0;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 0 28px;
  }

  .content h1,
  .content h2,
  .content h3,
  .content h4,
  .content table {
    width: 100%;
  }

  .content code {
    margin-right: 20px;
  }

  .dark-box {
    display: none;
  }

  .content h1,
  .content h2,
  .content h3,
  .content h4,
  .content p,
  .content table,
  .content ul,
  .content li {
    margin-right: 0;
  }

  .content h1 ~ p {
    margin-right: 0;
    padding: 0 28px;
    box-sizing: border-box;
    display: block;
  }

  .content pre + p {
    margin-top: 10px;
  }

  .content pre,
  .content blockquote {
    width: auto;
    float: none;
  }

  .content ul li {
    margin-right: 0;
  }

  .content h4 + ul {
    margin-left: 30px;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 0 28px;
  }

  .lang-selector.mobile {
    z-index: 50;
    background-color: #1e2224;
    width: inherit;
    font-weight: 700;
    display: block;
    text-align: center;
    position: absolute;
    bottom: 0;
  }

  .lang-selector.mobile a {
    display: inline-block;
    float: none;
    color: #fff;
    text-decoration: none;
    padding: 0 10px;
    line-height: 30px;
    outline: 0;
    text-align: center;
    width: 23.5%;
  }

  .mobile .active {
    background-color: #86c40c;
    color: #fff;
  }
}
