@font-face {
	font-family: 'Scandia';
	font-style: normal;
	font-weight: 400;
	src: url(/fonts/ScandiaWebRegular.woff2);
}

@font-face {
	font-family: 'Scandia';
	font-style: normal;
	font-weight: bold;
	src: url(/fonts/ScandiaWebBold.woff2);
}

* {
	font-family: 'Scandia', sans-serif
}

html {
	background: #333;
}

body {
	background: white;
	font-size: 12pt;
	color: #333;
	width: 1000px;
	padding: 2.5%;
	margin: 1em auto;
	max-width: 95%;
}

h1 {
	padding: 0 2em;
}

legend {
	font-size: 1.5em;
	font-weight: bold;
	color: #004b65;
}

h3 {
	margin: 1em 0 0.5em 0;
	padding: 0;
	font-size: 14px;
	font-style: italic;
	color: #333;
}

h4 {
	margin: 0;
	padding: 0;
	font-size: 14px;
}

img.req {
	vertical-align: top;
	width: 5px;
}

form {
	width: 100%;
	line-height: 1.7em
}

fieldset {
	display: inline-block;
	vertical-align: top;
	border: 0;
	margin: 0;
}

fieldset input[type="text"],
fieldset input[type="number"] {
	display: inline-block;
	padding: 0;
	margin-bottom: 1.5em;
	width: 16em;
	text-transform: capitalize;
	font-size: 12pt;
	height: 2em;
}

fieldset label {
	display: block;
}

input[type="text"],
input[type="number"] {
	box-sizing: border-box;
	text-indent: 5px;
	-webkit-appearance: none;
	appearance:none;
	border-radius: 0;
}

input[type="button"] {
	height: 2em;
	width: auto;
	background-color: #2475B8;
	-webkit-appearance: none;
	appearance:none;
	border-radius: 0;
	border: 1px solid rgba(128, 128, 128, 0.4);
	color: white !important;
	cursor: pointer;
	display: inline-block !important;
	font-size: 14px;
	font-weight: bold;
	margin: 0 0 5px 0;
	outline: none;
	padding: 8px 16px 24px;
}

input[type="button"]:hover {
	background: #2e97ed
}
input[type="button"]:disabled {
	background: #ccc;
	color: #666;
}

input[type=checkbox] {
	margin: 0;
	display: inline-block;
	width: auto;
	height: auto;
	vertical-align: middle;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #333;
	border-radius: 4px;
	width: 24px;
	height: 24px;
}

input[type=radio] {
	display: inline-block;
	width: auto;
	height: auto;
	vertical-align: middle;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #ccc;
	width: 24px;
	height: 24px;
	border-radius: 50%
}

input[type=radio] {
	margin: 0 0.2em 0 0.2em;
}

input[type=radio]:nth-of-type(2) {
	margin: 0 0.2em 0 .8em;
}

input[type=checkbox]:checked:after {
	position: relative;
	bottom: 3px;
	left: 1px;
	color: rgb(1, 73, 100);
	font-size: 22px;
	font-weight: bold;
	content: "\2713";
	/* check mark */
}

table.commpreferences {
	text-align: center;
	line-height: 1.5em;
	border-spacing: 0;
}

table.commpreferences td {
	vertical-align: middle;
	border-bottom: 1px solid #eee;
	padding: 10px 6px;
}

table.commpreferences td:last-child {
	text-align: left;
	padding-left: 1.5em;
}

.subtext {
	color: #777;
	font-size: smaller
}

span.radioOption {
	display: inline-block;
	vertical-align: middle;
	margin: 0;
	font-size: smaller
}

textarea {
	display: block;
	width: 100%;
	margin-bottom: 0;
}

label {
	margin: 0;
	padding: 0;
	font-weight: bold;
	display: inline-block;
	color: black;
}

select {
	width: 12em;
	font-size: 12pt;
	text-indent: 5px;
	margin: 0 0 1.5em;
	top: 0;
	display: inline-block;
	box-sizing: border-box;
	height: 2em;
	-webkit-appearance: none;
	appearance:none;
	border-radius: 0;
	vertical-align: top;
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjEwIDEwNS4yIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyMTAgMTA1LjI7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48ZyBpZD0iX3gzMV81MURaRi50aWYiPjxnPjxnPjxwYXRoIGQ9Ik0xNzMuNywxOC43Yy0wLjYsMC43LTEuMiwxLjUtMS44LDIuMmMtMjMuOCwyMy44LTQ3LjYsNDcuNi03MS40LDcxLjRjLTAuNCwwLjQtMC45LDAuOC0xLjUsMS4zYy0wLjgtMC42LTEuNS0xLjItMi4xLTEuOEM3My4zLDY4LjMsNDkuNyw0NC43LDI2LjIsMjEuMmMtMC44LTAuOC0xLjQtMS42LTIuMS0yLjRDNzMuOSwxOC43LDEyMy44LDE4LjcsMTczLjcsMTguN3oiLz48L2c+PC9nPjwvZz48L3N2Zz4=) right 5px center no-repeat;
	background-size: auto 22%;
	padding: .25em 1.5em .25em .3em;
}

