// Copied from Font-Awesome.less so we don't have to compile it with everything else used to add
// icons without resorting to placing the <i> tag (or other elements) into the markup, for example:
// a.element-with-icon {
//		.fa;
//		&:before {
//			.icon-before;
//			content: "\f112";
//		}
// 	}

.fa {
  display: inline-block;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-before {	// For icons added immediately before the element targeted
	  margin-right: .25em;
	  color: @brand-primary;
}



//
// Images
// --------------------------------------------------
.mura-asset {
	padding: 1em 0;
}


.thumbnail,
.img-thumbnail {
  .box-shadow(0 1px 2px rgba(0,0,0,.075));
}

figure {
	display: table;

	img {
		display: block;
		max-width: 100%;
	}
}

figcaption {
	display: table-caption;
	caption-side: bottom;
	padding: 0 0.5em 0.5em;
	margin-top: 0.75em;
	font-size: 0.9em;
	font-style: italic;
	text-align: left;
}

.image-left {
	float: left;
	padding: 0;
	margin: 0 1em 0.75em 0;
}
.image-right {
	float: right;
	padding: 0;
	margin: 0 0 0.75em 1em;
}
.image-center {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	text-align: center;
}

.image-center figure,
.image-center img{
	margin-left: auto;
	margin-right: auto;
}

.embeddedContent {
	margin: 1em;
}



// Undo rounded corners in static and fixed navbars
.navbar-static-top,
.navbar-fixed-top,
.navbar-fixed-bottom {
  border-radius: 0;
}

// End Bootstrap 3 Defaults

//
// Mura-Specific Styles
// --------------------------------------------------

//
// Font Awesome
// --------------------------------------------------
ul.the-icons, ul.icons {
	list-style-type: none;
	margin-left: 2em;
	text-indent: -0.8em;
}
a#logout {
	float: right;
}

img {
	height: auto;
	max-width: 100%;
}

//
// Navigation
// --------------------------------------------------
#navArchive, #navMultilevel, #navPeer, #navPortal, #navSequential, #navStandard,
#navSub, .mura-tag-cloud, .mura-favorites-list, .mura-page-tools {
	margin-bottom: @line-height-base;
}

.navbar-wrapper {
  position: relative;
  z-index: 15;

  .navbar {

		.navbar-form {
			padding:0 0 0 0;
		}

		.nav > li { position: relative; }

		.navbar-nav {
			margin-left: 0;
			margin-right: 0;
		}
	}
}

.nav {
	margin-bottom: 0;
}


// Dropdowns
.dropdown-menu { margin-top: 0; }


.nav li:hover .dropdown-menu {
    display: inline-block;
    //Second Level Flyouts

    ul.dropdown-menu {
	    display: none;
		}
	.dropdown-submenu:hover > ul.dropdown-menu {
	    display: block;
		}
	}

// Indexes
.mura-index {
	padding-top: 0;
	border-top: 0;
	margin-top: 0;

	dl {
		border-bottom: 1px solid @gray-lighter;
		padding-bottom: 12px;
		margin: 0 0 12px;
		//border-bottom: 1px solid #eee;
		float: left;
		width: 100%;
	}

	dt.releaseDate {
		font-size: 12px;
		margin-bottom: .25em;
		line-height: 1;
	}

	dd {
		margin-left: 0;
	}
}

// Utilities
.comments, .tags, .rating {
 	font-size: 12px;
 	line-height: 12px;
}

.pagination {
	margin: 24px 0 18px !important;

	 a { padding: 0 14px; }
}

//
// Homepage-Specific Styles
// --------------------------------------------------
#homepage {
	.carousel {
		margin-bottom: 1em;
		margin-top: -20px; //-91px

		.row {
			margin: 0;
			padding: 0;

			&.item {
				.container {
					position: relative;
					width: 100%;
					height: 100%;
					background-color: rgba(50,50,50, 0.2);
				}
			}
		}

		.carousel-caption {
			z-index: 10;
			// background-color: rgba(50,50,50, 0.5);
			padding: 0 2em 2.5em;

			h3 a {
				color: @gray-lighter;
				font-weight: 400;
				text-transform: uppercase;
				font-size: 35px;

				&:hover, &:focus {
					text-decoration: none;
				}
			}

			a {
				.transition(all, 0.3s, ease-in);
				&:hover {
					text-decoration: none;
				}

				&.btn {
					background-color: transparent;
					color: @gray-lighter;
					border-radius: 0;
					border: 2px solid @gray-lighter;
					&:hover, &:focus {
						background-color: @gray-lighter;
						color: @gray-dark;
					}
				}
			}
		}

		.item {
			height: 500px;
			background-color: @gray;
			img {
				position: absolute;
				top:0;
				left:0;
				min-width: 100%;
			}
		}
	}

	.promos > div { text-align: center; }
}

