html, body {
    height: 100%;
    overflow-y: hidden;
}

body {
    width: 100%;
    margin-left: 0;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Calibri,Verdana,Tahoma,Arial,sans-serif;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 20;
    background: rgba(0, 0, 0, 0.5);
    display: none;
}

#overlay-content {
    position: absolute;
    top: calc(50% - 1em);
    left: calc(50% - 2.5em);
    font-size: x-large;
    font-weight: bold;
}

#header {
    width: 100%;
    text-align: center;
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

#title {
    font-size: x-large;
}

#lastupdated {
    font-size: x-small;
    font-style: italic;
}

#menubar-container {
    background-color: #DDDDDD;
    width: 100%;
    z-index: 10;
    height: 2em;
}

#menubar {
    margin-left: auto;
    margin-right: auto;
    z-index: 15;
    height: 2em;
    white-space: nowrap;
    display: inline-block;
}

.menubar-container-full {
    text-align: center;
}

.menubar-container-partial {
    text-align: left;
}

.category {
    display: inline-block;
    padding-left: 1.5em;
    padding-right: 1.5em;
    cursor: pointer;
    position: relative;
    border-radius: 5px 5px 0 0;
}

.category-name {
    margin-top: 0.5em;
}

.examplelist {
    position: absolute;
    top: 100%;
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    white-space: nowrap;
    background-color: #DDDDDD;
    z-index: 10;
    transition: max-height 0.15s ease 0s;
    border-radius: 0 0 5px 5px;
}

/* transition doesn't work properly in Firefox */
@-moz-document url-prefix() {
    .examplelist {
        transition: unset;
    }
}

.examplelist-left {
    left: 0;
    text-align: left;
}

.examplelist-right {
    right: 0;
    text-align: right;
}

.category-expanded {
    background-color: #CCCCCC;
}

.examplelist-expanded {
    max-height: 15em;
    padding-top: 0.25em;
    padding-bottom: 1em;
}

.examplelist>a {
    color: inherit;
    text-decoration: inherit;
}

.example {
    padding-top: 0.5em;
    padding-bottom: 0.25em;
    padding-left: 0.5em;
    padding-right: 1.5em;
    cursor: pointer;
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
}

.example:hover {
    background-color: #BBBBBB;
}

#content-title {
    visibility: hidden;
    font-weight: bold;
    font-size: x-large;
    margin-top: 0.5em;
    white-space: nowrap;
}

#content-title-text {
    white-space: normal;
}

#content {
    z-index: 1;
    position: absolute;
    top: 11em;
    left: 1em;
    right: 1em;
    bottom: 4em;
    display: none;
}

.content-singlebox {
    overflow-x: auto;
    overflow-y: auto;
}

.content-splitbox {
}

#placeholder-content-wrapper {
    margin-top: 1.5em;
}

#placeholder-content-container {
    position: relative;
    text-align: center;
    top: 50%;
}

#placeholder-content {
}

.code-container {
}

.code {
    background-color: #E8E8E8;
    color: #000000;
    display: inline-block;
    margin-left: 1%;
    margin-right: 1%;
    padding-left: 1%;
    padding-right: 1%;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    min-width: 96%;
    border-radius: 5px 5px 5px 5px;
}

.code-singlebox {
}

.code-multibox {
    max-width: 96%;
    max-height: calc(50vh - 13em);
    overflow-x: auto;
    overflow-y: auto;
}

.java {
    color: #001000;
    background-color: #E8E9E8;
}

.c {
    color: #000010;
    background-color: #E8E8ED;
}

.title {
    font-weight: bold;
}

#footer {
    position: absolute;
    bottom: 0;
    height: 4em;
    text-align: center;
    width: 99%;
}

#footer-container {
    text-align: center;
    font-size: smaller;
    font-style: italic;
    margin-top: 1em;
}

.disclaimer {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.code-text {
    font-size: inherit;
}

/* iPhone */
@media only screen
and (max-device-width: 667px) {
    .code-text {
        font-size: x-small;
    }
}
