/* MINEDW Documentation Theme - Cleaned and Optimized */

/* ========================================
   BASE STYLES
   ======================================== */
   
body {
    font-family: "Lato", sans-serif;
    margin: 0;
    background: linear-gradient(180deg, #bda566 75%, #ffffff 25%);
}

/* ========================================
   LAYOUT STRUCTURE
   ======================================== */

/* Sidebar Navigation */
.sidenav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 6em 0 2em 0;
    width: 350px;
    overflow-x: hidden;
    overflow-y: hidden;
    min-height: 100vh;
    background: #0f2143;
    z-index: 200;
    transition: 0.5s;
}

.sidenav a {
    padding: 4px 8px 4px 16px;
    text-decoration: none;
    font-size: 12px;
    color: #818181;
    display: block;
    transition: 0.3s;
    line-height: 1.3;
}

.sidenav a:hover {
    color: #f1f1f1;
}

/* Match section header color to navigation text */
.sidenav .caption-text {
    color: #818181;
}

/* Main Content Area */
#main {
    margin-left: 350px;
    background: #ffffff;
    transition: 0.5s;
}

#maintop {
    background-color: #e6ebe9;
    padding: 1em;
}

#mainbody {
    padding: 1em 2em 4em 4em;
    max-width: 35em;
    min-width: 20em;
    min-height: 40em;
    margin: 0 auto;
}

/* Footer Areas */
div[id^="mainbottom"] {
    padding: 1em;
    text-align: center;
    font-size: .85em;
}

#mainbottom1 {
    background-color: #e6ebe9;
}

#mainbottom2 {
    background-color: #bda566;
}

/* ========================================
   LOGO AND BRANDING
   ======================================== */

#complogo {
    color: #9da3a8;
    position: absolute;
    left: 1em;
    top: 0em;
}

#subversion {
    margin-left: .75em;
}

#cornerlogo {
    vertical-align: middle;
}

#cornerlink {
    color: black;
    text-decoration: none;
}

/* ========================================
   SEARCH BOX
   ======================================== */

#searchbox {
    float: right;
    display: inline;
}

input#sb {
    background-color: #f2f2f2;
    border: thin solid white;
    height: 1.3em;
    width: 17em;
    padding: 0.3em;
    font-family: "Lato", sans-serif;
    font-size: .85em;
}

input#sb:focus {
    background-image: none;
}

/* ========================================
   NAVIGATION TREE
   ======================================== */

.wy-side-scroll {
    overflow-y: auto;
    height: calc(100vh - 8em);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.wy-side-scroll::-webkit-scrollbar {
    display: none;
}

#nav-content {
    padding: 10px;
}

#nav-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#nav-content ul ul {
    padding-left: 20px;
}

#nav-content li {
    margin: 2px 0;
    position: relative;
}

#nav-content a {
    color: #9da3a8;
    text-decoration: none;
    display: inline-block;
    padding: 3px 6px 3px 20px;
    width: calc(100% - 26px);
    border-radius: 2px;
    font-size: 14px;
    line-height: 1.4;
}

#nav-content a:hover {
    background-color: rgba(137, 160, 152, .3);
    color: #fff;
}

#nav-content a.current {
    background-color: #37435c;
    color: #fff;
}


/* ========================================
   NAVIGATION BUTTONS
   ======================================== */

#navbutton {
    cursor: pointer;
    margin-left: 0px;
    background: #e6ebe9;
    position: fixed;
    top: 65%;
    left: .15em;
    padding: .25em;
    transition: .5s;
    text-align: center;
    font-size: 1.4em;
    width: 1.4em;
    border-radius: .3em;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, p.h1, p.h2, p.h3, p.h4 {
    font-family: 'Roboto Slab', sans-serif;
    color: #89a098;
    font-weight: normal;
}

h1, p.h1 {
    font-size: 2.25em;
}

h2, p.h2 {
    font-size: 1.5em;
}

h3, p.h3 {
    font-size: 1.15em;
}

h4, p.h4 {
    font-weight: bold;
}

/* Hide permalink symbols */
a.headerlink {
    visibility: hidden;
}

/* ========================================
   NAVIGATION LINKS
   ======================================== */

.prevnext {
    width: 100%;
    display: inline;
}

.prevnext ul {
    margin: 0;
    padding: 0 0 0 10px;
    list-style: none;
    display: inline;
}

.prevnext li {
    display: inline;
}

.prevnext li.right {
    float: right;
    margin-right: 5px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }
    
    .sidenav a {
        font-size: 11px;
    }
}

/* ========================================
   BASIC CONTENT STYLING
   ======================================== */

/* Tables */
table {
    border-top: 4px solid #e6ebe9;
    border-bottom: 4px solid #e6ebe9;
    border-left: 0;
    border-right: 0;
    margin: 1.5em auto 1em auto;
}

table th.head {
    border: 0;
    background-color: #f2f2f2;
    padding: .5em .3em;
}

table td {
    border: 0;
    padding: .1em .3em;
}

/* Basic text styling */
p {
    margin: 0.5em 0;
}

/* Code and pre blocks */
pre {
    font-family: 'Consolas', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
    font-size: .8em;
}

code {
    font-family: 'Consolas', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.codename {
    font-family: 'Times New Roman', serif;
    font-style: italic;
}

.blank {
    border: none;
}

/* Links in footer areas */
div[id^="mainbo"] a {
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #aaaaaacc;
    transition: all 0.2s linear;
}

div[id^="mainbo"] a:hover {
    color: #428bca;
    border-bottom: 1px solid #ffffff;
}