/* Element Level */

html,
body {
	margin: 0;
	width: 100%;
	height: 100%;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
	display: none;
}

input[type="button"] {
	background-color: #24478A;
	color: white;
	border-radius: 0;
}

input[type="button"]:disabled {
	opacity: 0.5;
}

input[type="text"],
input[type="password"] {
	padding-left: 3px;
}

/* Class Level */

.slide-in {
	-webkit-animation: slide-in 0.5s forwards;
	animation: slide-in 0.5s forwards;
}

.slide-out {
	-webkit-animation: slide-out 0.5s forwards;
	animation: slide-out 0.5s forwards;
}

.link {
	text-decoration: none;
	color: rgb(0, 122, 255);
}

.gridContainer {
	display: grid;
	grid-template-columns: fit-content(50%) 1fr;
	grid-auto-rows: min-content;
}

.gridItem * {
	background-color: inherit;
	border: none;
	line-height: 50px;
}

.gridItem>input {
	width: 100%;
	height: calc(100% - 3px);
}	

.gridItem>input[type='checkbox'] {
	height: 100%;
	flex-grow: 0;
}	

.gridItem>label {
	display: block;
	padding: 0 5px;
	width: auto;
	word-break: break-all;
}

.gridItem>input[type="button"] {
	height: 100%;
}

.gridOneLiner {
	grid-column-start: 1;
	grid-column-end: 3;
	text-align: center;
}

.gridClose {
	height: 0px;
	border-top: 1px solid gray;
}

.headerRow {
	display: flex;
	background-color: rgb(246, 247, 249);
	border-bottom: 1px solid grey;
	margin-bottom: 20px;
}

.headerLeftColumn {
	flex-basis: 33%;
	text-align: left;
	padding-left: 5px;
}

.headerMiddleColumn {
	flex-grow: 1;
	text-align: center;
	font-weight: bold;
	white-space: nowrap;
}

.headerMiddleColumn>label {
	padding: 0px;
}

.headerRightColumn {
	flex-basis: 33%;
	text-align: right;
	padding-right: 5px;
}

.headerSpacing {
	height: 30px;
}

.labelItem {
	min-width: 100px;
	background-color: rgb(246, 247, 249);
	border-top: 1px solid grey;
	border-right: 1px solid grey;
}

.inputItem {
	flex-grow: 1;
	background-color: white;
	border-top: 1px solid gray;
}

.checkboxRow {
	display: flex;
}

.hide {
	display: none;
}

.show {
	display: visible;
}

.linksAtBottomOfPageContainer {
	background-color: transparent;
	border: none;
	margin-top: 20px;
}

.centerLinks {
	justify-content: center;
}

/* ID Level */

#styleSpace {
	display: none;
}

#hiddenParms {
	display: none;
}

#allBody {
	position: relative;
	height: 100%;
	width: 100%;
}

#allBody .message {
	overflow: hidden;
}

#appSpace {
	width: 100%;
	height: 100%;
}

#nonAppSpace {
	display: block;
	position: absolute;
	top: 0;
	padding: 0;
	margin: 0;
	overflow-x: hidden;
	overflow-y: visible;
	width: 100%;
	height: 100%;
	font-family: helvetica;
	font-size: 1em;
	background-color: rgb(240, 239, 245);
}

#legalText {
	padding: 8px;
	width: calc(100% - 16px);
	font-size: smaller;
	text-align: left;
}

#nonAppSpace>* {
	position: absolute;
	height: 100%;
	width: 100%;
}

#signinProgressBar {
	width: 350px;
	height: 20px;
	border: 1px solid white;
	background-color: transparent;
	border-radius: 20px;
	max-width: 80%;
	margin: auto;
	overflow: hidden;
}

#signinProgressBarFill {
	background-color: white;
	height: 21px;
	width: 0;
	position: relative;
	border-radius: 35px 0px 0px 35px;
	/* Need to work around jagged edge for anti-aliasing of overlapping border-radii, so move left 3px */
	left: -3px;
	top: -1px;
	transition: width 1.0s, border-radius 1.0s;
}

#signinProgressTop {
	height: 25%;
}

