/*
 * Wrap inline code samples otherwise they shoot of the side and
 * can't be read at all.
 *
 * https://github.com/mkdocs/mkdocs/issues/313
 * https://github.com/mkdocs/mkdocs/issues/233
 * https://github.com/mkdocs/mkdocs/issues/834
 */
.rst-content code {
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 2px 5px;
}

/**
 * Make code blocks display as blocks and give them the appropriate
 * font size and padding.
 *
 * https://github.com/mkdocs/mkdocs/issues/855
 * https://github.com/mkdocs/mkdocs/issues/834
 * https://github.com/mkdocs/mkdocs/issues/233
 */
.rst-content pre code {
  white-space: pre;
  word-wrap: normal;
  display: block;
  padding: 12px;
  font-size: 12px;
}

/*
 * Fix link colors when the link text is inline code.
 *
 * https://github.com/mkdocs/mkdocs/issues/718
 */
a code {
    color: #2980B9;
}
a:hover code {
    color: #3091d1;
}
a:visited code {
    color: #9B59B6;
}

/*
 * The CSS classes from highlight.js seem to clash with the
 * ReadTheDocs theme causing some code to be incorrectly made
 * bold and italic.
 *
 * https://github.com/mkdocs/mkdocs/issues/411
 */
pre .cs, pre .c {
    font-weight: inherit;
    font-style: inherit;
}

/*
 * Fix some issues with the theme and non-highlighted code
 * samples. Without and highlighting styles attached the
 * formatting is broken.
 *
 * https://github.com/mkdocs/mkdocs/issues/319
 */
.rst-content .no-highlight {
  display: block;
  padding: 0.5em;
  color: #333;
}


/*
 * Additions specific to the search functionality provided by MkDocs
 */

.search-results {
    margin-top: 23px;
}

.search-results article {
    border-top: 1px solid #E1E4E5;
    padding-top: 24px;
}

.search-results article:first-child {
    border-top: none;
}

form .search-query {
    width: 100%;
    border-radius: 50px;
    padding: 6px 12px;  /* csslint allow: box-model */
    border-color: #D1D4D5;
}

/*
 * Improve inline code blocks within admonitions.
 *
 * https://github.com/mkdocs/mkdocs/issues/656
 */
 .rst-content .admonition code {
  color: #404040;
  border: 1px solid #c7c9cb;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #f8fbfd;
  background: rgba(255, 255, 255, 0.7);
}

/*
 * Account for wide tables which go off the side.
 * Override borders to avoid wierdness on narrow tables.
 *
 * https://github.com/mkdocs/mkdocs/issues/834
 * https://github.com/mkdocs/mkdocs/pull/1034
 */
.rst-content .section .docutils {
    width: 100%;
    overflow: auto;
    display: block;
    border: none;
}

td, th {
   border: 1px solid #e1e4e5 !important; /* csslint allow: important */
   border-collapse: collapse;
}

.wy-menu-vertical li.toctree-l2 a, .wy-menu-vertical li.toctree-l3 a, .wy-menu-vertical li.toctree-l4 a {
  xxcolor: #d9d9d9 !important;
}

.wy-menu-vertical li.toctree-l2 {
  padding-left: 20px;
}

.wy-menu-vertical li.current,
.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a {
  background: inherit;
}

.wy-nav-side {
    background-color: #efefef;
}

.wy-side-nav-search {
    background-color: #efefef;
}

.rst-versions,
.rst-versions .rst-current-version {
    background-color: #efefef;
}

.wy-menu-vertical a {
    color: #404040;
}

.wy-menu-vertical a:hover {
    background-color: lightgray;
}

.wy-menu-vertical li.toctree-l2.current>a {
    padding-left: 1.618em;
}

.rst-versions a {
    color: #404040 !important;
}
.wy-side-nav-search > a, .wy-side-nav-search .wy-dropdown > a {
    color: #404040 !important;
}

img.in-text {
    height: 20px;
    margin-left: 2px;
    margin-right: 2px;
}

.rst-content blockquote p {
    padding: 0px;
    margin: 0px;
}
.rst-content blockquote {
    background-color: lightgray;
    margin-left: 0px;
    padding: 0.8em;
    border-radius: 5px;
}
p + ul {
    margin-top: -14px;
}

.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a {
    padding: .4045em 3.045em;
}

.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a {
    background: inherit;
}

.wy-menu-vertical li.toctree-l4.current li.toctree-l5>a {
    display: block;
    xbackground: #c9c9c9;
    padding: .4045em 6.045em;
}

.wy-menu-vertical li.toctree-l3.current li.toctree-l4>ul {
    display: none;
}

.wy-menu-vertical li.toctree-l3.current li.toctree-l4.current>ul {
    display: block;
}

h1, h2 {
    padding-left: 5px;
}

h1#title-text {
    background-color: silver;
}

h2 {
    background-color: #c9c9c9;
}