
html {
	background: #0e1540;
	color: white;
	padding: 0;
	margin: 0;
}

html.login-page {
	background: 
}

body {
	padding: 1rem;
	overflow: auto;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

body.registration,
.login-page body {
	position: static;
	display: block;
	padding: 0;
}

.accessible {
	position: absolute;
	left: -9999px;
}

.hidden {
	display: none;
}

.renderable {
	opacity: 0;
	transition: opacity 0.25s;
}

.renderable.render {
	opacity: 1;
	transition: opacity 0.25s;
}

.app-container {
	padding: 2rem;
	width: 80rem;
	max-width: 95%;
	box-sizing: border-box;
	margin: 0 auto;
	background: #459ed7;
}

.login-page .app-container {
	background: none;
}

.errors {
	text-align: center;
	font-size: 1.75rem;
	list-style: none;
	padding: 0;
	margin-left: 0;
}

.form-container.center {
	justify-content: center;
}

.form-container .form {
	padding: 1rem 2rem;
	box-sizing: border-box;
	border: solid 1px #0c629f;
	border-radius: 1rem;
}

.registration .form-container {
	flex-wrap: wrap;
}

.registration .form-container .form {
	border: 0;
}


.login-page .form-container .form {
	background: #a05bbf;
	border: 0;
	padding: 3rem 2rem;
}

.login-page .nma {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.login-page .currentAccount {
	font-size: 1.5rem;
	font-weight: 600;
}

.form-container .form + .form {
	margin-top: 1rem;
}

.form-header {
	text-align: center;
	font-size: 2rem;
	text-align: center;
	font-weight: bold;
	text-transform: uppercase;
	margin-bottom: 2rem;
}


.login-page .form-header {
	font-size: 1.5rem;
	text-transform: none;
}

.registration .form-container .form {
	display: block;
	flex-direction: column;
	align-items: flex-end;
	padding: 1rem 0;
}

.registration .form-container.teacher .form {
	margin: 0 auto;
	justify-content: center;
	align-items: center;
}

.registration .form-container.teacher .form .formrow:first-child {
	width: 100%;
}

.registration .form-container.teacher .btn-std {
	font-weight: 600;
}

.registration .form-container .form + .form {
	margin-top: 0;
	align-items: flex-start;
}

.form-prompt {
	text-align: center;
}

.formrow:not(.hidden) {
	margin: 1.5rem 0;
	display: flex;
	align-items: center;
}

.registration .formrow:not(.hidden) {
	margin: 1rem 0;
}

.registration .form:first-child .formrow:not(.hidden) {
	margin-top: 0.625rem;
}

.registration .form:nth-child(2) .formrow:not(.hidden):first-child {
	margin-top: 0.625rem;
}


.registration .formrow.wrap:not(.hidden) {
	flex-wrap: wrap;
	border-bottom: 3px solid white;
	padding-bottom: 1rem;
	width: 100%;
	margin-bottom: 0;
}

.registration .formrow.institution-info:not(.hidden) {
	width: 100%;
	display: block;
	justify-content: space-between;
	margin-top: 0.375rem;
}

.registration .formrow.institution-info:not(.hidden) .input:last-child {
	margin-top: 0.625rem;
}

.account-code-entry .formrow,
.login-page .formrow {
	justify-content: center;
}

.label {
	display: block;
	margin-right: 1rem;
}

.registration .formrow.wrap .label:not(.accessible) {
	width: 100%;
}

.registration .checkbox-container:not(.fullrow) {
	width: 33.3%;
	margin-bottom: 1rem;
}

.checkbox-container label {
	font-size: inherit;
	font-family: inherit;
	display: inline-flex;
	position: relative;
	align-items: center;
	justify-content: flex-start;
	cursor: pointer;
}

.checkbox-container label:before {
	content: "\f00c";
	font-family: "Font Awesome 5 Free";
	display: inline-flex;
	width: 1.5rem;
	height: 1.5rem;
	color: white;
	background-color: white;
	border:solid 3px #459ed7;
	margin-right: 0.5rem;
	justify-content: center;
	align-items: center;
	font-weight: bold;
}

.checkbox-container input:checked + label:before {
	color: #459ed7;
}

.input[type="checkbox"] + .label {
	cursor: pointer;
}

.input.text {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	margin: 0;
	font-size: 1rem;
	color: #000033;
	font-family: inherit;
	border: 0;
	display: block;
	padding: 1rem;
	box-sizing: border-box;
	width: 100%;
}

select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	margin: 0;
	font-size: 1rem;
	font-family: inherit;
	border: 0;
	display: block;
	padding: 1rem;
	background: white;
	color: darkgray;
	white-space: pre;
	box-sizing: border-box;
	border-radius: 0;
	width: 100%;
}


select.selected {
	color: #000033;
}

.registration .form-container .bottom-span {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.label:not(.accessible) + .input.text {
	flex: 1 1 auto;
	max-width: 20rem;
}


.buttons, .links,
.prompt {
	text-align: center;
	margin-top: 1rem;
}

.input.submit {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	margin: 0;
	font-size: 1rem;
	color: inherit;
	font-family: inherit;
	cursor: pointer;
	border: solid 3px #0c629f;
	padding: 0.25rem 2rem;
	background: #2e3192;
	font-weight: 600;
	border-radius: 1rem;
	box-sizing: border-box;
}

.login-page .buttons {
	margin-top: 2rem;
}

.login-page .btn-std {
	font-weight: 600;
	font-size: 1.25rem;
	padding: 0.25rem 2rem;
	display: inline-block;
}

.registration .btn-std {
	font-weight: 600;
	font-size: 1.25rem;
}

.login-page .buttons .btn-std {
	padding: 1rem 2rem;
}

.input.submit:disabled {
	opacity: 0.5;
	cursor: default;
}

.a, .p a  {
	background: none;
	border: 0;
	font-size: inherit;
	font-family: inherit;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	color: white;
	text-decoration: underline;
	cursor: pointer;
}

.general {
	text-align: center;
	margin-top: 3rem;
}

.general .links {
	margin-top: 0.625rem;
}


.table {
	width: 100%;
	margin-bottom: 2rem;
	font-size: 14px;
	font-weight: normal;
}

.table .td {
	text-align: center;
	font-size: 1rem;
	font-weight: normal;
}

.license-page .stripe-payment-intents-form {
	width: auto;
}

.payment-form-fields fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.payment-form-fields fieldset.card-data {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: white;
	margin: 0;
	font-size: 1rem;
	color: #000033;
	font-family: inherit;
	border: 0;
	display: block;
	padding: 1rem;
	box-sizing: border-box;
	width: 100%;
	margin-bottom: 1rem;
}

.payment-form-fields legend {
	font-weight: 600;
	margin-bottom: 1rem;
}


.payment-form-fields input[type="text"],
.payment-form-fields textarea {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	margin: 0;
	font-size: 1rem;
	color: #000033;
	font-family: inherit;
	border: 0;
	display: block;
	padding: 1rem;
	box-sizing: border-box;
	width: 100%;
	margin-bottom: 1rem;
}

.payment-form-fields fieldset.promo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2rem;
}

.payment-form-fields .promo  input[type="text"] {
	display: inline-block;
	padding: 0.25rem;
	margin-bottom: 0;
	text-align: center;
}

.form-container.hidden {
	display: none;
}

.form-container.center {
	margin: 0 auto;
}

.form-container.address-view > .form:first-child {
	display: block;
	margin: 0 auto;
}

.form-container.address-view > .form:last-child {
	display: none;
}

.form-container.purchase-view > .form:first-child {
	display: none;
}

.form-container.purchase-view > .form:last-child {
	display: block;
	margin: 0 auto;
}

.button.btn-std.sm {
	font-size: 12px;
	padding: 0.25rem 1rem;
}

#edit-shipping {
	display: inline-block;
	margin: 1rem auto 0 auto;
}

