* {
    box-sizing: border-box;
    border: 0 none;
    margin: 0;
    padding: 0;
}

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0 none;
}

.slide {
    overflow-y: hidden !important;
    -webkit-transition: height .5s ease-in !important;
            transition: height .5s ease-in !important;
}

/*** BASIC LAYOUT ***/

html, body { height: 100%; }

body {
    overflow-y: scroll;
}

body { display: flex; flex-direction: column; }
#main { flex: 1 0 auto; }
#header, #footer { flex: 0 0 auto; }

#main {
    padding: 2em 0 2em;
}

.container {
    max-width: 72em;
    padding: 0 0.5em;
    margin: 0 auto;
}

/* very ugly overflow fix, avoid this whenever possible! */
#main .container { overflow-x: auto; }

/*** BASIC LAYOUT: HEADER ***/

#header { background: #0277BD; }

#header .container {
	background-image: url('/assets/icon_header_big.png');
	background-repeat: no-repeat;
	background-position: center right;
}

#header h1 {
    font-size: 2rem;
    margin: 0;
    padding: 1em 1em 1em 0;
}
#header h1 a, #header h1 a:hover { color: #fff; }

#nav {
    padding: 0.5em 0;
}
#nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#nav ul li {
    display: inline-block;
    margin-right: 1.5em;
    padding: 0;
    font-weight: bold;
}

#nav a, #nav-toggle { color: #afe1da; }
#nav .active a, #nav a:hover, #nav-toggle:hover { color: #fff; }

#nav-toggle { display: none; }

/* IE8 + IE9 clearfix */
#header > .container:after {
    content: '';
    display: block;
    clear: both;
}

/*** BASIC LAYOUT: FOOTER ***/

#footer {
    background: #707070;
    color: #C0C0C0;
}

#footer a { color: #ddd; }
#footer a:hover { color: #fff; }

#footer p {
    margin: 0;
    padding: 3em 0;
}

#footer .container {
    padding-top: 1em;
	padding-bottom: 1em;
    font-size: 1rem;
}

/*** BASIC LAYOUT: SMALL DEVICES ***/

@media (max-width: 767px) {
    #main { padding: 2em 0 1em; }
	
	#header .container {
        background: none;
	}

    #header h1 {
        float: none;
        padding: 0 55px 0 0.5em;
        margin: 0.5em 0;
        background-repeat: no-repeat;
        background-position: top right;
		background-image: url('/assets/icon_header_small.png');
    }

    #nav {
        padding: 0;
    }
    #nav ul {
        padding-bottom: 1em;
    }
    #nav ul li {
        display: block;
        margin-left: 0;
        text-align: center;
    }
    #nav ul li.no-mobile {
        display: none;
    }
    
    #nav ul li a {
        display: block;
        padding: 0.5em 0;
    }

    .js #nav-toggle {
        display: block;
        float: right;
        width: 2em;
        margin: 0.6667em 0 0.6667em 1.3333em;
        font-size: 1.5rem;
        line-height: 2em;
        text-align: center;
        cursor: pointer;
    }
    .js #nav-toggle > * { vertical-align: middle;  }

    #footer p { padding: 1em 0; }
    #footer .social { padding: 0.5em 0 0.5em 1em; }
    
}

@media (max-width: 1200px) {    
    .github-corner {
        display: none;    
    }
}

/*** TYPOGRAPHY ***/

html { font-size: 16px; }

body {
    font-family: 'Droid Sans', 'Helvetica', 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    font-variant-ligatures: common-ligatures;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    color: #444;
}

p, td, th, li, dd {
    text-align: justify;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p, hr, table, .table-responsive, ol, ul, dl, pre, blockquote, fieldset {
    margin-bottom: 1em;
}

a {
    color: #059df7;/* #0277BD; */
    text-decoration: none;
    -webkit-transition: color .2s ease-in;
            transition: color .2s ease-in;
}
a:hover { color: #777; }

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.6em;
    font-weight: bold;
    color: #333;
}
h1 { font-size: 1.7rem; }
h2 { font-size: 1.3rem; margin-top: 2em; }
h1 + h2 { margin-top: 1em; }
h3 { font-size: 1.0rem; margin-top: 2em; }
h4 { font-size: 1.0rem; }
h5 { font-size: 1rem; }
h6 { font-size: 1rem; font-weight: normal; font-style: italic; }

img { max-width: 100%; }

hr {
    border: 0.15em solid #f5f5f5;
    border-radius: 0.3em;
    background: #f5f5f5;
}

abbr { text-decoration: underline dotted; }

/*** TABLES ***/

table { border-spacing: 0; }

td, th {
    padding: 0.4em 1em;
    vertical-align: top;
}
th {
    font-weight: bold;
    text-align: center;
    background: #f5f5f5;
    color: #333;
}

td, th {                                         border: solid 1px #ccc; }
tr:not(:last-child) td, tr:not(:last-child) th { border-bottom: 0 none; }
thead tr:last-child th {                         border-bottom: 0 none; }
td:not(:last-child), th:not(:last-child) {       border-right: 0 none; }

tr:first-child td:first-child, tr:first-child th:first-child { border-top-left-radius: 0.3em; }
tr:first-child td:last-child, tr:first-child th:last-child {   border-top-right-radius: 0.3em; }
tbody tr:last-child td:first-child {                           border-bottom-left-radius: 0.3em; }
tbody tr:last-child td:last-child {                            border-bottom-right-radius: 0.3em; }
table thead + tbody tr:first-child td {                        border-radius: 0 !important; }

.table-responsive { overflow-x: auto; }
.table-responsive > table { margin-bottom: 0; }

/*** LISTS ***/

ol, ul {
    list-style-position: outside;
    padding-left: 1.5em;
}
ol { padding-left: 2.5em; }
li { padding-left: 0.5em; }

dt { font-weight: bold; }
dd { margin-left: 2em; }

/*** CODE ***/

code {
    margin: 0 0.1em;
    padding: 0.1em 0.2em;
    border: 1px solid #ccc;
    border-radius: 0.3em;
    background: #f5f5f5;
    font-family: 'Droid Sans Mono', 'Courier New', 'Courier', monospace;
    font-size: 0.9rem;
}

@media (max-width: 1000px) {  
    table code {
        word-break: break-all;
    }
    table th, table td, table code {
        font-size: 12px;
    }
}

pre {
    padding: 0 1em;
    border: 1px solid #ccc;
    border-radius: 0.3em;
    background: #f5f5f5;
    line-height: 1.4;
}
pre code {
    display: block;
    margin: 0;
    padding: 1.1111em 0;
    border: 0 none;
    background: transparent;
    overflow-x: auto;
}

/*** BLOCKQUOTE ***/

blockquote {
    border: 1px solid #059df7;
    border-radius: 5px;
    background: #f0f9ff;
    margin: 0;
    margin-bottom: 0.5em;
    padding: 0px 16px;
}

blockquote > p {
  margin-top: 1em;
}


.screenshots > img {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

@media screen and (prefers-color-scheme: dark) {
    body {
        background-color: #0d1921;
        color: #F0F0F0;
    }
  
    h1, h2, h3, h4, h5, h6, th {
        color: #C0C0C0;
    }
    
    code, pre {
        background: #090909;
        border-color: #202020;
    }
    
    th {
        background-color: black;
        color: #F0F0F0;
    }

    blockquote {
        border: 1px solid #059df7;
        background: #062a40;
    }
    
    #footer {
        background: #101010;
        color: #C0C0C0;
    }
}
