/* 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 );
 	transition: 0.5s;
}
* {
  box-sizing: border-box;
  outline: none !important;
}

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 {
	margin: 52px 0 30px 0;
	padding:0;
}

article {
	width: 80vw;
	min-width: 300px;
	margin: 0 auto;
	padding-bottom: 30px;
	background:white;
}

/* Left Panel */
#leftPanel {
	box-sizing:border-box;
	position:fixed;
	z-index:30;
	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;
	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;
}

/* 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;
}

#navButton {
	margin-left:10px;
	cursor:pointer;
  	vertical-align: middle;
	
}
.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);
	barckground: var(--gold);
	color: var(--midnight);
}
#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;                   
}*/

/* Typography */
h1 {
	line-height: 150%;
}

p, textarea {
	font-family:"Segoe UI Light", Verdana, Arial, Helvetica, Sans-Serif;
}