/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}
body {
	
	margin: auto;
	display: block;
	position: relative;
}

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

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

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

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

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

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body, html {
	font-family: Arial, Helvetica, sans-serif
}
body {
	margin-top: 50px;
	margin-bottom: 50px;
}
content {
	width: 1000px;
	margin: auto;
	display: block;
}


.content2{
	max-width: 1000px;
	margin: auto;
	display: block;
	position: relative;
}

.splash {
	display: block;
	margin: auto;
	height: 100vh;

	position: relative;
	margin-top: -50px;
}
.splash img {
	position: absolute;
	width: auto;
	height: auto;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	max-width: 100%;
	max-height: 100%;
	margin: auto;
}
.disclaimer {
	position: absolute;
	bottom: 15%;
	font-size: 1em;
	left: 0;
	right: 0;
	width: 60%;
	margin: auto;
	text-align: center;
	display: block;
	color: white;
}
input {
	line-height: 1.2em;
	margin-bottom: .5em;
	width: 100%;
}
.loginForm input{
	margin:.5em 0;
}
#zip {
	padding: 6px;
	box-sizing: border-box;
}
form {
	width: 45%;
	margin: auto;
	margin-bottom:3em;
}
header {
	width: 100%;
	line-height: 30px;
	background-color: rgba(54, 68, 103, .9);
	color: white;
	font-size: 18px;
	font-weight: bold;
	position: fixed;
	top: 0;
	z-index: 11000;
	max-width: 1000px;
}
footer {
	width: 100%;
	line-height: 30px;
	background-color: rgba(54, 68, 103, .8);
	color: white;
	font-size: 18px;
	font-weight: bold;
	position: fixed;
	display: block;
	bottom: 0;
	z-index: 11000;
	max-width: 1000px;
}
.headText {
	width: 80%;
	margin: auto;
	display: block;
}
.headMob {
	display: none;
}
#errMsg {
	line-height: 30px;
	font-size: 18px;
	background-color: #d22;
	font-weight: bold;
	text-align: center;
	/* box-sizing: border-box; */
	display: inline-block;
	width: 100%;
	color: #fff;
}
#errMsg.on{
	margin-top:10px;
}
.logged {
	position: absolute;
	right: 10%;
	top: 0;
}
.logged a {
	color: white;
}
.register {
	width: 101.3%;
}
a button {
	color: black;
}
content h2 {
	text-align: center;
}
header a, footer a {
	color: white;
	text-decoration: none;
}
footer span {
	width: 80%;
	margin: auto;
	display: block;
	height: 30px;
}
footer span a {
	position: absolute;
	right: 10%;
}
.menuBtn {
	position: absolute;
	bottom: 0;
	left:0;
	right:0;
	margin: auto;
	display: block;
	width: 40px;
	height: 20px;
	margin-bottom: 5px;
	fill: white;
}
.menuBtn:hover {
	cursor: pointer;
}
nav {
	width: 100%;
	display: block;
	position: relative;
	height: 0;
	overflow: hidden;
	background-color: rgba(54, 68, 103, 0);
	
}
nav a {
	display: block;
	width: 100%;
	text-align: center;
	color: white;
	text-decoration: none;
	line-height: 35px;
	font-size: 18px;
}
nav a:hover {
	background-color: rgba(40, 50, 90, .5)
}
.emptyResults {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	text-align: center;
	width: 80%;
	margin: 25vh auto;
	font-size: 1.2em;
	font-weight: bold;
}
.listing {
	width: 80%;
	margin: auto;
	background-color: #45658B;
	border-radius: 10px;
	color: white;
	padding: 5px 2.5%;
/* 	height: 90px; */
	box-shadow: 5px 5px 5px #ccc;
}
.listing:hover {
	cursor: pointer;
}
.listbox {
	text-decoration: none;
}
.listing:active {
	box-shadow: inset 0 0 5px 5px #567;
}
.cName {
	display: block;
	font-size: 1.5em;
	font-weight: bold;
}
.listing span {
	line-height: 27px;
}
#churchBox {
	display: block;
	background-color: #45658B;
	width: 80%;
	margin: auto;
	border-radius: 10px;
	box-shadow: 5px 5px 5px #ccc;
	padding: 10px 2.5% 20px 2.5%;
	color: white;
}
.span {
	display: inline-block;
	padding-top: 7.5px;
}
.contact {
	float: right;
	text-align: right;
}
#churchBox a {
	color: #8d8;
	font-weight: bold;
}
h2{
	font-size: 1.5em;
}
.infoH {
	text-align: center;
}
.infoP {
	font-size: 1.1em;
	line-height: 22px;
	max-width: 80%;
	margin: auto;
}
.worship h3 {
	font-size: 1.1em;
}
.affil span, .programs span {
	margin-left: 55px;
	display: block;
}
#listSwitch {
	width: 100%;
	background-color: grey;
	position: fixed;
	height: 30px;
	top: 30px;
	white-space: nowrap;
	overflow: none;
	line-height: 30px;
	font-size: 18px;
	font-weight: bold;
	z-index: 11000;
	max-width:1000px;
}
.spacer {
	height: 20px;
	display: block;
	width: 100%;
}
#listSwitch:hover {
	cursor: pointer;
}
#listSwitch .left, #listSwitch .right {
	text-align: center;
	width: 50%;
	display: inline-block;
}
#listSwitch .active {
	background-color: #45658B;
	color: white;
	box-shadow: inset 3px 3px 3px #34547a;
}
#map {
	width: 80%;
	height: 60vh;
	margin: auto;
	border: 2px solid #45658B;
	display: none;
}
#churchList {
	display: none;
}
#switchContent .active {
	display: block;
}
#load {
	position: fixed;
	display: block;
	z-index: 10000;
	height: 100vh;
	width: 100vw;
	max-width:1000px;
	background-color: black;
}
.adspace{
	float: right;
    /* padding-right: 10vw; */
    top: 0;
    position: fixed;
    right: 0;
	
}
/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {

}

