@import url(http://fonts.googleapis.com/css?family=Lato:100,300);

/* === GENERAL === */

body, html {
	margin: 0;
	width: 100%;
	height: 100%;
}

body {
	font-family: 'Lato', sans-serif;
	background-color: #2980b9;
	
}

#top-wrap {
	width: 100%;
	height: 50%;
	background-color: #fff;
	overflow: visible;
	position: relative;
	display: block;
}

#noscript-alert {
	width: 100%;
	height: 40px;
	line-height: 40px;
	text-align: center;
	color: white;
	background-color: #2C3E50;
}


/* === HEADER === */

#title {
	padding-top: 50px;
	text-align: center;
	color: white;
	font-weight: 300;
	font-size: 35px;
	color: #1198ac;
}

#title h1 {
	margin: 0px;
	font-weight: 300;
	font-size: 50px;
	margin-bottom: 5px;
	color: #1198ac;
}

.title-logo {
	width: auto;
	height: auto;
	margin:0 auto;
	margin-bottom: 2%;
}


/* === COUNTDOWN === */

#countdown {
	left: 50%;
	margin-left: -435px;
	height: 180px
	width: 870px;
	text-align: center;
	bottom: -90px;
	display: block;
	position: absolute;
}

.countdown-elem {
	width: 180px;
	height: 180px;
	border-radius: 180px;
	display: inline-block;
	margin-left: 50px;
	overflow: hidden;
	background-color: #7EB7DC;
	-webkit-background-clip: padding-box;
}

.countdown-elem span {
	position: relative;
	width: 180px;
	font-size: 48px;
	color: white;
	line-height: 130px;
	text-align: center;
	font-weight: 300;
}

.countdown-elem p {
	margin: 0px;
	position: absolute;
	text-align: center;
	width: 180px;
	font-weight: 300;
	bottom: 50px;
	color: white;
}

.countdown-elem-flow {
	width: 100%;
	height: 0%;
	top: 0px;
	background-color: #A1D0EE;
}

.countdown-elem-flow.fdays { -webkit-transition: height 6s ease-in-out; transition: height 6s ease-in-out; }
.countdown-elem-flow.fhrs { -webkit-transition: height 4s ease-in-out; transition: height 4s ease-in-out; }
.countdown-elem-flow.fmins { -webkit-transition: height 2s ease-in-out; transition: height 2s ease-in-out; }
.countdown-elem-flow.fsecs { -webkit-transition: height 1s ease-in-out; transition: height 1s ease-in-out; }

.countdown-elem:first-child {
	margin-left: 0px;
}


/* === EMAIL SUBSCRIPTION FORM === */

#subscribe {
	width: 600px;
	height: 70px;
	background-color: #5CAADC;
	margin:0 auto;
	margin-top: 12%;
	border-radius: 6px;
	padding: 10px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.signup {
	width: 28%;
	height: 50px;
	float: right;
	background-color: #5CAADC;
	border-radius: 3px;
	margin-top: -50px;
	display: none;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	text-align: center;
	line-height: 50px;
	color: #797979;
	transition: width 2s ease;
	-webkit-transition: width 2s ease;
	-webkit-background-clip: padding-box;
	font-weight: 300;

}

.signup-waiting {
	background-image: url("ajax-loader.gif");
	background-repeat: no-repeat;
	background-position: center;
}

.signup-error {
	background-color: #FFCB89;
	color: white;
}

.signup-success {
	background-color: #56E29E;
	width: 100%;
	color: white;
}

.enteremail {
	height: 50px;
	padding-left: 20px;
	padding-right: 20px;
	width: 70%;
	font-family: 'Lato', sans-serif;
	outline: none;
	border: none;
	border-radius: 3px;
	background-color: #A1D0EE;
	color: white;
	font-size: 18px;
	font-weight: 300;
	float: left;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-background-clip: padding-box;
}

::-webkit-input-placeholder { /* WebKit browsers */
    color: white;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: white;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
    color: white;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
    color: white;
}

#subscribe input[type='submit'] {
	width: 28%;
	height: 50px;
	background-color: #A1D0EE;
	outline: none;
	float: right;
	font-family: 'Lato', sans-serif;
	font-size: 18px;
	border: none;
	border-radius: 3px;
	font-weight: 300;
	color: white;
	cursor: pointer;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-appearance: none;
	-webkit-background-clip: padding-box;
	transition: background-color 0.2s ease;
	-webkit-transition: background-color: 0.2s ease;
}

#subscribe input[type='submit']:active {
	background-color: #7EB7DC;
}

/* === CSS ANIMATIONS === */
/* Animation that plays on page load, whereby everything except countdown gradually fades in */

@keyframes fadeIn
{
0% { opacity: 0; }
15% { opacity: 0; }
100% { opacity: 1; }
}

@-webkit-keyframes fadeIn
{
0% { opacity: 0; }
15% { opacity: 0; }
100% { opacity: 1; }
}

/* If you don't want to use the animation, remove the following code: */
#title, #subscribe, #bottom-menu {
	animation: fadeIn 4s ease;
	-webkit-animation: fadeIn 4s ease;
}
/* Remove above code if you don't want animations */



/* ===  RESPONSIVE CSS === */

@media all and (max-width: 899px) {
	#countdown { width: 730px; margin-left: -365px; bottom: -75px; }
	.countdown-elem { width: 150px;	height: 150px; border-radius: 150px; margin-left: 40px; }
	.countdown-elem span { width: 150px; line-height: 110px; font-size: 42px; }
	.countdown-elem p { width: 150px; bottom: 40px; }
}

@media all and (max-width: 769px) {
	#top-wrap { height: auto; padding-left: 20px; padding-right: 20px; padding-bottom: 20px; box-sizing: border-box; -moz-box-sizing: border-box; }
	#title { padding-top: 40px; }
	#countdown { width: 340px; height: 340px; left: 50%; margin-left: -170px; bottom: -380px; }
	.countdown-elem { display: block; float: left; margin-bottom: 40px; }
	.ffirst p { bottom: 230px; }
	.fsecond p { bottom: 230px; }
	.fthird { margin-left: 0px !important; }
	.countdown-elem p { position: absolute; }
	#subscribe { width: 95%; margin-top: 420px; }
	#bottom-menu { margin-top: 40px !important; }
}

@media all and (max-width: 400px) {
	#top-wrap { height: auto; padding-bottom: 20px; }
	#title { padding-top: 40px; font-weight: 300; }
	#title h1 { font-size: 28px; font-weight: 300; }
	#countdown { width: 220px; height: 220px; margin-left: -110px; bottom: -260px; }
	.countdown-elem { width: 100px;	height: 100px; border-radius: 100px; margin-bottom: 20px; margin-left: 20px; }
	.countdown-elem span { width: 100px; line-height: 60px; font-size: 32px; font-weight: 300; }
	.countdown-elem p { width: 100px; bottom: 20px; font-weight: 300; }
	.ffirst p, .fsecond p { bottom: 140px; }
	#subscribe { margin-top: 300px; }
	.enteremail { font-size: 14px; font-weight: 300; }
	#subscribe input[type='submit'] { font-size: 14px; font-weight: 300; }
	#bottom-menu { margin-top: 80px !important; }
}