*, *::before, *::after {
	box-sizing: border-box;
}
body{
	color: #4f85c3;
}
img{
	display: block;
	width: 100%;
}
h2{
	font-size: 2rem;
	font-weight: bold;
	background: #4f85c3;
	color: white;
	padding: .5rem 2rem;
}

h3{
	font-size: 1rem;
	font-weight: bold;
	text-align: left;
	margin-top: 1.5rem;
	padding: 0;
}

.content{
	max-width: 800px;
	margin: 0 auto;
}
.hidden{
	display: none;
}

#minorSection,
.waiver,
.personInfo ,
.minorInfo ,
.signature-container {
	border: 1px solid #ccc;
	padding: 10px;
	margin-bottom: 10px;
	background-color: #fff;
}

.waiver li{
	margin-bottom: .5rem;
}

.waiver_sub{
	display: grid;
	grid-template-columns: 2rem 1fr;
	gap: 1rem;
	align-items: start;
	line-height: 1.2rem;
	padding-top: 1rem;
}

label {
	display: block;
}

input ,
select{
	width: 100%;
	padding: 8px;
	margin-top: 5px;
	margin-bottom: 10px;
	border: 1px solid #4f85c3; /* Adds a border on focus */
	color: #4f85c3;
}

.birthdayDiv{
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1rem;
}
.birthdayDiv select{
	padding: 8px;
	margin-top: 5px;
	margin-bottom: 10px;
}
.addressDiv,
.nameDiv {
	border: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

#ageMessage{
	background: #f5edee;
	text-align: center;
	padding: .5rem 0;
	color: red;
	font-weight: bold;
}

.signature-container2 {
	background: white;
	border: 2px solid #ccc;
	border-radius: 10px;
	padding: 15px;
	max-width: 500px;
	margin: auto;
}
.signature-container {
	text-align: center;
}
canvas {
	max-width: 300px;
	width: 100%;
	height: 200px;
	border: 2px dashed #999;
	border-radius: 8px;
	touch-action: none;
	background: white;
}
.buttons {
	margin-top: 10px;
	text-align: center;
}
button {
	padding: 8px 16px;
	border: none;
	background: #007BFF;
	color: white;
	border-radius: 5px;
	font-size: 16px;
	margin-left: 10px;
	max-width: max-content;
}
button:hover {
	background: #0056b3;
}
button:disabled {
	cursor: not-allowed ;
	background: #CCC;
}
.btnControls{
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1rem;
}
@media only screen and (max-width: 600px){
	.addressDiv,
	.nameDiv {
		grid-template-columns: 1fr;
	}
}

.waiver_details{
	background: white;
	padding: 2rem;
}
.waiver_details .minors_section{
	padding: 1rem 0 0 1rem;
}
.waiver_details .sig_section{
	display: grid;
	grid-template-columns: auto 100px;
	align-items: baseline;
}
.waiver_details .sig_section > div{
	text-align: center;
}
.waiver_details .sig{
	border-bottom: solid 1px black;
	max-width: 300px;
	display: inline-block;
}
