/*
	Flexbox grid
*/

.flex-container {
	padding: 2rem;
	margin-left: auto;
	margin-right: auto;
}

.flex-container .flex-container {
	padding: 0;
}

.flex-container .flex-container + .flex-container {
	margin-top: 2rem;
}


/*
	Buttons
*/

.button {
	background-color: gray;
	border: medium solid gray;
	border-radius: 0.25rem;
	color: white;
	display: inline-block;
	font-weight: bold;
	margin: 1rem 1rem 0 0;
	min-width: 12rem;
	padding: 0.75rem 1.5rem;
	text-align: center;
	text-transform: uppercase;
}

.button:hover {
	background-color: #696969;
	border: medium solid #696969;
	color: white;
	cursor: pointer;
	text-decoration: none;
}

.button-close-nav-option {
	background: url('/images/navoptionclose.png') no-repeat center/contain;
	display: none;
	height: 2rem;
	opacity: 0.5;
	position: absolute;
	right: 0.75rem;
	top: 0.75rem;
	width: 2rem;
}

.button-close-nav-option:hover {
	background: url('/images/navoptionclosehover.png') no-repeat center/contain;
	opacity: 1;
}

.button-mobile-menu {
	background: url('/images/menu.png') no-repeat center/contain;
	height: 2rem;
	margin-left: 2rem;
	width: 2rem;
}

.button-primary {
	background-color: orange;
	border-color: orange;
	color: white;
}

.button-primary:hover {
	background-color: darkorange;
	border: medium solid darkorange;
	text-decoration: none;
}


/*
	Charts
*/

.chart-color-1 {
	background-color: #37e5d4;
}

.chart-color-2 {
	background-color: #00addd;
}

.chart-color-3 {
	background-color: #436ebe;
}

.chart-legend {
	list-style: none;
	margin-top: 0;
}

.chart-legend li + li {
	padding-top: 1rem;
}

.chart-legend-block {
	height: 1.5rem;
	width: 1.5rem;
}

.chart-legend-block-wrapper {
	padding-right: 0.25rem;
}


/*
	Forms
*/

.field + .field {
	margin-top: 1rem;
}

.field.flex-container + .field.flex-container {
	margin-top: 1rem;
}

.field-line-2 {
	margin-top: 0.5rem;
}

.field-required {
	color: orange;
	font: bold 1.4rem courier, serif;
	line-height: 1;
}

.field-secondary {
	margin-left: 3rem;
}

.form-error {
	color: orange;
	display: block;
	font-size: 0.9rem;
	line-height: 1.25rem;
}

.hanging-indent {
	display: table;
}

.hanging-indent-col-1 {
	display: table-cell;
}

.hanging-indent-col-2 {
	display: table-cell;
	padding-left: 0.25rem;
}

.label-secondary {
	font-weight: normal;
}

::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color: #aaa;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
   color: #aaa;
   opacity: 1;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
   color: #aaa;
   opacity: 1;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
   color: #aaa;
}
::-ms-input-placeholder { /* Microsoft Edge */
   color: #aaa;
}


/*
	Icons
*/

.socialicon {
	opacity: 0.8;
}

.socialicon:not(:last-child) {
	margin-right: 0.5rem;
}


.socialicon > img {
	height: 40px;
	width: 40px;
}


/*
	Page header
*/

.page-header-container {
	flex-wrap: wrap;
	padding-bottom: 1rem;
	padding-top: 1rem;
}

.page-header-container + .page-header-container {
	padding-top: 0;
}

.page-header-logo-container {
	display: flex;
}

.page-header-logo-container img {
	width: 212px;
}


/*
	Page navigation
*/

.nav-item {
	border-bottom: thick solid transparent;
	border-top: thick solid transparent;
	text-transform: uppercase;
}

.nav-item > a {
	color: #4c5b52;
	font-weight: bold;
}

.nav-item > a:hover {
	color: orange;
	text-decoration: none;
}

.nav-item-selected {
	border-bottom: thick solid orange;
}

.nav-items {
	align-items: center;
	display: flex;
	height: 100%;
	list-style-type: none;
	margin: 0;
	justify-content: space-between;
}

.nav-option {
	color: #e2e2e2;
	display: none;
}

.nav-option a {
	color: white;
	font-weight: 700;
}

