*, *::before, *::after {
	box-sizing: border-box;
	font-family: "Open Sans","Arial","sans-serif";
}

html {
	line-height: 1;
	-webkit-text-size-adjust: 100%;
	-moz-tab-size: 4;
	tab-size: 4;
}

body {
	margin: 0;
	min-height: 100svh;
	color: dimgrey;
	min-width: 300px;
}

a, a:link, a:visited, a:hover, a:active {
	color: inherit;
}
a:hover {
	text-decoration-color: #e02b20;
}

p {
	margin: auto;
}

div.top-decoration {
	height: 10px;
	background-color: #e02b20;
}

header {
	height: 70px;
	@media screen and (max-width: 800px) {
		height: 60px;
	}
	padding: 10px;
	background-color: white;
	border-bottom: 1px solid lightgrey;
	display: flex;
	flex-flow: row;
	justify-content: space-between;
	align-items: center;
	column-gap: 10px;
	position: sticky;
	top: -1px;
	& > a {
		height: 100%;
		& img {
			height: 100%;
		}
	}
	& h1 {
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden;
		@media screen and (max-width: 800px) {
			font-size: x-large;
		}
	}
	& nav {
		display: flex;
		flex-flow: column;
		justify-content: center;
		align-items: center;
		row-gap: 5px;
		font-size: smaller;
		@media screen and (max-width: 800px) {
			font-size: x-small;
		}
	}
}

main {
	display: flex;
	flex-flow: column;
	justify-content: flex-start;
	align-items: center;
	column-gap: 10px;
	row-gap: 10px;
	padding: 5px;
	text-align: center;
	line-height: 1.25;
	margin-bottom: 200px;
}

footer {
	background: black;
	color: grey;
	padding: 1rem;
	position: fixed;
	bottom: 0px;
	width: 100%;
	text-align: center;
	font-size: smaller;
}

hr {
	width: 100%;
}

h2 {
	width: 100%;
	margin: 0;
	padding: 5px;
	background: whitesmoke;
	@media screen and (max-width: 800px) {
		font-size: large;
	}
}

ul {
	text-align: justify;
	max-width: 640px;
	margin: auto;
	padding-right: 2rem;
	&.description {
		@media screen and (max-width: 800px) {
			font-size: small;
		}
	}
}

p.empty-home {
	padding: 2rem 0.5rem;
}

p.login-error {
	width: 100%;
	text-align: center;
	color: red;
	padding: 0.25rem;
	margin-top: 0.5rem;
}

p.password-forgotten-sent {
	width: 100%;
	text-align: center;
	color: green;
	padding: 0.25rem;
	margin-top: 0.5rem;
}

form#password-forgotten,
form#login {
	margin: 1rem auto;
	border: 1px solid lightgray;
	border-radius: 0.5rem;
	padding: 1rem;
	display: flex;
	flex-flow: column;
	justify-content: flex-start;
	align-items: stretch;
	background-color: whitesmoke;
	min-width: 250px;
	& label {
		font-size: smaller;
		margin-bottom: 2px;
	}
	& input {
		text-align: center;
	}
	& a.password-forgotten {
		text-align: center;
		font-size: x-small;
	}
}

form#camp {
	margin-bottom: 200px;
	& table {
		margin: auto;
		width: 275px;
		& caption {
			background-color: whitesmoke;
			font-weight: bold;
			padding: 0.125rem;
		}
		& td {
			text-align: left;
			padding: 5px;
		}
	}
	& label,
	& legend {
		font-size: small;
	}
	& input[type='text'],
	& input[type='email'],
	& input[type='tel'],
	& input[type='date'],
	& input[type='submit'],
	& select {
		width: 100%;
		text-align: center;
		padding: 0.125rem;
	}
	& input::placeholder {
		color: lightgrey;
	}
	& fieldset {
		line-height: 1.5;
		& label {
			font-size: medium;
		}
	}
}

div.errors {
	& h3 {
		color: red;
	}
}

table.admin {
	border-collapse: collapse;
	&.camps {
		& th {
			background-color: lightgrey;
			font-size: smaller;
			padding: 0 0.5rem;
		}
		& td {
			border: 1px solid grey;
			padding: 0.125rem 0.5rem;
		}
	}
}

admin-camp {
	max-width: 640px;
	display: flex;
	flex-flow: column;
	justify-content: flex-start;
	align-items: stretch;
	& form {
		& input {
			width: 100%;
			text-align: center;
		}
		& select {
			width: 100%;
			text-align: center;
		}
	}
	& table {
		width: 100%;
		border-collapse: collapse;
		margin: 1rem 0;
		& caption {
			padding: 0.125rem;
			font-size: x-small;
			background: grey;
			color: lightgrey;
			text-shadow: 0 0 2px black;
			border-top-left-radius: 0.25rem;
			border-top-right-radius: 0.25rem;
		}
		& th {
			background: lightgrey;
			font-size: x-small;
			padding: 0.125rem;
			border: 1px solid grey;
		}
		& td {
			border: 1px solid grey;
			padding: 0.125rem;
			/* text-align: left; */
			&.text-left {
				text-align: left;
			}
		}
		& small.uneditable {
			color: grey;
		}
	}
}