#signinProgressMiddle {
	height: 50%
}

#signinProgressBottom {
	height: 25%;
}

#signinProgressLabel {
	color: white;
	text-align: center;
	font-size: 20px;
	line-height: 24px;
	height: 24px;
	font-family: "RobotoDraft", "Roboto", "Helvetica Neue", sans-serif;
}

#signinProgressScreen {
	background: radial-gradient(circle at top right, #104cb6, #1a2a3c);
	width: 100%;
	height: 100%;
	position: relative;
}

#signinImg {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	width: auto;
	height: auto;
	display: block;
	max-width: 50%;
	max-height: 50%;
	margin: auto;
	-webkit-animation: flashImg 3.0s linear 0s infinite;
	-moz-animation: flashImg 3.0s linear 0s infinite;
	-o-animation: flashImg 3.0s linear 0s infinite;
	animation: flashImg 3.0s linear 0s infinite;
}

#serverMsgContainer {
	height: 100%;
	width: 100%;
	background: rgba(0, 0, 0, 0.42);
	font-family: "RobotoDraft", "Roboto", "Helvetica Neue", sans-serif;
	position: absolute;
	top: 0px;
	left: 0px;
	display: none;
	z-index: -1;
}

#serverMsgContainer[class=show] {
	display: block;
	z-index: 2147483647;
}

#serverMsgContainer>#serverMsgBox {
	background-color: white;
	width: calc(100% - 80px);
	transform: translateY(calc(-50% - 40px));
	position: absolute;
	top: 50%;
	text-align: right;
	margin: 40px;
}

#serverMsgBox>#serverMsg {
	color: rgb(117, 117, 117);
	font-size: 18px;
	text-align: left;
	padding: 24px 24px 0px 24px;
	white-space: pre-wrap;
}

#serverMsgBox>#serverCode {
	color: black;
	font-size: 12px;
	text-align: right;
	padding: 8px;
}

#serverMsgBox>#serverMsgButtons>div {
	color: rgba(0, 0, 0, 0.87);
	background: none;
	border: none;
	padding: 0;
	font-size: 24px;
	margin: 24px 24px 0px 24px;
	display: inline-block;
}

#settingsPageRowContainer {
	background-color: inherit;
}

#signinHeaderRowItem {
	margin-bottom: 20px;
}

#signinUsernameRowItem {
	border-top: 1px solid grey;
}

/* Keyframes */

@-webkit-keyframes flashImg {
	0% {
		opacity: 1.0;
	}

	50% {
		opacity: 0.1;
	}

	100% {
		opacity: 1.0;
	}
}

@-moz-keyframes flashImg {
	0% {
		opacity: 1.0;
	}

	50% {
		opacity: 0.1;
	}

	100% {
		opacity: 1.0;
	}
}

@-o-keyframes flashImg {
	0% {
		opacity: 1.0;
	}

	50% {
		opacity: 0.1;
	}

	100% {
		opacity: 1.0;
	}
}

@keyframes flashImg {
	0% {
		opacity: 1.0;
	}

	50% {
		opacity: 0.1;
	}

	100% {
		opacity: 1.0;
	}
}

@keyframes slide-in {
	0% {
		-webkit-transform: translateX(100%);
		transform: translateX(100%);
	}

	100% {
		-webkit-transform: translateX(0%);
		transform: translateX(0%);
		display: visible;
	}
}

@-webkit-keyframes slide-in {
	0% {
		-webkit-transform: translateX(100%);
	}

	100% {
		-webkit-transform: translateX(0%);
		display: visible;
	}
}

@keyframes slide-out {
	0% {
		-webkit-transform: translateX(0%);
		transform: translateX(0%);
	}

	100% {
		-webkit-transform: translateX(100%);
		transform: translateX(100%);
		display: none;
	}
}

@-webkit-keyframes slide-out {
	0% {
		-webkit-transform: translateX(0%);
	}

	100% {
		-webkit-transform: translateX(100%);
		display: none;
	}
}

/* Fix for overflow from input fields*/
#nonAppSpace > input[type="text"],
#nonAppSpace > input[type="password"] {
	width: calc(100% - 3px);
}
