/* CSS Document */
:root {
  	--main-bg-color: white;
  	--panel-bg-color: #E9EDEE;
  	--dark-cyan: #1E5D81;
	--cyan: #1BAFDD;
	--coral: #F16A6A;
	--gold: #FFB453;
	--pearl-gray: #E9EDEE;
	--midnight:#1C3F54;
	--blue-black: #000408;
	--announcement-width: clamp(360px, 40vw, 1175px);
	--announcement-margin: calc( (100vw - var(--announcement-width))/2 );	
	--green: #3C0;
 	transition: 0.5s;
}

* {
  box-sizing: border-box;
}

/* Typography */
h1 {
	line-height: 150%;
}

p, textarea, label {
	font-family:"Segoe UI Light", Verdana, Arial, Helvetica, Sans-Serif;
}

@font-face {
  font-family: "Raleway";
  src: url("/WebFonts/Raleway-VariableFont_wght.ttf") format("ttf");
}

html, body {
	box-sizing:border-box;
	background-color: var(--pearl-gray);
	font-family: "Segoe UI Semi-Light", Arial, sans-serif;
	line-height: 1.5em;
	color: #203040;
	font-size: 16px;
}
body {
	display: flex; 
	justify-content: center;
	margin: 52px 0 30px 0;
	padding:0;
}

div .flex-container {
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

article {
	width: 95vw;
	min-width: 280px;
	margin: 0 auto;
	padding-bottom: 30px;
	height: calc(100vh - 88px);
}

article h2 {
	color: #DDDEEF;
	margin: 10px 10px;
}

.off {
	display:none;
}

table, article table {
	width: calc(100% - 40px);
	margin: 0 auto;
	border-collapse: collapse;
}

th, td {
 padding: 3px;
 margin: 0;
}

th {
	background: black;
	color:white;
}

/* Swappable panels */
#currentHymns, #planService, #editHymn {
	width: 80vw;
	height: calc(100vh-88px);
	margin: auto;
	background: white;
	margin: 0 auto;
	display: flex; 
	align-items: center; 
	justify-content: center;
}

#hymnsFound table, #hymnsFound th, #hymnsFound td {
	border: white 1px #000;
}

#planService {
	display: flex; 
	justify-content: center;
}

#editHymnContainer {
    display: grid;
    grid-gap: 5px;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    grid-auto-rows: 50px;
    grid-auto-flow: dense;
	width: 78vw;
	margin: 10px auto;
	background: white;
	border: solid 5px black;
	box-shadow: 5px 5px 5px rgba(0,0,0,.5);
}

.div_1x1 {
    grid-row: span 1;
    grid-column: span 1;
	background: DodgerBlue;
	padding:5px;
}

.div_1x2 {
    grid-row: span 1;
    grid-column: span 2;
	background: green;
	padding:5px;
}

.div_1x3 {
    grid-row: span 1;
    grid-column: span 3;
	background: black;
	padding:5px;
}

.div_2x2 {
    grid-column: span 2;
    grid-row: span 2;
	background:red;
	padding:5px;
}

.div_3x2 {
    grid-column: span 3;
    grid-row: span 2;
	background: orange;
	padding-right:10px;
}

.off {
	display: none;
	visibility: none;
}
aside {
	text-align:center;
	height: 100%;
	width:100%;
	border:1px solid black;
	margin: auto  auto;
	background: white;
}
aside h1 {
	text-align: center;
}
audio {
	border: solid 1px #405060;
	border-radius: 25px;
	margin: 5px auto 0 auto;
	height:30px;
	width:400px;
}

.ServiceHeader {
	font-family:Georgia, "Times New Roman", Times, serif;
	font-size:24px;
	font-weight:100;
	font-style:italic;
}

#modalHeader {
	font-family:Georgia, "Times New Roman", Times, serif;
	font-size:20px;
	font-weight:300;
	font-style:italic;
	margin: 0 0;
}

.firstLine {
	font-family:Georgia, "Times New Roman", Times, serif;
	font-size:13px;
	font-weight:100;
	font-style:italic;
	margin: 0 0 10px 0;
}


