/*! 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
   ========================================================================== */
* {
	box-sizing: border-box;
}

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
   ========================================================================== */

a {
   	text-decoration: none;
	color: #FF2C33;
}

#main-header,main,#main-footer {
	max-width: 1140px;
	margin: 0 auto;
}

#main-header a {
	color: #777;
}

#main-header h1 {
	float: left;
	text-align: center;
}

#main-header h1:before {
	content: url('../../img/number-one.png');
	position: relative;
	margin: 10px;
	top: 10px;
}

#main-header .contact-info {
	display: block;
	float: right;
	padding: 28px 5px;
	font-size: 80%;
	color: #555;
}

main {
	clear: both;
}

main h1,main h2,main h3,main h4 {
	color: #4552a1;
	text-shadow: 1px 1px 1px #888;
}

.img-prty {
	box-shadow: 0px 0px 3px #666;
}

.img-responsive {
	width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.slicknav_menu {
	display: none;
}


#main-nav {
	flex: 1 100%;
}

#main-nav ul {
	display: flex;
	justify-content: center;
	flex-flow: row wrap;
	margin: 0px;
	padding: 0;
	position: relative;
}

#main-nav ul li {
	flex: 0 1 auto;
	list-style: none;
	text-transform: uppercase;
	display: block;
	position: relative;
}

#main-nav a {
	display: block;
	color: #4552a1;
	padding: 8px 15px;
}

#main-nav .active a {
	font-weight: bold;
}

#main-nav li:hover {
	background-color: #4552a1;
}

#main-nav li:hover a {
	color: #fff;
}

#main-nav .submenu {
	display: none;
	position: absolute;
	width: 100%;
}

#main-nav > ul > li:hover > ul {
	display: block;
}

#main-nav .submenu > li:hover > .submenu {
	display: block;
}

#main-nav .submenu > li {
	background-color: #f5f5f5;
}

#main-nav .submenu > li:hover {
	background-color: #fff;
}

#main-nav .submenu > li > a {
	color: #333;
}


.flex {
	display: flex;
	flex-flow: row wrap;
}


.flex section {
	flex: 1 100%;
}

section {
	padding: 10px;
}

#hero {
	/*background: url('../../img/hero2.jpg') no-repeat;*/
	position: relative;
	min-height: 300px;
	background-size: 108%;
}

#hero img {
	width: 100%;
}

#hero .carousel-item {
	left: 0px;
	height: 100%;
	opacity: 0;
	width: 100%;
	position: absolute;
	transition: opacity 2s;
	top: 0px;
}

#hero .carousel-item img {
	height: 100%;
	width: 100%;
}

#hero .active-carousel-item {
	opacity: 100;
}

.carousel-paused::after {
	content: "\23F8";
	position: absolute;
	bottom: 0px;
	right: 0px;
	z-index: 1000;
	color: #fff;
	background-color: rgba(0,0,0,0.5);
	padding: 3px 5px;
}


#hero .hero-banner {
	font-size: 200%;
	position: absolute;
	text-align: right;
	top: 1px;
	right: 1px;
	font-style: italic;
	text-shadow: 0px 0px 10px #000;
	color: #fff;
	z-index: 100;
}

#hero .hero-link-text {
	position: absolute;
	bottom: 0px;
	color: #fff;
	background-color: rgba(0,0,0,0.5);
	left: 0px;
	text-align: center;
	width: 100%;
	padding: 10px;
}

#booking-form .flex-wrapper {
}


#booking-form .pickup_controls, #booking-form .dropoff_controls {
}

#booking-form {
	background-color: #4552a1;
	padding: 5px;
	text-align: center;
	position: relative;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

#booking-form h1 {
	color: #fff;
	margin: 10px 0px -10px 0px;
}

#booking-form > form > div {
	padding: 7px;
	margin: 5px;
	color: #fff;
}

#booking-form input, #booking-form select {
	margin-left: 10px;
	color: #000;
	border: 1px solid #ccc;
	padding: 2px;
	border-radius: 0.3em;
	background-color: #fff;
}

#booking-form input[type=text] {
	width: 200px;
}

#booking-form .date {
	width: 140px !important;
}

#booking-form .time_select {
	margin: 0;
}

