/* START images on index page */
.spotlight .image {
	background-color: white;
	border: 1px solid #eaeaea;
}
.spotlight .image:before,
.spotlight .image:after {
	display: none;
}

.spotlight .image {
	width: 440px;
	height: 219px;
	overflow: hidden;
	max-width: 100%;
}

.spotlight .image img,
.spotlight .image video {
	width: auto;
	height: auto;
}

.lowcontrast video {
	filter: contrast(60%);
}

.spotlight.inactive .image {
	top: 0;
}

@media (min-width: 813px) {
	.spotlight .tall-image {
		height: 440px;
		width: 440px;
		white-space: nowrap;
		text-align: center;
	}

	.spotlight .tall-image:before {
		content: "";
		display: inline-block;
		height: 100%;
		vertical-align: middle;
		border: none;
	}

	.spotlight .tall-image img {
		background: #3a6f9a;
		vertical-align: middle;
		display: inline-block;
	}
}

@media (max-width: 812px) {
	#wrapper section .spotlight.inner {
		padding-bottom: 1.75em;
	}
}

/* END images on index page */

/* START unordered lists on index page */

.spotlight .content ul li {
	margin-top: 1.5em;
}

/* END unordered lists on index page */

/* START benefits */
.benefit-icon {
	width: 7em;
	margin: 0 auto 1.5em auto;
}
/* END benefits */

/* START nav */
@media (max-width: 812px) {
	#header nav ul li.menu-not-mobile {
		display: none;
	}
	#header nav ul li.menu-mobile-only {
		display: inline-block;
	}
}

@media (min-width: 812px) {
	#header nav ul li.menu-not-mobile {
		display: inline-block;
	}
	#header nav ul li.menu-mobile-only {
		display: none;
	}
}

@media screen and (max-width: 812px) {
	#header nav ul li a[href="#menu"]:only-child {
		width: auto;
		text-indent: 0;
		white-space: normal;
	}
}
/* END nav */

/* Firebase auth widget */

#firebaseui_container
	.mdl-textfield:not(.is-focused):not(.is-dirty)
	.mdl-textfield__label {
	top: 2em;
	left: 1em;
}

#firebaseui_container
	.firebaseui-input-floating-button.firebaseui-id-password-toggle {
	top: 1.8em;
	right: 1em;
	border-bottom: none;
}

/* React Chat Widget */

button.rcw-launcher {
	padding: 0;
	line-height: normal;
}

form.rcw-sender {
	margin-bottom: 0;
}

form.rcw-sender input,
form.rcw-sender input:focus,
form.rcw-sender input:active,
form.rcw-sender input:hover,
form.rcw-sender button,
form.rcw-sender button:focus,
form.rcw-sender button:active,
form.rcw-sender button:hover {
	background: transparent;
	border: none;
	box-shadow: none;
}

.rcw-send img.rcw-send-icon {
	vertical-align: middle;
}

.chat-sender-disabled .rcw-sender * {
	visibility: hidden;
}

.chat-sender-disabled .rcw-sender {
	position: relative;
}

.chat-sender-disabled .rcw-sender:before {
	content: "Skip to last message to enable sending...";
	visibility: visible;
	position: absolute;
	left: 0.5em;
	right: 0;
	top: 0.5em;
	bottom: 0;
}

@media print {
	.page-printabledocument {
		font-size: 12px;
	}
	.page-printabledocument #header,
	.page-printabledocument #footer {
		display: none;
	}
	.page-printabledocument #main {
		padding-top: 0;
	}
	.page-printabledocument #page-wrapper {
		padding-top: 2em;
	}
	.page-printabledocument .print-button {
		display: none;
	}
}

/* Menu */

#menu {
	overflow-y: auto;
	padding: 2.5em 0;
	position: fixed;
	right: 0;
	top: 0;
	background: #ffffff;
	color: #777777;

	/* Transition here rather than using the react-burger-menu transitions because the latter seem buggy or incompatible with other elements of this system */
	transition: all 0.5s ease;
}

.bm-burger-button {
	display: none;
}

.bm-overlay {
	top: 0;
	left: 0;

	background: black !important;
	opacity: 0 !important;

	transition: opacity 1s ease;
}

.menu-visible .bm-overlay {
	opacity: 0.3 !important;
}

.menu-visible #header {
	border-bottom: none;
}

#header {
	/* Behind the menu overlay (for some reason setting the latter to 1001 to move it in front of the header does not work) */
	z-index: 999;
}

#menu .bm-menu {
	overflow: hidden;
}

#menu .bm-item {
	border: 0;
	border-top-color: currentcolor;
	border-top-style: none;
	border-top-width: 0px;
	border-top: solid 1px #eaeaea;
	color: inherit;
	display: block;
	font-size: 0.8em;
	font-weight: 500;
	letter-spacing: 0.25em;
	line-height: 4.5em;
	text-transform: uppercase;
}

#menu button.bm-item {
	line-height: 3.5em;
}

#menu nav.bm-item-list {
	padding: 2.5em 1.75em;
}

#menu nav.bm-item-list {
	margin: 0 0 1em 0;
}

#menu nav.bm-item-list a.bm-item:not(.button) {
	border: 0;
	border-top: solid 1px #eaeaea;
	color: inherit;
	display: block;
	font-size: 0.8em;
	font-weight: 500;
	letter-spacing: 0.25em;
	line-height: 4.5em;
	text-transform: uppercase;
}

#menu nav.bm-item-list button.bm-item {
	display: block;
	margin: 0.5em 0 0 0;
}

#menu nav.bm-item-list a.bm-item:not(.button):first-child {
	border-top: 0 !important;
}

.bm-cross-button button {
	box-shadow: none;
}

.bm-cross-button {
	right: 1.5em !important;
	top: 0.75em !important;
	height: 1.25em !important;
}

/* Sticky right column - move down to escape from behind the fixed header */

.sticky {
	margin-top: 3.5em;
}

/* Work-around bugs in the chat widget */

body.chat-widget-closed {
	overflow: scroll !important;
}

/* General styles */
body {
	color: #3e3e3e;
}
p {
	margin-bottom: 1em;
}
.page-home p {
	margin-bottom: 2em;
}
/* END general styles */
