/* -----------------------------------------
	01. General
----------------------------------------- */

/* Basic Typography
=================================== */
body {
	line-height: 1.5;
	font-size: 16px;
	background-color: #242424;
	color: $text-color;
	font-family: $primary-font;
	font-weight: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	line-height: normal;
	margin: 0 0 15px 0;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
	font-weight: normal;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

p {
	margin: 0 0 15px 0;
}

img {
	display: inline-block;
	vertical-align: middle;
	max-width: 100%;
	height: auto;
}

a {
	transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
	outline: none;
	color: $primary-color;
	text-decoration: none;

	&:hover,
	&:focus {
		color: lighten($primary-color, 10%);
		outline: none;
		text-decoration: none;
	}

	&:active {
		outline: none;
	}
}

.group {
	@include clearfix();
}

/* General Element Styling
=================================== */

/* Reset figure margin from normalize.css */
figure {
	margin: 0;
}

/* Lists */
ul, ol {
	padding-left: 20px;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

dl {
	margin: 0 0 20px;
}

dt {
	font-weight: bold;
}

dd {
	margin: 0 0 15px;
}

/* Blockquotes */
blockquote {
	margin: 20px 0;
	padding-left: 15px;
	border-left: 3px solid #ccc;
	font-size: 17px;
	font-weight: 300;

	cite {
		display: block;
		font-weight: bold;
		font-style: italic;
		margin: 10px 0 0;
		font-size: 14px
	}
}

/* Tables */
table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
}

.entry-content {
	table {
		border-width: 1px 0 0 1px;
		margin-bottom: 24px;

		a {
			color: #FFF;
		}
	}

	th,
	td {
		border-bottom: 1px solid $border-color;
	}

	caption,
	th,
	td {
		font-weight: normal;
		text-align: left;
		padding: 5px 15px;
		vertical-align: middle;
	}

	th {
		border-width: 0 1px 1px 0;
		font-weight: bold;
		text-transform: uppercase;
		font-size: 85%;
		background-color: $primary-color;
	}

	td {
		border-width: 0 1px 1px 0;
	}
}

/* Code */
code, kbd, tt, var, samp, pre {
	font-family: monospace, serif;
	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
	font-style: normal;
}

pre {
	padding: 15px;
	border: 1px solid rgba(0,0,0,0.1);
}

/* Various */
address {
	margin: 0 0 15px;
}

.sr-only,
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0,0,0,0);
	border: 0;
}

select {
	color: #333;
}

/* Embeds and iframes
=================================== */

embed,
iframe,
object,
video,
audio {
	margin-bottom: 15px;
	max-width: 100%;
	border: none;
}

p > embed,
p > iframe,
p > object,
p > audio,
span > embed,
span > iframe,
span > object,
span > audio {
	margin-bottom: 0;
}

#map *,
#event_map * {
	max-width: none !important;
}


/* General Form Styling
=================================== */

label {
	display: block;
	margin: 0 0 5px;
	font-weight: normal;
}

input,
textarea {
	display: inline-block;
	width: 100%;
	max-width: 100%;
	height: 67px;
	padding: 10px 15px;
	box-shadow: none;
	line-height: normal;
	border: 1px solid $border-color;
	background-color: transparent;
	background-image: none;
	border-radius: 0;
	font-size: 18px;
	transition: all 0.18s ease;

	&:hover,
	&:focus {
		border-color: $primary-color;
		outline: none;
	}

	@media ( max-width: $screen-xs-max ) {
		width: 100%;
	}
}

input[type="search"] { /* Restoring box-sizing */
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

textarea {
	height: auto;
}

select {
	max-width: 100%;
}

input[type="checkbox"],
input[type="radio"] {
	margin: 4px 0 0;
	margin-top: 1px \9; // IE8-9
	line-height: normal;
	width: auto;
	height: auto;
}

fieldset {
	margin: 0 0 15px;
	padding: 0;
	border: none;
	min-width: 0;
}

/* Placeholder text color */
@include placeholder {
	color: rgba($text-color, 0.5);
	font-weight: normal;
	opacity: 1;
}


/* Buttons
=================================== */

.btn,
input[type="button"],
input[type="submit"],
input[type="reset"],
button,
.button{
	display: inline-block;
	font-weight: bold;
	font-size: 14px;
	margin: 0;
	width: auto;
	height: auto;
	line-height: normal;
	border: none;
	box-shadow: none;
	border-radius: 0;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	background-image: none;
	white-space: nowrap;
	padding: 11px 16px 10px;
	background-color: $primary-color;
	color: #FFF;
	transition: 0.18s background-color ease, color 0.18s ease,  0.18s border-color ease;
	-webkit-user-selsect: none;
	-moz-user-select: none;
	user-select: none;
	text-transform: uppercase;

	&:active {
		outline: none;
	}

	&:hover {
		background: darken($primary-color, 8%);
		color: #FFF;
		text-decoration: none;
	}

	&:focus {
		outline: none;
		color: #FFF;
	}

	i {
		margin-right: 5px;
	}

	&.btn-xs {
		font-weight: normal;
		font-size: 12px;
		padding: 7px 12px 6px;

		i {
			margin-right: 3px;
		}
	}

	&.btn-lg {
		font-size: 16px;
		padding: 13px 24px 13px;

		i {
			margin-right: 7px;
		}
	}
}


/* Flexslider Overrides
=================================== */

.flexslider {
	margin: 0;
	padding: 0;
	box-shadow: none;
	border-radius: 0;
	border: 0;

	.slides li:after {
		content: " ";
		position:absolute;
		top:0;
		left:0;
		z-index:-1000;
	}
}

@-webkit-keyframes scaleout {
	0% { -webkit-transform: scale(0.0) }
	100% {
		-webkit-transform: scale(1.0);
		opacity: 0;
	}
}

@keyframes scaleout {
	0% {
		transform: scale(0.0);
		-webkit-transform: scale(0.0);
	} 100% {
			transform: scale(1.0);
			-webkit-transform: scale(1.0);
			opacity: 0;
		}
}

.flex-direction-nav a {
	width: 40px;
	height: 40px;
	top: 50%;
	margin: -20px 0 0 0;
	opacity: 0.7;
	color: #FFF;
	line-height: normal;

	&:hover {
		color: #FFF;
		opacity: 1;
	}

	&:before {
		font-family: FontAwesome;
		content: '\f053';
		font-size: 34px;
	}

	&.flex-next:before {
		content: '\f054';
	}

	&.flex-next {
		right: 10px;
	}

	&.flex-prev {
		left: 10px;
	}
}

.flexslider .slides > li:first-child {
	display: block; /* Display flexslider's first item no matter if its loading or not */
	-webkit-backface-visibility: visible;
}

.flexslider.loading .slides > li:first-child {
	opacity: 1 !important; /* Remove the fade in/out animation when the slider loads */
}
