/* Page element styles */

body {
	margin: 0;
	padding: 0;
	font-family: sans-serif;
	background-image: url("../img/background.png");
}

.main {
  border-radius: 5px;
  background-color: #e5edf4;
  padding: 20px;
  max-width: 860px;
  margin: 20px auto;
}

hr {
	margin: 20px 0px;
    border: 0;
    height: 1px;
    background: #333;
    background-image: #ccc
}

h1, h2 {
	margin: 5px;
	text-align: center;
}


/* Navigation bar */
.navbar {
	display: flex;
	margin: 0;
	padding: 0;
}

.navbar a,
.navbar span {
	text-align: center;
	user-select: none;
	font-variant: small-caps;
	display: inline-block;
	border: 1px solid black;
	padding: 16px 8px;
	background-color: white;
	margin: 0;
	color: black;
	text-decoration: none;
	border-radius: 0px 0px 10px 10px;
	transition: 0.2s;
	border-right: none;
}

.navbar .logo {
	text-align: right;
	color: white;
	background-color: black;
	font-weight: bold;
	
}

.navbar a:hover {
	background-color: #eee;
}

.navbar a.active {
	background-color: #eee;
}


/* General styles */

.footnote {
	text-align: right;
	font-size: 0.8em;
	color: #aaa;
}

.warning {
	color: red;
	font-weight: bold;
}

.failure {
	font-style: italic;
	color: #aaa;
}

.hidden {
	display: none;
}

#output ul {
	list-style-type: none;
	padding: 5px;
	margin: 0;
}

#output li {
	text-align: center;
	text-transform: uppercase;
	padding: 5px;
}

/* Form elements */

.form-error {
	font-size: 0.8em;
	color: red;
}

.input-error {
	box-shadow: inset 0 0 3px red;
}

button {
	border: none;
	padding: 15px 32px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	cursor: pointer;
	outline: none;
	border-radius: 5px;
	background-color: #e7e7e7;
	color: black;
}

button.green {
	color: white;
	background-color: #4caf50;
}

button.red {
	color: white;
	background-color: #f44336;
}

button.blue {
	color: white;
	background-color: #008cba;
}

button.black {
	color: white;
	background-color: #555;
}

button[disabled] {
	opacity: 0.6;
	cursor: default;
}

button:active {
	filter: brightness(80%);
}

input[type=text], input[type=tel], input[type=number] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  outline: none;
}

input[type=submit]:hover {
  background-color: #45a049;
}

.checkmark {
  display: inline-block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  user-select: none;
}

.checkmark input[type=checkbox],
.checkmark input[type=radio] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark i {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #93b1c9;
  transition: 0.2s;
}

.checkmark input[type=radio]+i {
	border-radius: 50%;
}

.checkmark input:checked ~ i {
  background-color: #2196F3;
}

.checkmark i:after {
  content: "";
  position: absolute;
  display: none;
}

.checkmark input:checked ~ i:after {
  display: block;
}

.checkmark i:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.checkgroup {
	margin: 20px;
}

.checkgroup label:not(:last-child) {
	margin-right: 30px;
}

.inputbox {
	display: flex;
}

.inputbox input {
	flex: 1;
	border-radius: 4px 0px 0px 4px;
	border-right-width: 0px;
}

.inputbox select {
	margin: 8px 0;
	padding: 14px 20px;
	border: 1px solid #ccc;
	outline: none;
}

.inputbox button {
	border: 1px solid #ccc;
	border-left-width: 0px;
	flex: 0;
	padding: 14px 20px;
	margin: 8px 0;
	border-radius: 0px 4px 4px 0px;
}
