/*
	Theme Name: Miriela
	Theme URI: 
	Author: Mieriela.lv
	Author URI: http://mieriela.lv/
	Description: The most recent layout for Mieriela.lv-site.
	Version: 1.0
	License: Attribution-NonCommercial 4.0 International
	License URI: http://creativecommons.org/licenses/by-nc/4.0/
	Text Domain: mieriela
	Tags: custom, responsive
*/

* {
	margin: 0;
	padding: 0;
}

body {
	font: 1em sans-serif;
	text-align: center;
	color: #6650A2;
	background: #fff url('galvene.jpg') no-repeat 50% 0 fixed;
	background-size: 100% 100%;
}

a {
	text-decoration: none;
	color: #DA3B80;
}

a:hover,
a:focus,
a:active {
	text-decoration: none;
	color: #1DBECF;
}

#layout {
	text-align: left;
	margin: 0 auto;
	border-bottom: 0.5em solid #1898A4;
}

header h1,
header nav ul,
main,
aside {
	max-width: 920px;
	margin: 0 auto;
}

header h1 {
	text-align: center;
}

header h1 img {
	padding: 0.5em;
	background: #fff;
}

header nav {
	background: #FFD54E;
	padding: 1% 2%;
	border-top: 0.5em solid #FAB600;
}

#middle {
	min-height: 25em;
	background: #fff;
}

main,
aside {
	padding-top: 1.5em;
}

footer {
	background: #1DBECF;
	padding: 2em 2.5em 1em 2.5em;
}

.tyhjennys {
	display: block;
	clear: both;
}

a img {
	border: 0;
}

q:before,
q:after {
	content: '"';
}

h1, h2, h3, h4, h5, h6 {
	padding: 0 0 0.7em 0;
	line-height: 155%;
	font-size: 1.4em;
	font-weight: bold;
	color: #6650A2;
}

p, dl, ul, ol, dl, table, form {
	padding: 0 0 1em 0;
	line-height: 140%;
}

p,
dl,
#keskiosa ol,
#keskiosa ul {
	max-width: 760px;
}

ul,
ol {
	padding-left: 1em;
}

hr {
	display: none;
}

nav ul,
form ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

header nav li,
header nav a {
	display: inline-block;
}

header nav a {
	padding: 0.5em 1em;
	background: #5DA764;
	color: #fff;
	text-decoration: none;
	margin-right: 1px;
}

header nav li:last-of-type a {
	margin-right: 0;
}

header nav a:hover,
header nav a:active,
header nav a:focus,
header .current-menu-item a,
header .current-page-ancestor a {
	background: #89C538;
	color: #fff;
	text-decoration: none;
}

button,
input[type=submit],
input[type=button] {
	padding: 0.5em 1em;
	margin: 0 1em 1em 0;
	border: 1px solid #145D82;
	color: #145D82;
	text-decoration: none;
	border-radius: 4px;
	background: none;
}

button:hover,
button:focus,
button:active,
input[type=submit]:hover,
input[type=submit]:focus,
input[type=submit]:active,
input[type=button]:hover,
input[type=button]:focus,
input[type=button]:active {
	background: #145D82;
	text-decoration: none;
	color: #fff;
}

table {
	border: 1px solid #ccc;
	padding: 0;
	border-radius: 3px;
	margin-bottom: 1em;
}

thead th {
	text-align: center;
	border-bottom: 1px solid #FCD1BE;
	background: antiquewhite;
}

tbody td {
	border-bottom: 1px solid #FCD1BE;
}

tbody tr:last-of-type td {
	border-bottom: 0;
}

label,
button,
select,
input[type=submit],
input[type=button],
input[type=number],
input[type=date] {
	cursor: pointer;
}

input[type=text],
input[type=search],
input[type=number],
input[type=date],
select,
textarea {
	padding: 0.5em;
}

textarea {
	font: 1.3em sans-serif;
}

.alignleft {
	float: left;
	margin: 0 1em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1em;
}

@media (max-width: 840px) {
	header h1 img {
		width: auto;
		height: auto;
		max-width: 144px;
	}
	header nav li,
	header nav a {
		display: block;
	}
	main,
	aside {
		display: block;
		float: none;
		padding-left: 0;
		padding-right: 0;
		padding-bottom: 0;
		width: auto;
	}
	aside {
		padding: 0;
		background: none;
	}
	aside article {
		border-top: 0;
		padding-bottom: 0;
	}
	main article {
		padding: 0 1em 1em 1em;
	}
	footer {
		padding: 2em 1em 1em 1em;
	}
}