button>img {
	outline: none;
	border: none;
	width: 22px;
	height: 22px;
	margin: 2px;
}
button.control {
	width: 26px;
	height: 26px;
	border: 1px solid black;
	border-radius: 3px.
}

/* Special component background colors */

.OPENING {
	background: #9F6;
	padding: 2px;
	font-size: 1rem;
	font-weight: 500;
	color: black;
}
.CLOSING {
	background: #8CC4F0;
	padding: 2px;
	font-size: 1rem;
	font-weight: 500;
	color: black;
}
.COMMUNION {
	background: #FF8C8C;
	padding: 2px;
	font-size: 1rem;
	font-weight: 500;
	color: black;
}
.SPECIAL {
	background: #FF6;
	padding: 2px;
	font-size: 1rem;
	font-weight: 500;
	color: black;
}

/* Nav Bar */

/* Left Panel */
#leftPanel {
	box-sizing:border-box;
	position:fixed;
	z-index:20;
	width: 300px;
	padding: 3px;
	color: white;
	top: 52px;
	height: calc(100% - 79px);
    display:flex;
	flex-direction: column;
	align-items:flex-start;
 	transition: 0.8s;
}
#leftPanel.closed {
	left: -300px;
	background: rgba(0,0,0,0.25);
}

#leftPanel.open {
	left: 0px;
	z-index:20;
	background: rgba(0,0,0,0.95);
}
#leftPanel.open label, #leftPanel.open p {
	color:white !important;
}
#leftPanel.open a {
	color: var(--coral);
}
#leftPanel input {
	margin:0;
	height: 30px;
	width: 80%;
}
#leftPanel button {
	margin: 0;
	height: 30px;
	width: 80%;
}

/* Bottom Panel */
#bottomPanel {	
  transition: 0.5s;
  z-index:60;
}
#bottomPanel.closed {
	position:fixed;
	bottom:0;
	height: 28px;
	width:100%;
	z-index:60;
	background: rgba(153,153,153,0.75);
}
#bottomPanel.open {
	position:fixed;
	bottom:0;
	/* Subtract the header size */
	height: calc(100% - 51px);
	overflow: auto;
	width:100%;
	z-index:60;
	background: rgba(153,153,153,0.97);
}

#upDown {
	padding: 0;
	width:100%;
	text-align:center;
	cursor: pointer;
	border-bottom:groove 3px #CCC;
	border-top: solid 1px white;
	color: black;
	z-index:70;
}
#bottomPanel.open #upDown {
	position:fixed;
	margin-bottom: 5px;
}
#bottomPanel table tr:nth-child(even) td, #bottomPanel tr td.evenRow {
	background-color: #EDEEEF;
	border-color:white;
	outline: none;
}
#bottomPanel table tr:nth-child(odd) td, #bottomPanel tr td.oddRow {
	background-color: #DCDCDC;
	border-color:white;
	outline: none;
}
#bottomPanel table tr th, #bottomPanel table tr td {
	border: solid 1px white;
	outline: none;
}

span.firstLine {
	font-family:Georgia, "Times New Roman", Times, serif;
	font-size:0.8em;
	font-weight:100;
	font-style:italic;
}

tr td.media {
  display: flex;
  align-items: center;
  justify-content: left;
	vertical-align:middle;
}

tr td.media button, tr td.media img, button.media {
	width: 26px;
	height: 26px;
	margin-top: 2px;
	border-style: none; 
	outline: none;
}
#bottomPanel td, #bottomPanel th {
	outline: none;
}
img {
	border-style: none;
	outline: none;
}
td.category {
	background: var(--cyan) !important;
	color:#FFF;
	font-weight:500;
	padding-left: 5px;
}

/* Announcement panel */
#announcementPanel {
	box-sizing:border-box;
	position:fixed;
	z-index:60;
	width: var(--announcement-width);
	height: 400px;
	top: 0;
	padding:0;
	color: black;
    display:flex;
	flex-direction: column;
	/*margin:0 calc(50% - 180px) 0 calc(50% - 180px);*/
	margin: 0 var(--announcement-margin);
	border-radius:2px;
	box-shadow:5px 5px 15px rgba(0,0,0,0.3);
	border:none;
 	transition: 0.8s;
	/*border-radius: 0 0 10px 10px;*/

}
#announcementPanel.closed {
	top: -650px;
	background: rgba(255,255,255,0.25);
	filter:none;
 	transition: 0.8s;

}

