/*
 * 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 declarations 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
   ========================================================================== */
@font-face {
    font-family: 'NescafeBold';
    src: url('../fonts/Nescafe_Sans-Bold.eot');
    src: url('../fonts/Nescafe_Sans-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Nescafe_Sans-Bold.woff') format('woff'),
         url('../fonts/Nescafe_Sans-Bold.ttf') format('truetype'),
         url('../fonts/Nescafe_Sans-Bold.svg#NescafeBold') format('svg');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'VAGBold';
    src: url('../fonts/VAGRoundedLTCYR-Bold.eot');
    src: url('../fonts/VAGRoundedLTCYR-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/VAGRoundedLTCYR-Bold.woff') format('woff'),
         url('../fonts/VAGRoundedLTCYR-Bold.ttf') format('truetype'),
         url('../fonts/VAGRoundedLTCYR-Bold.svg#VAGBold') format('svg');
    font-weight: bold;
    font-style: normal;
}
html, body {
	height: 100%;
	overflow: hidden;
}
body, input {
	font-family: 'VAGBold', sans-serif;
}
body {
	color: #fffae1;
	background: #5a2b0f url(../img/bg3.jpg) no-repeat 50% 0;
}
#page {
	margin: 0 auto;
	width: 100%;
	max-width: 1078px;
	height: 100%;
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
	overflow: visible;
}
#content {
	margin: 0 3.710575139%; /* 40 (originally 40) / 1078 */
	overflow: visible;
}
#mainform {
	margin: 0 0 20px;
	width: 54.809619238%; /* 547 (originally 547) / 998 */
	overflow: visible;
	position: relative;
	top: 0;
	left: 0;
	z-index: 3;
}
#result {
	margin: 0 0 0 50px;
}

#boxes {
	position: absolute;
	top: -20%;
	left: 100%;
	z-index: 1;
	display: block;
	width: 91.773308958%; /* 502 (originally 502) / 547 */
	width: 85.557586837%; /* 468 (originally 468) / 547 */
}
#sticks {
	position: absolute;
	bottom: -2%;
	right: -4%;
	z-index: 10;
	display: block;
	width: 21.442885772%; /* 214 (originally 214) / 998 */
}
#footer {
	position: absolute;
	bottom: -15%;
	right: -25%;
	z-index: 9;
	display: block;
	width: 53.406813627%; /* 533 (originally 533) / 998 */
}

.wrapper {
	width: 92.578849722%;
	position: absolute;
	bottom: 0;
	left: 3.710575139%;
	z-index: 2;
	overflow: visible;
}
.nescafe {
	font-family: 'NescafeBold', sans-serif;
}
h1 {
	margin: 0 0 1em;
	padding: 1.285714em 0 0;
	font-size: 1.750000em; /* 28px */
	line-height: 1.285714em; /* 36px */
	font-weight: normal;
}
p {
	margin: 0 0 1em;
}
form p {
	margin: 0 0 0.625000em;
	overflow: visible;
	clear: both;
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
}
.validation {
	padding: 4px .5em 0;
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	color: #f00;
	font-size: 0.875000em; /* 14px */
	line-height: 1.428571em; /* 20px */
}
label {
	cursor: pointer;
}
label a {
	text-decoration: none;
	color: #fffae1;
	display: inline-block;
	border-bottom: 1px solid #fffae1;
}
form ul {
	margin: 0 0 1.166667em -4px;
	padding: 0 0 0 15%;
	font-size: 0.750000em; /* 12px */
	line-height: 1.166667em; /* 14px */
	list-style: none;
}
form li {
	margin: 0 0 0.416667em;
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
}
form li .validation {
	top: auto;
	right: auto;
	bottom: -2em;
	left: -4px;
}
.button {
	position: absolute;
	top: auto;
	left: auto;
	bottom: 0;
	right: 0;
	z-index: 4;
}
p label {
	margin: 0 -4px 0 0;
	padding: 2px 0;
	width: 15%;
	display: block;
	float: left;
	font-size: 0.875000em; /* 14px */
	line-height: 1.428571em; /* 20px */
	color: #fffae1;
}
input[type="text"], 
input[type="tel"], 
input[type="email"] {
	display: block;
	padding: 0;
	width: 85%;
	min-height: 1.428571em;
	border: 2px solid #cc642a;
	font-size: 0.875000em; /* 14px */
	line-height: 1.428571em; /* 20px */
	color: #5a0d0f;
	background: #fffae1;
	text-indent: 0.357143em;
	
	-webkit-box-shadow: 0 3px 13px 3px rgba(9,10,10,.58);
	box-shadow: 0 3px 13px 3px rgba(9,10,10,.58);
}
input[type="button"] {
	display: block;
	border: 0;
	padding: 0.500000em 1.250000em; /* 6px 15px */
	color: #fffae1;
	background: #f37021;
	font-size: 0.750000em;
	cursor: pointer;
	
	border-radius: 0.416667em;
	-webkit-box-shadow: 0 3px 13px 3px rgba(9,10,10,.58);
	box-shadow: 0 3px 13px 3px rgba(9,10,10,.58);
}
#nescafe {
	padding: 1.250000em 0 0;
	position: absolute;
	top: 100%;
	right: -10px;
	z-index: 5;
}
.finish {
	margin: 0 0 0 50px;
	padding: 0.833333em 0;
	font-size: 1.500000em; /* 24px */
	line-height: 1.333333em; /* 32px */
}
.finish b {
	font-size: 1.250000em; /* 30px */
	line-height: 1.066667em; /* 32px */
	color: #f7e292;
}
h2 {
	margin: 0;
	padding: 0.512821em 0 0;
	font-size: 2.437500em; /* 39px */
	line-height: 1em;
	color: #f4da89;
}
.success {
	padding: 0 0 0.666667em;
	font-size: 1.875000em; /* 30px */
	line-height: 1.200000em; /* 36px */
}
.instructions {
	margin-right: 3%;
	width: 40%;
	float: left;
	
	font-size: 0.750000em; /* 12px */
	line-height: 1.166667em; /* 14px */
	color: #f37021;
}
nav {
	float: left;
	width: 30%;
}
.links {
	margin: -1.166667em 0 1.166667em;
	padding: 0;
	overflow: visible;
	list-style: none;
	font-size: 0.750000em; /* 12px */
	line-height: 1.166667em; /* 14px */
}
.links li {
	margin: 0;
	padding: 0;
	width: 33%;
	float: left;
}
.links a {
	padding: 30px 0 0;
	display: block;
}
.links .fb {
	padding: 1.166667em 0 0;
}
.links a:link, 
.links a:visited, 
.links a:hover, 
.links a:focus, 
.links a:active {
	outline: none;
	color: #f37021;
	text-decoration: none;
	text-align: center;
}
.links a:hover, 
.links a:focus, 
.links a:active {
	color: #fce593;
}
.links .contact {
	background: transparent url(../img/icon-contact.png) no-repeat 50% 0;
}
.links .home {
	background: transparent url(../img/icon-home.png) no-repeat 50% 0;
}
video {
  width: 100% !important;
  height: auto !important;
}
img {
  max-width: 100%;
  height: auto;
}



