/* Colour table reference

	FBi Cyan: 			#00b4f3
	FBi Mid Cyan:		#b4e9fa
	FBi Light Cyan:		#e1f6fd
	FBi Light Grey:		#e8eded
	FBi Medium Grey:	#9faaaa
	FBi Dark Grey:		#4c4d52	rgb(76, 78, 83)
	FBi Dark Blue:		#10549b
	Black:				#000000
	White:				#ffffff

*/

@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400i,600,600i');

/* super-global */

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	font: 12pt Open Sans, sans-serif;
	margin: 0;
	padding: 0;
	overflow-y: scroll;
}

img {
	border: 0;
}

.centred-block {
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

div.band-inner {
	padding: 0.25rem;
	padding-bottom: 1rem;
	margin-top: 2px;
	position: relative;
	height: 100%;
	overflow: hidden;
}

div.band-outer {
	margin-bottom: 2px;
}

div.minimal-padding {
	padding-top: 0.25rem !important;
	padding-bottom: 0.25rem !important;
}

h3.expander-inner {
	padding: 0.25rem;
	padding-right: 36px;
	margin-top: 2px;
	position: relative;
	overflow: hidden;
	color: white;
	text-transform: none;
	background-image: url(/images/expanders/expand-white.png);
	background-size: 21px 21px;
	background-position: right 0.25rem center;
	background-repeat: no-repeat;
	transition: background-image 0.4s;
	box-sizing: border-box;
}

h3.expanded {
	background-image: url(/images/expanders/contract-white.png);
}

a.expander-outer {
	margin-bottom: 2px;
	background-color: #00b4f3;
	display: block;
	text-decoration: none;
	color: white;
}

div.expander-content {
	margin-top: 0;
}

div.tight {
	margin-bottom: -2px;
}

h1, h2, h3, h4, h5 {
	padding: 0;
	padding-bottom: 0.5rem;
	margin: 0;
	text-transform: uppercase;
}

p {
	padding: 0;
	padding-bottom: 1rem;
	margin: 0;
}

h1 {
	padding-bottom: 0;
	float: left;
	width: 50%;
}

h2 {
	font-size: 110%;
}

/* header */

div#header {
	margin-bottom: -4px;
}

img#logo {
	width: auto;
	height: 71px;
}

div#header .band-inner, div#filter-panel-band .band-inner {
	padding: 0.25rem;
}

/* search */

div#search-filter .band-inner {
	padding: 0;
	padding-left: 0.25rem;
	padding-right: 0.25rem;
	display: flex;
}

div#search-filter {
	padding-top: 1px;
	padding-bottom: 3px;
}

div#filter-panel-band {
	display: none;
}

input.search {
	border: 4px solid white;
	width: 300px;
	font-size: 100%;
	/*outline: none;*/
	border-radius: 0;
	background-image: url(/images/search-lens.png);
	background-position: top left;
	background-size: contain;
	background-repeat: no-repeat;
	height: 32px;
	padding-left: 40px;
	-webkit-appearance: none;
}

div#filter-bar {
	display: flex;
}

div#filter-bar-buttons {
	display: none;
}

div#filter-bar-buttons a {
	width: 15ex;
	display: block;
	text-decoration: none;
	color: white;
	text-transform: uppercase;
	padding: 4px;
	text-align: center;
}

a#filter-toggle, div#desktop-filter-toggle {
	display: block;
	width: 32px;
	height: 32px;
	background-image: url(/images/filter-slider.png);
	background-position: left;
	background-size: 32px;
	background-repeat: no-repeat;
	flex-shrink: 0;
	margin-right: 8px;
}

div.filter-tabs {
	font-size: 120%;
}

a.filter-tab {
	display: inline-block;
	padding-right: 0.5em;
	color: white;
	text-decoration: none;
	padding-left: 0.5em;
}

a.filter-tab-selected {
	background-color: #e8eded;
	color: #4c4d52 !important;
	font-weight: bold;
}

a.filter-heading {
	font-size: 120%;
	display: block;
	color: white;
	text-decoration: none;
	font-weight: bold;
	border-top: 1px solid gray;
	margin-top: 4px;
}

a.filter-heading:nth-child(2) {
	border-top: none;
	margin-top: 0;
}

div.filter-section {
	column-rule: 1px solid gray;
}

div.filter-section a {
	display: table; /* avoid split */
	color: white;
	text-decoration: none;
	padding-right: 8px;
	-webkit-column-break-inside: avoid;
}
	
span.filter-key:hover {
	text-decoration: underline;
}

span.count {
	color: #CCC;
}

#render-time {
	position: fixed;
	bottom: 0;
	right: 0;
	background-color: blue;
	color: white;
	padding: 4px;
	border-radius: 8px 0 0 0;
}

div#footer {
	color: #e8eded;
	margin-bottom: 0px;
}

div#footer a {
	color: #9faaaa;
}

div#footer h2 {
	text-align: left;
	padding: 0;
	margin: 0;
	padding-bottom: 0.5em;
}

