/*
Theme Name: Court Seeds
Author: Gary Court
Description: Custom theme for the Court Seeds website.
Version: 1
*/


/* Bootstrap Additions */

.sidebar-nav {
    padding: 9px 0;
}

.dropdown-menu .sub-menu {
    left: 100%;
    position: absolute;
    top: 0;
    visibility: hidden;
    margin-top: -1px;
}

.dropdown-menu li:hover .sub-menu {
    visibility: visible;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.nav-tabs .dropdown-menu, .nav-pills .dropdown-menu, .navbar .dropdown-menu {
    margin-top: 0;
}

.navbar .sub-menu:before {
    border-bottom: 7px solid transparent;
    border-left: none;
    border-right: 7px solid rgba(0, 0, 0, 0.2);
    border-top: 7px solid transparent;
    left: -7px;
    top: 10px;
}
.navbar .sub-menu:after {
    border-top: 6px solid transparent;
    border-left: none;
    border-right: 6px solid #fff;
    border-bottom: 6px solid transparent;
    left: 10px;
    top: 11px;
    left: -6px;
}

/* Wordpress Styles */

.page-content img {
	max-width: 100%; /* Fluid images for posts, comments, and widgets */
}
img[class*="align"],
img[class*="wp-image-"],
img[class*="attachment-"] {
	height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
}
img.size-full,
img.size-large,
img.header-image,
img.wp-post-image {
	max-width: 100%;
	height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
}
/* Make sure videos and embeds fit their containers */
embed,
iframe,
object,
video {
	max-width: 100%;
}
.page-content .twitter-tweet-rendered {
	max-width: 100% !important; /* Override the Twitter embed fixed width */
}
/* Images */
.alignleft {
	float: left;
}
.alignright {
	float: right;
}
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.page-content img,
img.header-image,
.author-avatar img,
img.wp-post-image {
	/* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */
	border-radius: 3px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.wp-caption {
	max-width: 100%; /* Keep wide captions from overflowing their container. */
	padding: 4px;
}
.wp-caption .wp-caption-text,
.gallery-caption,
.entry-caption {
	font-style: italic;
	font-size: 12px;
	/*font-size: 0.857142857rem;*/
	line-height: 2;
	color: #757575;
}
img.wp-smiley,
.rsswidget img {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}
.entry-content dl.gallery-item {
	margin: 0;
}
.gallery-item a,
.gallery-caption {
	width: 90%;
}
.gallery-item a {
	display: block;
}
.gallery-caption a {
	display: inline;
}
.gallery-columns-1 .gallery-item a {
	max-width: 100%;
	width: auto;
}
.gallery .gallery-icon img {
	height: auto;
	max-width: 90%;
	padding: 5%;
}
.gallery-columns-1 .gallery-icon img {
	padding: 3%;
}

/* Theme Overrides */

body {
	background-color: #efcba0;
	background-image: url('img/wood_light.jpg');
}

body > .container {
	margin-top: 16px;
	margin-bottom: 32px;
	background: white;
	box-shadow: 0 2px 6px 0 black;
}

.row {
	margin-bottom: 16px;
}

@media (min-width: 992px) {
	.col-md-9 {
		padding-right: 0;
	}
}

.col-md-9:last-child {
	padding-right: 15px;
}

.navbar {
	margin: 16px 0;
	border: 0;
}

.navbar-brand {
	margin: 0;
	padding: 0;
}

.navbar-default {
	min-height: 72px;
	border-radius: 0;
	background-color: #fff;
	color: #eee;
}

.navbar-default .navbar-nav {
	border-radius: 8px;
	background-color: #204D02;
	background-image: linear-gradient(to bottom, rgba(255,255,255,0.20), rgba(255,255,255,0));
}

.navbar-default .navbar-nav > li:hover {
	/*background: linear-gradient(to bottom, rgba(255,255,255,0.20), rgba(255,255,255,0.12));*/
	background-color: rgba(255,255,255,0.12);
}

.navbar-default .navbar-nav > li > a {
	height: 72px;
	border-top: 4px solid transparent;
	line-height: 32px;
	vertical-align: middle;
	color: #eee;
}
.navbar-default .navbar-nav > li > a:hover {
	color: gold;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover {
	border-top: 4px solid gold;
	background-color: transparent;
	color: #eee;
}

.navbar-default .navbar-nav > li:first-child > a {
	border-radius: 6px 0px 0 0;
}

.navbar-default .navbar-nav > li:last-child > a {
	border-radius: 0px 6px 0 0;
}


.navbar-default .dropdown-menu {
	background: #204D02 linear-gradient(to bottom, rgba(255,255,255,0.12), rgba(255,255,255,0.12));
	border: none;
	-webkit-box-shadow: none;
	box-shadown: none;
}

.navbar-default .dropdown-menu > li > a {
	padding: 8px 20px;
	color: #fff;
}
.navbar-default .dropdown-menu > li > a:hover {
	background-color: inherit;
	color: gold;
}

.carousel {
	border-radius: 8px;
	overflow: hidden;
}

.carousel-indicators {
	bottom: 0;
	left: auto;
	right: 0;
	width: auto;
	padding: 0 20px;
}

.carousel-indicators li {
	border-color: #000;
}

.carousel-caption {
	left: auto;
	right: auto;
	text-align: left;
	font-size: 48px;
	background-color: rgba(0,0,0,0.66);
	margin-bottom: -20px;
	padding: 0 20px;
}

#carousel-news,
#carousel-featured {
	height: 256px;
}

.img-crop > img {
	/*
	position: relative;
	top: -50%;
	*/
	-webkit-transform: translate(0, -30%);
	transform: translate(0, -30%);
}

#carousel-news .img-crop {
	display: block;
	height: 256px;
}

#carousel-featured {
	padding: 8px;
	background-color: #ccc;
	background-image: linear-gradient(to bottom, #ddd, #aaa);
}

#carousel-featured img {
	width: 49px;
	height: 49 px;
}

