
body {
  margin: 0;
  color: #111;
  line-height: 1.6;
  font-weight: 400;
  font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #222;
  background: var(--background-gradient);
  font-size: 1rem;
}

.top-nav-sm {
  top: 0;
  left: 0;
  position: fixed;
  display: flex;
  background-color: var(--primary-dark);
  border-bottom: 1px var(--primary-darker) solid;
  width: 100vw;
  margin: 0 auto;
  align-items: center;
  justify-content: flex-start;
  z-index: 9;
}

.top-nav-sm > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 .3em;
  color: #fff;
  font-weight: bold;
}

.top-nav-sm .fa {
  margin-right: .13em;
  margin-top: 5px;
}

.top-nav-sm .fa, .hamburger {
  font-size: 1.6em;
  top: -3px;
  position: relative;
  cursor: pointer;
}

.docs-container {
  min-height: 100vh;
  width: 94%;
  max-width: 1320px;
  margin: 0 auto;
  background-color: #fefefe;
  border-left: 1px #E1E1E1 solid;
  border-right: 1px #E1E1E1 solid;
}

.docs-container .card {
  background-color: #fff;
}

h1 {
  font-size: 24px;
  text-align: center;
  margin: 1em 0;
}

img { max-width: 100% !important; height: auto !important; }

a {
  color: var(--primary);
}

h2 {
  font-size: 19px;
}

h3 {
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 18px;
  line-height: 1.3;
}

h3 a {
  text-decoration: none;
}

h3 a:hover {
  text-decoration: underline;
}

.breadcrumb-container {
  padding: .6em 1em;
  border-bottom: 1px #E1E1E1 solid;
  display: none;
}

.breadcrumb-container ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style-type: none;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  font-size: .9em;
}

.breadcrumb li {
    margin-bottom: 0 !important;
    display: inline-flex;
    align-items: center;
    line-height: normal !important;
    list-style: none !important;
}

.breadcrumb li + li::before {
  content: "›";
  padding: 0 0.8rem .16em 0.8rem;
  color: #bbb;
  font-size: 1.6rem;
  display: inline-block;
}

.page-content {
  width: 98%;
  margin: 0 auto;
  overflow-x: auto;
}

.page-nav-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 1em auto;
}

.page-nav-btns .button {
  margin-top: 0em;
}

.alt {
  border-color: #333;
}

button, .button {
  border-radius: 4px;
  font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .1rem;
  line-height: 38px;
  font-weight: 600;
  font-size: 12px;
  padding: 0 30px;
  line-height: 2.8em;
}

.docs-books {
  display: grid;
  gap: .6em;
  grid-template-columns: repeat(2, 1fr);
  width: 96%;
  margin: 2em auto;
}

.docs-books .card {
  margin-bottom: 0;
}

.docs-books .card-body h3 {
  font-size: 15px;
}

.docs-books .card-body p {
  display: none;
}

.docs-books .card-body p {
  font-size: .933em;
  line-height: 1.33em;
}

.docs-books .card-body {
  padding: 4px;
}

.docs-books .cover {
  cursor: pointer;
}