div[data-cssclass="home-news"] {
	padding: 2em 0 0 0;

	.mura-object-meta {
		text-align: center;
	}

	.mura-collection-item {
		.mura-item-content {
			a {
				.transition(all, 0.3s, ease-in);
				&:hover {
					opacity: 0.8;
				}
			}
		}

		.mura-item-meta {
			a {
				color: @gray-darker;
				.transition(all, 0.3s, ease-in);

				&:hover {
					text-decoration: none;
					color: @gray-light;
				}
			}

			div[class^="mura-item-meta_"] {
				margin: 1em 0 0 0;
			}

			.mura-item-meta__date {
				color: @gray-light;
			}

			.mura-item-meta__title {
			}

			.mura-item-meta__summary {
			}

			.mura-item-meta__credits {
				color: @gray-light;
			}
		}
	}
}

.home-title {
	text-align: center;
	h2 {
		color: @gray;
	}
	h3 {
		&.subtitle {
			color: @gray-light;
			font-style: italic;
		}
	}

}

.home-box {
	margin: 4em 0;
	text-align: center;

	i.home {
		font-size: 44px;
		display: inline-block;
		width: 90px;
		height: 90px;
		line-height: 90px;
		text-align: center;
		border-radius: 50%;
		border: 1px solid @gray-light;
		color: @gray-light;
		.transition(all, 0.3s, ease-in);
	}

	&:hover i.home {
		border-color: @gray;
		background-color: @gray;
		color: white;
	}
}



//
// Headings
// --------------------------------------------------

aside {
	h1, h2, h3, h4, h5, h6 {
		margin: 0 0 0.5em 0;
		line-height: 1.1;
	}
	h1 { font-size: 36px; }
	h2 { font-size: 22px; }
	h3 { font-size: 18px; }
	h4 { font-size: 16px; }
	h5 { font-size: 14px; }
	h6 { font-size: 12px; }
}

.navArchive {
	h2, h3 {
		margin-bottom: 0;
	}
}


//
// Miscellaneous
// --------------------------------------------------

a.menu:after, .dropdown-toggle:after {
  content: none;
}

.well ul, .well ol, ul.well, ol.well {
	list-style-type: none;
	margin-bottom: 0;
	li {
		a {
			display: block;
			padding: 2px 0 4px;
		}
	}
}

.content{
	img{
		height: auto !important;
	}
}

.mura-index, .mura-tag-cloud, .mura-session-tools, .mura-favorites-list {
	ul, ol {
		-webkit-padding-start: 0;
		padding-left: 0;

		&.navSecondary {
			li {
				margin: 0 0 0.5em 0;
			}
		}
	}
}

.mura-search-again p {
	padding: @alert-padding;
	margin-bottom: @line-height-computed;
	border: 1px solid transparent;
	border-radius: @alert-border-radius;
	background-color: @alert-info-bg;
	border-color: @alert-info-border;
	color: @alert-info-text;
}

// Sidebar Nav
// -------------------------
@offsetValue: 15px;

.outdent(@multiplier:1) {
	margin-left: -@offsetValue*@multiplier;
	margin-right: -@offsetValue*@multiplier;
}

.indent(@multiplier:1) {
	padding-left: @offsetValue*@multiplier;
	padding-right: @offsetValue*@multiplier;
}

