/* style field lists */
.rst-content dl:not(.docutils) {
  display: block !important;
}

.rst-content dl:not(.docutils) dt {
  display: table;
  font-size: 90%;
  line-height: normal;
  background: #e7f2fa;
  color: #2980B9;
  border-top: solid 3px #6ab0de;
  padding: 6px !important;
  margin-bottom: 6px !important;
}

.rst-content dl:not(.docutils) dl dt {
  margin-bottom: 6px;
  border: none;
  border-left: solid 3px #ccc;
  background: #f0f0f0;
  color: #555;
}

/* custom top nav */
svg .st0, svg .st1, svg .st2 {
  fill: #ffffff;
}

.custom-top-nav {
  height: 45px;
  width: 100%;
  font-size: 15px;
  background: #1475CF;
  color: #ffffff;
  position: fixed;
  z-index: 1000;
}

.custom-top-nav-container {
  max-width: 1100px;
}

.custom-top-nav-home {
  float: left;
  padding: 8px 8px 8px 25px;
}

.custom-top-nav-home a {
  color: #ffffff;
}

.custom-top-nav-burger {
  float: left;
  padding: .2em .5em;
  font-size: 2em;
  display: none;
}

.custom-top-nav ul {
  float: right;
  display: flex;
  flex-wrap: nowrap;
  margin-top: 13px;
}

.custom-top-nav ul li {
  margin: 0 15px;
}

.custom-top-nav ul li a {
  color: #ffffff;
}

.wy-grid-for-nav {
  top: 45px;
}

.wy-nav-side {
  top: 45px;
}

/* custom search form */
#rtd-search-form input[type=text] {
  width: 100%;
  border-radius: 50px;
  padding: 6px 12px;
  border-color: #666666;
}

div[role=search] {
  padding: 1.5em .5em .5em .5em;
}

@media screen and (min-width: 769px) {
  .wy-side-scroll div[role=search] {
    display: none;
  }
}

/* don't display fixed header on small screens */
@media screen and (max-width: 768px) {
  .custom-top-nav {
    display: none;
  }

  .wy-grid-for-nav {
    top: 0;
  }

  .wy-nav-side {
    top: 0;
  }
}

/* make anchors work with fixed header */
:target:before {
  content: "";
  display: block;
  height: 55px;
  margin: -55px 0 0;
}

.wy-side-scroll .version {
  width: 100%;
  text-align: center;
  padding-top: 1em;
}

.custom-top-nav div[role=search] {
  padding: .5em .5em .5em .5em;
  float: right;
}

.wy-nav-top div[role=search] {
  float: right;
}

/* custom search form */
.custom-top-nav input[type=text], .wy-nav-top input[type=text],  div[role=search]  input[type=text] {
  width: 100%;
  border-radius: 50px;
  padding: 6px 12px;
  border-color: #666666;
}

/* fix styling on upper-right buttons */
.wy-breadcrumbs li a:first-child {
  padding-left: 5px;
}

/* custom prev/next buttons */
div.rst-footer-buttons {
  font-size: .9em;
}
div.rst-footer-button-next {
  width:50%;
  text-align: right;
  float: right;
  white-space: nowrap;
}
div.rst-footer-button-text {
  display: inline-block;
  white-space: normal;
  padding: 10px 7px 8px 7px;
  vertical-align: top;
}
a.rst-footer-button-arrow {
  font-size: 3em;
  display: inline-block;
}
div.rst-footer-button-text a:hover {
  text-decoration: underline;
}
div.rst-footer-button-prev {
  width:50%;
  text-align: left;
  float: left;
  white-space: nowrap;
}
div.rst-footer-buttons hr.top {
  clear: both;
  margin-bottom: 0px;
}
div.rst-footer-buttons hr.bottom {
  clear: both;
  margin-top: 0px;
}
div.rst-footer-buttons a {
  color: #2980B9;
}

/* custom rating */
#page-rating {
  text-align: center;
  font-size: 1.2em;
  padding-bottom: 15px;
  color:#4e4a4a;
}
.rating {
  border: none;
  width: 140px;
  margin: auto;
}
.rating > input {
  display: none;
}
.rating > label:before {
  margin: 5px;
  font-size: 1.25em;
  font-family: FontAwesome;
  display: inline-block;
  content: "\f005";
}
.rating > label {
  color: #ddd;
  float: right;
}
.rating > input:checked ~ label, /* show gold star when clicked */
.rating:not(:checked) > label:hover, /* hover current star */
.rating:not(:checked) > label:hover ~ label { /* hover previous stars in list */
  color: #FFD700;
}
.rating > input:checked + label:hover, /* hover current star when changing rating */
.rating > input:checked ~ label:hover,
.rating > label:hover ~ input:checked ~ label, /* lighten current selection */
.rating > input:checked ~ label:hover ~ label {
  color: #FFED85;
}
fieldset, label {
  margin: 0; padding: 0;
}

/* feedback form */
.rst-content .feedback {
  background-color: #e3e3e3;
}

