/* flexbox cheatsheet: https://bit.ly/1xEYMhF */

/* universal box sizing with inheritance */
/* https://css-tricks.com/box-sizing/ */

@font-face {
    font-family: 'Libre Baskerville';
    src: url('/static/LibreBaskerville-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'Source Code Pro';
    src: url('/static/SourceCodePro-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'League Gothic';
    src: url('/static/BebasNeue-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

sup, *, *:before, *:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
    font-family: 'Libre Baskerville', Georgia, serif;
}

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

h1, h1 a, h2, h2 a, h3, h3 a {
    font-family: 'League Gothic', Helvetica, Verdana, sans !important;
    font-weight: normal;
    font-size: 1.7em;
    line-height: 1.1em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', Georgia, serif;
}

blockquote {
    color: hsla(333, 100%, 100%, 0.7);
    font-size: 1em;
    border-left: 1px solid hsla(0, 0%, 0%, 0.9);
    margin: 0px;
    padding: 0px;
    margin-left: 10px;
    padding-left: 10px;
}


/* BASICS */

div.sourceCode {
    box-shadow: 1px 1px 4px hsla(0, 0%, 0%, 0.4);
    border-radius: 3px;
}

pre {
    // background: url('/static/bg.png') ;
    // color: hsla(0, 0%, 100%, 0.95);
    overflow-x: scroll;
    padding: 15px;
}

code, pre code span {
    font-family: 'Source Code Pro', monospace, mono;
}

p code {
     padding: 2px;
    border: 1px solid lightgray;
    margin: 2px;
    border-radius: 2px;
}

body {
    color: hsla(0, 0%, 20%, 1);
    font-family: Georgia, serif;
    font-size: 18px;
}

a:link, a:active, a:visited {
    color: #3399FF;
}

a:hover {
    color: #0039A9;
}

/* ROOT */
#stars {
    z-index: -1;
    position: fixed;
}

#header, #footer {
    margin: auto;
    width: 999px;
    font-size: 1em;
    background: hsla(0, 0%, 0%, 0.9);
    color: white;
    padding: 0.2em 3em;
}

#footer {
    border-top: 1px solid rgba(0,0,0,0.5) ;
    background: transparent;
    background: linear-gradient(0deg, rgba(0,0,0,0) 30%, rgba(0,0,0,1) 100%);
    margin-bottom: 150px;
}

#footer > div {
    display: inline-block;
    padding: 1em;
}

#header {
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.5) ;
    background: transparent;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,1) 100%);
}

#header > h1 {
    font-size: 3em;
    margin-left: 0em;
}

#header > h1 > a, #header > h2 > a {
    text-decoration: none;
    color: white;
}

#header > h1:before, #header > h2:before {
    content: '';
    margin: 0px;
}

@media (max-width: 999px) {
    #header, #footer {
        padding: 0px 0px;
        width: 100%;
        margin: 5px;
        padding: 5px;
        font-size: 1em;
    }
}

#image {
    max-height: 999px;
    overflow: hidden;
}

#root {
    max-width: 999px;
    margin: auto;
    line-height: 1.6em;
    background: hsla(360, 100%, 0%, 0.8);
    color: white;
    padding: 15px;
}

#image > center > img[src=""] {
    display: none;
}

#root p {
    text-align: justify;
}

h1:before {
    content: "# ";
}

h2:before {
    content: "## ";
}

h3:before {
    content: "### ";
}

figure {
    margin: 0px;
    overflow: hidden;
}

figure > img {
    max-width: 999px;
    width: 90%;
}

center > img {
    max-width: 999px;
    width: 90%;
}

@media (max-width: 999px) {
    #header, #root, #footer {
        padding: 0px 0px;
        width: 90%;
        margin: 15px;
        padding: 15px;
        font-size: 1em;
    }

    #image {
        width: 100%;
    }

    h1:before {
        content: "# ";
        margin-left: -0em;
    }

    h2:before {
        content: "## ";
        margin-left: -0em;
    }

    h3:before {
        content: "### ";
        margin-left: -0em;
    }

}

/* BACKGROUND */

#background {
    position: fixed;
    top: 0px;
    left: 0px;
    min-width: 100vw;
    min-height: 100vh;
    z-index: -999;
}

#background video {
    position: fixed;
    top: 0px;
    left: 0px;
    min-width: 100vw;
    min-height: 100vh;
    width: auto;
    height: auto;
    z-index: -100;
    /* transform: translateX(-50%) translateY(-50%); */
    background: url(video/poster.jpeg) no-repeat;
    background-size: cover;
}

@media screen and (max-device-width: 800px) {
    body { background: url(video/poster.jpeg) #000 no-repeat center center fixed;}
    #background { display: none; }
}

#overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -99;
    transform: translateX(-50%) translateY(-50%);
    background: url(video/overlay.png);
}
