@import url("http://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300,100");
@import url("http://fonts.googleapis.com/css?family=Roboto:400,700,500,300,100,900");

:root {
    --base-font-family: Roboto, Helvetica, Arial, sans-serif;
    --base-font-size:   16px;
    --small-font-size:  calc( var( --base-font-size ) * 0.75 );
    --base-line-height: 1.4;
    --base-font-weight: 400;
    --width:            980px;
    --spacing-unit:     30px;
    --collapse-width:   560px;

    --text-color:       #111;
    --background-color: #fdfdfd;
    --brand-color:      #2a7ae2;

    --grey-color:       #828282;
    --grey-color-light: #c0c0c0;
}

body {
    font-family: var( --base-font-family );
    font-size: var( --base-font-size );
    line-height: var( --base-line-height );
    font-weight: var( --base-font-weight );
    color: var( --text-color );
    background-color: var( --background-color );
    -webkit-text-size-adjust: 100%;
    margin: 0;
}

body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, dl, dd, ol, ul, figure {
    margin: 0;
    padding: 0;
}

h1 {
    font-size: calc( var( --base-font-size ) * 2.5 );
}

h1 {
    line-height: 1.1;
    font-size: 42px;
    margin-bottom: calc( var( --spacing-unit ) * 0.7 );
}
h2, h3, h4, h5, h6 {
    margin-top: calc( var( --spacing-unit ) * 0.7 );
    margin-bottom: calc( var( --spacing-unit ) * 0.25);
}
h3 {
    font-style: italic;
}

p, blockquote, pre, ul, ol, dl, li, figure {
    margin-top: calc( var( --spacing-unit ) * 0.5 );
    margin-bottom: calc( var( --spacing-unit ) * 0.5 );
}

blockquote {
    margin: 0.25em 0;
    padding: 0.25em 40px;
    position: relative;
}
blockquote:before {
    font-family: Georgia;
    display: block;
    content: "\201C";
    font-size: 80px;
    position: absolute;
    left: -5px;
    top: -20px;
    color: #7a7a7a;
}

a {
    color: var( --brand-color );
    text-decoration: none;
}

a:visited {
    color: var( --brand-color );
}

a:hover {
    color: var( --text-color );
    text-decoration: underline;
}

pre {
    font-size: 15px;
    background-color: #eef;
    padding: 8px 12px;
    overflow-x: auto;
}
code {
    font-size: 15px;
    background-color: #eef;
    padding: 1px 3px;
    border: 1px solid var( --grey-color-light );
    border-radius: 3px;
}
pre > code {
    border: 0;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

figure > img {
    display: block;
}

figcaption {
    font-size: var( --small-font-size );
}

ul, ol {
    margin: 15px 0 15px var( --spacing-unit );
    padding: 0;
}
article {
    margin: 30px 0;
    position: relative;
}

table {
   border-collapse: collapse;
   margin: 20px 0;
}
td, th {
    padding: 3px 5px;
}

dt {
    margin-top: 10px;
    font-weight: bold;
}
dd {
    margin-left: 3em;
}

em {
    font-style: normal;
}

header,
footer {
    width: 100%;
    clear: both;
}

header {
    text-align: center;
    text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.3);
    background-image: linear-gradient( #FFF, #EEE 50%, #E4E4E4);
    background-repeat: no-repeat;
    border: 1px solid #D5D5D5;
    position: sticky;
    top: 0;
    z-index: 100;
}

footer {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #D5D5D5;
    font-size: var( --small-font-size );
}
footer .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

footer img {
    display: block;
    margin: 1ex;
}
footer p {
    margin: 1ex;
}

.container {
    margin: 0 auto;
    padding: 0 1ex;
    max-width: var( --width );
}

.clearer {
    clear: both;
}
.left {
    float: left;
}
.right {
    float: right;
}
.strike {
    text-decoration: line-through;
}

.sidenote {
  font-size: small;
}

div.section.news li {
    margin: 0;
}

div.logo {
    float: left;
}
div.logo img {
    vertical-align: top;
}
#page-nav label, #hamburger {
  display: none;
}

#page-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
#page-nav ul li {
  display: inline-block;
  margin: 0;
  padding: 0 10px;
  box-sizing: border-box;
}
#page-nav ul img {
  vertical-align: top;
  margin-right: 3em;
}

#page-nav ul li a {
  text-decoration: none;
}

article.blog-post h1.title,
div.posts-list article h2.post-title {
    margin: 0 0 10px 0;
}
article.blog-post h5.published,
div.posts-list article h5.published {
    margin: 0;
    font-weight: normal;
    font-size: var( --small-font-size );
}

