body {
	line-height: 1.1;
	width: auto;
	font-size: 1.2rem;
	/* 	margin: 0.5em; */	
}

.is-invalid {
    border: 2px solid red;
}

.is-invalid::placeholder {
    color: red;
}

.validation-tooltip {
    position: fixed;
    background-color: #dc3545;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;

    /* Outset border effect using box-shadow */
    border: 2px solid #a71d2a;
    box-shadow:
        0 0 0 3px #f8d7da,       /* light pink outset ring */
        0 4px 12px rgba(0,0,0,0.25);  /* drop shadow for depth */
    font-size: 1.8em;
}

/* ---- Arrow pointing DOWN (tooltip is above the field) ---- */
.validation-tooltip.tooltip-above::after {
    content: '';
    position: absolute;
    top: 100%;              /* bottom edge of tooltip */
    left: 50%;
    transform: translateX(-50%);

    border-width: 8px;
    border-style: solid;

    /* Arrow colour matches tooltip background */
    border-color: #dc3545 transparent transparent transparent;

    filter: drop-shadow(0 2px 1px rgba(0,0,0,0.2));
    font-size: 1.8em;
}

/* Outer arrow for the border effect on the arrow itself */
.validation-tooltip.tooltip-above::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    border-width: 10px;     /* slightly larger than ::after */
    border-style: solid;
    border-color: #a71d2a transparent transparent transparent;

    margin-top: 2px;        /* sits just behind ::after arrow */
    font-size: 1.8em;
}

/* ---- Arrow pointing UP (tooltip is below the field) ---- */
.validation-tooltip.tooltip-below::after {
    content: '';
    position: absolute;
    bottom: 100%;           /* top edge of tooltip */
    left: 50%;
    transform: translateX(-50%);

    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #dc3545 transparent;

    filter: drop-shadow(0 -2px 1px rgba(0,0,0,0.2));
    font-size: 1.1em;
}

.validation-tooltip.tooltip-below::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);

    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #a71d2a transparent;

    margin-bottom: 2px;
    font-size: 1.1em;
}

/* Tom-select wrapper */
.ts-wrapper.is-invalid .ts-control {
    border: 2px solid red !important;
}

.ui-datepicker{
		font-size:2rem;
	}

fieldset.mb-3 [id$='__choices'] .formCheck {
	/* 	margin: -2em 0 0em 0em; */
	/* 	padding: 0em; */
	/* 	height: 200px; */
	display: flex;
	align-items: center;
	justify-content: center;
}

fieldset.mb-3 [id$='__choices'] {
	margin: 2em 0 2em 0em;
	padding: 2em;
}


input[type="text"]:focus:not(.js-datepicker) {
	/* 	margin: 0em 0em 0 5em; */
	font-size: 2rem;
	border-radius: 5pt;
}

input.js-datepicker:focus {
	margin: inherit;
	border-radius: 5pt;
}

input[type="radio"] {
	/* 	opacity: 1; */
	/*-webkit-appearance: none;*/
	/* 		display: inline-block;		 */
	/*   margin-right: auto; */
	/*   margin-left: auto; */
	/* 	vertical-align: middle; */
	/* 	z-index: 100; */
	/* 	margin: -0.5em 0em 1em 0em; */
	/* 	padding: 0; */
	/* 	width: 100%; */
	height: 0.75em;
	width: 0.75em;
	/* 	position: absolute; */
	/* 	left: 0; */
	/* 	top: calc(50% - 15px); */
	/* 	cursor: pointer; */
	background-color: gray;
	color: gray;
}

input[type="radio"]:checked {
	/* 	position: absolute; */
	opacity: 1;
	animation-name: explode;
	animation-duration: 0.350s;
}

#sidebar a {
	font-size: 1.2em;
}

.scrollContent {
	position: fixed;
	top: 4em;
	height: calc(100vh - 14em);
	overflow: auto;
	flex: 1;
	margin: 1em;
	scroll-snap-type: y proximity; /* or 'proximity' for looser snapping */
  	overflow-y: scroll;
  	margin-bottom: 3em;
	padding-bottom: 3em;
	max-width:95%;
}

.madeBy {
	position: fixed;
	top: 3.2em;
	left: 90%;
}

