@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap');

:root {
    --color-text: #1f2937;
    --color-text-secondary: #7b7b7b;

    --color-link: #2980b9;

    --color-background: #ffffff;

    --color-code-background: #1d1d1d;
    --color-code-text: #dcdcdc;

    --color-light-highlight: #009aff;
    --color-dark-highlight: #d0d0d0;
}

html {
    font-size: 18px;
    overflow-x: unset;
}

body {
    font-family: "Source Sans Pro", sans-serif;
    overflow-x: unset;
}

p {
    font-size: 18px;
    line-height: 1.6;
}

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

.wy-body-for-nav {
    background-color: var(--color-background);
}

.wy-nav-content {
    max-width: 100%;
    background: var(--color-background);
}

div[role="main"] {
    max-width: 900px;
    margin: 0 auto;
}

@media screen and (min-width: 1100px) {
    .wy-nav-content-wrap {
        background: inherit;
    }
}

/** BUTTONS **/
.btn {
    position: relative;
    display: inline-block;
    overflow: hidden;
    text-align: center;
    line-height: 1em;
    padding: .7rem 1.2rem .8rem;
    transform: perspective(1px) translateZ(0);

    cursor: pointer;
    box-shadow: none !important;
    background-color: transparent !important;
    border: 2px solid var(--color-light-highlight);
    border-radius: 100px;
    color: var(--color-light-highlight) !important;
    font-family: "Source Sans Pro", sans-serif !important;
    font-weight: 700;
    font-size: 15px;
    transition: all .1s cubic-bezier(.61, .2, .48, 1);
    transition-delay: 0.05s;
}

.btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 0;
    transform-origin: 0 50%;

    background: rgba(0, 154, 255, .2);
    transition: all .1s cubic-bezier(.61, .2, .48, 1);
    z-index: -1;
}

.btn:visited {
    color: var(--color-light-highlight) !important;
}

.btn:visited:hover,
.btn:hover {
    color: var(--color-background) !important;
    background-color: var(--color-light-highlight) !important;
}

.btn:visited:hover:before,
.btn:hover:before {
    width: 100%;
    background-color: var(--color-light-highlight);
}

.btn:active {
    padding: .7rem 1.2rem .8rem;
}

.btn .icon {
    margin: 0 3px;
}

/** TABLE OF CONTENTS **/
div.toc {
    border: 1px solid var(--color-light-highlight);
    padding: 1em 2em 0 2em;
    background: var(--color-background);
    margin-bottom: 1em;
}

.rst-content .section .toc ul li > * {
    margin-bottom: 0.1em;
    margin-top: 0.1em;
    font-size: 95%;
}

/** CODE **/
.rst-content code {
    word-break: keep-all;
}

.rst-content pre code.hljs {
    color: var(--color-code-text);
    background: var(--color-code-background);
    font-size: 14px;
    line-height: 1.5;
}

/** MOBILE HEADER **/
.wy-nav-top {
    background: var(--color-background);
    color: var(--color-text-secondary);
    top: 0;
    position: sticky;
    width: 100%;
}

/* LOGO AND SEARCH */
.wy-side-nav-search {
    background-color: var(--color-background);
}

.wy-side-nav-search a.logo:hover {
    background-color: transparent;
}

.wy-side-nav-search img {
    height: 100%;
    width: 100%;
    max-width: 240px;
    margin-bottom: 0;
    border-radius: unset;
    background-color: transparent;
}

/** NAVIGATION **/
.wy-nav-side {
    background: var(--color-background);
    border-right: 2px solid var(--color-dark-highlight);
}

.wy-menu-vertical {
    font-size: 16px;
}

.wy-menu-vertical li a {
    color: var(--color-text);
    padding-top: 0.6em !important;
    padding-bottom: 0.6em !important;
}

.wy-menu-vertical a:active,
.wy-menu-vertical a:hover,
.wy-menu-vertical li.current a:hover,
.wy-menu-vertical li.current a:active {
    background: #d6d6d6;
    color: var(--color-text);
}

.wy-menu-vertical li.current > a {
    background: #c9c9c9;
    font-weight: normal;
}

.wy-menu-vertical li.toctree-l1.current > a {
    border: none;
}

.wy-menu-vertical li.current a.current {
    border-left: 5px solid var(--color-light-highlight);
}

/** ALERTS **/
.wy-alert p:last-child,
.rst-content .note p:last-child,
.rst-content .attention p:last-child,
.rst-content .caution p:last-child,
.rst-content .danger p:last-child,
.rst-content .error p:last-child,
.rst-content .hint p:last-child,
.rst-content .important p:last-child,
.rst-content .tip p:last-child,
.rst-content .warning p:last-child,
.rst-content .seealso p:last-child,
.rst-content .admonition-todo p:last-child {
    color: #000;
}

