/* imports */
@import url('https://fonts.googleapis.com/css?family=Anton');

/* layout */
body {
	background-image: url(../img/noise.png);
}
header {
	padding: 64px 0 0;
}
section {
	position: relative;
	padding: 50px 0;
}
section.bg-light {
	border-top: 1px solid #d2d2d2;
	border-bottom: 1px solid #d2d2d2;
}
section.bg-light:before,
section.bg-light:after {
	display: block;
	content: "";
	position: absolute;
	width: 40px;
	height: 10px;
	bottom: -10px;
	left: 50%;
	margin-left: -10px;
	border-style: solid;
	border-color: #ccc transparent;
	border-width: 10px 20px 0 20px;
}
section.bg-light:after {
	bottom: -9px;
	border-color: #f8f9fa transparent;
}

/* helpers */
a.navbar-brand > h1 {
	color: inherit;
	font-size: inherit;
	padding: inherit;
	margin: inherit;
}
img.header-logo {
	display: inline-block;
	width: 512px;
	max-width: 100%;
	height: auto;
}
.font-anton {
	font-family: 'Anton', sans-serif;
}
.auto-scroll-x {
	position: relative;
	overflow-x: auto;
	overflow-y: visible;
}

/* normalizing image container */
.normalize-image-wrapper {
	position: relative;
	padding-bottom: 60%;
}
.normalize-image-container {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	overflow: hidden;
	text-align: center;
}
.normalize-image-container img {
	display: inline-block;
	min-height: 100%;
	max-height: 100%;
	width: auto;
}

/* animated banner */
.bg-fair-weather {
	background-image: url(../img/grass.png), url(../img/clouds.png);
	background-position: center bottom, 50% -140px;
	background-repeat: repeat-x, repeat-x;
	background-color: rgba(3, 200, 244, 1);
}
.bg-hover-rain {
	position: relative;
	-webkit-transition: background-color 2s, background-position 2s;
	-moz-transition: background-color 2s, background-position 2s;
	transition: background-color 2s, background-position 2s;
}
.bg-hover-rain:hover {
	background-color: rgba(96, 125, 139, 1);
	background-position: center bottom, 50% -60px;
}
.bg-hover-rain:after {
	display: block;
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	background-image: url(../img/rain.png);
	-webkit-transition: opacity .2s;
	-moz-transition: opacity .2s;
	transition: opacity .2s;
	pointer-events: none;
}
.bg-hover-rain:hover:after {
	-webkit-animation: rain 2s linear infinite;
	-moz-animation: rain 2s linear infinite;
	animation: rain 2s linear infinite;
	opacity: 1;
}
@keyframes rain {
	from {
		background-position: 256px 0px;
	}
	to {
		background-position: 0px 768px;
	}
}

/* media queries */
@media (min-width: 992px) {
	header {
		padding: 66px 0 0;
	}
}