ul.pager {
    margin: 0 auto;
    text-align: center
}
ul.pager li {
    display: inline-block;
    margin: 0 20px;
}

div.app {
    display: flex;
    margin: 2em 0;
}

div.app > div.icon {
    margin: 0 2em 0 1em;
    width: 72px;
    flex-shrink: 0;
}
div.app p {
    margin: 0;
}
div.app p.appname {
    font-weight: 700;
}

div.categories {
    font-size: var( --small-font-size );
}
div.categories ul,
div.categories li {
    margin: 0 2px;
    padding: 0;
    display: inline-block;
}

article h3.release-channel {
    text-align: center;
}

div.feedicon {
    float: right;
}

article.sphinx > div {
    margin-bottom: 3em;
}

div.sidebar {
    float: right;
    width: 200px;
    margin: 0 0 20px 20px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #fff;
    box-shadow:  0 0 2px 2px #ddd;
}

div.sidebar * {
    font-size: 12px;
    text-decoration: none;
    line-height: 120%;
}

div.sidebar a:hover,
div.sidebar div.header a:hover {
    background: #e0e0e0;
}
div.sidebar h3 {
    margin: 6px 0;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
}
div.sidebar h4 {
    margin: 0 0 20px 0;
    text-align: center;
}
div.sidebar ul {
    margin: 0;
    padding: 0;
}
div.sidebar li {
    margin: 8px 0;
    padding: 0;
    list-style: none;
}

div.sidebar li.toctree-l2,
div.sidebar  li.toctree-l3 {
    margin-left: 1em;
}

div.sidebar h3 > a,
div.sidebar li > a {
    color: #404040;
}

div.sidebar li.current > a {
    font-weight: bold;
}

div.section li.toctree-l1 {
    list-style: circle inside;
    margin: 0;
    padding: 0 0 0 1em;
}
div.section li.toctree-l2 {
    list-style: circle inside;
    margin: 0;
    padding: 0 0 0 1em;
}
div.toctree-wrapper ul {
    margin: 0;
    padding: 0;
}
div.toctree-wrapper > ul > li > a {
    font-weight: bold;
}
div.toctree-wrapper li {
    list-style: none;
    margin: 0;
    padding: 0;
}
div.toctree-wrapper li li {
    margin: 0 0 0 2em;
}

dl dl,
dl p {
    margin: 5px 0;
}

table.docutils {
    width: 100%;
}

iframe.youtube {
    width: 560px;
    height: 315px
}

a.headerlink {
    visibility: hidden;
    padding-left: .3em;
}
h1:hover > a.headerlink,
h2:hover > a.headerlink,
h3:hover > a.headerlink,
h4:hover > a.headerlink,
h5:hover > a.headerlink,
h6:hover > a.headerlink,
dt:hover > a.headerlink {
    visibility: visible;
}

div.admonition {
    margin: 10px 0px;
    padding: 10px;
    border: 1px solid #808080;
    border-radius: 10px;
}

div.admonition p.admonition-title {
    float: left;
    font-weight: bold;
    margin-right: 10px;
}
div.admonition p.admonition-title:after {
    content: ":"
}
div.admonition div.admonition.warning {
    background: #fff0f0;
    border-color: #ff8080;
}

a.get-started-button {
    color: #a00000;
    padding: 5px 15px;
    background: #f0f0f0;
    border: 1px solid #800000;
    border-radius: 5px;
    box-shadow: 0 0 4px #a0a0a0;
}

input[type="text"],
input[type="email"] {
    margin: 1px;
    padding: 3px;
    border: 1px solid #808080;
}
input[type="submit"] {
    padding: 3px;
    font-size: 75%;
}

img.align-center {
    /* sphinx generates this */
    display: block;
    margin: 10px auto;
}

@media (max-width: 374px ) {
    footer .container {
        flex-direction: column;
    }
}

@media screen and (max-width: 790px) {
  header {
    text-align: right;
  }
  #page-nav label {
    display: inline-block;
    color: #fff;
    background: #808080;
    font-style: normal;
    padding: 0 5px;
    margin-right: 10px;
  }

  #page-nav ul li {
    display: block;
  }

  #page-nav ul {
    display: none;
    text-align: center;
  }
  #page-nav input:checked ~ ul {
    display: block;
  }


  article.sphinx {
      display: flex;
      flex-direction: column;
    justify-content: center;
  }

  article.sphinx div.sidebar {
     float: none;
     order: 2;
     width: unset;
  }
}