@media only screen and (max-width: 600px) {
	.headMob {
		display: block;
		height: 30px;
		margin: auto;
		width: 80%;
	}
	.infoP {
		max-width: 95%;
	}
	.headText {
		display: none;
	}
	content h2 {
		font-size: 16px;
	}
	.listing {
		width: 90%;
	}
	.cName {
		font-size: 1em;
	}
	#churchBox {
		width: 90%;
		font-size: 12px;
	}
	.address {
		max-width: 50%;
		display: inline-block;
	}
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

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

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}



.header_flex{
	display:flex;
}

.header_flex > *{
	display: flex;
	justify-content: center;
}


/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

#leftSide{
	width:35%;
	margin-left: 2.5%;
	float:left;
}

#leftSide img{
width:30vw;
max-width:280px;
}

#rightSide{
	width:60%;
	float:right;
	/* margin-bottom:50px; */
}

#rightSide iframe{
	display:block;
	margin:10px auto; 
	width:50vw; 
	height: 28vw;
}

#rightSide img{
	width:50vw;
	display: block;
	margin: auto;
}

#rightSide img:first-of-type{
	width:40vw;
}

#rightSide div{
	width:60%;
	margin: 0 auto;
}

#forms{
	padding:0 35px;
}

#forms p,h3{
	display:inline-block;
}

@media(max-width:800px){
	#leftSide{
		width:95%;
		margin: auto;
		display: block;
		float: none;
	}
	#leftSide img{
		width:180px;
		margin: auto;
		display: block;
	}
	#rightSide{
		width:100%;
		margin: auto;
		display: block;
		float: none;
	}
	#rightSide iframe {
		width: 100vw;
		height: 56.2vw;
	}
	#rightSide img,#rightSide img:first-of-type{
		/* width: 80vw; */
		width: 100%;
		float: right;
	}
	#forms{
		padding:0 10px;
	}
	#forms img{
		width:100%;
	}
	.regForm{
		padding-left:25px;
		overflow:hidden;
		
	}
	.regForm  input,.regForm p{
		width:90%;
		display:block;
	}
	
}

@media(min-width:1000px){
	#rightSide iframe{
		display:block;
		margin:10px auto; 
		width:550px; 
		height: 309px;
	}
	#rightSide img{
		width:500px;
	}
	#rightSide img:first-of-type{
		width:400px;
	}
}

