body {
  color: #34393e;
  font-family: "Nunito", sans-serif;
  line-height: 1.5;
  font-size: 16px;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  word-wrap: break-word;
}

img {
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.15s ease-in-out;
  margin: 1.5rem 0;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
}

img:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.table {
  margin-bottom: 1.5em;
}

.table thead > tr > th {
  vertical-align: middle;
}

/* HEADINGS */

h1,
h2,
h3,
h4,
h5 {
  font-family: "Alegreya Sans", serif;
  font-weight: 700;
}

h1 {
  font-weight: 600;
  font-size: 32px;
}

h2 {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.8;
}

h3 {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.8;
}

h5 {
  font-size: 14px;
  padding: 10px 0px;
}

article h1,
article h2,
article h3,
article h4 {
  margin-top: 30px;
  margin-bottom: 5px;
}

article h1 + h2 {
  margin-top: 1em;
}

article h2 {
  margin-top: 2em;
}

article h3,
article h4 {
  margin-top: 1em;
}

article h4 {
  padding-bottom: 8px;
  border-bottom: 2px solid #ddd;
}

p {
  margin: 0 0 1em;
}

/* NAVBAR */

.navbar {
  border: none;
  /* Both navbars use box-shadow */
  -webkit-box-shadow: 0px 1px 3px 0px rgba(100, 100, 100, 0.5);
  -moz-box-shadow: 0px 1px 3px 0px rgba(100, 100, 100, 0.5);
  box-shadow: 0px 1px 3px 0px rgba(100, 100, 100, 0.5);
}

.navbar:not(.subnav) {
  padding-bottom: 0.5em;
  padding-top: 0.5em;
}

.subnav {
  border-top: 1px solid #ddd;
  background-color: #fff;
}

.navbar-inverse {
  background-color: #5093ce;
  z-index: 100;
  padding: 0 2em;
}

.navbar-inverse .navbar-nav > li > a,
.navbar-inverse .navbar-text {
  color: #fff;
  background-color: #5093ce;
  border-bottom: 2px solid transparent;
  padding-bottom: 6px;
}

.navbar-inverse .navbar-nav > li > a:focus,
.navbar-inverse .navbar-nav > li > a:hover {
  color: #fff;
  background-color: #5093ce;
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transition: border-bottom 0.2s;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:focus,
.navbar-inverse .navbar-nav > .active > a:hover {
  color: #fff;
  background-color: #5093ce;
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
}

.navbar-form .form-control {
  border: none;
  border-radius: 20px;
}

/* SIDEBAR */

.toc .level1 > li {
  font-weight: 400;
}

.toc .nav > li > a {
  color: #34393e;
}

.sidefilter {
  background-color: #fff;
  border-left: none;
  border-right: none;
  top: 198px;
}

.sidefilter {
  background-color: #fff;
  border-left: none;
  border-right: none;
}

.toc-filter {
  padding: 10px;
  margin: 0;
}

.toc-filter > input {
  border: 2px solid #ddd;
  border-radius: 20px;
}

.toc-filter > .filter-icon {
  display: none;
}

.sidetoc > .toc {
  background-color: #fff;
  overflow-x: hidden;
}

.sidetoc {
  background-color: #fff;
  border: none;
  top: 258px;
}

/* ALERTS */

.alert {
  padding: 0px 0px 5px 0px;
  margin: 1.5em 0;
  color: inherit;
  background-color: inherit;
  border: none;
  box-shadow: 0px 2px 2px 0px rgba(100, 100, 100, 0.4);
}

.alert > p {
  margin-bottom: 0;
  padding: 5px 10px;
}

.alert > ul {
  margin-bottom: 0;
  padding: 5px 40px;
}

.alert > h5 {
  padding: 10px 15px;
  margin-top: 0;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 4px 4px 0 0;
}

.alert-info > h5 {
  color: #1976d2;
  border-bottom: 4px solid #1976d2;
  background-color: #e3f2fd;
}

.alert-warning > h5 {
  color: #f57f17;
  border-bottom: 4px solid #f57f17;
  background-color: #fff3e0;
}

.alert-danger > h5 {
  color: #d32f2f;
  border-bottom: 4px solid #d32f2f;
  background-color: #ffebee;
}

.alert-danger > p {
  color: #d32f2f;
}

/* CODE HIGHLIGHT */
pre {
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  word-break: break-all;
  word-wrap: break-word;
  background-color: #fffaef;
  border-radius: 4px;
  box-shadow: 0px 1px 4px 1px rgba(100, 100, 100, 0.4);
}

/* Custom code for the index page */

.article {
  margin-top: 183px;
}

.menuBlocksContainer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-left: 0;
  margin-top: 2.5em;
  align-items: flex-start;
}

.sectionBlock {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  flex: 1 1 20%;
  padding: 0 2.5%;
}

@media screen and (max-width: 768px) {
  .sectionBlock {
    flex: 1 0 50%;
    margin-bottom: 3em;
  }
}

@media screen and (max-width: 600px) {
  .menuBlocksContainer {
    flex-wrap: wrap;
  }

  .sectionBlock {
    flex: 1 0 100%;
  }
}