div#footer p, div#footer form {
	padding: 0;
	margin: 0;
	padding-bottom: 2em;
}

span.contact-prefix {
	display: inline-block;
	width: 1em;
	font-weight: bold;
}

p#social img {
	width: 31px;
	height: 25px;
}

div#footer form {
	max-width: 320px;
}

input.newsletter-email {
	background-color: #e8eded;
	border: none;
	padding: 0.5rem;
	width: 65%;
	box-sizing: border-box;
	height: 2rem;
	display: block;
	float: left;
	border-radius: 0;
	-webkit-appearance: none;
	font: 10pt Open Sans, sans-serif;
}

input.newsletter-submit {
	background-color: #9faaaa;
	border: 0;
	text-transform: uppercase;
	color: white;
	width: 35%;
	box-sizing: border-box;
	height: 2rem;
	display: block;
	text-transform: none;
	border-radius: 0;
	-webkit-appearance: none;
	font: 10pt Open Sans, sans-serif;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}

div.newsletter-error {
	font-weight: bold;
	color: #FF3333;
}

p.newsletter-success {
	background-color: #5bd35b;
	font-weight: bold;
	color: white;
	padding: 0.5em !important;
	margin-bottom: 1em !important;
}

div.grid-block img {
	width: 50%;
	height: auto;
	max-width: 200px;
}

div.grid-block h3 {
	padding-top: 1em;
}

.lined {
	text-align: center;
	position: relative;
	padding-bottom: 2em;
}

.lined:after {
	content:""; 
	background: #666; 
	position: absolute; 
	bottom: 1em; 
	left: 40%; 
	width: 20%; 
	height: 1px;
}

@media screen and (max-width: 479px) {
	div.filter-section-single-column {
		column-count: 1 !important;
	}
}

@media screen and (min-width: 850px) {
	div#menu {
		position: absolute;
		right: 0;
		top: 0;
		bottom: 0;
		display: flex;
		padding-right: 4px;
	}
	
	div#menu a {
		margin-top: auto;
		margin-bottom: auto;
		margin-left: 16px;
		text-transform: uppercase;
		text-decoration: none;
		color: #4c4d52;
		font-weight: bold;
		transition: color 0.4s;
	}
	
	div#menu a:hover {
		color: #9faaaa;
	}
	
	a#menu-toggle {
		display: none;
	}

	a#filter-toggle {
		display: none;
	}

	div#desktop-filter-toggle {
		margin-left: 8px;
	}

	div#filter-bar-buttons {
		display: flex !important;
	}

	div#filter-bar-buttons:last-child {
		border-right: 1px solid #e8eded;
	}

	div#filter-bar-buttons a {
		border-left: 1px solid #e8eded;
	}

	div.filter-section {
		column-count: 3;
	}
	
	.desktop-hidden {
		display: none !important;
	}

	input.search {
		border-radius: 8px;
	}

	div.filter-tabs {
		font-size: 100%;
	}
	
	a.filter-tab-current {
		background-color: #e8eded;
		color: #4c4d52;
	}

	a.filter-heading {
		display: none;
	}
	
	div.filter-section {
		border-top: 1px solid gray;
		margin-top: 4px;
		padding-top: 4px;
		font-size: 90%;
	}
	
	div#footer>div {
		display: flex;
	}
	
	div.footer-column {
		width: 40%;
		padding-left: 4em;
	}
	
	div#footer-logo {
		width: 120px;
	}
	
	div#footer-logo img {
		width: 100%;
		height: auto;
	}

	div.grid {
		display: flex;
		flex-wrap: wrap;
	}

	div.grid-block {
		box-sizing: border-box;
		width: 50%;
		padding: 8px;
	}
	
}

@media screen and (max-width: 849px) {
	div#menu {
		position: fixed;
		left: -100%;
		top: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
		background-color: rgb(76, 78, 83);
		z-index: 2;
		overflow-y: auto;
		transition-property: left, transform, box-shadow;
		transition-duration: 0.5s;
	}
	
	.mobile-menu-visible {
		left: 0 !important;
		box-shadow: 0px 0px 30px black;
	}
	
	.mobile-hidden {
		display: none !important;
	}
	
	div#menu a {
		display: block;
		text-decoration: none;
		color: #e8eded;
		line-height: 56px;
		border-bottom: 2px solid #9faaaa;
		font-weight: bold;
		padding-left: 32px;
		padding-right: 32px;
	}

	a#menu-toggle {
		width: 43px;
		height: 58px;
		display: block;
		float: right;
		background-image: url(/images/mobile-hamburger.png);
		background-size: contain;
		transition: background-image 0.4s;
		background-position: center;
		background-repeat: no-repeat;
		-webkit-tap-highlight-color: transparent;
	}
	
	a.menu-close {
		position: fixed;
		top: 0.4rem;
		top: calc(2px + 0.25rem);
		right: 0.25rem;
		background-image: url(/images/mobile-hamburger-close.png) !important;
		z-index: 2;
	}
	
	div#desktop-filter-toggle {
		display: none;
	}
	
	a#filter-toggle {
		width: 100%;
	}
	
	a.filter-toggle-small {
		width: 32px !important;
	}

	div#search-filter .band-inner {
		display: block;
	}
	
	div#filter-bar-buttons {
		width: 100%;
		flex-wrap: wrap;
	}
	
	div#filter-bar-buttons a {
		width: 45%;
		max-width: 32ex;
		margin: 4px;
	}
	
	div#filter-bar-buttons a {
		border: 1px solid #e8eded;
	}

	div.filter-section {
		column-count: 2;
	}
	
	div.filter-tabs {
		display: none;
	}

	form#search {
		margin-left: -0.25rem;
		margin-right: -0.25rem;
	}

	input.search {
		width: 100%;
	}

	div#footer>div {
		padding-top: 2em;
	}

	div.footer-column {
		padding-bottom: 1rem;
	}

	div#footer-logo {
		display: none;
	}

}

