/* FONTS */
@font-face {
	font-family: 'open_sansbold';
	src: url('../font/opensans-bold-webfont.eot');
	src: url('../font/opensans-bold-webfont.eot?#iefix') format('embedded-opentype'),
		url('../font/opensans-bold-webfont.woff') format('woff'),
		url('../font/opensans-bold-webfont.ttf') format('truetype'),
		url('../font/opensans-bold-webfont.svg#open_sansbold') format('svg');
		font-weight: normal;
		font-style: normal;
}
@font-face {
	font-family: 'open_sans_extraboldregular';
	src: url('../font/opensans-extrabold-webfont.eot');
	src: url('../font/opensans-extrabold-webfont.eot?#iefix') format('embedded-opentype'),
		url('../font/opensans-extrabold-webfont.woff') format('woff'),
		url('../font/opensans-extrabold-webfont.ttf') format('truetype'),
		url('../font/opensans-extrabold-webfont.svg#open_sans_extraboldregular') format('svg');
		font-weight: normal;
		font-style: normal;
}
@font-face {
	font-family: 'open_sansregular';
	src: url('../font/opensans-regular-webfont.eot');
	src: url('../font/opensans-regular-webfont.eot?#iefix') format('embedded-opentype'),
		url('../font/opensans-regular-webfont.woff') format('woff'),
		url('../font/opensans-regular-webfont.ttf') format('truetype'),
		url('../font/opensans-regular-webfont.svg#open_sansregular') format('svg');
		font-weight: normal;
		font-style: normal;
}

/*
 * 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
   ========================================================================== */

body {
	font-family: 'open_sansregular';
	background: #212d3a url('../img/grad-bg.png') no-repeat 50% 50%;
	background-size: 90%;
	text-align: center;
	color: #fff;
	font-size: 15px;
	line-height: 20px;
}

#main {
	margin: 0 auto;
	width: 700px;
}

#intro {
	padding: 30px 0 5px 0;
}

#intro img {
	width: 100%;
	height: auto;
}

#intro p, #logo {
	margin-bottom: 40px;
}

#InputPanel {
	margin-bottom: 30px;
}

#signup {
	padding-top: 5px;
}

#user-signup {
	margin: 0 0 30px 0;
}

#counter {
	background: #222;
	padding: 10px;
	display: inline-block;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	font-size: 22px;
	-moz-box-shadow: inset 0 0 5px #000;
	-webkit-box-shadow: inset 0 0 5px #000;
	box-shadow: inset 0 0 5px #000;
}

h1, h2, h3 {
	font-family: 'open_sansbold';
	font-weight: normal;'
	font-style: normal;
	font-size: 60px;
}

h2 {
	font-size: 22px;
	margin-bottom: 20px;
}

h3 {
	font-size: 16px;
	margin-bottom: 10px;
}

h3, p {
	color: #dae3ed;
}

hr {
	border-bottom: 1px solid #2e3e4f;
	border-top: 1px solid #10161c;
	height: 0;
	margin-bottom: 20px;
}

.btn {
	text-align: center;
	display: inline-block;
	border: 1px solid #649a16;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	font-size: 17px;
	font-family: 'open_sansbold';
	padding: 13px 18px 13px 18px;
	margin-right: 0;
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #70a042;
	background-image: -moz-linear-gradient(top, #c2ef55, #649a16);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#c2ef55), to(#649a16));
	background-image: -webkit-linear-gradient(top, #c2ef55, #649a16);
	background-image: -o-linear-gradient(top, #c2ef55, #649a16);
	background-image: linear-gradient(to bottom, #c2ef55, #649a16);
	background-repeat: repeat-x;
	border-color: #649a16 #649a16 #016614;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.5);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc2ef55', endColorstr='#ff649a16', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.btn:hover {
	color: #ffffff;
	background-color: #598132;
	background-image: -moz-linear-gradient(top, #aad248, #507a12);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#aad248), to(#507a12));
	background-image: -webkit-linear-gradient(top, #aad248, #507a12);
	background-image: -o-linear-gradient(top, #aad248, #507a12);
	background-image: linear-gradient(to bottom, #aad248, #507a12);
	background-repeat: repeat-x;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.2);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffaad248', endColorstr='#ff507a12', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.btn:focus, .btn:active {
	color: #ffffff;
	background-color: #598132;
	background-image: -moz-linear-gradient(top, #649a16, #c2ef55);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#649a16), to(#c2ef55));
	background-image: -webkit-linear-gradient(top, #649a16, #c2ef55);
	background-image: -o-linear-gradient(top, #649a16, #c2ef55);
	background-image: linear-gradient(to bottom, #649a16, #c2ef55);
	background-repeat: repeat-x;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff649a16', endColorstr='#ffc2ef55', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

input[type=email] {
	font-family: 'open_sansregular';
	-moz-box-shadow: 0 1px #6a8eb6;
	-webkit-box-shadow: 0 1px #6a8eb6;
	box-shadow: 0 1px #6a8eb6;
	width: 400px;
	border: 1px solid #bbb;
	padding: 14px;
	outline: none;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	margin-right: 10px;
}

input[type=email]:focus {
	color: #444;
	box-shadow: 0 0 5px rgba(108, 192, 245, 1);
	border: 1px solid rgba(108, 192, 245, 1);
}

.thanks {
	margin: 50px 0;
	color: #d9ffe3;
}

.placeholder {
	color: #aaa;
}

div.error {
	margin-bottom: 7px;
}

input[type=email].error, .error {
	color: red;
	border-color: #cc0000;
}

input[type=email].error:focus {
	box-shadow: 0 0 5px rgba(255, 0, 0, 1);
	border: 1px solid rgba(255, 0, 0, 1);
	color: red;
}


/* ==========================================================================
   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: 700px) {
    #main {
		width: 92%;
	}
	h1 {
		font-size: 300%;
	}
	h2 {
		font-size: 120%;
		line-height: 150%;
	}
	p {
		font-size: 100%;
	}
	.btn {
		width: 100%;
	}
	input[type=email] {
		margin-bottom: 20px;
		width: 94%;
		padding: 3%;
	}
}

@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;
    }
}
