/*
 * 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
   ========================================================================== */
	.shadow {
-webkit-box-shadow: 5px 5px 5px #aaa;
-moz-box-shadow: 5px 5px 5px #aaa;
box-shadow: 5px 5px 5px #aaa;
margin-bottom: 10px;
}

#f1_container {
  position: relative;
  margin: 20px;
  width: 250px;
  height: 250px;
  z-index: 1;
  display:inline-block;

}

#f1_container img {
  width: 250px;
  height: 250px;
    border-radius:10px;

}

#f1_container {
  -webkit-perspective: 1000px;
  -moz-perspective: 1000px;
  -o-perspective: 1000px;
  perspective: 1000px;
}
#f1_card {
  width: 100%;
  height: 100%;
    border-radius:10px;
  -webkit-transform-style: preserve-3d;
  -webkit-transition: all 1.0s;
  -moz-transform-style: preserve-3d;
  -moz-transition: all 1.0s;
  -o-transform-style: preserve-3d;
  -o-transition: all 1.0s;
  transform-style: preserve-3d;
  transition: all 1.0s;
}
#f1_container:hover #f1_card, #f1_container.hover_effect #f1_card {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  transform: rotateY(180deg);

  -webkit-box-shadow: -5px 5px 5px #aaa;
  -moz-box-shadow: -5px 5px 5px #aaa;
  box-shadow: -5px 5px 5px #aaa;
}
.face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -o-backface-visibility: hidden;
  backface-visibility: hidden;
}
.face.back {
  display: block;
    border-radius:10px;
  -webkit-transform: rotateY(180deg);
  -webkit-box-sizing: border-box;
  -moz-transform: rotateY(180deg);
  -moz-box-sizing: border-box;
  -o-transform: rotateY(180deg);
  -o-box-sizing: border-box;
  transform: rotateY(180deg);
  box-sizing: border-box;
  padding: 10px;
  color: black;
  text-align: center;
  /* border:1px dashed #333; */
}

.back {position:relative;}

.back p {
	position:absolute;
	bottom:0;
	width:100%;
	margin:0;
	padding:0;
	margin-left:-10px;
	border-bottom-right-radius:10px;
	border-bottom-left-radius:10px;
	display:block;
	height:20px;
	color:#fff;
	background:rgba(0,0,0,0.8);
	text-align:center;
}

div.daniel {
	background:url(../digivoice.io.jpg) center;
		background-size:contain;
}
div.tanja {
	background:url(../minipiraten.jpg) center;
		background-size:contain;
}
div.fynn {
	
	background:url(../fynnsite2.png) center;
	background-size:contain;
}
div.isabella {
	background:url(https://mittendorf.net/wp-content/uploads/2016/12/isabella.png) center;
	background-size:contain;
}
	
	html { 
		width:100%;
		height:auto;  
		background: url(/images/bg-mittendorf.jpg) no-repeat center center fixed; 
		-webkit-background-size: cover;
		-moz-background-size: cover;
		-o-background-size: cover;
		background-size: cover;
	}
	body {
		margin:0;
		padding:0;
		text-align:center;
	}
	/* body:before { 
	   content: "";
	   position: fixed;
	   top: -10px;
	   left: 0;
	   width: 100%;
	   height: 10px;
	   z-index: 100;
	   -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
	   -moz-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
	   box-shadow: 0px 0px 10px rgba(0,0,0,.8);
	} */
	header {
		width:100%;
		/* background:rgba(255,255,255,.5) /* url(/images/white-radial2.jpg) center no-repeat */;
		-webkit-background-size: cover;
	  	-moz-background-size: cover;
	  	-o-background-size: cover;
	  	background-size: cover; */
		padding:0;
		/* -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
	   	-moz-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
	   	box-shadow: 0px 0px 10px rgba(0,0,0,.8); */
	   	margin:0 auto;
		margin-top:2%;
	   	display:inline-block;
	}
	header img {
		width:70%;
		height:auto;
		max-width:600px;
		min-width:300px;
		margin:15px auto;
		display:inline-block;
	}
	nav {
		width:100%;
		text-align:center;
		display:block;
		margin:0 auto;
	}

	ul.polaroids { margin:10% 0; padding:0; text-align:center; }
	ul.polaroids li { display: inline-block; }
	ul.polaroids a { background: #fff; border-radius:4px; display: inline; float: left; margin: 0 10px 20px 10px; width: auto; padding: 10px 10px 15px; text-align: center; font-family: 'Bad Script', sans-serif; text-decoration: none; color: #333; font-size: 20px; font-weight:bold; -webkit-box-shadow: 0 3px 6px rgba(0,0,0,.25); -moz-box-shadow: 0 3px 6px rgba(0,0,0,.25); -webkit-transform: rotate(-2deg); -webkit-transition: -webkit-transform .15s ease-in-out; -moz-transform: rotate(-2deg); -moz-transition: .15s ease-in-out; }
	ul.polaroids img { display: block; width: 190px; margin-bottom: 12px; }
	ul.polaroids a:after { content: attr(title); }
	ul.polaroids li:nth-child(even) a { -webkit-transform: rotate(2deg); -moz-transform: rotate(2deg); }
	ul.polaroids li:nth-child(3n) a { -webkit-transform: none; position: relative; top: -5px; -moz-transform: none; }
	ul.polaroids li:nth-child(5n) a { -webkit-transform: rotate(5deg); position: relative; right: 5px; -moz-transform: rotate(5deg); }
	ul.polaroids li:nth-child(8n) a { position: relative; right: 5px; top: 8px; }
	ul.polaroids li:nth-child(11n) a { position: relative; left: -5px; top: 3px; }
	ul.polaroids li.messy a { margin-top: -375px; margin-left: 160px; -webkit-transform: rotate(-5deg); -moz-transform: rotate(-5deg); }
	ul.polaroids li a:hover { -webkit-transform: scale(1.25); -moz-transform: scale(1.25); -webkit-box-shadow: 0 3px 6px rgba(0,0,0,.5); -moz-box-shadow: 0 3px 6px rgba(0,0,0,.5); box-shadow: 0 3px 6px rgba(0,0,0,.5); position: relative; z-index: 5; }
	ul.polaroids a:before {content: '';display: block;position: absolute;left:65px;top: -15px;width: 100px;height: 35px;background-color: rgba(250,250,250,0.8);-webkit-transform: rotate(-6deg);-moz-transform: rotate(-6deg);-o-transform: rotate(-6deg);-ms-transform: rotate(-6deg);}
	ul.polaroids li:nth-child(even) a:before {-webkit-transform: rotate(6deg);-moz-transform: rotate(6deg);-o-transform: rotate(6deg);-ms-transform: rotate(6deg);}


/* ==========================================================================
   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;
    }
}