.nav-option h2 {
	font-size: 2rem;
	margin-bottom: 0.5em;
	margin-top: 0;
}

.nav-option h2:not(:first-of-type) {
	margin-top: 1.5em;
}

.nav-option h3 {
	margin-bottom: 0;
}

.nav-options {
	background-color: #3c3c3c;
	position: relative;
}

.subnav {
	line-height: 2;
	list-style-image: url('/images/subnavarrow.png');
	list-style-position: inside;
	margin: 1rem 0 0 0;
}

.subnav-item {
	font-family: "Open Sans Condensed", sans-serif;
}


/*
	Page footer
*/

.page-footer {
	background-color: #3c3c3c;
	color: #aaa;
}

.page-footer .flex-container > [class^="col-"] > h3:not(:first-of-type) {
	margin-top: 3rem;
}

.page-footer a {
	color: #fff;
}

.page-footer h3 {
	margin-top: 0;
}

.page-footer-copyright {
	background-color: #404040;
}

.page-footer-feedback {
	background-color: #00788b;
	color: White;
	font-weight: bold;
}

.page-footer-feedback a {
	color: White;
}

.page-footer-nav-option {
	color: #e2e2e2;
}

.page-footer-nav-option a {
	color: white;
	font-weight: 700;
}

.page-footer-search-box {
	background-color: #555;
	border: none;
	color: #aaa;
	padding: 1rem;
}


/*
	Pagination
*/

.pagination-button-wrapper {
		margin: 2rem 1rem 1rem 0;
}

.pagination-button-wrapper .button {
	min-width: inherit;
}


/*
	Homepage
*/

.homepage h2 {
	margin-top: 0;
}

.homepage-hero {
	background-color: #4c5b52;
}

.homepage-hero-icon {
	text-align: center;
}

.homepage-hero-icon > a {
	color: white;
	font-weight: bold;
	text-transform: uppercase;
}

.homepage-hero-icon > img {
	margin-bottom: 0.5rem;
	vertical-align: middle;
}


/*
	Cards
*/

.card {
	padding-bottom: 2rem;
}

.card:empty {
	border: none;
	height: 0;
	padding: 0;
}

.card img {
	display: block;
}

.card > h3 {
	margin: 0;
	padding-top: 0.5em;
}

.card > h4 {
	font-family: "Open Sans Condensed", sans-serif;
	font-size: 1.1rem;
	font-weight: 300;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
}

.card > p {
	font-family: "Open Sans Condensed", sans-serif;
	font-weight: bold;
}

.flex-container-cards {
	flex-flow: row wrap;
	margin-bottom: -2rem; /* Counteract the padding-bottom of cards in the last row */
}


/*
	General
*/

.app-store-badge {
	padding: 1rem;
}

.author {
	margin-top: 2rem;
}

.chapter {
	font-size: 2rem;
}

.chart {
	margin-left: auto;
	margin-right: auto;
}

.chart th {
	font-style: italic;
	padding: 0 1.5rem 0 1.5rem;
	text-align: left;
	vertical-align: bottom;
}

.chart td {
	padding: 0 1.5rem 0 1.5rem;
	text-align: left;
	vertical-align: top;
}

.footnote {
	font-size: 0.8rem;
}

.hero-image {
	display: block;
	min-width: 100%;
}

.hero-wrapper {
	 position: relative;
}

.hero-wrapper > a {
	bottom: 0;
	margin: 2rem;
	position: absolute;
	right: 0;
}

.hero-wrapper > p {
	background-color: rgba(0, 0, 0, 0.5);
	bottom: 0;
	color: white;
	font-family: "Berkshire Swash", serif;
	font-size: 1.2rem;
	font-style: italic;
	line-height: normal;
	margin: 2rem 0 2rem 2rem;
	padding: 1rem;
	position: absolute;
	right: 0;
}

.iframe-wrapper {
	position: relative;
}

.iframe-wrapper + .caption {
	background-color: #00788b;
	color: white;
	font-family: "Open Sans Condensed", sans-serif;
	padding: 0.5em 1em 0.75em 1em;
}

.iframe-wrapper + .caption a {
	color: white;
	font-weight: bold;
}

.iframe-wrapper-4-3 {
	padding-bottom: 75%;
}

.iframe-wrapper-16-9 {
	background-color: black;
	padding-bottom: 56.25%;
}

