/* Globals */
*, *:before, *:after {
	box-sizing: border-box;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	margin: 2em auto;
	max-width: 90%;
}
a {
	text-decoration: none;
}
h1 {
	color: #444;
	font-size: 2em;
	font-weight: 700;
	margin: 1em auto 0.25em;
	text-align: center;
}
h2 {
	font-size: 0.9em;
	font-weight: 500;
	text-align: center;
	margin: 0;
	text-transform: uppercase;
	color: #aaa;
}

/* Utils */
.center {
	text-align: center;
}
.small {
	font-size: 0.8em;
}
.bold {
	font-weight: 700;
}

/* Forms */
form:after {
	content: "";
	display: table;
	clear: both;
}
form fieldset {
	float: left;
	vertical-align: top;
	margin-bottom: 3em;
	background: #fafafa;
	border: 1px solid #444;
	height: 16em;
}
form.fortune fieldset:nth-child(1) {
	width: 47.5%;
	margin-right: 4%;
}
form.fortune fieldset:nth-child(2) {
	width: 47.5%;
}
form.fortune fieldset:nth-child(3) {
	clear: left;
	width: 22.5%;
	margin-right: 2.5%;
}
form.fortune fieldset:nth-child(4) {
	width: 22.5%;
	margin-right: 4%;
}
form.fortune fieldset:nth-child(5) {
	width: 47.5%;
}
form.fortune fieldset:nth-child(6) {
	width: 100%;
}
form fieldset.simple {
	width: 100%;
	height: auto;
}
form legend {
	padding: 0.5em 1em;
	background: #444;
	border-radius: 4px;
	color: white;
	font-weight: 700;
}
form label {
	display: inline-block;
	text-align: right;
	margin-right: 1em;
	font-size: 0.9em;
	font-weight: 700;
	color: #666;
}
form input[type="checkbox"] + label {
	font-weight: 500;
	color: #888;
}
form input[type="checkbox"]:checked + label {
	font-weight: 700;
	color: #444;
}
form label:not(.long) {
	width: 8em;
}
form input[type="checkbox"] {
	margin-left: 10em;
}
form input[type="text"],
form input[type="url"],
form input[type="number"],
form input[type="password"] {
	padding: 0.25em 1em;
	border-radius: 2px;
	background-color: #f0f0f0;
	border: 1px solid #bbb;
	width: calc(95% - 8em);
	font-size: 1.0em;
	font-weight: 700;
}
form input:invalid:focus,
form input:focus {
	-moz-box-shadow: none;
	border-color: #09f !important;
}
form input:invalid:not(:focus):placeholder-shown {
	border-color: #bbb;
}
form input:required:invalid, input:focus:invalid {
	-moz-box-shadow: none;
	border-color: red;
}
form textarea {
	width: 100%;
	height: 10em;
	font-size: 1.1em;
	font-weight: 700;
	padding: 1em;
	border-radius: 2px;
	background-color: #f0f0f0;
	border: 1px solid #bbb;
	font-family: inherit;
}
form fieldset.simple label.top {
	vertical-align: top;
}
form fieldset.simple textarea {
	display: inline-block;
	width: calc(90% - 8em);
	width: calc(95% - 8em);
	font-size: 1.0em;
	font-weight: 700;
}
form select {
	width: 100%
}

/* Tables */
table {
	background-color: #fafafa;
	border: 1px solid #444;
	border-collapse: collapse;
	width: 100%;
}
table td, table th {
	border: none;
	padding: 0.5em 0.7em;
}
table tr:nth-child(even) {
	background: #f0f0f0;
}
table thead {
	background: #444;
}
table thead th {
	color: #fff;
	font-size: 15px;
	font-weight: bold;
	text-align: left;
}
table td .btn {
	font-size: 0.8em;
}
table td a,
table td a:visited {
	color: #55b;
}

/* Buttons */
.btn {
	background-color: #999;
	border: none;
	border-radius: 2px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-weight: bold;
	font-size: 1em;
	margin-right: 0.25em;
	padding: 0.5em 1em;
}
.btn.active {
	background: #5b5;
}
.btn.warning {
	background-color: #b55;
}
.btn.right {
	float: right;
	margin-bottom: 1em;
}

/* Elements */
.fortune_paper {
	background: white;
	border-radius: 2px;
	border-left: 1px solid #ddd;
	border-top: 1px solid #ddd;
	box-shadow: 1px 3px 4px rgba(40,40,40,0.3);
	font-size: 0.9em;
	width: 22em;
	height: 4.5em;
	display: flex;
	justify-content: center;
	align-items: center;
}
pre.fortune {
	width: 22em;
	line-height: 1em;
	text-align: center;
	display: block;
}
.no-action-needed {
	color: #444;
	font-size: 1.5em;
	font-style: italic;
	font-weight: 700;
	margin: 3em auto;
	text-align: center;
}
.not-applicable {
	color: #999;
	font-weight: 700;
}
.Login_form {
	width: 25em;
	margin: 0 auto;
}
nav.selector_bar {
	position: relative;
}
.search {
	position: absolute;
	right: 0;
	top: 0;
}
.search .search_input {
	width: 12em;
	border-radius: 1em;
	font-weight: bold;
	font-size: 1em;
	padding: 0.5em 1em;
}
.search .search_input:focus {
	outline: none;
	border: 2px solid #55b;
}