fieldset p input {
	display: inline;
	float: none;
}

#offers input {
	display: inline;
	padding: 0;
	margin: 0;
}

#agreebox {
	display: block;
}

#activities {
	line-height: 1.5em;
}

#activities input {
	display: inline;
	margin: 0 3px;
}


#childwaiver {
	display: none;
}

#printliability {
	display: none;
}

#signature {
	display: none;
}

#whitecastle {
	display: inline-block;
	margin: 0;
	padding: 0;
}

#blackcastle {
	display: none;
}

#medical {
	margin: 1em 0 2em;
}

#parqtable td {
	vertical-align: top;
	padding-top: 0.5em;
	line-height: 1.4em;
}

#parqyes {
	visibility: hidden;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: 1s ease all;
	border: 1px dotted #444;
	padding: 1em;
	margin: 1em;
}

#parqyes.show {
	visibility: visible;
	max-height: 16em;
	opacity: 1.0;
	margin: 1em 1em 3em;
}

hr {
	margin: 1em 0 2em;
	width: 100%;
	padding: 0;
}

input[type=text],
input[type=number],
textarea,
select {
	-webkit-transition: all 0.2s ease-in-out;
	transition: .2s ease all;
	outline: none;
	margin: 5px 1px 1em 0px;
	border: 1px solid #DDDDDD;
	padding: 1px 2px;
}

input[type=text]:focus,
input[type=number]:focus,
textarea:focus,
select:focus {
	box-shadow: 0 0 5px rgba(100, 203, 238, 1);
	border: 1px solid rgba(100, 203, 238, 1);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}


/* intro */
@keyframes wipeIn {
	from {
		max-width: 0;
	}

	to {
		max-width: 100vw;
	}
}

@-webkit-keyframes wipeIn {
	from {
		max-width: 0;
	}

	to {
		max-width: 100vw;
	}
}

@-webkit-keyframes fadeout {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

@keyframes fadeout {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

.fadeOut {
	-moz-animation: fadeout 1s linear;
	-webkit-animation: fadeout 1s linear;
	animation: fadeout 1s linear;
	animation-fill-mode: forwards;
}

body.screensaver {
	cursor: pointer;
	background: white;
	color: white;
	width: 100%;
	margin: 0;
	min-height: 100vh;
	max-width: none;
	padding: 0;
	overflow: hidden;
	position: fixed;
}

#castlestart a {
	color: white;
	text-decoration: none;
	font-weight: normal;
}

#castlestart {
	position: absolute;
	left: 50%;
	top: 50%;
	margin-top: -200px;
	z-index: 999;
	margin-left: -225px;
	width: 450px;
	transition: opacity .1s;
	-webkit-transition: opacity .1s;
	text-align: center;
	opacity: 0.9
}

#castlestart:hover {
	opacity: 1.0
}

#castlestart .text {
	display: inline-block;
	border-top: 2px solid white;
	font-size: 36pt;
	padding: 4px 0 0;
	text-align: center;
	font-weight: 400;
	text-transform: uppercase
}

#castlestart .text span {
	border-bottom: 2px solid white;
	padding: 0;
}

#starfield {
	transition: 1s ease all;
	-webkit-transition: 1s ease all;
	margin: 0;
	padding: 0;
	max-width: 100vw;
	left: 0;
	animation: wipeIn 1s;
	-webkit-animation: wipeIn 1s;
}

#starfield.wipe {
	opacity: 0;
	left: 0;
	max-width: 0;
	background: white;
}



/* signature pad */
.sigPad {
	margin: 0;
	padding: 0;
	width: 200px;
}

.sigPad label {
	display: block;
	margin: 0 0 0.515em;
	padding: 0;

	color: #000;
	font: italic normal 1em/1.375 Georgia, Times, serif;
}

.sigPad label.error {
	color: #f33;
}

.sigPad input {
	margin: 0;
	padding: 0.2em 0;
	width: 198px;

	border: 1px solid #666;

	font-size: 1em;
}

.sigPad input.error {
	border-color: #f33;
}