.sectionBlock h2 {
  margin-top: 0;
  margin-bottom: 0;
}

.sectionBlock h2 a::after {
  content: "";
}

.sectionBlock img {
  height: 177px;
  width: auto;
  box-shadow: none;
  transition: none;
  margin: 0 auto;
  border: 0;
}

.sectionBlock ul {
  list-style: none;
  padding-left: 0;
  width: 100%;
}

.sectionBlock ul li a {
  color: #949494;
  display: block;
  padding: 0.2em;
  font-size: 20px;
  text-align: left;
}

.sectionBlock ul li a:hover {
  color: #189ad8;
}

/* Custom ReDOC styling */
.redoc-wrap {
  margin-top: 0.5em;
}

.redoc-wrap pre {
  color: white;
}

.redoc-wrap .redoc-json {
  margin-bottom: 0 !important;
}

.redoc-wrap .operation-content header.paramType,
.redoc-wrap .operation-samples header {
  position: static !important;
  display: block !important;
  margin: 25px 0 5px 0 !important;
  text-transform: capitalize !important;
}

.redoc-wrap .menu-header img {
  width: 60%;
  text-align: center;
  box-shadow: none;
  transition: none;
  margin: 1em 1em 3em 1em;
  border: 0;
}

/* Custom responsiveness for main container */

@media (min-width: 1400px) {
  .container {
    width: 1200px;
  }
}

@media (min-width: 2500px) {
  .container {
    width: 1600px;
  }
}

/* Custom Nexus menu style */

.nexusMenu {
  background-color: #337ab7;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  padding: 1em;
}

@media (min-width: 768px) {
  .nexusMenu {
    flex-direction: row;
  }
}

/* Hide mobile menu */
@media (min-width: 768px) {
  .nexusMenu .mainMenuContainer ul li.menuSwitch {
    display: none;
  }
}

.nexusMenu .logoContainer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .nexusMenu .logoContainer {
    width: auto;
  }
}

.nexusMenu .mainMenuContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nexusMenu .mainMenuContainer .toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 1px;
}

.nexusMenu img {
  color: #fff;
  box-shadow: none;
  border: none;
  height: 40px;
  width: auto;
  margin: 0 2em;
  padding: 5px;
}

.nexusMenu ul {
  list-style: none;
  margin: 2rem 0 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .nexusMenu ul {
    flex-direction: row;
    margin-top: 0;
  }
}

.nexusMenu ul.rightMenu {
  margin: 0;
}

.nexusMenu ul:not(.rightMenu) li.item {
  display: none;
}

@media (min-width: 768px) {
  .nexusMenu ul:not(.rightMenu) li.item {
    display: inline-block;
  }
}

.nexusMenu ul:not(.rightMenu).active li.item {
  display: inline-block;
}

.nexusMenu ul li a {
  font-weight: 700;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.75em 1.2em;
  position: relative;

  display: inline-block;
}

@media screen and (max-width: 500px) {
  .nexusMenu ul li a {
    font-size: calc(0.8em + 1vw);
  }
}

.nexusMenu ul:not(.rightMenu) li:not(.menuSwitch) a:before,
.nexusMenu ul:not(.rightMenu) li:not(.menuSwitch) a:after {
  position: absolute;
  transition: all 0.35s ease;
}

.nexusMenu ul:not(.rightMenu) li:not(.menuSwitch) a:before {
  bottom: 0.6em;
  display: block;
  height: 2px;
  border-radius: 1px;
  width: 0%;
  content: "";
  background-color: rgba(255, 255, 255, 0.7);
  left: 30%;
}

.nexusMenu ul:not(.rightMenu) li:not(.menuSwitch) a:after {
  left: 1.195em;
  top: 0.22em;
  padding: 0.5em 0;
  position: absolute;
  content: attr(data-hover);
  color: #ffffff;
  white-space: nowrap;
  max-width: 0%;
  overflow: hidden;
}

.nexusMenu ul:not(.rightMenu) li:not(.menuSwitch) a:hover:before,
.nexusMenu ul:not(.rightMenu) li:not(.menuSwitch).current a:before {
  opacity: 1;
  width: 40%;
}

.nexusMenu ul:not(.rightMenu) li:not(.menuSwitch) a:hover:after,
.nexusMenu ul:not(.rightMenu) li:not(.menuSwitch).current a:after {
  max-width: 100%;
}

.nexusMenu ul.rightMenu li a {
  font-weight: 400;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  padding: 1em 1.2em;
}

@media (min-width: 768px) {
  .nexusMenu ul.rightMenu li a {
    padding: 2em 1.2em;
  }
}

.nexusMenu ul.rightMenu li a:hover {
  color: white;
}

/* Misc custom styling */

.sideaffix {
  top: 157px;
}

.navbar-collapse {
  padding-left: 0;
}

#breadcrumb,
.footer {
  padding: 0.1em 2em;
}

.footer {
  padding-top: 1.5em;
  padding-bottom: 1.5em;
}

.full-width {
  width: 100%;
}

.images-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

.images-wrapper__image {
  width: 48%;
}

@media screen and (max-width: 1024px) {
  .images-wrapper__image {
    width: 100%;
  }
}