.docs-page {
  display: grid;
  gap: 1em;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.docs-page > div.left-col {
  display: none;
  border-right: 1px #ddd solid;
}

.docs-page > div.right-col {
  margin-bottom: 3em;
}

h1.headline-docs {
  padding-top: 2em;
}

code {
  padding: .2rem .5rem;
  margin: 0 .2rem;
  font-size: 90%;
  background: #F1F1F1;
  border: 1px solid #E1E1E1;
  border-radius: 4px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

table {
    overflow-wrap: normal;
    word-break: normal;
}

pre code {
  border: none;
  padding: 0;
  margin: 0;
}

.alert {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 2em auto 1em auto;
}

.alert>div {
  padding: 22px;
}

.alert-heading {
  font-family: Georgia, serif;
  background-color: #333;
  font-size: 15px;
  font-weight: bold;
  line-height: 1em;
  color: #fff;
  border-radius: 9px 9px 0 0;
}

.alert-body {
  border: 3px #333 solid;
  font-family: verdana;
  font-size: 14px;
  border-radius: 0 0 9px 9px;
  background-color: #fff;
}

.alert button.alt:hover,
.alert .alt:hover {
    background-color: #fff;
    text-shadow: none;
}

.alert-info>div:nth-child(1) {
  background-color: var(--primary-darker);
}

.alert-info>div:nth-child(2) {
  border-color: var(--primary-darker);
  background-color: #f7f7ff;
}

.alert-success>div:nth-child(1) {
  background-color: #31a131;
}

.alert-success>div:nth-child(2) {
  border-color: #31a131;
  background-color: #31a13111;
}

.alert-success button,
.alert-success .button {
    background-color: #31a131;
    border: 1px #2f6f2f solid;
    color: #eee;
}

.alert-success button:hover,
.alert-success .button:hover {
    background-color: #2f6f2f;
    border: 1px #2f6f2f solid;
    color: #fff;
}

.alert-success button.alt,
.alert-success .alt {
    background-color: transparent;
    border: 1px #378537 solid;
    color: #2f6f2f;
}

.alert-success button.alt:hover,
.alert-success .alt:hover {
    background-color: #fff;
    border: 1px #2f6f2f solid;
    color: #2f6f2f;
}

.alert-warning>div:nth-child(1) {
  background-color: #c58340;
}

.alert-warning>div:nth-child(2) {
  border-color: #c58340;
  background-color: #c5834022;
}

.alert-warning button,
.alert-warning .button {
    background-color: #c58340;
    border: 1px #b17c46 solid;
    color: #eee;
}

.alert-warning button:hover,
.alert-warning .button:hover {
    background-color: #b17c46;
    border: 1px #b17c46 solid;
    color: #fff;
}

.alert-warning button.alt,
.alert-warning .alt {
    background-color: transparent;
    border: 1px #b17c46 solid;
    color: #b17c46;
}

.alert-warning button.alt:hover,
.alert-warning .alt:hover {
    background-color: #fff;
    border: 1px #b17c46 solid;
    color: #b17c46;
}

.alert-danger>div:nth-child(1) {
  background-color: #c54040;
}

.alert-danger>div:nth-child(2) {
  border-color: #c54040;
  background-color: #c5404022;
}

.code-sample {
  width: 90%;
  margin: 0 auto 1em auto;
  overflow: auto; 
  max-width: 74vw;
}

.code-block-header {
    margin-top: 1em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: .6em 1em 0 1em;
}

.copy-icon-container {
  cursor: pointer;
  font-size: 1em;
}

button.feature-ref-btn {
  text-transform: none;
  padding: .3em 1em .3em 1em;
  font-size: .9em;
  line-height: 1.1em;
  margin-top: 3px;
  width: max-content;
  display: inline-block !important;
  background-color: #33c3f0;
  border: 1px #1eaedb solid;
}

button.feature-ref-btn:hover {
  background-color: #1eaedb;
  border: 1px #1eaedb solid;
}

button.feature-ref-btn:focus {
    outline: none;
}

button.feature-ref-btn .fa {
  font-size: 1.1em;
}

.params-table tr td:nth-child(2),
.params-table tr td:nth-child(4),
.params-table tr td:nth-child(5) {
  text-align: center;
}

.params-table tr td:nth-child(4) {
  min-width: 10em;
}

#feature-ref-information table tr > th:nth-child(1), 
#feature-ref-information table tr > td:nth-child(1) {
    width: min-content;
}

.modules-list li {
  font-size: .833em;
  margin-top: .33em;
}

.modules-list li a {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-weight: bold;
  font-size: 1.13em;
}

.alert .alert-body p:nth-child(1) {
  margin-top: 0;
}

.element-wrapper {
  width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 76vw;
  margin: 1em auto;
  padding: 4px 0;
}

figure {
  width: 90%;
  max-width: 620px;
    margin: 2rem auto;
    text-align: center;
    background-color: #f4f7ff;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 1em;
  -webkit-box-shadow: 0px 10px 14px 0px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 10px 14px 0px rgba(0,0,0,0.75);
  box-shadow: 0px 10px 14px 0px rgba(0,0,0,0.75);
}

img {
  margin: 3em auto 5em auto;
  display: block;
}

img,
figure img {
  border:5px #8890a6 solid;
  border-style: double;
  margin: 0;
}

figcaption {
  margin-top: 1.33em;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  font-size: .9em;
  color: #545969;
  text-align: left;
  font-family: Garamond, serif;
}

/* ======================================== SLIDE NAV STYLES ======================================== */

.slide-nav {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: var(--primary-dark);
  transition: left 0.1s ease;
  z-index: 1000;
  padding: 0;
  box-sizing: border-box;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0,0,0,0.4);
}

.slide-nav.open {
  left: 0;
}

.slide-nav-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  margin: 0;
  border-radius: 0;
  transition: color 0.2s;
  color: #fff;
  font-size: 33px;
  left: -12px;
  top: -12px;
  position: relative;
}

.slide-nav-list {
  list-style: none;
  padding: 20px 0;
  margin: 0;
}

.slide-nav-list li {
  margin: 0;
}

.slide-nav-list a {
  text-decoration: none;
  display: block;
  padding: 14px 24px;
  font-size: 1.1em;
  transition: all 0.2s;
  color: #fff;
}

.slide-nav-list a:hover {
  background: rgba(255,255,255,0.15);
}


.slide-nav-compact li a {
  font-size: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-weight: bold;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

.code-sample {
  font-size: 12px;
}

.docs-page > div.right-col {
  padding-top: 3em;
}

.code-demo {
    background-color: #eee;
    border-radius: 6px;
    border: 3px var(--primary) dashed;
    width: max-content;
    margin: 0 auto;
    min-width: 220px;
    padding: 1em;
}

.code-demo p {
  text-align: center;
}

/* ======================================== MEDIA QUERIES ======================================== */
@media screen and (min-width: 550px) {
  h1 {
    font-size: 27px;
  }

  h2 {
    font-size: 23px;
  }

  h3 {
    font-size: 18px;
  }

   .docs-books {
    grid-template-columns: 1fr 1fr;
  }

}

@media screen and (min-width: 760px) {
  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 19px;
  }

   .docs-books {
    grid-template-columns: repeat(3, 1fr);
  }

  .alert-heading {
    font-size: 21px;
  }

  .code-sample {
    font-size: 16px;
  }

}

@media screen and (min-width: 1000px) {
  h1 {
    font-size: 33px;
  }

  .breadcrumb-container {
    display: block;
  }

  .docs-page {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .docs-page > div.left-col {
    display: block;
  }

  .docs-page > div.right-col {
    padding-top: 0;
  }

  .code-sample {
    width: 100%;
    max-width: 840px;
  }

  .top-nav-sm {
    display: none;
  }

  figcaption {
    font-size: 15px;
  }

  /* Hide slide nav on desktop */
  .slide-nav,
  .nav-overlay {
    display: none !important;
  }

  .docs-books .card-body p {
    display: block;
  }

  .docs-books .card-body {
    padding: 20px;
  }

  .docs-books .card-body h3 {
    font-size: 19px;
  }

  .docs-books {
    gap: 1em;
  }

  .docs-books .card {
    margin-bottom: 16px;
  }

}

@media screen and (min-width: 1320px) {
  h1 {
    font-size: 37px;
  }

   .docs-books {
    grid-template-columns: repeat(4, 1fr);
  }
}