:root {
	--font-body: Arial, 'Open Sans', 'Helvetica Neue', sans-serif;
	--font-mono: monospace;
	--color-bg-0: rgb(202, 216, 228);
	--color-bg-1: hsl(209, 36%, 86%);
	--color-bg-2: hsl(224, 44%, 95%);
	--color-theme-0: #505050;
	--color-theme-1: #800000;
	--color-theme-2: #4075a6;
	--color-text: rgba(0, 0, 0, 0.7);
	--column-width: 42rem;
	--column-margin-top: 4rem;
	font-family: var(--font-body);
	color: var(--color-text);
}

body {
	min-height: 100vh;
	margin: 0;
	background-attachment: fixed;
	background-color: var(--color-bg-1);
	background-size: 100vw 100vh;
	background-image: radial-gradient(
			50% 50% at 50% 50%,
			rgba(255, 255, 255, 0.75) 0%,
			rgba(255, 255, 255, 0) 100%
		),
		linear-gradient(180deg, 
      var(--color-bg-0) 0%, 
      var(--color-bg-1) 15%, 
      var(--color-bg-2) 50%
    );
}

div.bodycontent {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: 1rem;
  margin-right: 1rem;
}

h1,
h2,
p {
	font-weight: 400;
}

p {
	line-height: 1.5;
}

p.note {
  text-align: center;
}

a {
	color: var(--color-theme-2);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1 {
	font-size: 2rem;
	text-align: center;
}

h2 {
	font-size: 1.5rem;
  text-align: center;
}

pre {
	font-size: 16px;
	font-family: var(--font-mono);
	background-color: rgba(255, 255, 255, 0.45);
	border-radius: 3px;
	box-shadow: 2px 2px 6px rgb(0 0 0 / 25%);
	padding: 0.5em;
	overflow-x: auto;
	color: var(--color-text);
}

.text-column {
	display: flex;
	max-width: 48rem;
	flex: 0.6;
	flex-direction: column;
	justify-content: center;
	margin: 0 auto;
}

input,
button {
	font-size: inherit;
	font-family: inherit;
  padding: .5rem;
	background-color: var(--color-theme-2);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

button:focus:not(:focus-visible) {
	outline: none;
}

img.action {
  cursor: pointer;
}

th {
  text-align: left;
  padding-right: 1rem;
}
th.number {
  text-align: right;
}
td {
  text-align: left;
  padding-right: 1rem;
}
td.number {
  text-align: right;
}
td.center {
  text-align: center;
}


.errormsg {
  color: red;
}

@media (min-width: 720px) {
	h1 {
		font-size: 2.4rem;
	}
}

.centered {
  justify-content: center;
  align-items: center;
  margin-left: auto; 
  margin-right: auto;
}

input[type=submit] {
  padding: 1rem;
  color: white;
  font-weight: bold;
  background-color: var(--color-theme-2);
  cursor: pointer;
}

input[type=text],
input[type=tel],
input[type=date],
input[type=email],
input[type=number] 
{
  background-color: #fff;
  font-weight: bold;
  color: #000;
  padding: .1rem; 
  margin-bottom: .2rem;
}

.formlabel {
  text-align: right;
  padding-right: 2rem;
  font-style: italic;
}

div.formmsg {
  text-align: left;
  font-weight: bold;
  padding-right: 1rem;
  padding-left: 1rem;
  padding-bottom: .5rem;
}

div.formbuttons {
  text-align: right;
  padding-right: 1rem;
}

div.formbuttons button {
  margin-left: 1rem;
  padding-right: 1rem;
  padding-left: 1rem;
  text-align: center;
}

dialog {
  position: absolute;
  border: solid 1px #999;
  border-radius: 10px;
  background-color: #eee;
  padding: 0;
  box-shadow: 4px 4px 8px rgb(0 0 0 / 30%);
}

dialog p.title {
  background: #000;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  margin: 0;
  margin-top: 0;
  width: 100%;
}

dialog form {
  padding: 1rem;
}

.visually-hidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: auto;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: auto;
}

footer p {
  font-size: .8rem; 
}

nav {
  display: flex;
  justify-content: center;
  --background: rgba(255, 255, 255, 0.7);
}

nav path {
	fill: var(--background);
}

nav ul {
  position: relative;
  padding: 0;
  margin: 0;
  height: 3em;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  background: var(--background);
  background-size: contain;
}

nav li {
  position: relative;
  height: 100%;
}

nav a {
  display: flex;
  height: 100%;
  align-items: center;
  padding: 0 0.5rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.2s linear;
}

nav a:hover {
  color: var(--color-theme-2);
}

nav svg {
  width: 2em;
  height: 3em;
  display: block;
}

.dropdown {
  position: relative;
  display: inline-block;
  height: 100%;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 15rem;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown:hover .dropdown-content {display: block;}
.dropdown-content a:hover {background-color: #ddd;}