.media-heading {
	margin: 0 0 2px 0;
}

.page-intro,
.page-header,
.page-content,
.footer {
	padding-left: 16px;
	padding-right: 16px;
}

.page-intro {
	margin-top: 16px;
	padding-top: 8px;
	font-size: 1.2em;
}

.page-header {
	margin-top: 30px;
}

.page-content .page-header {
	padding-left: 0;
	padding-right: 0;
}

.sidebar {
	margin-bottom: 16px;
	padding: 16px;
	border-radius: 8px;
	background-color: #204D02;
	background-image: linear-gradient(to bottom, rgba(255,255,255,0.20), rgba(255,255,255,0));
	color: #eee;
}

.sidebar.contact {
	background-color: #ccc;
	background-image: linear-gradient(to bottom, #ddd, #aaa);
	color: #333;
}

.sidebar .vcard-section:first-child h3,
.sidebar aside:first-child h3 {
	margin-top: 6px;
}

.contact-header {
	display: inline-block;
	width: 50px;
}

.footer {
	padding-top: 16px;
	min-height: 72px;
	border-radius: 0;
	margin-left: 0;
	margin-right: 0;
	padding-bottom: 16px;
	background-color: #ccc;
	background-image: linear-gradient(to bottom, #ddd, #aaa);
	color: #333;
}

.footer .navbar {
	margin: 0;
	text-align: center;
}

.footer .navbar > p {
	margin: 0;
}

.footer .navbar-nav {
	float: none;
	display: inline-block;
}

.footer .navbar-nav > li > a {
	padding: 4px 16px;
}
.footer .navbar-nav > li > a:hover {
	background-color: inherit;
}

.nav-next {
	float: right;
}

.nav-single {
	padding: 16px 0;
}

.page-content article {
	margin-bottom: 16px;
	border-bottom: 1px solid #cecece;
}

.twitter-timeline {
	display: block;
	margin-bottom: 10px;
	width: 32%;
	float: right;
	text-align: right;
}

.twitter-timeline-rendered {
	margin-right: -16px;
	margin-left: 16px;
}

@media screen and (max-width: 600px) {
    .twitter-timeline {
    	display: none !important;
    }
}

.contactform {
	border-radius: 8px;
	background-image: linear-gradient(to bottom, #6CB4F3, #3A75A8);
	margin: -16px;
	margin-bottom: 16px;
	padding: 16px;
}