html {
    visibility: hidden;
}

html.wf-active,
html.wf-inactive,
html.loading-delay {
    visibility: visible;
}

.math-wrapper {
    width: 100%;
    overflow-x: visible;
}

.toc-tree {
    line-height: 1.5;
}

body:not([data-theme="light"]) .sidebar-tree .reference:hover {
    color: var(--custom-color-sidebar-hover);
}

.sidebar-logo {
    margin: 0;
}

.sidebar-brand-text {
    font-weight: 700;
    line-height: 1.5;
}

.amplify-logo {
    padding: 1rem;
}

@media (min-width: 768px) {
    .amplify-logo {
        width: 70%;
    }
}

.related-pages a.prev-page,
.related-pages a.next-page {
    font-size: 16px;
}

.cell_output .output.text_plain,
.cell_output .output.stream {
    background: unset;
    border: unset;
}

div.cell_output div.output>div.highlight,
div.highlight {
    border: solid 1px var(--custom-color-code-border) !important;
}

article[role=main] .highlight pre {
    line-height: 1.3;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 2;
    margin-bottom: 1rem;
}

img {
    margin-bottom: 1.5rem;
}

.highlight .c1 {
    font-style: normal;
    font-weight: 500;
}

.sidebar-scroll {
    scroll-behavior: auto
}

.sidebar-container select {
    background: url(arrow-caret.svg), white;
    background-position: right 5px center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    color: #32373b;
    border: 1px solid #dee2e6;
    border-radius: 0.3125rem;
    -webkit-appearance: none;
    appearance: none;
}

/* for IE */
.sidebar-container select::-ms-expand {
    display: none;
}