// Nested ULs need to go full width
.nav-list {

	li.active ul {
		padding: 0;
	}

	li li a.active {
		background: transparent;
		color: @link-color;
		text-shadow: 0 0 0;
	}

	// Anchors need to be fullwidth but padded
	li.active li a {
		.indent(2);
	}

	li.active li li a {
		.indent(3);
	}

	li.active li li li a {
		.indent(4);
	}

	li.active li li li li a {
		.indent(5);
	}

	li.active li.active a,
	li.active li.active a:hover {
		background: transparent;
		color: @link-hover-color;
		text-shadow: 0 0 0 transparent !important;
	}

}
// @end .nav-list

.moreResults {
	// .well;
	.clearfix;
	border-radius: 6px;
	//.make-row();

	dt {
		font-size: 12px;
		font-weight: normal;
	}

	> p {
		.pull-left;
		margin: 0.5em 0;
		}

	> ul {
		.pull-right;
		whitespace: nowrap;

		&.pager {
			margin: 0;
		}

		> li {
			display: inline-block;

			> a {
				&:hover {
					background-color: @gray-light;
					color: #fff;
				}
			}
		}
	}

}

li.form ol, .mura-tag-cloud ol {
	list-style: none;
	margin: 0;
}

.mura-tag-cloud a {
	&.tag {
		color: @link-color;
		&:hover {
			color: @link-hover-color;
		}
	}

}

.pagination {
	margin: 24px 0 18px !important;

	 a {
		padding: 0 14px;
	}
}

.mura-slideshow {
	dt {
		margin-bottom: 0.25em;
		&.releaseDate {
			font-size: 12px;
		}
		&.title {
			font-size: 22px;
		}
	}
}

ol.mura-pager {
	text-align: center;

	li {
		margin:0 .25em;
		display:inline-block;
		*display:inline;
		background: #eee;

		&.activeLI {
			a {
				background: #08c;
				color: #fff;
			}
		}
	}
}


/* CALENDAR
===================================== */
.mura-calendar {
	text-align: center;

	table {

		thead {
			background: @gray-lighter;

			th, th a {
				line-height: 1.5;
				padding: .5em;
				text-align: center;
			}
		}

		td, th {
			border-collapse: collapse;
			border: 0;
			font-size: 12px;
		}

		table #previousMonth a,
		table #nextMonth a {
			font-weight: normal;
			font-size: 150%;
			line-height: 1.1;
			padding: 0;
		}

		.table tbody tr:hover td,
		.table tbody tr:hover th {
			background: @body-bg;
		}
	}
}

.mura-calendar-nav {
	th {
		line-height: 1;
		padding: 0;

		a {
			line-height: 1;
			padding: 2px 2px 4px;
		}
	}
}

//end CALENDAR

.table-bordered {
	th, td {
		border-left: 1px solid #ddd;
	}
}

.table {
	th, td {
		padding: 8px;
		line-height: 18px;
		text-align: left;
		vertical-align: top;
		border-top: 1px solid #ddd;
	}
}

/* @group Globals - Forms
===================================== */

form {

	legend+p {
		line-height: 1.2;
	}

	legend+ul, legend+ol {
		padding-top: 1em;
	}

	ol, ul {
		margin: 0;

		li {
			list-style: none;
		}
	}

}

.well form {
	margin-bottom: 0;
}

form:not(.navbar-form) {

	// input, select, textarea {
	// 	max-width: 500px;
	// }

	ol {
		li.control-group, li.form-group {
			label {
				input {
					height: auto;
					margin-top: .35em;
					width: auto;
				}
			}
		}
	}

	.mura-control-group{
		label.checkbox {
			input {
				height: auto;
				margin-top: .35em;
				width: auto;
			}
		}
	}
	.control-group, .form-group {
		.controls {
			label.checkbox {
				input {
					height: auto;
					margin-top: .35em;
					width: auto;
				}
			}
		}
	}
	label {
		.help-inline {
			font-weight: normal;
			vertical-align: top;
		}
	}
}

.sidebar input.text,
.sidebar textarea,
.sidebar select {
	width: 95%;
	}

.req label {
	background: none;

	&:after {
		content: " *";
    	color: red;
    }
}

p.required {
	display: inline-block;
    margin-bottom: 1em !important;
	background: none;

	&:before {
		content: "* ";
    	color: red;
	}
}


.req ins {
	position: absolute;
	left: -9999px;
}

/* @end Globals - Forms - Required Fields
-------------------------------- */

