/* RESET –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
html, body, header, footer, h1, h2, h3, h4, div, a, p, blockquote {
	margin: 0;
	padding: 0;
	text-decoration: none;
	color: inherit;
	font-family: inherit;
	list-style: none;
}

* {
	position: relative;
	box-sizing: border-box;
	border: none;
}

/* BASIS –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */

html {
	font-size: 15px;
	font-family: 'Josefin Sans', Helvetica, Arial, sans-serif;

	background-color: #ffdd6e;
}

body {
	max-width: 80em;
	margin: auto;
}

/* Typography ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
h1 {
}

h2 {
	display: inline-block;
	font-size: 2em;
	border-bottom: 0.075em solid #fff;
}

h2 + p {
	margin-top: 0.25em;
}

h3 {
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #00c4b3;
}

p {
	font-family: Helvetica, Arial, sans-serif;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* HEADER –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

header {
	width: 100%;
}

#logo-container {
	width: 100%;
	background-color: #fff;
	padding: 3em;
}

#logo-container img {
	display: block;
	width: 25%;
	min-width: 12em;
	margin: auto;
}

#hero-image {
	background-image: url('../_assets/heroBackground.jpg');
	background-position: top center;
	background-repeat: no-repeat;
	background-size: cover;

	padding: 4em 1em;
}

#hero-image img {
	display: block;
	width: 100%;
	max-width: 32em;
	margin: auto;

	/* Visual Center Correction*/
	transform: translateY(6%);
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Main –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* General styling for mockup purposes */
/* This can change to accommodate widget */
#countdown-timer {
	height: 15em;
	background-color: #fff;

	padding: 3em;
}

#countdown-timer h3 {
	text-align: center;
}

/* Forms –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */

#signup-forms {
	padding: 3em;
	color: #fff;
	background-color: #00c4b3;

	display: block;
	width: 100%;
}

.signup-form {
	font-size: 2rem;

	display: block;
	width: 100%;
	max-width: 60rem;

	margin: auto;
	margin-bottom: 2em;
}

form {
	margin-top: 1em;
	width: 100%;

	display: -ms-flex;
	display: -moz-flex;
	display: -webkit-flex;
	display: flex;

	-ms-flex-flow: row wrap;
	-moz-flex-flow: row wrap;
	-webkit-flex-flow: row wrap;
	flex-flow: row wrap;

	-ms-justify-content: space-between;
	-moz-justify-content: space-between;
	-webkit-justify-content: space-between;
	justify-content: space-between;
}

label {
	-ms-flex: 0 1 calc(50% - 0.5em);
	-moz-flex: 0 1 calc(50% - 0.5em);
	-webkit-flex: 0 1 calc(50% - 0.5em);
	flex: 0 1 calc(50% - 0.5em);

	margin-bottom: 1em;
}

label > p {
	font-size: 1.5rem;
	display: block;
	margin-bottom: 0.25em;
}

lineBreak {
	flex: 0 0 100%;
	height: 0;
}

input {
	font-size: 2rem;

	height: 1.5em;
	width: 100%;
	padding: 0.25em 0.5em;
	vertical-align: middle;

	color: #767676;
}

input:focus, input:active {
	outline-color: #ffdd6e;
	outline-width: thick;

	color: #000;
}

button, a.button {
	-ms-flex: none;
	-moz-flex: none;
	-webkit-flex: none;
	flex: none;

    display: inline-block;
	width: auto;
	margin-left: 0;

	font-size: 1.5rem;
	font-weight: bold;
	padding: 0.5em 0.75em;
	color: #000;
	font-family: 'Arial';

	background-color: #ffdd6e;

	border-color: #fff;
}

button:hover, button:focus, a.button:hover, a.button:focus {
	cursor: pointer;
	outline: none;

	transform: translateY(-0.125em);
	border-bottom: 0.25em solid #fff;
	padding-bottom: 0.375em;
	padding-top: 0.375em;

	background-color: #ffee7f;

	transition: all 0.1s;
	transition-timing-function: ease-out;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Footer –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

footer {
	width: 100%;
	background-color: #fff;
	padding: 2em;
}

footer img {
	display: block;
	width: 25%;
	min-width: 18em;
	margin: auto;
}

form label span {
	transition: all 0.4s ease-in-out;
	opacity: 0;
}

form label span.error {
	opacity: 1;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Mike edits –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.error {
	padding: 10px;
	display: block;
	line-height: 50px;
	font-size: 19px;
	background-color: #d23838;
}

.input-amount {
	position: relative;
}

.input-amount input {
	text-indent: 20px;
}

.input-amount::before {
	content: "$";
	position: absolute;
	left: 0px;
	top: 0px;
	color: #b1b1b1;
	z-index: 2;
	top: 10px;
	left: 10px;
}

#countdown-timer h3 {
	margin-bottom: 10px;
}

.countdown {
	margin: 0px auto;
	text-align: center;
	display: flex;
	justify-content: center;
}

.countdown span {
	background-color: #00c4b3;
	color: #fff;
	font-size: 2em;
	position: relative;
	max-width: 72px;
	max-height: 72px;
	min-width: 72px;
	min-height: 72px;
	display: flex;
	flex-direction: row;
    align-items: center;
    justify-content: center;
	margin-right: 6px;
}

.countdown span::after {
	position: absolute;
	bottom: -20px;
	left: 0px;
	right: 0px;
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	color: #00c4b3;
}

.countdown span:nth-child(1)::after {
	content: "DAYS";
}

.countdown span:nth-child(2)::after {
	content: "HOURS";
}

.countdown span:nth-child(3)::after {
	content: "MINUTES";
}

.countdown span:nth-child(4)::after {
	content: "SECONDS";
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Media Queries ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Phones –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
@media all and (max-width: 32rem) {

	/* Smaller Text Sizes */
	html {
		font-size: 14px;
	}

	h2 {
		font-size: 1.5em;
	}

	p {
		font-size: 1.5rem;
	}

	/* Adjust flex for 1 column */
	label {
		-ms-flex: 0 1 100%;
		-moz-flex: 0 1 100%;
		-webkit-flex: 0 1 100%;
		flex: 0 1 100%;
	}

	/* Center the buttons */
	button, a.button {
		width: 100%;
		margin: auto;
	}

}

/* Phones + Tablets –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
@media all and (max-width: 48rem) {
	/* Less cushy padding */
	#signup-forms {
		padding: 1.5em;
	}

	#countdown-timer {
		padding: 1.5em;
	}

	label {
		margin-bottom: 0.5em;
	}
}