@media screen and (min-width: 1280px) {
	.centred-block {
		margin-left: 50px;
		margin-right: 50px;
		max-width: none;
	}

	div.filter-section {
		column-count: 5;
	}

	div.grid-block {
		box-sizing: border-box;
		width: 25%;
		padding: 1rem;
	}

}

.centred {
	text-align: center;
}

.cyan {
	background-color: #00b4f3;
	color: white;
}

.mid-cyan {
	background-color: #b4e9fa;
	color: black;
}

.light-cyan {
	background-color: #e1f6fd;
	color: black;
}

.light-grey {
	background-color: #e8eded;
	color: black;
}

.medium-grey {
	background-color: #9faaaa;
	color: white;
}

.dark-grey {
	background-color: #4c4d52;
	color: white;
}

.dark-blue {
	background-color: #10549b;
	color: white;
}

.black {
	background-color: #000000;
	color: white;
}

.white {
	background-color: #ffffff;
	color: black;
}

/* slideshow styling */

div#slideshow-canvas
{
	background-color: #333;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000000000;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	/* border-right: 100px solid #333; */
}

div#previous-slide {
	position: absolute;
	width: 25%;
	height: 100%;
	top: 0px;
	left: 0px;
	background-image: url(/images/slideshow/left-arrow-matte.png);
	background-position: left center;
	background-repeat: no-repeat;
	margin-left: 8px;
	transition: background 0.4s;
}

div#next-slide {
	position: absolute;
	width: 25%;
	height: 100%;
	top: 0px;
	right: 0px;
	background-image: url(/images/slideshow/right-arrow-matte.png);
	background-position: right center;
	background-repeat: no-repeat;
	margin-right: 8px;
	transition: background 0.4s;
}

div.slide-navigation-hidden {
	background-image: url(/images/slideshow/blank.png) !important;
}

a#close-button {
	display: block;
	position: absolute;
	top: 8px;
	right: 8px;
}

div#show-caption-bar {
	position: absolute;
	width: 40%;
	height: 100%;
	top: 0px;
	left: 30%;
}

div#slideshow-caption-bar {
	position: absolute;
	background-color: rgba(0,0,0,0.5);
	color: white;
	width: 100%;
	overflow: hidden;
	bottom: 0;
	left: 0;
}

div#slideshow-buttons-left {
		float: left;
		width: 50px;
		text-align: center;
}

div#slideshow-buttons-right {
		float: right;
}

div#slideshow-buttons-left img, div#slideshow-buttons-right img {
	display: inline-block;
	padding: 5px;
}

div#slide-caption {
	text-align: center;
	padding: 5px;
	margin-left: 50px;
	margin-right: 50px;
	max-height: 25vh;
	overflow-y: auto;
}

@media only screen and (orientation:portrait){
	div#slide-caption {
		max-height: 50vh;
	}
	
	div#slideshow-canvas {
		background-position: top;
	}
	
	div#next-slide, div#previous-slide {
		background-position-y: calc(37.5vw - 15px);
	}
}
	
	
/* Cookie warning */
#google_analytics_warning {
	background-color: #e8eded;
	border-bottom: 1px solid #4c4d52;
	padding: 0.25rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	overflow: hidden;
	display: flex;
	font-size: 80%;
}
#google_analytics_warning_text {
	flex-grow: 1;
	padding-right: 1em;
}

#google_analytics_warning_buttons {
	white-space: nowrap;
	margin-top: auto;
	margin-bottom: auto;
}

#google_analytics_warning_buttons button {
	color: white;
	background-color: #00b4f3;
	padding: 0.5rem;
	border: 0;
	border-radius: 8px;
}

#google_analytics_warning_text a {
	color: #4c4d52;
}

h2.chapter-heading {
	padding-top: 1rem;
}

td.verse-number {
    vertical-align: top;
    padding-right: 0.5rem;
    color: #9faaaa;
    font-weight: bold;
    font-size: 80%;
}

div.copyright {
	padding-top: 1rem;
	font-size: smaller;
}