:root {
	/*	Colors	*/
	--crazy-green:      #035D19;
	--dark-blue:        #001420;
	--dark-green:       #002008;
	--dark-grey:				#404040;
	--dark-red:					#990000;
	--light-blue:       #9FDCFF;
	--light-green:      #9FFFDA;
	--light-grey:				#B2B4B2;
	--light-red:				#FF0000;
	--lighter-grey:			#CFCFCF;
	--metallic-blue:    #245C46;
  --green-grey:       #627D7D;
  --plum-purple:			#9C50B6;

	--media-max-width:			600px;

	/*	Theme Variables	*/
	--theme-color-primary:		var(--dark-blue);
	--theme-color-secondary:	var(--light-green);
	--theme-color-tertiary:		var(--green-grey);
}

* {
	transition: height 0.25s linear,
				flex-basis 0.25s linear,
				transform 0.25s linear;
	font-size: 1em;
}

html, body {
	margin: 0;
	height: 100%;
	font-family: Arial, sans-serif;
}

body {
	display: flex;
	flex-direction: column;
}

h1 {
	font-size: 2em;
}

h2 {
	font-size: 1.25em;
}

#content {
	position: relative;
	flex-basis: 300px;
	flex-grow: 1;
	flex-shrink: 1;
	padding: 25px;
	width: 900px;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0;
	margin-bottom: 0;
	box-sizing: border-box;

/*	max-width: 600px ;*/
/*	margin: auto;*/
}

#header-container {
	justify-self: flex-start;
	flex-basis: 50px;
	height: 50px;
	flex-grow: 0;
	flex-shrink: 0;
	position: sticky;
	top: 0;
	width: 100%;
	background-color: var(--theme-color-tertiary);
	z-index: 11;
}

#header-mobile-container {
	display: none;
}

#header-mobile-menu-icon {
	width: 30px;
	height: auto;
	margin: 5px;
	padding: 5px;
	border: 2px solid white;
	border-radius: 5px;
	background-color: var(--theme-color-tertiary);
	cursor: pointer;
}

#header {
	height: 100%;
	display: flex;
	position: relative;
	flex-direction: row;
	justify-content: center;
	align-items: stretch;
	background-color: var(--theme-color-tertiary);
	color: var(--dark-blue);
	font-size: 1em;
	border-bottom: 1px solid var(--theme-color-primary);

	white-space: nowrap;
}

#header * {
	transition: background-color 0.25s linear,
							color 0.25s linear;
}

#header > div {
	flex-basis: 0;
	flex-grow: 1;
	flex-shrink: 1;

	display: flex;
	position: relative;
	justify-items: center;
}

#header > div:first-child {
	justify-content: flex-start;
}

#header > div:nth-child(2) {
	justify-content: flex-end;
}

#header > div > div {
	display: flex;
	position: relative;
	align-items: center;
	justify-content: center;
}

/*#header > div > div:first-child {
	padding-left: 20px;
	padding-right: 20px;
}

#header > div > div:last-child {
	padding-right: 20px;
	padding-left: 20px;
}*/

.nav-hr {
	background-color: var(--dark-blue);
	border-color: var(--dark-blue);
	width: 80%;
	margin-top: 2px;
}

.nav-dropdown-title {
	color: var(--dark-blue);
	font-weight: bold;
	text-align: center;
	user-select: none;
	cursor: auto;
	margin-top: 15px;
}

.nav-button {
	cursor: pointer;
	position: relative;
	padding: 0px;
	user-select: none;
}

.nav-button > a {
	display: inline-block;
	width: 100%;
	height: 100%;
	padding-top: 8px;
	padding-bottom: 8px;
	padding-left: 24px;
	padding-right: 24px;
}

.nav-button:hover,
.nav-dropdown:hover,
.nav-dropdown-item:hover,
.show {
	color: var(--light-blue);
	background-color: var(--theme-color-primary);
}

.nav-dropdown {
	cursor: pointer;
	padding-left: 24px;
	padding-right: 24px;
	user-select: none;
}

.nav-selected,
.nav-dropdown:hover,
.nav-button:hover,
.nav-dropdown-item:hover,
.show {
	box-shadow: 0 0 8px black;
}

.nav-dropdown-collapse {
	position: absolute;
	display: none;
	left: 0;
	top: 110%;
	min-width: 150px;
	min-height: 15px;
	padding: 5px;
	background-color: var(--theme-color-tertiary);
	border-radius: 5px;
}

.nav-dropdown-item {
	color: black;
	position: relative;
	border-radius: 5px;
}

