/* override skeleton defults
 */
body {
    font-size: 2em;
}

ul {
    list-style: circle;
}

ol {
    list-style: decimal;
}

/* Main content */
#main {
    background: white;
}

#main .container {
    position:  relative;
    padding: 2.5em 0;
    z-index: 1;
    height: 100%;
}

#main .container::before {
    content: '';
    background: #EEE;
    position: absolute;
    top: 0;
    bottom: 0;
    left: -3rem;
    right: -3rem;
    z-index: -1;
}

#main h2::before {
    content: '\00a0';
    background: white;
    position: absolute;
    left: -3rem;
    right: -3rem;
    z-index: -1;
    /* box-shadow: 0 0 3px #444; */
}

#main h2 {
    color: black;
    margin: -2rem 0 4rem 0;
    padding: 4rem 0 0 0;
}

code {
    font-size: 85%;
    color: #555;
}

blockquote {
    margin: 1rem 0;
    padding-left: 1.5rem;
    border-left: 5px solid #444;
}

::selection{
    background: #555;
    color: #EEE;
}
::-moz-selection {
    background: #555;
    color: #EEE;
}


/* Header */

.brand, footer {
    background: #EEE;
    color: #EEE;
}

.brand {
    font-size: 3rem;
    padding: 2rem 0;
}

.brand a {
    text-decoration: none;
    color: black;
    transition: color .3s ease-in-out;
}

.brand a:hover {
    color: #1eaedb;
}

/* nav bar */
.nav {
    margin: 0;
    display: inline-block;
}

ul.nav li {
    display: inline-block;
    height: 100%;
    margin: 0;
}

ul.nav li::before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

/* nav link */
ul.nav li{
    text-decoration: none;
    display: inline-block;
    height: 100%;
    color: #1EAEDB;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

#search-input {
    display: inline-block;
    margin: 0;
    background: #555;
    border: none;
    width: 6em;
    transition: width .2s ease-in-out;
}

#search-input:focus{
    background: #AAA;
    width: 12em;
}

.nav-control {
    background: white;
}

.nav-control .container div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-control .container::after {
    content: none;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* nav button */
.nav-button, .nav-button:focus {
    margin: 0;
    color: #1EAEDB;
    padding: 0 1em;
    transition: color .2s ease;
    border: none;
}

.nav-button:hover {
    color: #EEE;
}

/* nav result */

.nav-result {
    background: #eee;
    padding: 1rem 2em;
    max-height: 70vh;
    overflow-y: auto;
    position: absolute;
    left: 0;
    right: 0;
    /*border-style: solid;*/
    /*border-color: #333;*/
    /*border-width: 0 1px 1px 1px;*/
}
/*======================================================================
 * Search Result*/
#search-result em {
    background: rgba(207, 85, 197, 0.56);
    font-style: normal;
}

#search-result p {
    margin-bottom: 0;
}

/*======================================================================
 * for sticky footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main {
    flex: 1;
}

footer {
    font-size: 80%;
    padding: .5em 0;
    text-align: right;
}

/*======================================================================
 * TOC */

#toc li {
    margin: 0;
    list-style-position: outside;
}

#toc li.H3 {
    margin-left: 2em;
}

.toc-panel{
    background: #eee;
    padding: 1em .5em .5em 3em;
    position: absolute;
    overflow-y: auto;
    max-width: 40%;
    max-height: 80vh;
    right: 0;
}

/*======================================================================
 * Utility class */
.hide {
    display: none;
}

.cmSelect {
    /* max-width: 90%; */
    border: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1rem;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 38px;
    cursor: pointer;
}

.cmSelect:focus {
    border: none;
}

.cm-demo-target{
    background: white;
    border: 2px solid grey;
    border-radius: 8px;
    padding-left: 20px;
    margin-bottom: 10px;
}
.cmPcLabel-fix{
    top: -10px;
    position: relative;
}
.cmPcInput-fix{
    position: relative;
    top: -14px;
}
.cmPcPrepend-fix{
    top: 20px !important;
}
.bd-footer{
    background: white;
}

.cm-lc-field-label-fix{
    top: -12px;
    position: relative !important;
}
.cmLcPrependUnit-fix{
    position: relative !important;
    top: -36px !important;
}
.cmlcinputform-fix{
    position: relative !important;
    top: -5px !important;
}
.cmLcAppendUnit-fix{
    top: -1px !important;
}
.cmAff-custom-checkbox-row-fix{
    margin-left: -10px !important;
}
.cmAff-custom-checkbox-label-fix{
    padding-top: 5px !important;
    padding-left: 10px !important;
    font-size: 15px !important;
    font-weight: normal !important;
}
.cmAff-cmAfAppend-fix{
    top: 5px !important;
}
.cmAffV2-PrependUnit-fix{
    top: 5px !important;
    font-size: 16px !important; 
}
.cmAffV2-AppendUnit-fix{
    top: 5px !important;
    font-size: 16px !important; 
}

/* Bump markdown bullets over a bit, as they are uncomfortably close to the edge of
any particular container  */
ul{
    padding-left: 25px;
}
