* {
	margin: 0;
}

a,
a:hover,
a:focus,
a:active {
	text-decoration: underline;
	color: blue;
}

a:hover {
	color: royalblue;
}

main a:focus,
footer a:active {
	outline: 1px solid #111;
	color: navy;
}

html,
body {
	height: 100%;
}

body {
	font: 1.4em sans-serif;
	padding: 5%;
	background: #77769d;
	color: #111;
	text-align: center;
	line-height: 120%;
}

#ulkoasu {
	margin: 0 auto 5% auto;
	text-align: left;
	max-width: 760px;
	padding: 3% 5%;
	background: #e9e4eb;
	border-radius: 0.3em;
	box-shadow: 0 0 1em #5e5c80;
}

header {
	text-align: center;
	padding-bottom: 1em;
}

header h1 {
	font-size: 0.7em;
}

header a,
header a:hover,
header a:focus,
header a:active {
	text-decoration: none;
	color: #111;
}

header a {
	background: url('aave.png') no-repeat 0 0;
	display: block;
	position: relative;
	width: 500px;
	height: 300px;
	margin: 0 auto;
	text-align: left;
}

header a span {
	position: absolute;
	left: 70px;
	top: 115px;
	width: 200px;
}

footer {
	font-size: 0.8em;
}

dt,
dd {
	margin: 0;
}

mark {
	padding: 0 0.2em;
	background: orange;
	border-radius: 0.2em;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
dl,
ol,
ul {
	padding-bottom: 1em;
}

h3,
h4,
h5,
h6,
details {
	font-size: 1.2em;
}

q:before,
q:after {
	content: '"';
}

hr {
	border: 0;
	border-top: 0.3em solid #d0c6d4;
	border-radius: 3px;
	margin-bottom: 1em;
}

label,
button,
input[type='checkbox'],
select,
option,
input.button,
details {
	cursor: pointer;
}

form {
	margin-bottom: 1em;
}

form ul {
	list-style: none;
	padding: 1em 0 0 0;
	margin: 0;
	font-size: 0.8em;
}

li {
	padding-bottom: 1em;
}

li:last-of-type {
	padding-bottom: 0;
}

input[type='checkbox'] + label {
	padding-left: 0.5em;
}

input[type='checkbox'] + label,
label + input[type='checkbox'] {
	vertical-align: middle;
}

input[type='text'],
input[type='email'],
textarea,
button,
select,
input.button {
	padding: 0.5em;
	font: 1em sans-serif;
}

label + textarea {
	vertical-align: top;
}

textarea {
	min-height: 50px;
	min-width: 50px;
	width: 60%;
	max-width: 760px;
}

input.button {
	padding: 0.5em 1em;
}

input.button:nth-of-type(2) {
	margin-left: 0.5em;
}

fieldset,
details,
.kommentti {
	border: 2px solid #ccc;
	border-radius: 0.3em;
	padding: 6%;
}

.kommentti {
	margin-bottom: 1em;
	padding-bottom: 3%;
}

#cpreview,
p#txpCommentInputForm {
	text-align: center;
}

details:focus {
	outline: none;
}

.button[disabled] {
	cursor: not-allowed;
}

li a {
	display: inline-block;
	vertical-align: top;
}