/*
 * HTML5 Boilerplate
 *
 * 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
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

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

body {
	height: 100%;
	font-family: FilmotypeGem;
	font-weight: normal;
	font-style: normal;
	overflow-y: scroll;
}

p {
	color: black;
	margin-top: 0px;
	margin-bottom: 0px;
}

a {
	color: black;
}

.clear {
	clear: both;
	float: none;
}

div.startHidden {
	display: none;
}

div.background {
	/*position: fixed;*/
	top: 0px;
	left: 0px;
	
	/*
	min-width: 1200px;
		width: 100%;
		min-height: 100%;
		height: auto !important;*/
	
	width: 100%;
	height: 100%;

	filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/mg_bg01.jpg', sizingMethod='scale');
	-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/mg_bg01.jpg', sizingMethod='scale')";
	
	background: url('../img/mg_bg01.jpg') no-repeat center center fixed; 
 	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

div.centered {
	margin-left: auto;
	margin-right: auto;
	/*width: 1000px;*/
	position: relative;
	height: auto;
	overflow: auto;
}


h1 {
	color: white;
	font-weight: normal;
}

h2 {
	color: white;
	font-weight: normal;
}

.selected {
	color: #fae9f8;
}



div.centered div.header {
	text-align: center;
}

div.centered div.header h1 {
	line-height: 0.8;
	font-size: 40px;
	margin-bottom: 0px;
}

div.centered div.header a {
	text-decoration: none;
	color: white;
}

div.centered div.header a:hover {
	color: #ff00cc;
}

div.centered div.header h2 {
	line-height: 0.8;
	font-size: 40px;
	margin-top: 0px;
}

div.centered div.header span {
	cursor: pointer;
}

div.centered div.content {
	text-align: center;
}


div.centered div.content > div {
	position: relative;
	border: solid 20px transparent;
	/*float: left;*/
	display: inline-block;
	height: 278px;
	margin-left: 20px;
	cursor: pointer;
}

div.centered div.content > div:first-child {
	margin-left: 0px;
}


div.centered div.content > div img {
	position: absolute;
	top: 0px;
	left: 0px;
}

div.centered div.content > div h1 {
	position: absolute;
	top: 68px;
	/*color: transparent;*/
	text-align: center;
	width: 100%;
	font-size: 0px;
}

div.centered div.content > div h1.show {
	font-size: 45px;
}

div.centered div.content > div.mojo h1, div.centered div.content > div.mojo h2 {
	color: #ff00cc;
}

div.centered div.content > div#third h1 {
	top: 0px;
	color: #3031ff;
}

div.centered div.content > div#third h1.show {
	font-size: 96px;
}

div.centered div.content > div.arch h1, div.centered div.content > div.arch h2 {
	color: #eb0505;
}

div.centered div.content > div#sixth h1, div.centered div.content > div#sixth h2 {
	color: #ac37ff;
}

div.centered div.content > div#seventh h1 {
	top: 70px;
	color: #ac37ff;
}

div.centered div.content > div#seventh h1.show {
	font-size: 48px;
}

div.centered div.content > div#seventh h2 {
	top: 48px;
	color: #ac37ff;
}

div.centered div.content > div#seventh h2.show {
	font-size: 60px;
}

div.centered div.content > div h2 {
	position: absolute;
	top: 70px;
	/*color: transparent;*/ /*not in IE8*/
	text-align: center;
	width: 100%;
	/*font-size: 70px;*/
	font-size: 0px;
}

div.centered div.content > div h2.show {
	font-size: 70px;
}


/*
div.centered div#first {
	background-image: url('../img/mg01.jpg');
}

div.centered div#second {
	background-image: url('../img/mg02.jpg');
}*/



div.centered div.double {
	width: 424px;
}

div.centered div.single {
	width: 182px;
}

div.centered div.footer {
	margin-top: 64px;
	margin-bottom: 64px;
	text-align: center;
	font-size: 10px;
	font-family: Arial, Helvetica, sans-serif;
}

div.centered div.footer img {
	margin-top: 12px;
}

div.centered div.content > div.blue {
	border-color: #3031ff; 
}

div.centered div.content > div .blue {
	color: #3031ff; 
}

div.centered div.header h2 span.blue {
	color: #3031ff; 
}


div#gray-out {
	position: absolute;
	top: 0px;
	left: 0px;
	
	width: 100%;
	height: 100%;
	
	background-color: rgba(204,204,204,0.75);
	/*
	filter: alpha(opacity=75);  
		-moz-opacity: 0.75;  
		-khtml-opacity: 0.75;  
		opacity: 0.75;*/
	
	
	/*z-index: 100;*/
	text-align: center;
}

/*
div#gray-out > div{
	opacity: 1;
}*/


div.overlay {
	position: relative;
	
	margin-top: 218px;
	
	margin-left: auto;
	margin-right: auto;
	
	background-color: white;
	
	width: 706px;
	
	padding: 20px 20px 60px 20px;
	
	text-align: center;
	
	/*z-index: 101;*/
}

div.overlay p.close {
	position: absolute;
	right: 0px;
	top: 0px;
	background-color: #e5e5e5;
	padding: 0px 20px;
	line-height: 20px;
	cursor: pointer;
	font-size: 12px;
}

div.overlay hr {
	width: 100%;
	height: 20px;
	margin-bottom: 32px;
}

div#contactForm.overlay hr, div#imprint.overlay hr {
	background-color: #ac37ff;
}

div#cv.overlay hr {
	background-color: #3031FF;
}

div#blickfang.overlay hr, div#edith.overlay hr {
	background-color: white;
	height: 0px;
	margin-bottom: 0px;
	border-top: none;
}

div#blickfang.overlay img {
	margin-bottom: 32px;
}

div#edith.overlay img {
	margin-bottom: 32px;
	cursor: pointer;
}

div.overlay p {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	margin-bottom: 32px;
}

div.overlay table {
	width: 100%;
}

div.overlay table td {
	text-align: center;
}

div#cv.overlay table td {
	text-align: center;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
}

div#cv.overlay table tr:nth-child(2n+1) td {
	padding-top: 16px;
}

div#contactForm label {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
}

div#contactForm input {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	margin-top: 6px;
	margin-bottom: 12px;
	width: 260px;
}

div#contactForm textarea {
	width: 260px;
}

div#contactForm a {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	text-decoration: underline;
}

div#imprint > div {
	font-family: Arial, Helvetica, sans-serif;
	padding: 0px 100px;
}

div#imprint h1 {
	color: black;
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 0px;
}

div#imprint h2 {
	color: black;
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 8px;
}

div#imprint h3 {
	color: black;
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 0px;
}

/*div#contactForm {
	position: absolute;
	left: 222px;
	top: 218px;
	
	background-color: white;
	
	width: 706px;
	
	padding: 20px 20px 60px 20px;
	
	text-align: center;
	
	z-index: 101;
}*/

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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

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

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

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

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

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

    @page {
        margin: 0.5cm;
    }

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

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