.sigPad button {
	margin: 1em 0 0 0;
	padding: 0.6em 0.6em 0.7em;

	background-color: #ccc;
	border: 0;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px;

	cursor: pointer;

	color: #555;
	font: bold 1em/1.375 sans-serif;
	text-align: left;
}

.sigPad button:hover {
	background-color: #333;

	color: #fff;
}


.sigWrapper {
	clear: both;
	height: 55px;

	border: 1px solid #ccc;
}

.sigWrapper.current {
	border-color: #666;
}

.signed .sigWrapper {
	border: 0;
}

.pad {
	position: relative;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
}


p.error {
	display: block;
	margin: 0.5em 0;
	padding: 0.4em;

	background-color: #f33;

	color: #fff;
	font-weight: bold;
}

.sigWrapper {
	width: 300px;
	height: 100px !important;
	border: 1px solid black;
}

.sigPad {
	text-align: right;
	display: inline-block;
	vertical-align: top;
}

.pad {
	width: 100%;
	height: 100%;
	border: 1px solid black;
}

#parentSig {
	padding: 0 1em;
	display: none;
	text-align: left;
	width: auto;
	margin-right: 10%;
	position: absolute;
	left: 0;
	top: 0;
}

#parentSig.show {
	display: block;
	animation: slideIn 1s;
}


@keyframes slideIn {
	0% {
		transform: translateX(-50px);
		opacity: 0;
	}

	100% {
		transform: translateX(0);
		opacity: 1.0;
	}
}

@keyframes rotate360 {
	0% {
		transform: rotate(0);
	}

	100% {
		transform: rotate(360deg);
	}
}

@-webkit-keyframes rotate360 {
	0% {
		transform: rotate(0);
	}

	100% {
		transform: rotate(360deg);
	}
}


@media (max-width:900px) {
	select {
		color: #333;
	}

	h1 {
		font-size: 18pt
	}

	#parentSig {
		top: 2em;
	}
}

/* print styles */
@media print {
	@font-face {
		font-family: 'Scandia';
		font-style: normal;
		font-weight: 400;
		src: url(/fonts/ScandiaWebRegular.woff);
	}

	body {
		background: #f9f9f9;
		color: #004b65;
		width: 760px;
		margin: 1em auto;
		line-height: 2em;
	}

	legend {
		font-size: 1.5em;
		font-weight: bold;
		color: #004b65;
	}

	h3 {
		margin: 1em 0 0.5em 0;
		padding: 0;
		font-size: 12px;
		font-style: italic;
	}

	#offers {
		display: none;
	}

	form {
		width: 100%;
	}

	input {
		display: inline-block;
		padding: 0;
		margin-bottom: 1.5em;
		width: 16em;
		text-transform: capitalize;
	}

	textarea {
		display: block;
		width: 16em;
		margin-bottom: 0;
	}

	label {
		margin: 0;
		padding: 0;
		font-weight: bold;
		display: inline-block;
		color: #004b65;
	}

	select {
		width: 12em;
		margin-bottom: 1.5em;
		display: inline-block;
	}

	fieldset p input {
		display: inline;
		float: none;
	}

	#activities {
		line-height: 1.5em;
	}

	#activities input {
		display: inline;
		margin: 0 3px;
	}

	#childwaiver {
		display: block;
		visibility: hidden;
	}

	#submit {
		display: none;
	}

	#screenliability {
		display: none;
	}

	#agreeterms {
		display: none;
	}

	#printliability {
		display: block;
		font-size: 8px;
		line-height: 1em;
	}

	#signature {
		display: block;
		margin: -2em 0 0;
	}

	#medical {
		margin: -2em 0 1em;
	}

	#whitecastle {
		display: none;
	}

	#drawItDesc,
	#sigNav {
		display: none;
		visibility: hidden;
		margin-top: -2em;
	}

	#blackcastle {
		display: inline-block;
		margin-left: 20px;
	}

	#eContactInfo {
		margin: -1em 0 0;
	}
}


.loader {
	display:inline-block;
	visibility: hidden;
	opacity:0;
}
.loader.visible {
	visibility: visible;
	opacity: 1.0;
}
.spinner {
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top: 4px solid #fff;
	width: 2em;
	height: 2em;
	margin-right:5px;
	animation: spin 4s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.submit-section {
	margin-top:2em;
	display:flex;
	justify-content: right;

	align-items: center;
}

.status-box {
	position: fixed;
	bottom: 20px;
	left: 20px;
	background-color: #f8f9fa;
	color: #000;
	padding: 10px;
	border-radius: 5px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.status-box.visible {
	visibility: visible;
	opacity: 1;
}

.status-box.success {
	background-color: #28a745;
	color: #fff;
}

.status-box.error {
	background-color: #dc3545;
	color: #fff;
}
