html {
  scroll-padding-top: 74px;
}
html, body {
  height: 100%;
}
body {
  padding-top: 50px;
}
img {
  max-width: 100%;
}

table {
  width: 100%;
  /* Hack to override Sphinx's border="1" */
  border: 0px #ddd;
  margin: 1em 0;
}
table th,
table td {
  padding: 5px;
}

div.related {
  font-size: 14px;
}
.related:after {
  display: block;
  content: '';
  clear: both;
}
div.related ul {
  padding: 0;
  margin: 0;
}
#breadcrumbs ul {
  list-style-type: none;
  padding: 0;
}
#breadcrumbs li {
  display: inline;
  vertical-align: middle;
}
#breadcrumbs li:after {
  content: " \00BB ";
}
#breadcrumbs li:last-child:after {
  content: '';
}
#breadcrumbs a {
  color: #eee;
  text-transform: uppercase;
}
#breadcrumbs a:hover,
#breadcrumbs a:active {
  color: #fff;
}

.footer {
  margin: 0 0 0 300px;
  padding: 16px 48px;
}

.footer-wrapper {
  max-width: 900px;
  font-size: 14px;
  text-align: center;
}

div.sphinxsidebar {
  float: left;
  margin-left: 0;
  width: 300px;
  font-size: 14px;
  overflow: auto;
}
@media screen {
  div.sphinxsidebar {
    float: none;
    position: fixed;
    top: 50px;
    left: 0;
    bottom: 0;
    height: 100%;
    background: #f0f0f0;
    overflow: auto;
  }
}
div.sphinxsidebarwrapper {
  padding: 16px;
}

div.sphinxsidebar a {
  text-decoration: none;
}
div.sphinxsidebar a:active,
div.sphinxsidebar a:hover {
  text-decoration: underline;
}

div.sphinxsidebar h3 {
  text-transform: uppercase;
  font-size: 16px;
}
div.sphinxsidebar h4 {
  text-transform: uppercase;
  font-size: 14px;
}
div.sphinxsidebar h3 a {
  color: #222;
}

div.sphinxsidebar ul {
  padding: 0 0 0 2em;
  list-style-type: square;
  margin: 1em 0;
}
div.sphinxsidebar ul li {
}
div.sphinxsidebar ul ul {
  padding: 0 0 0 2em;
  margin: 0;
}
div.sphinxsidebar ul ul li {
  text-transform: none;
  font-weight: 400;
}

.document {
  margin: 0 0 0 300px;
  padding: 16px 48px;
}

.body {
  max-width: 900px;
}

@media screen and (max-width: 900px) {
  body {
    padding-top: 0;
  }
  .navbar.navbar-fixed-top {
    position: static;
  }
  .header .search {
    float: none;
    margin-bottom: 16px;
  }
  #breadcrumbs li {
    display: block;
  }
  div.sphinxsidebar {
    position: static;
    height: auto;
    float: none;
    width: auto;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    margin-bottom: 16px;
  }
  .document {
    margin: 0;
    padding: 16px 8px;
    font-size: 14px;
  }
  .footer {
    margin: 0;
  }
}

div.figure {
  padding: 0;
  margin: 32px;
  text-align: center;
}
div.body p.caption {
  margin-top: 16px;
  font-style: italic;
}
.caption-number {
  font-weight: 700;
  margin-right: .25em;
}

p.rubric {
  margin: 16px 0;
  font-weight: 400;
  font-style: italic;
  font-size: 20px;
  color: #666;
}

img.align-right,
.figure.align-right,
object.align-right {
  margin: 0 0 32px 32px;
}

.headerlink {
  display: none;
  margin-left: .25em;
}

h1:hover > .headerlink,
h2:hover > .headerlink,
h3:hover > .headerlink,
h4:hover > .headerlink,
h5:hover > .headerlink,
h6:hover > .headerlink {
  display: inline;
}