#popup {
	width: 650px;
	position: absolute;
	top: 15%;
	left: 38%;
	z-index: 1000;
	display: none;
}
#boxes img {
	cursor: pointer;
}
#decorative {
	position: absolute;
	top: -75px;
	left: 0;
	z-index: 1;
}
.message {
	margin: 0 0 0 75px;
	width: 425px;
	font-size: 0.750000em;
	
	position: relative;
	top: 0;
	left: 0;
	z-index: 2;
}
#popup h2 {
	margin: 0 0 0.384615em;
	padding: 0;
	color: #f18800;
	font-size: 1.625000em; /* 26px */
	line-height: 1.153846em; /* 30px */
}
#popup h3 {
	margin: 0 0 0.500000em;
	padding: 0;
	color: #f18800;
	font-size: 1.250000em; /* 20px */
	line-height: 1em; /* 20px */
}
#popup ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
#popup li {
	margin: 0 0 0.625000em;
	padding: 0;
}
#close {
	display: block;
	width: 30px;
	height: 30px;
	position: absolute;
	top: 70px;
	right: 40px;
	z-index: 3;
	text-indent: -999999em;
	background: transparent url(../img/close.png) no-repeat 0 0;
}
/* ==========================================================================
   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;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media only screen and (max-width: 320px) {
	p label {
		margin: 0;
		width: 100%;
		display: block;
		float: none;
	}
	input[type="text"], 
	input[type="tel"], 
	input[type="email"] {
		width: 100%;
	}
	form ul {
		margin-left: 0;
		padding: 0;
	}
	#result {
		margin: 0;
	}
}
@media only screen and (max-width: 560px) {
	html, body {
		height: auto;
		overflow: visible;
	}
	.button {
		position: static;
		margin-left: -4px;
		padding-left: 15%;
	}
	.wrapper {
		position: static;
	}
	.links li {
		margin: 0 0 1em;
		width: 100%;
		float: none;
	}
}
@media only screen and (max-width: 800px) {
	body {
		background: #5a2b0f url(../img/mobile.jpg) no-repeat 100% 100%;
		background-size: 100% auto;
	}
	#mainform {
		margin: 0 0 50px;
		width: 100%;
	}
	.wrapper {
		width: 40%;
	}
	.instructions {
		margin-right: 0;
		width: 100%;
		float: none;
	}
	nav {
		float: none;
		width: 100%;
	}
	.links {
		margin: 0 0 1.166667em;
	}
	
	#boxes, 
	#sticks, 
	#footer {
		display: none;
	}
}
@media only screen and (min-width: 560px) and (max-width: 800px) {
	body {
		font-size: 1.250000em;
	}
	#popup {
		font-size: 0.800000em;
	}
}
@media only screen and (max-width: 560px) {
	#mainform {
		margin: 0 0 60px;
	}
}
@media only screen and (max-width: 480px) {
	#mainform {
		margin: 0 0 140px;
	}
}
@media only screen and (max-width: 320px) {
	body {
		font-size: 1em;
	}
	.button {
		margin-left: 0;
		padding-left: 0;
	}
	.wrapper {
		width: 100%;
	}
	nav {
		width: 40%;
	}
}

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