#announcementPanel.open {
	top: 0;
	background: rgba(255,255,255,0.95);
 	transition: 0.8s;

}

/*#announcementBody {
	width:100%;
	height:370px;
	margin:0;
	overflow-y:auto;
	flex-direction: column;
	align-items:flex-start;
}*/

#announcementBody {
  display: grid;

  grid-template-areas:
    "header header header"
    "prev content next"
    "footer footer footer";

  grid-template-columns: 30px 1fr 30px;
  grid-template-rows: 35px 1fr 20px;
  grid-gap: 10px;
  height: 100%;
}

#msgTitle {
	grid-area: header;
	padding:15px 0 5px 0;
	background: var(--blue-black);
	color: white;
	font-size:1.5rem;
	font-weight: bold;
	height: 51px;
	vertical-align:middle;
	text-align:center;
}

.priority1 {
	background: #F30 !important;
	color:white;
}
.priority2 {
	background: var(--gold) !important;
	color: var(--blue-black) !important;
}
.priority3 {
	background: var(--midnight) !important;
	color:white;
}
#msgPrev {
	grid-area: prev;
	display: flex;
	align-items: center;
	justify-content: center;
}
/*#msgPrev:hover {
	background: var(--pearl-gray);
}*/
#butnPrev {
	width: 19px;
	height: 34px;
	background-color:transparent;
	background-image:url(/images/butnPrev.png);
	background-position:0px 0px;
	background-repeat:no-repeat;
	border:none;
}
#msgBody {
	grid-area: content;
	padding: 15px 0;
}
#msgNext {
	grid-area: next;
	display: flex;
	align-items: center;
	justify-content: center;
}
#currentMessageID {
	display:none;
}
/*#msgNext:hover {
	background: var(--pearl-gray);
}*/
#butnNext {
	width: 19px;
	height: 34px;
	background-color:transparent;
	background-image:url(/images/butnNext.png);
	background-position:0px 0px;
	background-repeat:no-repeat;
	border:none;
}
#butnNext:hover, #butnPrev:hover {
	cursor:pointer;
	background-position:0px -34px;
}

/*#butnPrev:hover, butnNext:hover {
	background:#FFF8D9;
	cursor:pointer;
}*/

#msgFooter {
	grid-area: footer;
	text-align:right;
	font-size:0.6rem;
	font-style:italic;
	font-weight:100;
	color: #708090;
	padding:0 10px 0 0;
}
#msgButton {
	cursor:pointer;
	width:20px;
	height:20px;
    border: 1px solid var(--pearl-gray);
	display: inline-block;
  	vertical-align: middle;
	margin: 0 20px;
	background-color:rgba(0,0,0,0.1);
}

.flashing {
	animation: msgFlash 1s infinite;
}
@keyframes msgFlash {
  0% {
    background-color:rgba(0,0,0,0.1);;
	color:#000000;
  }
  50% {
    background-color: var(--coral);
	color: #FF0000;
  }
  100% {
    background-color: rgba(0,0,0,0.1);;
	color: #000000;
  }
}

#announcementFooter {
	width:100%;
	height:30px;
	margin:0;
	padding: 0;
	text-align:right;
	border-top:1px solid var(--pearl-gray);
}
#announcementClose {
	width: 60px;
	height: 24px;
	margin: 3px;
}

/* Image */
img {
	border: 1px solid var(--midnight);	
}

img {
  max-width: 100%;
}
img[width] {
  width: auto; /* Defer to max-width */
}
img[width][height] {
  height: auto; /* Preserve aspect ratio */
}

/* Let SVG scale without boundaries */
img[src$=".svg"] {
  width: 100%;
  height: auto;
  max-width: none;
}



