/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/

/* ===========================================
Base styles: opinionated defaults
=========================================== */

html {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #000080;
	font-size: 1em;
	line-height: 1.4;
}

/*
* Remove text-shadow in selection highlight:
* https://twitter.com/miketaylr/status/12228805301
*
* Vendor-prefixed and regular ::selection selectors cannot be combined:
* https://stackoverflow.com/a/16982510/7133471
*
* Customize the background color to match your design.
*/

::-moz-selection {
	background: #b3d4fc;
	text-shadow: none;
}

::selection {
	background: #b3d4fc;
	text-shadow: none;
}

/*
* A better looking default horizontal rule
*/

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
}

/*
* Remove the gap between audio, canvas, iframes,
* images, videos and the bottom of their containers:
* https://github.com/h5bp/html5-boilerplate/issues/440
*/

audio,
canvas,
iframe,
img,
svg,
video {
	vertical-align: middle;
}

/*
* Remove default fieldset styles.
*/

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

/*
* Allow only vertical resizing of textareas.
*/

textarea {
	resize: vertical;
}

/* =====================================================
Author's custom styles
==================================================== */

body {
	background-color: #85B6FF;
	color: #000;
	margin: .5em;
	padding: .2em;
}

#container	{
	background-color: #EBEFFF;
	border-radius: 10px;
}

nav {
	margin: 0 10px;
	padding: 10px;
}

div {
	padding: .2em;
}

h1, h2, h3, h4, h5, h6	{
	text-align: center;
	font-weight: bold;
	padding: 0;
	margin: .2em auto;
}

h1	{
	font-size: 2.4em;
}

h2	{
	font-size: 2em;
}

h3	{
	font-size: 1.8em;
}

h4	{
	font-size: 1.6em;
}

h5	{
	font-size: 1.4em;
}

h6	{
	font-size: 1.2em;
}

.time {
	text-align: center;
	font-style: italic;
	font-size: .9em;
}

p	{
	text-indent: 1.25em;
}

.no-indent	{
	text-indent: 0;
}

.justify	{
	text-align: justify;
}
.emphasis {
	font-style: italic;
}
.italic	{
	font-style: italic;
}

.bold	{
	font-weight: bold;
}
.boldtext {
	font-weight: bold;
}
.center	{
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.boldtext {
	font-weight: bold;
}

.announce {
	border: 2px solid green;
	border-radius: 10px;
	background-color: #FFF5F5;
	color: black;
	text-indent: 0;
}

.caption	{
	text-align: center;
	font-style: italic;
	font-size: .85em;
	text-indent: 0;
}

.verse-l p	{
	text-indent: 0;
	padding-left: 1em;
	text-align: left;
}

.verse-r p	{
	text-indent: 0;
	padding-right: 1em;
	text-align: right;
}
.greentext {
	color: #006B00;
}
.whitetext {
	color: #ffffff;
}
.bluetext	{
	color: #0000ff;
}
.cblue {
	background-color: #ADADFF;
}

a:link {
	color: #0000FF;
}

a:visited {
	color: #800080;
}

a:active {
	color: #FF0000;
}

a:hover {
	color: #FF0000;
}

#footer a:link {
	color: #00FFFF;
}

#footer a:visited {
	color: #00FFFF;
}

#footer a:active {
	color: #FF0000;
}

#footer a:hover {
	color: #0000FF !important;
	background: #BDFFBD !important;
}

.images {
	max-width: 100%;
}
.float-left {
	float: left;
	margin: 5px 10px 5px 0;
}
.float-right {
	float: right;
	margin: 5px 0 5px 10px;
}

.box {
	background-color: #EBEFFF;
	color: #363636;
	border-radius: 10px;
	padding: .5em;
	font-size: 1em;
}

.box img {
	max-width: 90%;
}
.popbox span {
	background: white;
	color: black;
	left: -1000px;
	padding: 5px;
	position: fixed;
	text-decoration: none;
	top: 0;
	visibility: hidden;
}

.popbox:hover span {
	background: white;
	border: 1px solid black;
	color: black;
	font-size: 1em;
	line-height: 1.5em;
	padding: 5px;
	text-align: left;
	text-decoration: none;
	position: fixed;
	left: 10px;
	top: 10px;
	visibility: visible;
	/*  width:70%;*/
	width: 170px;
	z-index: 50 !important;
	/*   -webkit-border-radius: 0.50em
	-moz-border-radius: 0.50em;*/
	border-radius: 0.50em;
	/*   CCborderRadius: 0.50em;*/
}

.menubutton {
	border: 1px solid black;
	border-radius: 10px 10px 10px 10px;
	/*  -ms-border-radius: 10px 10px 10px 10px;
	-moz-border-radius: 10px 10px 10px 10px;
	-webkit-border-radius: 10px 10px 10px 10px;
	-khtml-border-radius: 10px 10px 10px 10px;*/
}

.darkshadow {
	box-shadow: 10px 10px 15px #000;
	/*   -webkit-box-shadow: 10px 10px 15px #000;
	-moz-box-shadow: 10px 10px 15px #000;*/
}
.lightshadow {
	box-shadow: 4px 4px 2px #ffc;
	/*   -webkit-box-shadow: 4px 4px 2px #ffc;
	-moz-box-shadow: 4px 4px 2px #ffc;*/
}
.innershadow {
	background-color: #fff;
	padding: 10px;
	/*   -moz-box-shadow: inset 0 0 1em gold;
	-webkit-box-shadow: inset 0 0 1em gold;*/
	box-shadow: inset 0 0 1em gold;
}

.rounded {
	border-radius: 10px;
	/*  -ms-border-radius: 10px 10px 10px 10px;
	-moz-border-radius: 10px 10px 10px 10px;
	-webkit-border-radius: 10px 10px 10px 10px;
	-khtml-border-radius: 10px 10px 10px 10px;*/
}

span[data-descr] {
	position: relative;
	text-decoration: underline;
	color: #00F;
	cursor: help;
}

span[data-descr]:hover::after,
span[data-descr]:focus::after {
	content: attr(data-descr);
	position: absolute;
	left: 0;
	top: 24px;
	min-width: 250px;
	border: 1px #0040c2 solid;
	border-radius: 10px;
	background-color: #e6fbff;
	padding: 12px;
	color: #0000c8;
	font-size: 14px;
	z-index: 1;
}

/* ==================================================
Helper classes
================================================= */
/*
* Hide visually and from screen readers
*/

.hidden,
[hidden] {
	display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
	/* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
	clip: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	position: static;
	white-space: inherit;
	width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
	visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix::before,
.clearfix::after {
	content: " ";
	display: table;
}

.clearfix::after {
	clear: both;
}
