/*
Theme Name: BHA Celebrant Theme 2.0
Theme URI: http://humanism.org.uk
Author: Andrew West
Author URI: http://humanism.org.uk
Description:
Version: 2.2

*/


/* ----------- helper classes ----------- */

/* Funerals colour */
.greenBackground {
		background-color: #006976 !important;
}

/* Weddings colour */
.blueBackground {
		background-color: #6871dd !important;
}

/* Namings colour */
.yellowBackground {
		background-color: #f5ba18  !important;
}

.link-white a,.link-white a:visited, .link-white a:active {
	color:white !important;
}

/* Make the link text for the namings box more legible by making it black */
.link-white .yellowBackground a,.link-white .yellowBackground a:visited, .link-white .yellowBackground a:active {
	color:black !important;
}

/* ----------- header ----------- */

.page-header {
	margin-bottom:0px;
	padding-bottom:0px;
	border-bottom:none;
}

@media (min-width:768px) {
	.page-header {
		margin-top:20px;
	}
}

@media (max-width:767px) {
	.page-header {
		margin-top:0px;
	}
}

.ceremoniesHeader {
	margin-bottom:2px;
}

#headerImage {
	padding-left:15px;
}

/* set the height of the header manually for different resolutions. Bit of a hack. */
@media (min-width:1200px) {
	.ceremoniesHeader {
		height:118px;
	}
}

@media (min-width:960px) and (max-width:1199px) {
	.ceremoniesHeader {
		height:97px;
	}
}

@media (min-width:768px) and (max-width:959px) {
	.ceremoniesHeader {
		height:80px;
	}
}

.ceremoniesHeaderCustomImage {
	height:100%;
	background-position:15px 0px;
	background-repeat:no-repeat;
}

#headerImage, #headerImage small {
	color:white;
	text-shadow: 0px 0px 10px black;
	display:block;
	margin-top: 5px;
	line-height:1.2em;
}

@media (min-width:768px) and (max-width:992px) {
#headerImage, #headerImage small {
	font-size:12px;
	margin-top:2px;
}
}

#headerImage a,#headerImage:visited {
	text-decoration:none;
	color:white;
}

.ceremoniesXSHeader {
	margin-bottom:10px;
}

.ceremoniesXSHeader .blogInfo {
	line-height:1em;
	color:#777777;
}

.ceremoniesXSHeader h3 {
	margin-top:10px;
	margin-bottom: 4px;
	font-size:22px;
}

.ceremoniesXSLogo {
	margin-top:9px;
}

#hcLogoImg {
	padding: 5px 0 5px 0;
}

.topBar {
	background-color: #554a8a;
	height:1em;
	margin-bottom:1em;
}

@media (max-width:767px) {
	
	.topBar {
		margin-bottom:0em;
	}
	
}

/* ----------- nav menu ----------- */

.cereNav {
	margin-bottom:10px;
	margin-left:15px;
}

.cereNav>li {
	background-color:#554a8a;
	color:white;
	font-size:16px;
	text-align:center;
	height:45px;
	padding:10px;
	line-height:1em;
}

.cereNav>li>a {
	padding:0px;
}

@media (max-width:760px) {
	.cereNav>li
		{
			font-size:15px;
			padding:5px;
		}
}

@media (max-width:460px) {
	.cereNav>li
		{
			font-size:9px;
			height:30px;
			padding:2px;
		}
}


.cereNav>li>a:hover,
.cereNav>li>a:active {
	background-color: inherit !important;
	text-decoration:underline;
}

.cereNav>li>a:focus {
	background-color: inherit !important;
}

.cereNav .open>a, 
.cereNav .open>a:hover, 
.cereNav .open>a:focus {
	background-color: inherit;
}

.dropdown-menu {
	background-color: inherit;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  text-decoration: underline;
  background-color: inherit;
}

.ceremoniesMenuHomeLink {
	margin-left:15px !important;
	overflow:hidden;
}

.ceremoniesMenuHomeLink img {
	width:100%;
}

.nav-pills>li.active>a, .nav-pills>li.active>a:hover, .nav-pills>li.active>a:focus {
	color: inherit;
	background-color: inherit;
}

/* ----------- main content area ----------- */


#mainContentArea blockquote{
	font-style:italic;
	color:#777777;
	font-size:1em;
	border-left:none;
	margin-bottom:10px;
	margin-top:10px;
}

#mainContentArea .wp-caption-text {
	color:#777777;font-size:0.9em;
}

#mainContentArea img.pull-right, #mainContentArea div.pull-right {
	padding-left:10px;
}

#mainContentArea img.pull-left, #mainContentArea div.pull-left {
	padding-right:10px;
}

#mainContentArea .post {
	clear:both;
}

#mainContentArea ul {
	list-style-position: inside;
}

/*fix for responsive google calendars*/
iframe {
  max-width: 100%;
}

.gallery-caption {
	text-align:left !important;
}

#mainContentArea .firstImageInCaption {
	max-width: 50% !important;
}

/*#mainContentArea img.alignleft {*/
/*	max-width: 50% !important;*/
/*}*/


/*#mainContentArea img.alignright {*/
/*	max-width: 50% !important;*/
/*}*/

/* ----------- sidebar ----------- */
#sidebar, #footer {
	font-size: 0.9em;
}

#sidebar li {
	color: #777777;
}

#sidebar p {
	line-height: 1.5em;
}

#sidebar ul {
	padding:0;
	list-style-type: none;
}


#sidebar h2 {
	font-size:18px;
}

.widget_twitter ul li {
	padding-bottom:15px;
}

#sidebar .sub-menu {
	padding-left:15Px;
}


/* ----------- footer ----------- */


#footer {
	padding: 2em;
	color: #777777;
}

/*------ some assorted celebrant display hacks ---------*/

@media screen and (max-width: 480px) {
	#attachment_8_janhalliday {
		float: none !important;
		margin-left: auto;
		margin-right: auto;
	}

	#attachment_8_janhalliday > img {
		margin-left:auto;
		margin-right:auto;
	}
}

img.alignleft {
	max-width:50%;
}

img.alignright {
	max-width:50%;
}