.rst-content .feedback .admonition-title {
  background-color: #4e4a4a;
}

.rst-content .feedback > div > form > fieldset {
  max-width: 100%;
}

.rst-content .feedback li.hs-form-radio:first-child {
  width: 50px;
  float: left;
}

.rst-content .feedback input[type=email].hs-input {
  width:90%;
}

.rst-content .feedback .hs-button {
  background-color: #424242;
  padding: 10px 30px;
  border: 0;
  color: #fff;
  margin-top: 5px;
}

/* versions dropdown */
.select-style {
  border: 1px solid #616161;
  border-radius: 3px;
  margin: 7px 2px;
  overflow: hidden;
  background-color: #424242;
  background-image: none;
}

.select-style select {
  padding: 5px 8px;
  width: 100%;
  color: #ffffff;
  border: none;
  box-shadow: none;
  background-color: #424242;
  background-image: none;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.select-style option {
  background-color: #424242;
  background-image: none;
}

/* Simple Grid */

.flex-grid-thirds, .flex-grid-half {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.flex-grid-thirds .col {
  width: 32%;
  border: 1px solid #e1e4e5;
  padding: 10px;
}

.flex-grid-half .col {
  width: 49%;
  border: 1px solid #e1e4e5;
  padding: 10px;
}

@media (max-width: 1100px) {
  .flex-grid-thirds, .flex-grid-half {
    display: block;
  }

  .flex-grid-thirds .col, .flex-grid-half .col {
      width: 100%;
      margin: 0 0 10px 0;
  }
}

/* custom footer */
footer > div.flex-grid-half > div.col {
  border: 0;
}

footer h5 {
  margin-bottom: .5em;
}

footer p {
  font-size: .8em;
  line-height: 1.5em;
}

ul.social-icons li {
  display: inline-block;
  margin: 0 10px 5px 0;
  padding: 0;
  border-radius: 100%;
  overflow: visible;
  font-size: 1.2em;
}

ul.social-icons li a, ul.list-icons li a {
  color: #616161;
}

ul.list-icons li {
  margin: 5px 0;
}

footer label {
  color: #616161;
  font-size: .8em;
  line-height: 1.5em;
}

.hs_email input {
  width: 90%;
  color: #000;
  padding: 3px 5px;
  margin-bottom: 5px;
}

.hs-button {
  text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
  background-color: #2A78BE;
  border: 0;
  padding: 5px 15px;
  color: #ffffff;
  letter-spacing: .05em;
}

/* console code block pygment overrides */
.highlight-console > .highlight {
  background: #272822;
  color: #ffffff;
}

.highlight-console > .highlight span {
  color: #ffffff !important;
}

/* local table of contents */
#local-table-of-contents {
  padding-bottom: 20px;
}

#local-table-of-contents .docs-sidebar-section-title {
  margin-bottom: 10px;
}

#local-table-of-contents a[href="#"] {
  display: none;
}

#local-table-of-contents > ul > li {
  list-style: none;
  margin-top: 0;
}

#local-table-of-contents li {
  list-style: square;
  margin-bottom: 5px;
  margin-top: 5px;
}

.docs-sidebar-section ul ul {
  padding-left: 0px;
  margin-left: 20px;
  padding-right: 0px;
}

@media screen and (min-width: 1270px)  {
  #local-table-of-contents.docs-sidebar-section {
    display: block;
    position: fixed;
    margin-left: 0px;
    overflow-y: auto;
    padding-top: 30px;
    height: 95%;
    top: 45px;
    left: 1100px;
    width: 350px;
  }

  #local-table-of-contents ul {
    list-style: none;
  }

  #local-table-of-contents.docs-sidebar-section > ul {
    border-left: 7px solid #c9c9c9;
    padding-bottom: 10px;
  }

  #local-table-of-contents.docs-sidebar-section ul:first-of-type {
    padding-left: 0;
    margin-left: 0;
  }

  .docs-sidebar-section.active {
    background: #D8E0EA;
    padding: 0;
    cursor: default;
  }

  #local-table-of-contents .docs-sidebar-section-title {
    display: block;
    font-size: 16px;
    width: 100%;
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 5px;
    margin-bottom: -5px;
    border-left: 7px solid #c9c9c9;
    color: #404040;
  }

  #local-table-of-contents a.docs-sidebar-section-title:hover {
    text-decoration: #BCCFDE;
  }

  #local-table-of-contents.docs-sidebar-section.active a.docs-sidebar-section-title:hover {
    cursor: default;
  }

  #local-table-of-contents.docs-sidebar-section li {
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 20px;
  }

  #local-table-of-contents.docs-sidebar-section > ul > li {
    margin-left: 10px;
  }

  #local-table-of-contents.docs-sidebar-section ul ul {
    padding-left: 0px;
    margin-left: 10px;
    padding-right: 0px;
    margin-right: 10px;
  }
}

/* override table width restrictions */
@media screen and (max-width: 768px) {
  img {
    width: auto;
    height: auto;
  }
}