.payment-form-fields legend.billing,
.billing {
	margin-bottom: 0;
	line-height: 1.25rem;
}



@media only screen and (min-width: 992px) {
	.form-container {
		display: flex;
		justify-content: space-between;
	}

	.form-container .form {
		width: calc(50% - 1rem);
	}

	.form-container:not(.registration) div.form {
		width: calc(60% - 1rem);
	}

	.form-container .form .form {
		width: 100%;
		padding: 1rem 2rem;
	}

	.form-container .form + .form {
		margin-top: 0;
	}

	.registration .form-container .form {
		display: flex;
	}

	.registration .formrow:not(.wrap) {
		width: 100%;
		max-width: 360px;
	}

	.registration .formrow:not(.wrap) .input.text,
	.registration .formrow:not(.wrap) select {
		width: 100%;
		max-width: 360px;
	}

	.registration .formrow.institution-info:not(.hidden) {
		display: flex;
	}

	.registration .formrow.institution-info:not(.hidden) .input:last-child {
		margin-top: 0;
	}

	.input.text, select {
		width: auto;
	}

	.form-container:not(.registration) .input.text, 
	.form-container:not(.registration) select {
		width: 100%;
		max-width: 360px;
	}

	.form-container:not(.registration) .promo  input[type="text"] {
		max-width: 10rem;
	}

	.form-container.address-view .input.text,
	.form-container.address-view select {
		max-width: none;
	}


	.license .input.number.text {
		width: 3rem;
		padding: 0.125rem;
		text-align: center;
		display: inline-block;
	}
}