/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.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 {
	color: #222;
	font-size: 1em;
	line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
	resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
	margin: 0.2em 0;
	background: #ccc;
	color: #000;
	padding: 0.2em 0;
}

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

@font-face {
	font-family: 'ProximaNova';
	src: url('fonts/proximanova_semibold/proximanova-sbold-webfont.eot');
	src: url('fonts/proximanova_semibold/proximanova-sbold-webfont.eot?iefix') format('eot'),
	  url('fonts/proximanova_semibold/proximanova-sbold-webfont.woff') format('woff'),
	  url('fonts/proximanova_semibold/ProximaNova-Sbold-webfont.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
 }

@font-face {
	font-family: 'ProximaNova';
	src: url('fonts/proximanova_extrabold/proximanova-xbold-webfont.eot');
	src: url('fonts/proximanova_extrabold/proximanova-xbold-webfont.eot?iefix') format('eot'),
	  url('fonts/proximanova_extrabold/proximanova-xbold-webfont.woff') format('woff'),
	  url('fonts/proximanova_extrabold/proximanova-xbold-webfont.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
 }

*{
	font-family: 'ProximaNova';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

section.creative{
	background: #011d4c;
	float: right;
	height: 146px;
	width: 38%;
	display: flex;
	align-items: right;
	justify-content: center;
}
	section.creative img{
		max-width: 100%;
		max-height: 146px;
	}

section.vehicle-name{
	background: #fff;
	float: left;
	height: 146px;
	width: 62%;
	display: flex;
	align-items: center;
	justify-content: center;
}
	section.vehicle-name h1{
		color: #222224;
		font-size: 42px;
		text-transform: uppercase;
		margin: 0;
		line-height: 32px;
		width: 100%;
		font-weight: bold;
	}
	section.vehicle-name h1 span{
		font-size: 30px;
	}
	section.vehicle-name h1 .small{
		font-size: 14px;
	}
	section.vehicle-name h2{
		color: #22224;
		margin: 0;
		font-size:38px;
		font-weight: bold;
		text-transform:uppercase;
	}
	section.vehicle-name h2 span{
		color: #fff;
	}
	section.vehicle-name h2 span.feature{
		color: #3c3b70;
	}
section.vehicle{
	width: 62%;
	float: left;
}
section.vehicle-image{
	background: url('../img/vehicle-img.jpg') no-repeat left center;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	position: relative;
	height: 284px;
}
	section.vehicle-image .event-badge{
		position: absolute;
		bottom:0;
		left:0;
	}
section.accolade{ 
	background:#339eff;
	height: 65px;
	display: flex;
	align-items: center;
	justify-content: center;
}
	section.accolade p{
		color: #fff;
		margin: 0;
		font-size: 16px;
		font-weight:bold;
		line-height: 16px;
		text-align: center;
		text-transform: uppercase;
		vertical-align: middle;
	}
section.form{
	background:#fc3232;
	float: right;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38%;
	height: 349px;
}
	section.form h3{
		color:#fff;
		font-size: 20px;
		width: 90;
		margin: 0;
		margin-bottom: 22px;
		text-align: center;
		text-transform: uppercase;
	}
	section.form form{
		width: 90;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	section.form form > div{
		width: 100%;
	}
	section.form .text-input{
		background: rgb(255,255,255);
		height: 40px;
		width: 94%;
		padding:0 3%;
		display: flex;
		align-items: center;
		justify-content: center;
		color:#000;
	}
	section.form .text-input + .text-input{
		margin-top: 10px;
	}
	section.form .text-input label{
		width: 40%;
		font-weight: 900;
	}
	section.form .text-input input{
		width: 60%;
		border: none;
		outline: none;
	}
	section.form input[type='submit']{
		background: #011d4c;
		border-radius: 10px;
		border:none;
		color: #fff;
		width: 100%;
		margin-top: 20px;
		padding: 12px 0;
		text-transform: uppercase;
		font-weight: 900;
		-webkit-transition: all 200ms cubic-bezier(0.250, 0.100, 0.250, 1.000);
		   -moz-transition: all 200ms cubic-bezier(0.250, 0.100, 0.250, 1.000);
			 -o-transition: all 200ms cubic-bezier(0.250, 0.100, 0.250, 1.000);
				transition: all 200ms cubic-bezier(0.250, 0.100, 0.250, 1.000); /* ease (default) */

		-webkit-transition-timing-function: cubic-bezier(0.250, 0.100, 0.250, 1.000);
		   -moz-transition-timing-function: cubic-bezier(0.250, 0.100, 0.250, 1.000);
			 -o-transition-timing-function: cubic-bezier(0.250, 0.100, 0.250, 1.000);
				transition-timing-function: cubic-bezier(0.250, 0.100, 0.250, 1.000); /* ease (default) */
	}
	section.form input[type='submit']:hover{
		background: #666;
	}
section.offer{
	text-align: center;
}
	section.offer img{
		margin: 30px auto;
		max-width: 90%;
	}
	section.offer h3{
		color: rgb(235,42,42);
		font-size: 150px;
		line-height: 50px;
		margin: 80px auto 40px auto;
	}
	section.offer h3 span{
		font-size: 40px;
		line-height: 25px;
		color: #000;
	}
	section.offer h3 span.red{
		color: rgb(235,42,42);
	}
	section.offer h3 span.small{
		font-size: 15px;
		text-transform: uppercase;
	}
	section.offer h3 span.gray{
		color: #B7B7B7;
	}
	section.offer .preowned {
		background: #D6DEE1;
		padding: 10px 0;
		margin-bottom: 20px;
	}
	section.offer .preowned h3{
		margin: 0px auto 60px auto;
	}
footer{
	text-align: center;
	width: 96%;
	padding: 0 2%;
}
	footer .buttons{
		width: 100%;
	}
	footer .buttons a{
		border-radius: 10px;
		font-size: 14px;
		font-weight: 900;
		color: #fff;
		text-decoration: none;
		text-transform: uppercase;
		padding: 24px 0;
		margin: 0.5%;
		width: 23%;
		display: inline-block;
		background: #011d4c;
		-webkit-transition: all 200ms cubic-bezier(0.250, 0.100, 0.250, 1.000);
		   -moz-transition: all 200ms cubic-bezier(0.250, 0.100, 0.250, 1.000);
			 -o-transition: all 200ms cubic-bezier(0.250, 0.100, 0.250, 1.000);
				transition: all 200ms cubic-bezier(0.250, 0.100, 0.250, 1.000); /* ease (default) */

		-webkit-transition-timing-function: cubic-bezier(0.250, 0.100, 0.250, 1.000);
		   -moz-transition-timing-function: cubic-bezier(0.250, 0.100, 0.250, 1.000);
			 -o-transition-timing-function: cubic-bezier(0.250, 0.100, 0.250, 1.000);
				transition-timing-function: cubic-bezier(0.250, 0.100, 0.250, 1.000); /* ease (default) */
	}
	footer .buttons a:hover{
		background: rgb(84,83,99);
	}
	footer p{
		font-size: 9px;
		text-transform: uppercase;
	}








/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 */

.hidden {
	display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
	clip: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	position: static;
	width: auto;
}

/*
 * Hide visually and from screen readers, 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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 890px) {
	section.creative {
		float: none;
		height: 146px;
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	section.vehicle-name {
		background: rgb(235,42,42);
		float: none;
		height: 86px;
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
		section.vehicle-name h1{
			text-align: center;
			font-size: 30px;
			line-height: 20px;
		}
		section.vehicle-name h1 span{
			font-size: 18px;
		}
		section.vehicle-name h2{
			text-align: center;
			font-size: 18px;;
		}
	section.vehicle{
		width: 100%;
		float: none;
	}
	section.vehicle-image{
		height: 394px;
	}
		section.vehicle-image .event-badge img{
			width: 120px;
		}
	section.accolade{
		width: 96%;
		padding: 2%;
		height: 45px;
	}
	section.accolade p{
		font-size: 14px;
	}
	section.form{
		float: none;
		width: 100%;
	}
	footer{
		width: 97%;
		padding: 0 1.5%;
		margin-top: 20px;
	}
	footer .buttons a{
		padding: 14px 0;
		width: 88%;
	}
	footer p{
		margin-top: 20px;
	}

	/* Re-Ordering */
	main{
		display: table;
		width: 100%;
	}
	div.clearfix{
		display: none;
	}
	section.vehicle,section.offer{
		display: table-header-group;
	}
	section.form{
		display: table-footer-group;
	}
	section.form h3{
		margin-top: 20px;
	}
	section.form .text-input{
		display: block;
		width: 84%;
		margin: 0 auto;
		height: auto;
		padding: 12px;
	}
	section.form input[type='submit']{
		display: block;
		width: 84%;
		margin: 20px auto;
	}
}
@media only screen and (max-width: 700px) {
	section.vehicle-image{
		height: 294px;
	}
	section.offer h3{
		font-size: 100px;
	}
	section.offer h3 span {
	  font-size: 50px;
	}
}
@media only screen and (max-width: 480px) {
	section.vehicle-image{
		height: 194px;
	}
	section.offer h3{
		font-size: 80px;
		line-height: 50px;
		margin: 40px auto;
	}
	section.offer h3 span{
		font-size: 30px;
	}
}

@media print,
	   (-webkit-min-device-pixel-ratio: 1.25),
	   (min-resolution: 1.25dppx),
	   (min-resolution: 120dpi) {
	/* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
	*,
	*:before,
	*:after {
		background: transparent !important;
		color: #000 !important; /* Black prints faster:
								   http://www.sanbeiji.com/archives/953 */
		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 that are fragment identifiers,
	 * or use the `javascript:` pseudo protocol
	 */

	a[href^="#"]:after,
	a[href^="javascript:"]:after {
		content: "";
	}

	pre,
	blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}

	/*
	 * Printing Tables:
	 * http://css-discuss.incutio.com/wiki/Printing_Tables
	 */

	thead {
		display: table-header-group;
	}

	tr,
	img {
		page-break-inside: avoid;
	}

	img {
		max-width: 100% !important;
	}

	p,
	h2,
	h3 {
		orphans: 3;
		widows: 3;
	}

	h2,
	h3 {
		page-break-after: avoid;
	}
}