.nav-dropdown-item > a {
	
	padding-top: 8px;
	padding-bottom: 8px;
}

.show {
	display: flex !important;
	flex-direction: column;
	justify-content: initial;
}

.hidden {
	display: none !important;
}

.disabled {
	pointer-events: none;
	color: grey;
}

.nav-icon-sm {
	width: 8px;
	margin: 3px;
	height: auto;
}

#header a,
#header a:link,
#header a:visited,
#header a:hover,
#header a:active {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.divider {
	display: inline;
	width: 1px;
	border: none;
	background-color: var(--light-grey);
	margin: 6px;
}

#header-logo {
/*	text-shadow: 0 0 1px white;*/
	background-color: white;
	color: var(--dark-blue);
	cursor: pointer;
	font-style: italic;
	padding-left: 8px;
	padding-right: 8px;
}

/*#header-logo:hover {
	animation: text-flash-white 1s linear;
	animation-fill-mode: forwards;
}*/

#footer {
	display: flex;
	flex-direction: row;

	justify-self: flex-end;
	flex-basis: auto;
	flex-shrink: 0;
	flex-grow: 0;
	background-color: var(--theme-color-tertiary);
	color: var(--dark-blue);
	border-top: 1px solid var(--theme-color-primary);
/*	padding-bottom: 25px;*/
}

#footer > div {
	position: relative;
	flex-basis: 150px;
	flex-grow: 1;
	flex-shrink: 1;
}

#footer > div:first-child {
	display: flex;
	flex-direction: column;
	text-align: center;
	align-items: stretch;
	justify-content: center;
}

#footer > div:first-child > div {
	flex-basis: 0;
	flex-grow: 1;
	flex-shrink: 1;
	transition: background-color 0.25s ease-out,
				color 0.5s ease-out;
	color: var(--theme-color-primary);
}

#footer > div:first-child > div:hover {
	background-color: var(--theme-color-primary);
	color: white;
}

#footer > div:nth-child(3) {
	display: flex;
	align-items: center;
	text-align: center;
	padding: 10px;
}

#footer a,
#footer a:link,
#footer a:visited,
#footer a:hover,
#footer a:active {
	position: relative;
	display: block;
	align-items: center;
	justify-content: center;
	width: 100%;
	color: inherit;
	text-decoration: none;
	padding-top: 5px;
	padding-bottom: 5px;
}

#usafa-logo {
	position: absolute;
	width: 225px;
	max-width: 90%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.title {
	font-size: 2.5em;
	font-weight: bold;
	text-align: center;
	color: var(--dark-blue);
	padding: 20px;
}

.title-hr {
	width: 80%;
	color: var(--light-grey);
	margin-bottom: 25px;
}

.title-hr-left {
	width: 50%;
	margin-bottom: 25px;
	margin-left: 0;
}

.sub-title-left,
.sub-title-right,
.sub-title {
	font-size: 1.5em;
	color: var(--dark-blue);
	padding: 10px;
}

.sub-title {text-align: center;}
.sub-title-right {text-align: right;}

/* Form types */

.form-information {
	display: flex;
	flex-direction: column;

}

.form-information > div {
	display: flex;
	flex-direction: row;
}

.form-information label {
	flex: 0 0 200px;
	text-align: right;
	padding-right: 15px;
	padding-left: 15px;
/*	margin-left: auto;*/
	font-size: 1.25em;
	color: darkgrey;
}

.form-information input,
.form-information select {
	margin-bottom: 25px;
	font-size: 1.15em;
}

.form-information input[type="text"],
.form-information input[type="password"],
.form-information input[type="email"] {
	flex: 0 0 300px;
	padding-left: 15px;
	padding-right: 15px;
	margin-right: auto;
}

.center label,
.center input[type="submit"] {
	margin-left: auto !important;
}

.form-information input[type="submit"] {
	margin: auto;
	margin-left: 230px;
}

.form-information textarea {
	resize: none;
	width: 100%;
	font-size: 1.25em;
	margin-bottom: 25px;
}

/*
  Messaage handler styling
 */

#msg-overlay {
/*	display: none;*/
	position: fixed;
	background-color: rgba(0, 0, 0, 0.5);
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 11;
}

.msg-activated {
	display: block;
}

.msg-box {
	position: fixed;
	display: flex;
	flex-direction: column;

	background-color: white;
	width: 100%;
	min-height: 150px;
	max-width: 450px;
	top: 50%;
	left: 50%;
/*	transform: translate(-50%, -50%);*/
	z-index: 12;
	animation-name: msg-box-fade-in;
	animation-duration: 1s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}

