* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: #fff;
    font-size: 16px;
    line-height: 1.6rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

h1 {
    font-size: 1.25rem;
    margin: 0 0 .70rem 0;
}

h2 {
    font-size: 1.25rem;
    margin: 1rem 0 .50rem 0;
}

h3 {
    font-size: 1rem;
    margin: 0 0 10px 0;
}

a {
    text-decoration: none;
}

code, pre {
    background: #f8f8f8;
}

code {
    padding: 0 4px;
}

pre {
    padding: 16px 20px;
    overflow-x: auto;
}

html, body, main {
    min-height: 100vh;
}

main {
    display: flex;
}

#index-column {
    flex: none;
    padding: 30px;
    overflow: hidden;
    min-width: 20%;
    max-width: 25%;
}

#content-column {
    flex: 1;
    padding: 30px 60px;
    border: 0 solid #ddd;
    border-width: 0 0 0 1px;
}

#index {
    list-style: none;
    margin: 0;
    padding: 0;
}

.indexsection:not(:last-child) {
    margin-bottom: 16px;
}

.indexsection ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.objlist {
    font-family: monospace;
}

.objlist ul {
    padding-left: 2rem;
}

.modtitle, .sectiontitle {
    font-weight: bold;
}

.breadcrumblink, .sectionlink {
    color: #000;
}

#content {
    max-width: 1000px;
}

.sectiontitle {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #000;
}

.name {
    color: #000;
    font-family: monospace;
    font-weight: bold;
}

.ident {
    color: #900;
}

.assign {
    font-weight: normal;
}

.item {
    margin: 0 0 15px 0;
}

.class {
    margin: 0 0 25px 30px;
}

.ancestors {
    margin: 0 0 10px 0;
}

.inheritance {
    margin: 0 0 5px 30px;
}

.inherited {
    color: #666;
}

.desc h1, .desc h2, .desc h3, .desc h4, .desc h5, .desc h6 {
    font-size: 1.15rem;
    margin: 0.5rem 0;
}

.desc p {
    margin: 10px 0;
}

.funcdef {
    display: flex;
    flex-wrap: wrap;
    padding-left: 4em;
}

.funcinit {
    display: flex;
    margin-left: -4em;
}

.funcname, .funcargs {
    text-align: left;
}

.funcname, .funcret {
    white-space: nowrap;
}

.funcret a {
    font-family: monospace;
    font-weight: bold;
}

.sourcecontainer {
    margin-bottom: 10px;
}

.sourcebutton {
    font-size: .85rem;
    text-transform: uppercase;
    color: #444;
}

.expandicon {
    display: inline-block;
    position: relative;
    border-radius: 25%;
    width: 10px;
    height: 10px;
    background-color: #888;
}

.expandicon::after {
    content: "";
    position: absolute;
    display: block;
    background-color: #fff;
    height: 2px;
    margin-top: -1px;
    top: 50%;
    left: 2px;
    right: 2px;
}

.expandicon::before {
    content: "";
    position: absolute;
    display: block;
    background-color: #fff;
    width: 2px;
    margin-left: -1px;
    top: 2px;
    left: 50%;
    bottom: 2px;
}

.expandicon.active::before {
    display: none;
}

.source {
    margin-bottom: 15px;
}

.source pre {
    max-height: 600px;
    overflow-y: auto;
}

.codehilite {
    background: inherit;
}

.hidden {
    display: none;
}

/* Widescreen */
@media all and (min-width: 1400px) {
    #index-column {
        min-width: 10%;
        max-width: 25%;
    }
}

/* Touch screen */
@media all and (max-width: 900px) {
    #index-column {
        max-width: 20%;
    }
}

/* Mobile screen */
@media all and (max-width: 750px) {
    main {
        flex-direction: column;
    }

    #index-column {
        max-width: none;
    }

    #content-column {
        padding: 30px;
        border-width: 1px 0 0 0;
    }
}