#booking-form .age_select {
	margin-top: 10px;
}

#booking-form #vehicle_select {
	width: 150px;
}

#booking-form .form-honey {
	display: none;
}

#booking-form .submit_button {
	padding: 5px;
	background-color: #FF2C33;
	color: #fff;
	font-weight: bold;
	box-shadow: 0px 0px 2px #fff;
	display: block;
	margin: 10px auto 0px auto;
}

#side-hero {
	flex: 1 100%;
	background-color: #222;
	margin: 0;
	padding: 0px;
	text-align: center;
	position: relative;
	color: #fff;
}

#side-hero h2 {
	color: #fff;
	font-style: italic;
}

#side-hero ul {
	margin: 0;
	padding: 0px;
	list-style: none;
}

#side-hero ul li:first-child {
}

#side-hero ul li {
	width: 104%;
	background: #4552a1;
	padding: 20px;
	margin: 10px 0px 10px -15px;
}

.box {
	color: #444;
}


.flow-box {
	line-height: 28px;
	font-family: 'Open Sans', sans-serif;
}



.flow-box .section-heading {
	text-align: center;
	color: #4552a1;
	text-shadow: 1px 1px 1px #999;
	font-size: 110%;
}

.spruik-box {
	box-shadow: 0px 0px 5px #aaa;
	margin: 15px 15px;
	background: #f5f5f5;
	font-size: 90%;
}

.spruik-box h2 {
	color: #666;
	text-shadow: none;
	margin: 7px;
	text-align: center;
}

.spruik-box > p {
	text-align: center;
}

.spruik-box > img {
	float: left;
	width: 150px;
	height: 115px;
	padding: 5px 10px 5px 5px;
	margin-right: 20px;
}

.vehicle-info img {
	width: 250px;
}

#main-footer {
	height: 100px;
	position: relative;
}


#social-icons {
	float: left;
}

#social-icons img {
	padding-left: 10px;
	width: 58px;
}

.copyright-text {
	color: #555;
	font-weight: bold;
	padding-top: 10px;
	margin: 0px 10px 0px 0px;
	float: right;
	text-align: center;
}

.powered-by-text {
	font-size: 90%;
	margin-right: 10px;
	float: right;
	clear: right;
}

.new-badge {
	position: relative;
}

.new-badge:after {
	content: "New!";
	font-size: 12px;
	color: red;
	position: absolute;
	margin-left: 5px;
}


blockquote {
	padding: 5px 15px;
	background-color: #fff;
	border-radius: 1.5em;
	border: 1px solid #999;
	box-shadow: 0px 0px 5px 1px #666;
	position: relative;
	font-style: italic;
	font-size: 90%;
}

blockquote cite {
	color: orange;
	text-align: right;
	display: block;
}

blockquote cite:before {
	content: "- ";
}


/* ==========================================================================
   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 screen and (min-width: 1024px) {

	#main-nav ul {
		justify-content: flex-end;
	}
	#booking-form {
		flex: 1 100% !important;
	}

	#side-hero {
		flex: 1 33% !important;
		min-height: 400px;
	}

	#hero {
		flex: 2 67% !important;
	}

	.flow-box {
		flex: 1 !important;
		box-shadow: 0px 0px 5px #aaa;
		margin: 15px 15px;
		font-size: 115%;
		background: #f5f5f5;
	}

	#box-info, .box-aside {
		flex: 1 30% !important;
	}

	.spruik-box {
		font-size: 90%;
		flex: 1 45% !important;
	}

	.testimonials-wrapper {
		column-count: 2;
	}

	.testimonials-wrapper blockquote {
		display: inline-block;
	}
}

@media screen and (max-width: 500px) {
	.spruik-box > img {
		float: none;
		display: block;
		margin-right: auto;
		margin-left: auto;
	}
}

@media screen and (max-width: 400px) {
	#main-header h1 {
		font-size: 1.5em;
	}

	.slicknav_menu {
		display: block;
	}

	#booking-form .time_select {
		margin: 10px 0px;
	}

	.spruik-box h2 {
		clear: both;
	}

	.spruik-box > img {
		float: none;
		display: block;
		margin-right: auto;
		margin-left: auto;
	}
}

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@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;
    }
}