.termsForm input {
	height: 3em;
	color: black;
}

.collapseHeading>fieldset {
	display: none;
}

h1 {
	font-size: 2em;
}

h2 {
	font-size: 1.5em;
}

h3 {
	font-size: 1.25em;
}

/* input { */
/* 	height: 3em; */
/* 	font-size: 2em; */
/* 	background-color: lime; */
/* } */
textarea {
	height: 6em;
	font-size: 2em;
}

fieldset.mb-3 {
	border: none;
}

fieldset div div.mb-3>label {
	display: none;
}

fieldset.mb-3>div.mb-3, form div div.mb-3 {
	display: grid;
	grid: auto-flow / 1fr;
}

.logo {
	align-items: center;
}

.logoTitle {
	text-align: center;
	padding-right: 6em;
}

fieldset.mb-3 [id$='__choices'] {
	margin-left: -1em;
	margin-top: 1em;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	border: 1pt solid black;
	gap: 0.5em;
	/*display: flex;
	
	margin-left: -1em;
	align-items: center;
	gap: 3em;
	flex-wrap: wrap;
	*/
}

fieldset.mb-3 [id$='__choices']>.fform-check {
	display: grid;
	grid-column: 1;
	border-right: 1pt solid #DCDCDC;
	margin-left: 1em;
	padding-right: 2em;
	gap: 0em;
}

form>div>fieldset.mb-3 {
	margin-left: -1em;
}

form>div>fieldset.mb-3>legend, form>div>div>label {
	margin-top: 1.3em;
	font-weight: bolder;
	font-size: 1.8em;
	padding: 0.5em;
}

form>div>fieldset.mb-3>div {
	padding-top: 3em;
	margin-top: -0.5em;
	margin-left: 0.2em;
}

fieldset fieldset fieldset legend {
	display: none;
}

fieldset div  fieldset div  div label {
	/* 	background-color: purple; */
	margin-top: -0.5em;
}

fieldset legend {
	font-size: 1.2em;
}

.showHeading {
	margin-top: 3em;
	/* 	border: 0.2pt darkblue ridge; */
	box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
}

.showHeading, .reference, [id$="Submit"] {
	margin: 3em;
	/* 	border: 0.3pt darkblue ridge; */
	box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
}


[id$="Submit"] {
	margin: 0.5em auto 1em auto;
	height: 4em;
	width: 75%;	
	font-size: 2em;
	z-index:50;
}

[id$="Submit"] input {
	/* 	height: 2em;*/
	padding: 0 0 2em;
}

.termsTextArea {
	height: 12em;
}

.termsForm {
	background: yellow;
	border: 0.5em red inset;
	margin: 1em 3em 3em;
	padding: 3em 2em 2em 3em;
	box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
}

.termsForm input {
	transform: scale(3);
}

.termsForm label {
	font-size: 2em;
	padding-left: 2em;
	margin-top: 0.5em;
	margin: 0 0.5em -0.5em 1em;
/* 	position: absolute; */
}

.terms{	
  scroll-snap-align: start; /* snaps to top of viewport */
  min-height: 80vh; /* ensures it fills the viewport */
	white-space: nowrap;
  display: flex;
  flex-direction: column;
  
}

.terms > div{
	margin: 0 auto 0 auto;
	display: flex;
  flex-direction: row;
}

#termsStatus, #termsStatus + span{
  align-content: center;
  padding: 1em;
}

.terms > div > button{
	font-size:2em;
}

.logo {
	margin: 5em;
	height: auto;
	box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
}

.required::before {
	font-weight: bold;
	font-size: 1em;
	color: #f66151;
	content: '●  ';
}

fieldset div  fieldset div  div label .required::before {
	color: yellow;
	content: '';
}

.errorHelp, div.invalid-feedback {
	font-weight: bolder;
	font-size: 2em;
	color: red;
}

.logo {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2em;
	grid-auto-rows: minmax(200px, 20em);
	max-width: 100%;
	align-items: center;
}

.logoTitle {
	text-align: center;
}

.logo>img {
	/* 	height: 100%; */
	max-width: 65%;
}

#sidebar, .byline {
	position: fixed;
	bottom: 0;
	left: 0;
	height: 2.8em;
}

