/*
	Theme Name: Kansanaanestys.fi
	Theme URI: 
	Author: Kansanäänestysliike soveltuvilta osin.
	Author URI: http://www.kansanaanestys.fi/
	Description: Viimeisin ulkoasu Kansanaanestys.fi-sivustolla.
	Version: 1.0
	License: Attribution-NonCommercial 4.0 International
	License URI: http://creativecommons.org/licenses/by-nc/4.0/
	Text Domain: kansanaanestys
	Tags: custom, responsive, mobile-friendly, brown, white, gray, black
*/

* {
	margin: 0;
	padding: 0;
}

html,
body {
	background: #fff;
	height: 100%;
}

body {
	font: 1em Arial, Helvetica, sans-serif;
	text-align: center;
	color: #000;
}

a {
	text-decoration: none;
	color: #004fff;
}

a:hover,
a:active,
a:focus {
	text-decoration: underline;
	color: #354963;
}

a:active,
a:focus {
	outline: 1px dotted #ccc;
}

#ulkoasu {
	text-align: left;
	margin: 0 auto;
	display: table;
	height: 100%;
	width: 100%;
}

header,
main {
	display: inline-block;
	vertical-align: top;
	padding-top: 5%;
	padding-bottom: 5%;
	height: 100%;
	box-sizing: border-box;
}

header {
	background: #cc9;
	width: 27%;
	max-width: 325px;
	padding-left: 2%;
	padding-right: 2%;
}

header img {
	width: auto;
	height: auto;
	max-width: 100%;
}

main {
	width: 72%;
	max-width: 790px;
	padding-left: 2%;
}

header nav {
	font-weight: bold;
	color: #fff;
}

nav a {
	display: block;
	padding-top: 0.2em;
	padding-bottom: 0.2em;
}

q:before,
q:after {
	content: '"';
}

h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 135%;
	padding: 0 10% 0.5em 0;
}

h1 {
	font-size: 1.3em;
}

h2 {
	font-size: 1.1em;
}

h3,
h4,
h5,
h6 {
	font-size: 1em;
}

main h1 {
	border-bottom: 1px solid #cc9;
	margin-bottom: 0.5em;
}

p,
dl,
table,
ul,
ol,
form {
    padding: 0 0 1.5em 0;
	font-size: 0.95em;
	line-height: 155%;
}

ul,
ol {
	padding-left: 1.5em;
}

ul ul {
	padding-bottom: 0;
}

form ul {
	padding: 0;
	margin: 0;
}

form ul li {
	list-style: none;
	list-style-image: none;
}

fieldset {
	border: 1px solid #cc9;
	padding: 1.5em 2em 1em 2em;
}

hr {
	border: 0;
	border-top: 1px solid #ebebeb;
	margin: 2% 0 1% 0;
}

caption {
	display: none;
}

dt {
	font-weight: bold;
}

code,
samp,
pre,
var,
kbd {
	font: 1.2em monospace;
}

label,
button,
select,
input[type=checkbox],
input[type=radio],
input[type=submit],
input[type=button],
input[type=number],
input[type=date],
[role=button] {
	cursor: pointer;
}

input[type=text],
input[type=search],
input[type=number],
input[type=date],
input[type=email],
select,
textarea {
	padding: 0.5em;
}

button,
input[type=submit],
input[type=button] {
	padding: 0.5em 1em;
}

textarea {
	font: 1.3em Arial, Helvetica, sans-serif;
}

.alignleft {
    float: left;
	padding: 0 1em 1em 0;
}

.alignright,
#kuva {
    float: right;
	padding: 0 0 1em 1em;
}

main img {
	max-width: 100%;
	height: auto;
	width: auto;
}

article {
	max-width: 760px;
}

cite {
	font-style: normal;
	color: #ccc;
}

#leivanmurut {
	list-style: none;
	padding-left: 0;
}

.menu-etusivun-valikko-container li {
	display: inline-block;
}

#leivanmurut li:first-of-type:before {
	content: 'Olet täällä: ';
}

#leivanmurut li:after {
	content: ': ';
	padding-right: 0.5em;
}

#leivanmurut li:last-of-type:after {
	content: '';
}

#leivanmurut a {
	padding: 0.3em 0;
}

.menu-etusivun-valikko-container a {
	padding: 0.5em;
}

mark {
	background: #cc9;
	padding: 0 0.3em 0.1em 0.3em;
}

@media (max-width: 1060px) {
	table {
		overflow: auto;
		display: block;
	}
	header {
		width: 35%;
	}
	main {
		width: 65%;
	}
}