/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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
   ========================================================================== */

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

html {
    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, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

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

html, body {
	height: 100%;
	overflow: visible;
}
#page {
	margin: 0 auto;
	max-width: 810px;
	min-height: 100%;
	position: relative;
	top: 0;
	left: 0;
	z-index: 1;
}
header {
	margin: 0 0 20px;
	padding: 20px 0 21px;
	background: transparent url(../img/header-border.png) repeat-x 0 100%;
}
#logo {
	margin: 0 0 30px;
	padding: 0 0 0 35px;
	width: 114px;
	height: 33px;
	line-height: 1em;
}
#logo img {
	display: block;
}
h2 {
	margin: 0;
	padding: 0 35px;
	color: #00a9e5;
	text-align: center;
}
.like {
	margin: 0 auto;
	padding: 50px 0;
	display: block;
}
.arrow {
	position: absolute;
	top: 20px;
	right: 70px;
	z-index: 2;
}
footer {
	padding: 0 0 20px;
	width: 100%;
	overflow: hidden;
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 2;
	color: #00a9e5;
}
footer p {
	margin: 0;
	padding: 0 0 0 35px;
	float: left;
}
footer nav {
	padding: 0 35px 0 0;
	float: right;
}
a:link, 
a:visited, 
a:hover, 
a:focus, 
a:active {
	color: #00a9e5;
	text-decoration: underline;
}
.img-header {
	margin: 0 auto 1em;
	display: block;
}
header h2, 
header p {
	padding: 0 55px;
	text-align: left;
}
header p {
	margin: 0 0 1em;
}
#products {
	margin: 0;
	padding: 0 5%;
	width: 90%;
	overflow: visible;
	list-style: none;
	font-size: 0.750em;
	position: relative;
	top: 0;
	right: 0;
	z-index: 4;
}
#products li {
	margin: 0 0 0 5%;
	padding: 0;
	width: 30%;
	float: left;
	list-style: none;
}
#products li:first-child {
	margin: 0;
}
.product-img {
	margin: 0 auto 10px;
	display: block;
}
.product-name {
	margin: 0 0 1em;
	min-height: 4.2em;
	display: block;
	color: #00a9e5;
	font-size: 1em;
	text-align: center;
}
.product-price {
	margin: 0 0 1em;
	display: block;
	color: #000;
	font-size: 1em;
}
.product-cta {
	margin: 0 0 .5em;
	padding: 0.5em 0;
	display: block;
	color: #fff;
	background: #00a9e5;
	font-size: 1em;
	text-align: center;
	text-transform: uppercase;
}
.product-info:link, 
.product-info:visited, 
.product-info:hover, 
.product-info:focus, 
.product-info:active {
	display: block;
	color: #bebebd;
	font-size: 1em;
	text-align: center;
	text-decoration: none;
}

.terms p {
	margin: 0;
	padding: 1em 35px;
	min-height: 133px;
	color: #00a9e5;
	text-align: right;
}
.step-1 {
	background: transparent url(../img/step-1.png) no-repeat 35px 0;
}
.step-2 {
	background: transparent url(../img/step-2.png) no-repeat 35px 0;
}
.step-3 {
	background: transparent url(../img/step-3.png) no-repeat 35px 0;
}
.step-4 {
	background: transparent url(../img/step-4.png) no-repeat 35px 0;
}
.step-5 {
	background: transparent url(../img/step-5.png) no-repeat 35px 0;
}
.cta {
	margin: 0;
	padding: 0 35px 2em;
	font-size: 3em;
	text-align: center;
	text-transform: uppercase;
}
.cta a {
	border: 1px solid #fff;
	padding: .5em 2em;
	display: inline-block;
}
.cta a:link, 
.cta a:visited, 
.cta a:hover, 
.cta a:focus, 
.cta a:active {
	color: #fff;
	background: #00a9e5;
	text-decoration: none;
}
.cta a:hover, 
.cta a:focus, 
.cta a:active {
	border-color: #00a9e5;
	color: #00a9e5;
	background: #fff;
}

#mainform {
	display: none;
	overflow: hidden;
}
form p {
	margin: 0 55px;
	padding: 0 10px 10px;
	background: #ececec;
}
form .generic_val + p {
	padding: 10px 10px 0;
}
form .button {
	margin: 0 55px 0 0;
	padding: 20px 0;
	float: right;
	background: #fff;
}
form .terms {
	padding: 20px 0;
	width: 40%;
	float: left;
	color: #00a9e5;
	background: #fff;
}
label {
	display: block;
	color: #000;
	cursor: pointer;
}
input[type="text"], 
input[type="email"], 
input[type="tel"] {
	padding: 0 1%;
	border: 0;
	width: 98%;
	color: #000;
	background: #fff;
	line-height: 1.5em;
}
input[type="button"] {
	border: 1px solid #fff;
	padding: .5em 2em;
	display: inline-block;
	float: right;
	color: #fff;
	background: #00a9e5;
	font-size: 1.5em;
	text-align: center;
	text-transform: uppercase;
}
input[type="button"]:hover, 
input[type="button"]:focus {
	border-color: #00a9e5;
	color: #00a9e5;
	background: #fff;
}
.validation {
	color: #f00;
	font-size: 0.750em;
}
#basket {
	padding: 0 59px 0 0;
	height: 43px;
	position: absolute;
	top: 20px;
	right: 0;
	z-index: 5;
	font-size: 0.750em;
	line-height: 43px;
	background: transparent url(../img/basket.png) no-repeat 100% 50%;
}
#result {
	padding-bottom: 4em;
}
#result .success {
	margin: 0 45px 1em;
	padding: 10px;
	color: #000;
	background: #ececec;
	font-size: 2em;
}
.winners {
	padding-bottom: 4em;
	width: 100%;
	overflow: hidden;
	font-size: 0.750em;
}
.winner {
	margin: 0 0 0 5%;
	padding: 0 0 20px;
	width: 30%;
	float: left;
}
.winner:first-child {
	margin: 0;
}
.winner table {
	border: 0;
	background: #ececec;
}
.winner table th, 
.winner table td {
	padding: .5em;
}
.winner th {
	font-weight: bold;
	text-align: left;
	vertical-align: top;
	color: #999;
}
.winner tbody th {
	color: #000;
	font-weight: normal;
}
.winner td {
	font-weight: normal;
	text-align: left;
	vertical-align: top;
}
.winner tbody tr:first-child th, 
.winner tbody tr:first-child td {
	font-weight: bold;
}
.winner table tr:hover th, 
.winner table tr:hover td {
	background: #fff;
}
.winner h2 {
	margin-bottom: .5em;
	padding: 0;
	line-height: 1.2em;
}














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