header {
	position: fixed;
	top: 0;
	left: 1em;
	height: 2.8em;
}

#reg_entry>fieldset>legend:nth-child(1)::before, .visually-hidden * {
	content: "";
}

div>fieldset>div>.form-check>.required::before {
	color: #fff;
	content: 'x';
}

[for$="date_year"], [for$="date_month"], [for$="date_day"] {
	display: none;
}

[for$="date_year"]::before, [for$="date_month"]::before, [for$="date_day"]::before
	{
	display: none;
}

.hMenu {
	margin: -2em 2em 0em 1em;
}

header{
	margin-top: 0.5em;
}
#parentSpinner {
	margin-top: -9em;
}

#parentSpinner, .spinner {
	background-color: transparent;
}

/* This is the space for the spinner to appear, applied to the button */
.spin {
	padding-left: 2.5em;
	display: block;
	background-color: green;
}

/* position of the spinner when it appears, you might have to change these values */
.spin .spinner {
	left: -.6em;
	top: .4em;
	width: 6.5em;
	display: block;
	position: absolute;
	background-color: gray;
}

.spin {
	background-color: green;
}

#theSpinner {
	display: block;
	margin: 0 auto;
	padding: .6em .8em;
	/* Font-size is the root value that determines size of spinner parts. 
Change this to whatever you want and spinner elements will size to match. */
	font-weight: bold;
	border-radius: .4em;
	border: none;
	overflow: hidden;
	cursor: pointer;
	position: relative;
	transition: all 1s;
	height: 8em;
	width: 8em;
	font-size: 20px;
}

#theSpinner > * {
	font-size: 0px;
	
}

/* spinner animation */
@keyframes spinner { 
	0% {
		transform: rotate(0deg);
	}
	
	100% {
		transform: rotate(360deg);
	}
}

/* The actual spinner element is a pseudo-element */
.spin, .spin::after {
	width: 5.5em; /* Size of the spinner */
	height: 1.5em; /* Change as desired */
	position: absolute;
	top: -15%;
	left: 20%;
	border-radius: 50%;
	border: solid .35em #999; /* Thickness/color of spinner track */
	border-bottom-color: #555; /* Color of variant spinner piece */
	animation: 2.8s linear infinite spinner; /* speed of spinner */
	transform: translate(-50%, -50%);
	will-change: transform;
	opacity: 0.95;
	background-color: transparent;
	z-index: 60;
	background-image: url('/assets/images/working.svg');
	background-size: 100%;
}
input, textarea, fieldset.mb-3 [id$='__choices'], .blueBox{
	border: #3f00ff solid 2pt;	
}

input:not([type=checkbox]):not([type=radio]){
	width: 100%;
	margin: 0em 0em 2em 0em;
	padding: 0.5em 0em 0.5em 0em;
}

input[type=checkbox],input[type=radio]{
	margin: 0em 0em 2em 0em;
	padding: 0.5em 0em 0.5em 0em;
}

input:not([type=checkbox]):not([type=radio])[type=email]{
	margin: 0em 0em 2em 0em;
	padding: 0.5em 0em 0.5em 0em;
	width: 92%;
}

.form-check{
	margin: -1em 0em 0.5em 0em;
}

.form-check > label{
	margin :-1em 0em 0em auto;
}
input[type="radio"] + label {
		padding-top:0.5em;
	}

.blueBox{
	display:inline;
	padding:0.25em;
	margin:0.25em;
}
.hidden-label {  
    display: none;   
}

.form-check-label {
	
	text-overflow: clip;
      display: inline-block;
      overflow: hidden;
/*       width: 50%; */
      white-space: wrap;
      vertical-align: middle;
      font-size:1.5em;
      line-height: 1.75em;
}

.expandAdd {
	font-size: 2em;
}
#the-canvas {
  border: 1px solid black;
  direction: ltr;
}

#submitInfo{
	border: 2px solid red;
  background-color: yellow;
  text-align: center;
  margin: auto 2em 5em auto;
  font-size: 3em;
}
#next{
	color:red;
}
.redDot:before{
	color: #f66151;
	content: '●  ';
}
/* .spin::after { */
/* 	content: "working..."; */
/* } */

