/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

::-moz-selection {
    background: #F8F8F2;
    color: #142537;
    text-shadow: none;
}

::selection {
    background: #F8F8F2;
    color: #142537;
    text-shadow: none;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html,
body {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

html {
    color: #F8F8F2;
    background: #0f1b2a;
    font-size: 62.5%;
    font-size: 2.6rem; 
}

body {
	position: relative;
	font-family: "Lato", sans-serif;
	font-weight: 300;
	text-align: right;
}

section {
	position: fixed;
	top: 5%;
	right: 5%;
	padding-left: 20%;
}

#code {
	color: #FC4349;
}

#form {
	color: #47E945;
}

#text {
	color: #FED369;
}

#create {
	color: #967FD3;
}

footer {
	position: fixed;
	width: 100%;
	bottom: 5%;
	right: 5%;
}

footer > br {
	display: none;
}

footer > div {
	font-size: 0.75rem;
	margin-top: 0.25rem;
}

aside {
	position: absolute;
	top: 102%;
	left: 5%;
	text-align: left;
	padding-right: 5%;
	font-size: 0.35rem;
	max-width: 10.0rem;
}

.imprint-toggle {
	cursor: pointer;
}

.imprint-toggle,
.imprint-content {
	padding-bottom: 5%;
}

a {
	color: inherit;
	text-decoration: none;
	transition: all 0.3s;
}

.imprint-toggle:hover,
.imprint-toggle:focus,
a:hover,
a:focus {
	color: #959EA5;
}

h1 {
	font-size: 1.0rem;
	font-weight: 400;
	margin: 0;
}

h2,
h3 {
	font-size: 0.4rem;
	font-weight: 400;
}

@media only screen and (max-width: 880px) {
	
	section,
	footer {
		position: absolute;
	}
	
	aside {
		left: auto;
		right: 5%;
		text-align: right;
		padding-right: 0;
		padding-left: 5%;
	} 
	
}

@media only screen and (max-width: 350px) {
	
	footer > br {
		display: block;
	}
	
}

@media only screen and (max-height: 650px) {
    
    footer > div {
		display: inline-block; 
		width: 1.2rem;
		max-width: 17%;
	}
    
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

.js .js {
	display: none;
}

.no-js .js {
	display: block;
}

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