/* Info alert */
.wy-alert,
.rst-content .note,
.rst-content .attention,
.rst-content .caution,
.rst-content .danger,
.rst-content .error,
.rst-content .hint,
.rst-content .important,
.rst-content .tip,
.rst-content .warning,
.rst-content .seealso,
.rst-content .admonition-todo {
    border: 1px solid #00bfe7;
    border-left-width: 10px;
    background-color: #e1f3f8 !important;
}

.wy-alert.wy-alert-success .wy-alert-title,
.rst-content .wy-alert-success.note .wy-alert-title,
.rst-content .wy-alert-success.attention .wy-alert-title,
.rst-content .wy-alert-success.caution .wy-alert-title,
.rst-content .wy-alert-success.danger .wy-alert-title,
.rst-content .wy-alert-success.error .wy-alert-title,
.rst-content .hint .wy-alert-title,
.rst-content .important .wy-alert-title,
.rst-content .tip .wy-alert-title,
.rst-content .wy-alert-success.warning .wy-alert-title,
.rst-content .wy-alert-success.seealso .wy-alert-title,
.rst-content .wy-alert-success.admonition-todo .wy-alert-title,
.wy-alert.wy-alert-success .rst-content .admonition-title,
.rst-content .wy-alert.wy-alert-success .admonition-title,
.rst-content .wy-alert-success.note .admonition-title,
.rst-content .wy-alert-success.attention .admonition-title,
.rst-content .wy-alert-success.caution .admonition-title,
.rst-content .wy-alert-success.danger .admonition-title,
.rst-content .wy-alert-success.error .admonition-title,
.rst-content .hint .admonition-title,
.rst-content .important .admonition-title,
.rst-content .tip .admonition-title,
.rst-content .wy-alert-success.warning .admonition-title,
.rst-content .wy-alert-success.seealso .admonition-title,
.rst-content .wy-alert-success.admonition-todo .admonition-title,
.rst-content .note .admonition-title {
    margin: 0 0 10px;
    padding: 0;

    background-color: transparent !important;
    color: var(--color-text) !important;
}

/* Warning alert */
.wy-alert.wy-alert-warning,
.rst-content .wy-alert-warning.note,
.rst-content .attention,
.rst-content .caution,
.rst-content .wy-alert-warning.danger,
.rst-content .wy-alert-warning.error,
.rst-content .wy-alert-warning.hint,
.rst-content .wy-alert-warning.important,
.rst-content .wy-alert-warning.tip,
.rst-content .warning,
.rst-content .wy-alert-warning.seealso,
.rst-content .admonition-todo {
    border: 1px solid #fdb81e;
    border-left-width: 10px;
    background-color: var(--color-background) !important;
}

.wy-alert.wy-alert-warning .wy-alert-title,
.rst-content .wy-alert-warning.note .wy-alert-title,
.rst-content .attention .wy-alert-title,
.rst-content .caution .wy-alert-title,
.rst-content .wy-alert-warning.danger .wy-alert-title,
.rst-content .wy-alert-warning.error .wy-alert-title,
.rst-content .wy-alert-warning.hint .wy-alert-title,
.rst-content .wy-alert-warning.important .wy-alert-title,
.rst-content .wy-alert-warning.tip .wy-alert-title,
.rst-content .warning .wy-alert-title,
.rst-content .wy-alert-warning.seealso .wy-alert-title,
.rst-content .admonition-todo .wy-alert-title,
.wy-alert.wy-alert-warning .rst-content .admonition-title,
.rst-content .wy-alert.wy-alert-warning .admonition-title,
.rst-content .wy-alert-warning.note .admonition-title,
.rst-content .attention .admonition-title,
.rst-content .caution .admonition-title,
.rst-content .wy-alert-warning.danger .admonition-title,
.rst-content .wy-alert-warning.error .admonition-title,
.rst-content .wy-alert-warning.hint .admonition-title,
.rst-content .wy-alert-warning.important .admonition-title,
.rst-content .wy-alert-warning.tip .admonition-title,
.rst-content .warning .admonition-title,
.rst-content .wy-alert-warning.seealso .admonition-title,
.rst-content .admonition-todo .admonition-title {
    margin: 0 0 10px;
    padding: 0;

    background-color: transparent !important;
    color: var(--color-text) !important;
}