/* .visually-hidden>label, .visually-hidden>.required {   */
/*   display: none; */
/* } */
@media only screen and (min-width: 600px) {
	
	html {
		/*         zoom: 5; */
		/*         font: 2rem; */
		
	}
	.logo {
		/* 		background-color: red; */
		/*       zoom:0.2; */
		
	}
	input {
		/* 		height: 2em; */
		padding: 0 0 2em;
		padding-bottom: 1em;
	}
	input[type="radio"] {
		/* 		height: 2.75em; */
		width: 2.75em;
	}
	input[type="text"]:focus {	
/* 		margin: 0em 2em 0 5em; */
		font-size: 2rem;		
	}
}

@media only screen and (min-width: 800px) {
	html {
		/*         zoom: 4; */
		/*         font: 1.5rem;         */
		
	}
	header {
		margin-top: 1em;
	}
	.logo {
		/* 		background-color: darkblue; */
		/*       zoom:0.25; */
		
	}
	input {
		height: auto;
		font-size: 3rem;
		padding: 1em 0em 1em 0em;
	}
	input[type="radio"] {
		/* 		height: 1.75rem; */
		width: 1.75rem;
	}
	input[type="text"]:focus {
/* 		margin: 1em 1em 0 3em; */
		width: 100%;
		font-size: 2rem;
	}
	
	input.js-datepicker:focus {
/* 		margin: 1em 1em 0 3em; */
		width: inherit;
		font-size: 2rem;
	}
	
	
}

@media only screen and (min-width: 1000px) {
	html {
		/*zoom: 2;*/
		
	}
	
	header {
		margin-top: 0em;
	}
	.logo {
		/* 		background-color: blue; */
		/*       zoom:0.33; */
		
	}
	input {
		/* 		height: 1.2em; */
		padding: 0 0 1.2em;
		font-size: 2em;
		padding: 1em;
	}
	input[type="radio"] {
		/* 		height: 2.75em; */
		width: 2.75em;
	}
	input[type="text"]:focus {
/* 		margin: 1em 1em 0 3em; */
		width: 100%;
	}
	input.js-datepicker:focus {
/* 		margin: 1em 1em 0 3em; */
		width: inherit;
	}
	fieldset div  fieldset div  div>label {
		/* 	color: beige; */
		/* 	border: 2pt blue solid; */
		margin-top: 1.5em;
		position: absolute;
		font-size: 2em;
	}
	fieldset legend {
		font-size: 2em;
	}
	form>div>fieldset.mb-3>legend, form>div>div>label {
		font-weight: bolder;
		font-size: 2em;
		background-color: #f5f5f5;
	}
	fieldset.mb-3 [id$='__choices']>.form-check {
		padding: 1em;
		padding-bottom: 1em;
/* 		margin-bottom: -2em; */
	}
}

@media screen and not (max-device-aspect-ratio: 9/16) {
	html {
		/*zoom: 1;*/
		
	}
	.logo {
		/* 		background-color: orange; */
		/*       zoom:0.33; */
		
	}
	body {
		font-size: 1rem;
	}
	.validation-tooltip{
		font-size: 2em;
	}
	input {
		/* 		height: 1.25em; */
		padding: 0 0 1.25em;
		font-size: 1.25em;
		padding-bottom: 1em;
	}
	input[type="radio"] {
		/* 		height: 0.75em; */
		/*width: 0.75em;*/
/* 		margin-top:1em; */
/* 		padding-top:1em; */
	}
	input[type="radio"] + label {
		/* 		height: 0.75em; */
		/*width: 0.75em;*/
/* 		margin-top:1em; */
		padding-top:0.5em;
	}
	input[type="text"]:focus:not(.js-datepicker) {
		margin: 0em 0em 0 0em;
	}
	fieldset legend {
		font-size: 1.2em;
	}
	fieldset div  fieldset div  div label {
		margin-top: -1em;
	}
	fieldset div  fieldset div  div>label {
		padding-top: 0em;
		position: inherit;
		font-size: inherit;
	}
	form>div>fieldset.mb-3>legend, form>div>div>label {
		font-weight: inherit;
		font-size: 2em;
		background-color: #f5f5f5;
	}
	label, fieldset legend {
		font-size: inherit;
	}
}