.force-block {
	display: block !important;
	float: none;
	clear: both;
}

// Ratings
section {
	.mura-index {
		.credits, .comments, .tags, .rating {
			line-height: 20px; // acommodate height of stars
		}
	}
}

.rating {
	background-position: 0 50%;
	min-height: 20px;
}

// SEARCH

.navbar-form .form-control {
    width: 100%; // fix issue with Bootstrap 3.1
}

.mura-search-results {

	.well {
		padding: 0.5em;
		margin: 0;
		p {
			padding: 0;
			margin: 0;
		}
	}

	.mura-index {
		border:none;
	}

	.mura-search-again {
		padding: 0;
		margin: 0 -15px;
	}

}

.center {
	text-align: center;
}

// COMMENTS

.mura-comments {

	> .mura-comment-sort-container,
	.mura-comment-more-comments-container {
		margin-bottom: @line-height-computed;
		}

	dl:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	dt > em {
		font-weight: normal;
		font-style: italic;
	}

	#mura-comment-post-comment legend {
		border: 0;
	}

	dd {

		&.mura-comment-reply {
			.fa;

			&:before {
			  .icon-before;
			  content: "\f112";
			}
		}

		&.mura-comment-spam {
			.fa;

			&:before {
			  .icon-before;
			  content: "\f05e";
			}
		}

		&.mura-comment-post-reply {
		}


	}
}

// FONT AWESOME EXAMPLE PAGE
.fontawesome-icon-list {
	[class*="span"] {
		float:left;
		min-height:1px;
		margin-left: 30px;
	}

	.text-muted {color:#999;}

	.fa-hover a {
		display:block;
		color: #222;
		line-height: 32px;
		height: 32px;
		padding-left: 10px;
		text-decoration: none;
		-webkit-border-radius: 4px;
		-moz-border-radius: 4px;
		border-radius: 4px;

		cursor:auto;

		.fa {
			width: 32px;
			font-size: 14px;
			display: inline-block;
			text-align: right;
			margin-right: 10px;
		}

		&:hover {
			background-color: #428bca;
			color: #fff;

			.text-muted { color: #fff;}
			i.fa {
				font-size: 28px;
				vertical-align: -6px;
			}
		}

	}
}

// BOOTSTRAP THEME 'EXAMPLE' PAGE
.theme-showcase {
	.theme-dropdown .dropdown-menu {
		display: block;
		position: static;
		margin-bottom: 20px;
	}

	&> p > .btn {
		margin: 5px 0;
	}
}


footer {
	&.footer-wrapper {
		background-color: @gray-darker;
		color: @gray-lighter;
		color: white;
		margin: 4em 0 0 0;

		a {
			color: @gray-lighter;
		}

		.footer-top {
			padding: 1em 0;
			margin: 3em 0;

			.nav {
				>li {
					>a {
						.transition(all, 0.3s, ease-in);
						&:hover, &:focus {
							background-color: @gray-dark;
						}
					}
				}
			}

			.nav-social {
				font-size: 1.5em;
				li {

					a {
						background-color: @gray-light;
						padding: 4px 12px;
						margin: 0 0.25em 0 0;
						.transition(all, 0.3s, ease-in);

						&:hover {
							background-color: @gray;

							&.github {
								background-color: white;
								color: black;
							}

							&.facebook {
								background-color: @facebook;
							}

							&.twitter {
								background-color: @twitter;
							}

							&.google {
								background-color: @google;
							}

							&.linkedin {
								background-color: @linkedin;
							}
						}


					}
				}
			}
		}

		.footer-bottom {
			padding: 1em 0 0 0;
			margin: 1em 0 0 0;
			border-top: 1px solid @gray-dark;
			font-size: 0.8em;

			.breadcrumb {
				background-color: @gray-darker;
			}

			a {
				.transition(all, 0.3s, ease-in);
				&:hover {
					color: @gray-light;
					text-decoration: none;
				}
			}

			.scroll-top {
				border: 1px solid @gray;
				position: absolute;
				right: 0px;
				a {
					&:hover {
						background-color: @gray-lighter;
						color: @gray-darker;
						border-radius: 0;
					}
				}
			}
		}
	}
}

// Prettify
ol.linenums {
	margin-left: -10px !important;
}