.iframe-wrapper iframe {
	border: 0;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.order-of-service {
	background-color: #e8e8e8;
	margin-bottom: 2em;
	margin-top: 2em;
	padding: 1.5em;
}

.order-of-service ul {
	margin-bottom: 0;
	margin-top: 0;
}

.reverse-box {
	background-color: #00788b;
	color: White;
	padding: 1rem;
}

.reverse-box a {
	color: White;
	font-weight: bold;
}

.timestamp {
	font-family: "Open Sans Condensed", sans-serif;
}

.vimeo-live-chat {
	background-color: white;
}

a {
	color: #00788b;
}

a:hover {
	text-decoration: underline;
}

aside + p {
	margin-top: 1rem;
}

audio {
	display: block;
	margin: 2em 0 2em 0;
}

b {
	font-weight: bold;
}

blockquote {
	background-color: #eee;
	border-left: thick solid orange;
	border-radius: 0 0.5rem 0.5rem 0;
	font-family: "Open Sans Condensed";
	font-size: 1.5rem;
	line-height: normal;
	margin-bottom: 1em;
	margin-top: 1em;
	padding: 1em;
}

blockquote:last-child {
	margin-bottom: 0;
}

body {
	color: #353535;
	font-family: sans-serif;
	line-height: 1.5;
}

em {
	font-style: italic;
}

figure + p {
	margin-top: 1rem;
}

figure > img {
	display: block;
}

figure > img + figcaption {
  border-bottom: medium solid orange;
	font-family: "Open Sans Condensed";
	font-weight: bold;
	padding: 0.5em 0 0.5em 0;
}

h2 {
	font-family: "Open Sans Condensed", sans-serif;
	font-size: 2rem;
	font-weight: 700;
	line-height: normal;
	margin-bottom: 1em;
}

h2:not(:first-of-type) {
	margin-top: 2em;
}

h2 + h3 {
	margin-top: 0;
}

h3 {
	font-family: "Open Sans Condensed", sans-serif;
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1em;
	margin-top: 2em;
}

h3 + h4 {
	margin-top: 0;
}

h4 {
	font-weight: bold;
	margin-top: 1em;
}

h3.border-bottom {
    border-bottom: medium solid orange;
    margin-bottom: 0.5em;
	padding-bottom: 0.25em;
}

html {
	box-sizing: border-box;
}
*,
*::before,
*::after {
	box-sizing: inherit;
}

i {
	font-style: italic;
}

input[type="button"] {
	font-size: 1rem;
}

input[type="checkbox"] + label {
	font-weight: normal;
}

input[type="checkbox"] + span {
	font-weight: normal;
}

input[type="email"] {
	display: inline-block;
	font-size: 1rem;
	padding: 0.75rem;
	width: 100%;
}

input[type="checkbox"].form-error {
	display: unset;
}

input[type="radio"].form-error {
	display: unset;
}

input[type="radio"] + label {
	font-weight: normal;
}

input[type="radio"] + label + input[type="radio"] {
	margin-left: 1rem;
}

input[type="radio"] + span {
	font-weight: normal;
}

input[type="submit"] {
	font-size: 1rem;
}

input[type="text"] {
	border-radius: 0.25rem;
	display: inline-block;
	font-size: 1rem;
	padding: 0.75rem;
	width: 100%;
}

input + p {
	margin-top: 0.25rem;
}

label {
	font-family: sans-serif;
	font-size: 1rem;
	font-weight: bold;
}

ol {
	list-style: decimal;
	margin-bottom: 1em;
	margin-left: 2rem;
	margin-top: 1em;
}

ol:last-child {
	margin-bottom: 0;
}

ol ol {
	margin-top: initial;
}

p + aside {
	margin-top: 1rem;
}

p + figure {
	margin-top: 1rem;
}

p + p {
	margin-top: 1rem;
}

p + table {
	margin-top: 1rem;
}

select {
	color: #353535;
	font-size: 1rem;
	padding: 0.75rem;
	width: 100%;
}

select.form-error {
	color: unset;
	display: unset;
	font-size: unset;
	line-height: unset;
}

strong {
	font-weight: bold;
}

sup {
	bottom: 0.8ex;
	font-size: 0.8em;
	position: relative;
	vertical-align: 0;
}

table + p {
	margin-top: 1rem;
}

td {
	padding-left: 1rem;
}

textarea {
	width: 100%;
}

ul {
	list-style-type: square;
	margin-bottom: 1em;
	margin-left: 2rem;
	margin-top: 1em;
}

ul:last-child {
	margin-bottom: 0;
}


/* Utilities */

.align-center {
	text-align: center;
}

.align-right-first-col tr > td:first-child {
	text-align: right;
}

.align-self-center {
	align-self: center;
}

.display-block {
	display: block !important;
}

.lower-alpha {list-style-type:lower-alpha;}

.lower-roman {list-style-type:lower-roman;}

.no-wrap-first-col tr > td:first-child {
	white-space: nowrap;
}

.upper-alpha {list-style-type:upper-alpha;}

.upper-roman {list-style-type:upper-roman;}


/* Large (desktops) on up */
@media (min-width: 975px) {

	/*
		Page navigation
	*/

	.subnav-about-us {
		column-count: 2;
	}
}


/* Medium (tablets) on up */
@media (min-width: 762px) {

	/*
		Utilities
	*/

	.hide-for-medium-up {
		display: none !important;
	}
}


/* Medium (tablets) */
@media (min-width: 762px) and (max-width: 974px) {

	/*
		Page header
	*/

	.page-header-logo-container {
		flex-basis: 100%;
	}

	.page-header-logo-container > a {
		margin: 0 auto 1rem auto;
	}

	/*
		Page navigation
	*/

	.main-nav {
		flex-basis: 100%;
	}
}


/* Small (phones) */
@media (max-width: 761px) {

	/*
		Flexbox grid
	*/

	.flex-container .flex-container + .flex-container {
		margin-top: 1rem;
	}

	.flex-container > [class^="col-"]:not(:empty) + [class^="col-"]:not(:empty) {
		padding-top: 1rem;
	}

	.nav-option > .flex-container {
		padding: 0 2rem 3rem;
	}

	.nav-option > .flex-container > [class^="col-"]:not(:empty):not(.subnav) {
		padding-top: 3rem;
	}


	/*
		Buttons
	*/

	.button {
		padding: 0.5rem 1rem;
	}

	.button + .button {
		margin-top: 1rem;
	}


	/*
		Page header
	*/

	.page-header-logo-container {
		align-items: center;
		justify-content: space-between;
	}


	/*
		Page navigation
	*/

	.nav-item {
		text-align: center;
		width: 100%;
	}

	.nav-item > a {
		display: block;
	}

	.nav-item-selected {
		background-color: orange;
	}

	.nav-item-selected > a,
	.nav-item-selected > a:hover {
		color: white;
	}

	.nav-items {
		flex-flow: column wrap;
		padding-top: 1rem;
	}

	.subnav + .subnav {
		margin-top: 0;
	}


	/*
		Page footer
	*/

	.page-footer .flex-container {
		text-align: center;
	}

	.page-footer .flex-container > [class^="col-"]:not(:first-of-type) > h3 {
		margin-top: 2rem;
	}


	/*
		Homepage
	*/

	.homepage-hero-icon + .homepage-hero-icon {
		margin-top: 1rem;
	}


	/*
		Cards
	*/

	.card {
		flex-basis: 50%;
	}

	.card:nth-child(even) {
		padding-left: 0.5rem;
	}

	.card:nth-child(odd) {
		padding-right: 0.5rem;
	}


	/*
		General
	*/

	.app-store-badge {
		text-align: center;
		padding: 0 5rem 0 5rem;
	}

	.hero-wrapper > a {
		left: 0;
	}

	.hero-wrapper > p {
		background-color: #3c3c3c;
		margin: inherit;
		position: inherit;
		text-align: center;
	}

	.vimeo-live-chat {
		display: none;
	}

	select {
		width: 100%;
	}


	/*
		Utilities
	*/
	.display-block-for-small-only {
		display: block !important;
	}

	.hide-for-small-only {
		display: none !important;
	}
}


@media (min-width: 601px) and (max-width: 761px) {
	.card:first-child {
		padding-top: 1rem;
	}
}


/* Cards switch to single column */
@media (max-width: 600px) {

	.card {
		flex-basis: 100%;
	}

	.card:nth-child(even) {
		padding-left: 0;
	}

	.card:nth-child(odd) {
		padding-right: 0;
	}
}