/* Danger alert */
.wy-alert.wy-alert-warning,
.rst-content .wy-alert-warning.note,
.rst-content .attention,
.rst-content .caution,
.rst-content .wy-alert-warning.danger,
.rst-content .wy-alert-warning.error,
.rst-content .wy-alert-warning.hint,
.rst-content .wy-alert-warning.important,
.rst-content .wy-alert-warning.tip,
.rst-content .warning,
.rst-content .wy-alert-warning.seealso,
.rst-content .admonition-todo,
.rst-content .admonition.danger {
    border: 1px solid #e21c3d;
    border-left-width: 10px;
    background-color: #f9dede !important;
}

.wy-alert.wy-alert-danger .wy-alert-title,
.rst-content .wy-alert-danger.note .wy-alert-title,
.rst-content .wy-alert-danger.attention .wy-alert-title,
.rst-content .wy-alert-danger.caution .wy-alert-title,
.rst-content .danger .wy-alert-title,
.rst-content .error .wy-alert-title,
.rst-content .wy-alert-danger.hint .wy-alert-title,
.rst-content .wy-alert-danger.important .wy-alert-title,
.rst-content .wy-alert-danger.tip .wy-alert-title,
.rst-content .wy-alert-danger.warning .wy-alert-title,
.rst-content .wy-alert-danger.seealso .wy-alert-title,
.rst-content .wy-alert-danger.admonition-todo .wy-alert-title,
.wy-alert.wy-alert-danger .rst-content .admonition-title,
.rst-content .wy-alert.wy-alert-danger .admonition-title,
.rst-content .wy-alert-danger.note .admonition-title,
.rst-content .wy-alert-danger.attention .admonition-title,
.rst-content .wy-alert-danger.caution .admonition-title,
.rst-content .danger .admonition-title,
.rst-content .error .admonition-title,
.rst-content .wy-alert-danger.hint .admonition-title,
.rst-content .wy-alert-danger.important .admonition-title,
.rst-content .wy-alert-danger.tip .admonition-title,
.rst-content .wy-alert-danger.warning .admonition-title,
.rst-content .wy-alert-danger.seealso .admonition-title,
.rst-content .wy-alert-danger.admonition-todo .admonition-title {
    margin: 0 0 10px;
    padding: 0;

    background-color: transparent !important;
    color: var(--color-text) !important;
}

/** VERSIONS **/
.rst-versions, .rst-versions .rst-current-version {
    background-color: #0f00a0 !important;
}

.rst-versions {
    border-top: 2px solid #fff;
}

.rst-version a {
    transition: opacity .15s ease-in;
}

.rst-versions a:hover {
    opacity: 0.5;
}

.rst-versions.rst-badge {
    bottom: 15px !important;
}

.rst-versions.rst-badge .rst-current-version {
    height: auto !important;
    line-height: normal !important;
    padding: 8px 15px !important;

    color: #fff;
}

.rst-versions.rst-badge.shift-up .rst-current-version {
    padding: 10px 15px 0 !important;
}

.rst-other-versions dt {
    color: #fff !important;
    font-weight: 700;
}

.rst-other-versions hr {
    margin: 10px 0 !important;

    border-color: #fff !important;
}

.rst-other-versions small {
    color: #ddd !important;
}

.rst-versions .rst-other-versions dd a {
    color: #ddd !important;
}

.rst-versions .rst-other-versions strong dd a {
    color: #fff !important;
}

.rst-versions .rst-current-version .fa-caret-down {
    margin-left: 5px;
}

.rst-versions .rst-current-version .rst-current-version-icon {
    float: left;
    font-size: 18px;
    color: #fcfcfc;
    padding: 2px 10px 0 0;
}

.rst-versions .rst-current-version .rst-current-version-icon-image {
    margin-top: -8px;
    margin-left: 2px;
    display: inline;
    width: 14px;
}


.rst-versions,
.rst-versions .rst-current-version {
    background-color: var(--color-background) !important;
}

.rst-versions {
    border-right: 2px solid var(--color-dark-highlight);
}

.rst-version a {
    transition: opacity .15s ease-in;
}

.rst-versions a:hover {
    opacity: 0.5;
}

.rst-versions .rst-current-version {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 5px;
}

.rst-versions .rst-current-version .rst-current-version-icon {
    float: left;
    font-size: 18px;
    color: var(--color-text);
    padding: 2px 10px 0 0;
}

/** COPY CODE BUTTON **/
.code-block-wrapper {
    position: relative;
}

.copy-code-button {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-code-text);
    background-color: #3a3a3a;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background-color 0.2s;
    z-index: 10;
}

.code-block-wrapper:hover .copy-code-button {
    opacity: 1;
}

.copy-code-button:hover {
    background-color: #4a4a4a;
}

.copy-code-button.copied {
    background-color: #2e7d32;
    border-color: #4caf50;
}
