* {
	margin: 0;
	border: 0;
	padding: 0;
	box-sizing: border-box;
}

img, svg {
	display: block;
	width: 100%;
	height: auto;
}

html, body {
	height: auto;
}

#max {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-rows: auto 1fr auto;
	height: 100vh;
	padding: 0 1em;
}

header, main, footer {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 1em 0;
}

header {
	border-bottom: 1px solid var(--form-border-color);
}

main {
	overflow-y: auto;
}

footer {
	border-top: 1px solid var(--form-border-color);
}

/*
 * Form elements
 */

label {
	display: block;
	text-transform: uppercase;
	color: var(--grey-2);
	margin-bottom: .5ex;
}

input, select, .info {
	margin-bottom: 1.5ex;
}

input[type="submit"],
button {
	color: var(--active-color);
	background-color: var(--active-background-color);
	padding: 1ex 2em;
	border: 1px solid var(--active-background-color);
	border-radius: 5px;
	font-family: sans-serif;
	font-size: 14px;
	margin: 1ex 0;
}

input[type="submit"]:hover,
button:hover {
	color: var(--active-background-color);
	background-color: var(--active-color);
	cursor: pointer;
}

h2 {
	margin-top: 1.5em;
}

p, li {
	line-height: 1.5;
}

p, ul {
	margin-bottom: 1ex;
}

li {
	margin-left: 2em;
}

/*
 * Protocol screen.
 */

#protocol-text {
	width: 100%;
	height: 50vh;
	font-family: serif;
	font-size: larger;
	border-radius: 10px;
	padding: 10px;
	border: 1px solid var(--form-border-color);
	overflow-x: auto;
	background-color: var(--white-background);
	margin-bottom: 2ex;
}

#protocol-text h1 {
	font-family: serif;
	font-size: xx-large;
	font-weight: normal;
	margin-bottom: 1.5ex;
	text-align: center;
	padding: 0;
}

#protocol-text h2 {
	font-family: serif;
	font-size: x-large;
	font-weight: normal;
	margin-bottom: 1.5ex;
	text-align: center;
	padding: 0;
}

#protocol-text h3 {
	font-family: serif;
	font-size: large;
	font-weight: normal;
	margin-bottom: 1.5ex;
	text-align: center;
	padding: 0;
}

#protocol-text p,
#protocol-text li {
	font-family: serif;
	font-size: 16px;
	text-align: left;
	margin-bottom: 1.5ex;
	line-height: 1.5;
	padding: 0;
}

#protocol-text ol li,
#protocol-text ul li {
	margin-left: 3em;
}

#protocol-text-confirm-form {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 1ex;
	margin: 0 auto;
	justify-content: center;
}

#protocol-text-confirm-form input[type="submit"] {
	border: 1px solid var(--active-background-color);
	border-radius: 5px;
	background-color: var(--active-background-color);
	color: var(--active-color);
	padding: 1ex 2em;
	width: 150px;
	margin: 0 auto;
}

#protocol-text-confirm-flex {
	display: flex;
	gap: 1ex;
	align-items: center;
}

/*
 * Credentials screen.
 */

/*
 * Attendance screen.
 */

#attendance-confirm-flex {
	display: flex;
	gap: 1ex;
	align-items: center;
	margin-bottom: 1ex;
}

/*
 * Miscellaneous styles.
 */

.hidden {
	display: none;
}