.msg-box > div:first-child {
	position: relative;
	display: flex;
	background-color: var(--lighter-grey);
	height: 100%;
	flex-direction: row;
	align-content: stretch;
	padding-left: 10px;
	padding-right: 10px;
}

.msg-box .msg-box-title {
	height: 100%;
	flex: 1;
	align-self: center;
	text-align: center;
}

.msg-box-title {
	font-size: 1.25em;
	color: var(--dark-grey);
/*	text-decoration: ;*/
}

.msg-box-body {
	padding: 15px;
	color: var(--dark-grey);
}

.msg-box-icon {
	display: block;
	margin: 5px;
	width: 35px;
}

.msg-box-close {
	display: block;
	margin: 5px;
	width: 25px;
	height: 25px;
	padding: 5px;
	border-radius: 15px;
	cursor: pointer;
}

.msg-box-close:hover {
	background-color: var(--light-grey);
	box-shadow: 0 0 5px white;
}

#msg-menu-container {
	position: fixed;
	width: 900px;
	height: 600px;
	max-height: 100%;
	max-width: 100%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

	border: 1px solid black;
	border-radius: 15px;
	background-color: white;
	z-index: 11;
}

#msg-menu-container > div:first-child {
	display: flex;
	flex-direction: row;
	height: 50px;
	justify-content: flex-end;
}

.msg-menu-frame {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	height: calc(100% - 50px);
	border: none;
	border-radius: 15px;
	overflow-y: scroll;
}

@media (max-width: 600px) {

	#content {
		margin-top: 50px;
		margin-bottom: 25px;
	}

	#header,
	#header > div,
	#footer {
		flex-direction: column;
		justify-self: center !important;
		flex-basis: auto !important;
		flex-shrink: 0;
		flex-grow: 0;
		height: initial;
	}

	#header > div > div {
		padding-top: 20px;
		padding-bottom: 20px;
		flex-direction: column;
		padding-right: 20px !important;
  	padding-left: 20px !important;
	}

	#header {
		overflow: scroll;
		height: 0px;
		position: fixed;
		width: 100%;
		justify-content: flex-start;
	}

	#header-container {
		position: fixed;
		width: 100%;
	}

	#header-mobile-container {
		display: flex;
		justify-content: flex-end;
	}

	.header-mobile-menu-expand {
		height: calc(100vh - 50px) !important;
		overflow: scroll;
	}

	.nav-dropdown {
		justify-content: flex-start !important;
		flex-basis: auto;
		flex-grow: 0;
		flex-shrink: 0;
	}

	.nav-dropdown *.span {
		position: relative;
	}

	.nav-dropdown-collapse {
		display: flex;
		position: relative;
		width: 100%;
		max-width: initial;
		min-height: initial;
		padding: initial;
		flex-direction: column;
		justify-content: flex-start;
		flex-basis: 0;


		left: initial;
		top: initial;
/*		margin: none;*/
		overflow: hidden;
		border: none;
	}

	.nav-dropdown-item {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.show {
		flex-basis: 100%;
		border: 2px solid darkgrey;
		margin: 5px;
	}

	#footer {
		justify-content: flex-start;
	}

	#footer > div {
		flex-basis: auto;
	}

	#usafa-logo {
		all: initial;
		position: relative;
		width: 150px;
		max-width: 90%;
		transform: translateX(-50%);
		left: 50%;
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.title {
		font-size: 2.5em;
	}

	/*Mobile forms*/
	.form-information > div {
		flex-direction: column;
	}
	.form-information label {
		flex: 1 1 100%;
		text-align: center;
		margin: 0;
		color: var(--dark-blue);

		background-color: var(--theme-color-tertiary);
		border-radius: 15px 15px 0 0;
		border: 1px solid darkgrey;
	}

	.form-information input,
	.form-information select {
		border-radius: 0;
	}

	.form-information input[type="text"],
	.form-information input[type="password"],
	.form-information input[type="email"] {
		flex: 1 1 100%;
		margin: 0;
		margin-bottom: 10px;
		border: 3px inset var(--theme-color-tertiary);
		border-top: none;
	}

	.form-information input[type="submit"] {
		margin-left: auto;
	}

}

@keyframes text-flash-white {
	0% {}
	75% {
		color: white;
		text-shadow: 0 0 3px white;
	}
	100% {
		text-shadow: 0 0 1px white;
	}
}

@keyframes msg-box-fade-in {
	0% {
		transform: translate(-50%, -100%);
		opacity: 0;
	}

	100% {
		transform: translate(-50%, -50%);
		opacity: 1;
	}
}