html, body {height: 100%;}
.clear {clear: both;}

body {
	background: url('bg.jpg') no-repeat center #9dcd59;
	background-size: cover;
	text-align: center;
	font: 14px 'Droid Serif', Cambria, 'Times New Roman', serif;
	-webkit-font-smoothing: anti-aliased;
	}

#wrapper {
	position: relative;
	z-index: 1;
	width: 800px;
	margin: auto;
}

#wrapper h1 {text-indent: -999; font-size: 0px;}

#main_img,
#logo,
#deal,
#form,
#footer {
	position: relative;
	float: left;
	}

#main_img {width: 384px; top: 150px;}

#logo {
	width: 214px;
	height: 214px;
	background: url(logo.png) no-repeat;
	right: 75px;
	top: 10px;
}

#deal {
	left: 150px;
	bottom: 185px;
}

#deal > div {
	width: 320px;
	height: 290px;
	background: #3648a0;
	border: 5px solid #ffed46;
	border-radius: 50%;
	color: #d9e021;
	padding-top: 30px;
}

#deal p span {font-size: 2.1em;}
#deal p + p {font-size: 1.5em;}
#deal h1 {font-size:3.2em;}
#deal h1 + p {font-size: 1.7em;}
#deal h1 + p + p {
	font-size: 1.2em;
	}

.restrictions {
	width: 235px;
	padding-top: 10px;
	margin: 10px auto 0;
	border-top: 2px solid #d9e021;
	}

	#deal p, #deal h1 {
		margin: 0;
	}

#deal .restrictions p {font-size: 12px;}

#deal img {
	position: relative;
	bottom: 8px;
	}

#form {
	position: absolute;
	left: 390px;
	bottom: 0;
}

#form > div {
	width: 254px;
	height: 224px;
	background: #3648a0;
	border: 5px solid #9ccd59;
	border-radius: 50%;
	color: #fcee21;
	padding-top: 30px;
	}

#form p, input {
	margin-top: 0;
	margin-bottom: 8px;
	font-size: 1em;
	}

input {
	display: block;
	margin: 0 auto 8px;
	width: 190px;
	height: 25px;
	background-color: #d9e021;
	border: 2px solid #8cc63f;
	color: #666666;
	font-style: italic;
	text-indent: 10px;
	}

.clicked {
	color: #1b1464;
	font-style: normal;
	background-color: #fcee21;
	}

#form p span, label {font-size: 0.8em;}

#form label {
	margin-bottom: 8px;
	display: inline-block;
	width: 170px;
	}

.checkbox {
	clear: both;
	float: left;
	width: 25px;
	height: 25px;
	position: relative;
	left: 30px;
	bottom: 3px;
	}

#submit {
	width: 55px;
	height: 30px;
	color: #1b1464;
	text-indent: 0;
	font: bold 1.2em 'Droid Serif';
	}

#submit:hover {
	background-color: #8cc63f;
	border: 2px solid #fcee21;
	}

#footer {
	height: 45px;
	line-height: 45px;
	clear: both;
	text-align: right;
	}

.social {
	float: left;
	padding-left: 0;
	width: 383px;
	display: flex;
	justify-content: center;
}

.social li {
	list-style-type: none;
	width: 32px;
	height: 32px;
	margin: 0 5px;
}

.social a {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.social a:hover {
	filter: grayscale(100%);
}

#footer p {
	float: right;
	width: 570px;
	text-align: right;
	font-size: .8em;
	color: #666;
	}

	@media (max-width: 900px) {

		#wrapper {
			width: 100%;
			display: flex;
			flex-flow: column nowrap;
			justify-content: center;
		}
		#wrapper > div {
			width: 100%;
		}
		#wrapper > div, #deal > div, #form > div {
			position: static;
			float: none;
			background-position: center;
			margin: 5px auto;
		}

		#logo {
			order: 1;
		}

		#deal {
			order: 3;
		}

		#main_img {
			order: 3;
		}

		#form {
			order: 4;
		}

		#form > div {
			border-color: #ffed46;
		}

		#footer {
			order: 5;
		}

		#footer p, .social {
			float: none;
			text-align: center;
			width: 100%;
		}
	}