.hidden {
	display:none;
}
#modal,.modal-inner, #content {
	display: none;
}
#modal.show {
	margin:0;
	padding:0;
	z-index: 100;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.9);
	position:absolute;
	top:0;
	left:0;
	display: flex;
	justify-content: center; /* align horizontal */
	align-items: center; /* align vertical */
}

.modal-inner.show{
	width:60vw;
	max-width: 600px;
	min-width: 300px;
	height: 80vh;
	max-height: 900px;
	min-height: 460px;
	background: white;
	overflow-y:auto;
	display: block;
}
#content.show {
	padding: 5px;
	width: calc(60vw - 20px);
	max-width: 580px;
	min-width: 280px;
	height: 80vh;
	max-height: 900px;
	min-height: 460px;
	background: white;
	display: block;
}
.blurred {
	filter: blur(2px);
 	transition: 0.8s;
}
.shadowedText {
	text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}
.wrong {
	color: red;
	 text-decoration: line-through;
}
.right {
	color:green;
	font-weight:500;
}
.small {
	font-size:0.7rem;
	line-height:1rem;
}
.stepContainer {
	margin:0;
	padding:0;
	display: flex;
	justify-content: flex-start;
	flex-direction: row;
}
.stepNumber {
	width: 40px;
	height:40px;
	border-radius: 10px;
	background: var(--coral);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size:1.8em;
	font-weight:bold;
	float: left;
	margin: 10px 10px 0 0;
}
.stepNumber.disabled {
	background: var(--pearl-gray);
}

div {
	box-sizing:border-box;	
}
header {
	font-family: "Segoe UI Semi-Bold", Arial, sans-serif;
	line-height: 1.5em;
}
footer {
	display:flex;
	justify-content: space-between;
	font-size: 0.8em;
	text-align: right;
	font-style: italic;
}
.container {
	display: flex;
	padding: 0 5px 5px 5px;
	font-size: 1em;
	justify-content: center;
	flex-direction: row;
	flex-wrap: wrap;
	width: 92vw;
	margin: 10px auto;
	background: var(--dark-cyan);
	color: white;
}
.form-container {
	display: flex;
	padding: 30px;
	margin: 30px;
	font-size: 1em;
	justify-content:center;
	flex-direction: column;
	flex-wrap: wrap;
	width: 75%;
	max-width:600px;
	min-width:300px;
	background: white;
	color: var(--midnight);
	border: 5px solid var(--coral); 
	border-radius:10px;
}
.editor-container {
	display: block;
	padding: 0 5px 5px 5px;
	font-size: 1em;
	width: 92vw;
	margin: 0 auto;
	background: var(--dark-cyan);
	color: white;
	min-height: 80vh;
}
.editor-frame {
	width:85%;
	min-width: 300px;
	height: 280px;
	background: white;
	margin: 10px auto;
	border: 5px solid var(--coral); 
	border-radius:10px;
}
#editor {
	background:white;
	height:200px;
	overflow:auto;
	color:black;
}
.bg1 {
	background: #000;
	color: #FFF;
}
.bg2 {
	background: #BBB;
	color: #000;
}
.bg3 {
	background: #FFDE00;
	color: #000;
}
.bg4 {
	background: #FC8;
	background-size: cover;
	color: #000;
}
.bg5 {
	background: #39F;
	background-size: cover;
	color: #000;
}
.bg6 {
	background: #96F;
	color: #FFF;
}
.bg7 {
	background: #6D3;
	color: #000;
}
.horizontal {
	grid-column: span 1;
}
.vertical {
	grid-row: span 2;
	grid-column: span 1;
}
.big {
	grid-column: span 1;
	grid-row: span 2;
}

@media only screen and (min-width: 481px) {
.container {
	width: 100vw;
	margin: 0 auto;
}
}
@media only screen and (min-width: 717px) {
.container {
	width: 100vw;
	margin: 0 auto;
}
.horizontal {
	grid-column: span 2;
}
.vertical {
	grid-row: span 2;
}
.big {
	grid-column: span 2;
	grid-row: span 2;
}
}
@media only screen and (min-width: 769px) {
.container {
	width: 80vw;
	margin: 10px auto;
	max-width: 1215px;
}
.horizontal {
	grid-column: span 2;
}
.vertical {
	grid-row: span 2;
}
.big {
	grid-column: span 2;
	grid-row: span 2;
}
}

