/*
 * 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;
	font-family: 'Open Sans', sans-serif;
}

::-moz-selection {
	color: #fff;
    background: #777;
    text-shadow: none;
}

::selection {
	color: #fff;
    background: #777;
    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
   ========================================================================== */
@-webkit-keyframes pulse{      
	to {
        -webkit-transform: translate(-50%, -50%) scale(1.03,1.03);
		-webkit-opacity: 1;
    }
}

@-moz-keyframes pulse{      
	to {
        -moz-transform: translate(-50%, -50%) scale(1.03,1.03);
		-moz-opacity: 1;
    }
}

@keyframes pulse{      
	to {
        transform: translate(-50%, -50%) scale(1.03,1.03);
		opacity: 1;
    }
}

.pulse{
	-moz-animation: pulse 2s linear .5s 2 alternate;
	-webkit-animation: pulse 2s linear .5s 2 alternate;
	animation: pulse 2s linear .5s 2 alternate;
}
 
body{
	background: url(../img/photos/aldream-1.jpg);
	background-size: 5000px;
}

#main header {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 70%;
	min-width: 10em;
	z-index: 99;
	opacity: .01;
	-webkit-transition: opacity 800ms, text-shadow 800ms;
    -moz-transition: opacity 800ms, text-shadow 800ms;
    -o-transition: opacity 800ms, text-shadow 800ms;
    -ms-transition: opacity 800ms, text-shadow 800ms;
    transition: opacity text-shadow 800ms linear;
	text-shadow: 0 0 0em #000;

	pointer-events: none;
}

header {
	position: absolute;
	top: 1em;
	left: 50%;
	transform: translate(-50%, 0);
	width: 30%;
	min-width: 10em;
	z-index: 99;
	text-shadow: 0 0 0em #000;

	pointer-events: none;
}

#main header:hover {
	opacity: 1;
	text-shadow: 0 0 0.1em #000;
}

header div {
    margin-right: auto;
    margin-left: auto;
	text-align: center;
}
header img {
	width: 70%;
	pointer-events: auto;
}
header li {
	display: inline;
	margin: 1em;
	pointer-events: auto;
}

header li a, header li a:visited {
	text-decoration: none;
	color: #fff;
	font: bold 1em small-caps;
	-webkit-text-stroke: 1px #000;
	-webkit-transition: text-shadow 400ms linear;
    -moz-transition: text-shadow 400ms linear;
    -o-transition: text-shadow 400ms linear;
    -ms-transition: text-shadow 400ms linear;
    transition: text-shadow 400ms linear;
    text-shadow:
     -1px -1px 0 #666,  
      1px -1px 0 #666,
      -1px 1px 0 #666,
       1px 1px 0 #666;
}

#main header li a, #main header li a:visited {
	font: bold 1.5em small-caps;
}
header li a:hover {
	text-shadow:
     -1px -1px 0 #000,  
      1px -1px 0 #000,
      -1px 1px 0 #000,
       1px 1px 0 #000,
     -1px -1px .5em rgba(255,244,194,.4),  
      1px -1px .5em rgba(255,244,194,.4),
      -1px 1px .5em rgba(255,244,194,.4),
       1px 1px .5em rgba(255,244,194,.4);
}

header ul {
	display: table;   /* Allow the centering to work */
	margin: 0 auto;
	padding: 0;
	
}
section{
    position: relative;
    width: 100%;
    height: 100%;
}
#kenburns {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
	opacity: 1;
	-webkit-transition: opacity 1500ms linear;
    -moz-transition: opacity 1500ms linear;
    -o-transition: opacity 1500ms linear;
    -ms-transition: opacity 1500ms linear;
    transition: opacity 1500ms linear;
}

 /* Contact Page */
 #after_submit, #email_validation, #name_validation {
    display:none;
}

#after_submit{
    background-color: #c0ffc0;
    line-height: 31px;
    margin-bottom: 10px;
    padding-left: 20px;
    -webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}

label, #after_submit{
	color: #888;
}

input{
    line-height: 31px;
}

input, textarea{
    width: 22em;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	background-color: rgba(255,255,255,.4);
	border: solid 1px #888;
	padding: 0 5px;
}
textarea{
	padding: 5px 5px;
}
#about p, #about img{
    width: 22em;
	padding: 0;
	text-align: center;
}
#about img{
	border-radius: 10px;
	opacity: .9;
}
#contact_form, #about{
	height: 25em;
	position: fixed;
	top: 52%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: solid 1px #e5e5e5;
    padding: 10px 20px 50px 20px;
	background-color: rgba(255,255,255,.2);
    -webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
#about{
	height: 29em;
	top: 55%;
    padding: 0 20px 50px 20px;
}
#submit_button{
    width: 7em;
	height: 2.5em;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	background-color: #000;
	-webkit-box-shadow: inset 0 2px rgba(255,255,255,.29);
	-moz-box-shadow: inset 0 2px rgba(255,255,255,.29);
	box-shadow: inset 0 2px rgba(255,255,255,.29);
	border: solid 1px #444;
	font-weight: bold;
	color: #fff;
    margin-left: 5px;
	margin-top: .5em;
	
}

label.required:after {
  content:'*';
  color:red;
}

.error {
  background-color:#FFDFDF;
  color:red;
}
.error_message{
  font-style: italic;
  font-size: 10px;
}
.row {
  margin:5px;
}

/* ===============================
   Global
   =============================== */
.right {
	text-align: right;
}
.center {
	text-align: center;
}

/* ==========================================================================
   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.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 993px) {

}

@media only screen and (max-width: 672px) {
header li {
	display: block;
	margin: 1em;
	text-align: center;
}
	
}


@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;
    }
}
