* {
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
}

body {
	padding: 0;
	margin: 0;

	background-color: white;
	color: black;
	font-family: Verdana;
	font-size: 18pt;
}

input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	margin: 0;
	padding: 0;
	border: none;
	border-color: black;
	background-color: transparent;
}

input[type=text]:not([readonly]),
input[type=password],
select,
textarea {
	width: 100%;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	background-color: transparent;
	margin: 0;
	padding: 0;
}

.button,
input[type=button],
input[type=submit] {
	padding: 4px 8px;
	background-color: #CCC;
}

.button[disabled],
input[disabled]:not([readonly]) {
	opacity: .5;
}

input:focus, 
textarea:focus {
	color: blue;
	border-bottom-color: blue;
}

input[type=button]:focus,
input[type=submit]:focus,
.button:focus {
	background-color: blue;
	color: white;	
}

.form > div + div {
	margin-top: 0.25em;
}

.form > div > div {
	float: left;
	width: 8em;
}
.form > div > div + div {
	float: left;
	width: 12em;
}

.clearfix-container > *:after {
	visibility: hidden;
	display: block;
	content: ' ';
	height: 0;
	clear: both;
}

#modal-container {
	text-align: center;
	height: 100%;
	width: 100%;
	min-width: 512px;
}

#modal-container:before {
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
	margin-right: -0.25em;
}

#modal {
	display: inline-block;
	vertical-align: middle;
	text-align: left;
}

#messages {
	margin-bottom: .25em;
}

.header {
	margin: .5em 0 1em 0;
	padding: 0 0 .125em 1em;
	border-bottom: 2px solid black;
	text-align: center;
}

.message {
	visibility: hidden;
	padding: 0.25em;
	font-size: 75%;
	padding-left: .5em;
}

.error, .info {
	visibility: visible;
	background-color: white;
	text-align: center;
}

.error {
	color: red;
	border: 1px solid red;
	animation: error_fade 0.5s;
}

.info {
	visibility: visible;
	background-color: transparent;
	color: blue;
	border: 1px solid blue;
	text-align: center;
	animation: info_fade 0.5s;
}

@keyframes error_fade {
	0% 		{background-color: red; color: white;}
	100%	{background-color: transparent; color: red;}
}

@keyframes info_fade {
	0% 		{background-color: blue; color: white;}
	100%	{background-color: transparent; color: blue;}
}