/* entire container, keeps perspective */
.flip-container {
	perspective: 1000px;
	margin:5px;
}
/* flip the pane when clicked */
.flip-container.hover .flipper, .flip-container.flip .flipper {
	transform: rotateY(180deg);
}

.flip-container, .front, .back {
	width: 320px;
	height: 480px;
}

/* flip speed goes here */
.flipper {
	transition: 0.6s;
	transform-style: preserve-3d;

	position: relative;
}

/* hide back of pane during swap */
.front, .back {
	backface-visibility: hidden;
	padding:10px;
	position: absolute;
	top: 0;
	left: 0;
	border-radius:5px;
}

/* front pane, placed above back */
.front {
	z-index: 2;
	/* for firefox 31 */
	transform: rotateY(0deg);
	background-color:#ACF;
}

/* back, initially hidden pane */
.back {
	transform: rotateY(180deg);
	background-color:#FC3;
	padding: 5px;
    display: flex;
    font-size: 1em;
	justify-content: space-around;
	flex-direction: column;
}

/**********************
* Structural elements *
**********************/
/* Nav bar */
nav {
	position: fixed;
	top:0;
	display:flex;
	justify-content: space-between;
	flex-direction: row;
	align-items: center;
	
	background: var(--blue-black);
	
	width:100vw;
	height: 51px;
	color: white;
	font-size: 16px;
	font-family: "Segoe UI Light", Arial, Helvetica, Sans-Serif;
	padding:0;
	margin:0;
	margin-bottom: 20px;
	z-index:99;
}

nav.child {
	margin: auto;
	display:flex;
	justify-content: space-between;
	flex-direction: row;
	align-items: center;
	text-align:center;
	width: 120px;
	font-family:"Segoe UI Light", Verdana, Arial, Helvetica, Sans-Serif;
  	vertical-align: middle;
	outline: none;
	border: none;
}
.navLink {
	color: #DEDEFF;
	text-decoration:none;
	outline:none;
}
.navCurrent {
	font-weight: bold;
	color: white;
}

#navButton {
	margin-left:10px;
	cursor:pointer;
  	vertical-align: middle;
	outline:none;
	
}
.rotated {
	/* Firefox */
	-moz-transform: rotate(90deg);
	/* WebKit */
	-webkit-transform: rotate(90deg);
	/* Opera */
	-o-transform: rotate(90deg);
	/* Standard */
	transform: rotate(90deg);
 	transition: 0.5s;
}

.rotate180 {
	/* Firefox */
	-moz-transform: rotate(180deg);
	/* WebKit */
	-webkit-transform: rotate(180deg);
	/* Opera */
	-o-transform: rotate(180deg);
	/* Standard */
	transform: rotate(180deg);
 	transition: 0.5s;
}

#upDownArrow {
	border:none;
	margin:0;
	padding:0;
}
#upDown {
	padding: 0;	
	line-height:24px;
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#45484d+0,000000+100;Black+3D+%231 */
	background: var(--blue-black); /* Old browsers */
	/* background: -moz-linear-gradient(top, #45484d 0%, #000000 100%); FF3.6-15 */
	/* background: -webkit-linear-gradient(top, #45484d 0%,#000000 100%); Chrome10-25,Safari5.1-6 */
	/* background: linear-gradient(to bottom, #45484d 0%,#000000 100%); W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	/* filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#000000',GradientType=0 ); IE6-9 */

}
#navOwner {
	margin-right:10px;
}
#navDate {
	font-size:1.5rem;
}

button {
	border-radius: 5px;
	border: solid 1px var(--midnight);
	background: var(--gold);
	color: var(--midnight);
	width: 100px;
}

#hero {
	margin:0 auto;
	padding: 5px;
	width:100vw;
	height: 30vh;
	background: var(--pearl-gray);
}

/*.container:hover {
      cursor: pointer;                   
      filter: brightness(120%); 
	  border: 2px solid white;                   
}*/
