
.wy-nav-side {
    padding-bottom: 3em;
}

table.docutils {
    width: 100%;
    table-layout: fixed;
}

.wy-table td, .rst-content table.docutils td {
    overflow: hidden;
}
/*
table.docutils span.scrollable {
    display: block;
    overflow: auto;
}
*/

table.rows p {
    font-size: 100%;
}

table.rows th {
    background-color: #2980B9;
    border-style: solid solid solid solid;
    border-width: 0px 0px 0px 0px;
    border-color: #AAAAAA;
    text-align: center;
    color: white;
}
table.rows td {
    white-space: normal;
    border-style: solid solid solid solid;
    border-width: 0px 0px 0px 0px;
    border-color: #AAAAAA;
}

table.rows tr {
    border-style: solid solid solid solid;
    border-width: 0px 0px 0px 0px;
    border-color: #AAAAAA;
}

table.rows tr:nth-child(even) {
    background-color: white;
}
table.rows tr:nth-child(odd) {
    background-color: grey;
}

div.nboutput div.output_area .highlight {
  max-height: 200px;
}

div.nboutput div.output_area div.widget-subarea {
  max-height: 400px;
}


.highlight {
    background: #f5f5f5;
}

.rst-content code.literal {
    background-color: #f5f5f5;
    color: #404040;
}


.rst-content code.download {
    color: rgb(41, 128, 185);
    background-color: white;
}

/* webgui preview image (overlay and message "Click to load interactive webgui" on hover) */
.webgui_container img {
    width: auto;
    height: 100%;
    max-height: 400px;
    display: block;
}

.webgui_container {
    position: relative;
}

.webgui_overlay {
    position: absolute;
    transition: all 0.3s ease;
    opacity: 0;

    height: 100%;
    width: 100%;
    top: 0;
    background-color: #808080;
}

.webgui_container:hover .webgui_overlay {
    opacity: 0.7;
}

.webgui_tooltip .webgui_tooltiptext {
    visibility: hidden;
    background-color: black;
    color: #fff;
    padding: 5px 10px;
    left: 50%;
    border-radius: 6px;
    position: absolute;
    transform: translate(-50%, 10%);
    z-index: 1;
}

.webgui_tooltip:hover .webgui_tooltiptext {
    visibility: visible;
}

.dg .cr {
    margin-left: 0;
}

.dg li.folder {
  list-style: none;
    margin-left: 0;
}

.dg .closed li:not(.title), .dg .closed ul li, .dg .closed ul li>* {
    list-style: none;
    overflow: hidden;
    border: 0;
    margin-left: 0;
}

.folder .dg {
    margin-bottom: 0;

}

.navbar {
    background-color: #164d7d !important;
}

.navbar a {
    font-size: 1.3em;
}

.navbar a,
.navbar-brand,
.navbar-nav .nav-link,
.navbar-brand p,
.pst-navbar-icon {
    color: #dddddd !important;
}

a.nav-external::after {
    content: none !important;
    background-image: none !important;
}

.bd-main .bd-content .bd-article-container{
  max-width: 120ch;
  padding: 2rem 0.5rem 4rem;
  margin: 0 auto;
}


.logo-align {
    display: flex !important;
    align-items: center;    /* vertical alignment */
    justify-content: center; /* horizontal alignment */
    height: 150px;          /* or a size that fits your largest logo */
}

.carousel-caption h5 {
    margin: 0.7em;
}

.intro-block {
    background-color: #f5f5f5;
    padding-left: 1em;
    padding-right: 1em;

}
[data-theme="dark"] .intro-block {
    background-color: #dbdbdb;
    color: #333333;
}

[data-theme="dark"] .intro-block .hr {
    color: #333333;
}

[data-theme="dark"] .intro-block h1,
[data-theme="dark"] .intro-block h2,
[data-theme="dark"] .intro-block h3,
[data-theme="dark"] .intro-block h4,
[data-theme="dark"] .intro-block h5,
[data-theme="dark"] .intro-block h6 {
    color: #333333;
}


.centered-title h2 {
        text-align: center;
}
.centered-title h3 {
        text-align: center;
}


/* Fix sidebar colors in light mode to match the rest of the theme */
:root[data-theme="light"] .bd-sidebar-primary,
:root[data-theme="light"] .bd-sidebar-secondary {
  background-color: var(--pst-color-surface) !important;
  color: var(--pst-color-text-base) !important;
}

/* Sidebar links */
:root[data-theme="light"] .bd-sidebar-primary a,
:root[data-theme="light"] .bd-sidebar-secondary a {
  color: var(--pst-color-text-base) !important;
}

/* Hover + focus states for sidebar links */
:root[data-theme="light"] .bd-sidebar-primary a:hover,
:root[data-theme="light"] .bd-sidebar-secondary a:hover,
:root[data-theme="light"] .bd-sidebar-primary a:focus,
:root[data-theme="light"] .bd-sidebar-secondary a:focus {
  color: var(--pst-color-primary) !important;
  background-color: var(--pst-color-background-hover, transparent) !important;
}

