* {
	margin: 0;
	padding: 0;
	}

body {
	font: 1em sans-serif;
	background: #F2F2F2;
	color: #333;
	}

body,
html {
	height: 100%;
	}

::-moz-selection {
	background: #333;
	color: #F2F2F2;
	}

a {
	text-decoration: underline;
	color: #007F96;
	}

a:hover {
	text-decoration: none;
	color: #00B0D0;
	}

a:active,
a:focus {
	outline: none;
	}

#rakenne {
	width: 90%;
    max-width: 1400px;
	text-align: left;
	margin: 0 auto;
    padding: 0 1em;
    background: #F2F2F2;
	}

header {
	position: relative;
	background: #232B2C url(../images/ylaosan-tausta.jpg) no-repeat 100% 50%;
    margin-bottom: 1em;
    padding: 2em;
    position: relative;
	}

header h1 {
    padding-bottom: 2em;
    }

header ul {
    list-style: none;
    font-size: 1.6em;
    opacity: 0.9;
    padding-bottom: 0;
    }

header li {
	display: inline-block;
    padding-bottom: 1.5em;
	}

header a {
	padding: 0.5em 1em;
    margin-right: 0.5em;
    text-decoration: none;
    background: #30B4C0;
    color: #333;
	}

header a:hover,
header a:focus,
header a:active,
header #avattu a {
    background: #69D0D9;
    color: #000;
    }

header li:last-child a {
    margin-right: 0;
    }

header form {
    padding: 1em;
    position: absolute;
    right: 0;
    top: 0;
    background: #232B2C;
    }

main p {
    padding-right: 15%;
    }

footer {
    margin-top: 1em;
    padding: 3em 15% 1.5em 3em;
    background: #242424 url(../images/tausta.png) repeat 0 0;
    color: #999;
    }

footer dl {
    font-size: 1.2em;
    }

footer dt,
footer dd {
	display: inline;
	}

footer dt {
	font-weight: bold;
    margin-right: 0.5em;
	}

h1, h2, h3, h4, h5, h6 {
	padding: 0 0 0.5em 0;
	font: bold 1.6em sans-serif;
	line-height: 120%;
	}

h1 span {
	display: block;
	font-size: 0.7em;
	}

.isolla {
	text-transform: capitalize;
	}

p, ul, ol, dl, form {
	font: 1em sans-serif;
	line-height: 150%;
	padding: 0 0 1em 0;
	}

ol, ul {
	list-style-position: inside;
	}

header,
section,
.tyhjennys,
footer {
	display: block;
	clear: both;
	}

.autokoulut,
#kirjaimet {
	list-style: none;
	}

.autokoulut li,
#kirjaimet li {
	display: inline-block;
    padding: 1em 0.5em 1.5em 0;
	}

.autokoulut a,
#kirjaimet a {
    border: 1px solid #ccc;
    padding: 0.5em;
    background: #fff;
	}

.tagSizeSmallest {
	font-size: 1.1em;
	}

.tagSizeMedium {
	font-size: 1.6em;
	}

.tagSizeLargest {
	font-size: 2.1em;
	}

form ul {
	padding: 0;
	list-style: none;
	}

form li {
	padding-bottom: 1em;
	}

fieldset {
	padding: 2em;
	}

input,
button,
textarea {
	font: 1em sans-serif;
	}

label,
button,
.button {
	cursor: pointer;
	}

li label {
	float: left;
	width: 150px;
	padding-top: 0.5em;
	}

input,
textarea {
	max-width: 250px;
	padding: 1em;
	}

textarea {
	min-height: 50px;
	}

button,
.button {
	padding: 1em 2em;
	}

li button,
li .button:first-of-type {
    margin-left: 150px;
    }

li input,
li textarea {
	max-width: 300px;
	}

#pakolliset-tiedot {
	padding: 0 0 1em 150px;
	}

#komnapit input {
	width: auto;
	text-transform: capitalize;
	}

.zemContactForm .zemError,
.comments_error {
	color: #c00;
	padding-bottom: 10px;
	}

.zemContactForm .zemError li,
.comments_error li {
	padding: 0;
	}

#arvostele input {
	max-width: 30px;
	text-align: center;
	}

#arvostele span {
	display: block;
	}

#kartta {
	min-height: 250px;
    max-height: 600px;
	width: 100%;
    margin-bottom: 1.5em;
	}

#cpreview {
	padding: 2em;
	background: #fff;
	}

#cpreview .mielipide {
	margin: 1.5em 0 0 0;
	background: #f0f0f0;
	}

.mielipide {
	background: #fff;
    padding: 2em;
	}

.mielipide h3 {
	font-size: 1.2em;
	}

.mielipide h4,
.mielipide p,
#ekatselu,
#mielipiteet {
	padding: 0;
	}

.komtieto {
	list-style: none;
	padding: 1em 0;
	}

.komtieto li {
	display: inline;
	margin-right: 0.5em;
	}

a img,
img {
	border: 0;
	}

#sivutus {
	list-style: none;
	padding: 1em 0;
	}

#sivutus li {
	padding-right: 1em;
	display: inline-block;
	}

.tuplat {
	display: table;
	height: 100%;
	width: 100%;
	}

.tuplat h3,
.tuplat h4,
.tuplat h5,
.tuplat h6 {
	font-size: 1.2em;
	}

.tuplat div {
	display: inline-block;
    vertical-align: top;
	width: 20%;
	}

.tuplat ul {
	padding-right: 0;
	list-style: none;
	}

.tuplat li a {
    display: block;
    padding: 0.5em 0;
    }

#kirjaimet {
    font-size: 1.8em;
    width: 60%;
	}

#kirjaimet li {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    }

#aakkostetut {
	list-style: none;
	}

ul.aakkostetut li {
    display: inline-block;
    width: 32%;
    }

ul.aakkostetut a {
	display: block;
    padding: 0.4em 0;
	}

h3.aakkostetut {
    display: block;
    clear: both;
    padding: 0;
    margin: 0.5em 0;
	border-bottom: 1px solid #ccc;
    font-size: 3em;
	}

.zemThanks,
.zemError {
    padding: 2em 0;
    font-size: 1.3em;
    display: block;
    clear: both;
    }

.lopettanut,
.lopettanut a {
    color: #888;
    text-decoration: line-through;
    }

.vcard h3 {
    border-top: 5px dotted #ccc;
    padding-top: 1em;
    }

.vcard:first-of-type h3,
h3.aakkostetut:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
    }

.srtgs {
    float: right;
    position: relative;
    width: 115px;
    background: #44BBC5;
    text-align: left;
    padding: 0.5em;
    color: #333;
    font: 1em sans-serif;
    display: block;
    min-height: 30px;
    margin: 1em 0;
    }

.srtgs .stars,.srtgs .d_rtg,.srtgs .totalrate{width:110px}.srtgs .stars{position:relative;height:20px;margin:0;background:url(../tahtiarvostelu/arvosana-tahti-0.png) repeat-x 0 0;padding:1px}.srtgs .d_rtg{position:absolute;top:0;left:0;margin:0;height:20px}.srtgs .totalrate{position:relative;text-align:center;font-weight:bold}.srtgs .d_rtg span{display:block;width:11px;float:left;cursor:pointer}.srtgs .star_n{position:relative;height:20px;margin:0;background:url(../tahtiarvostelu/arvosana-tahti-1.png) repeat-x 0 0}

table {
width: 100%;
border-collapse: collapse;
margin-bottom: 1.5rem;
border: 1px solid #ccc;
padding: 1rem;
background: #fff;
}

th,
td {
padding: 0.5rem;
border-bottom: 1px solid #ccc;
}

@media all and (max-width: 1360px) {
    header img {
        height: auto;
        width: auto;
        max-width: 700px;
        }
    #rakenne {
        max-width: 100%;
        width: auto;
        }
    }

@media all and (max-width: 1260px) {
    header img {
        max-width: 500px;
        }
    .tuplat div {
	    width: 50%;
	    }
    }

@media all and (max-width: 1160px) {
    header {
        background: #242424 url(../images/tausta.png) repeat 0 0;
        padding-bottom: 0;
        }
    header img {
        max-width: 450px;
        }
    }

@media all and (max-width: 1060px) {
    header img {
        max-width: 400px;
        }
    main p,
    footer {
        padding-right: 2em;
        }
    }

@media all and (max-width: 960px) {
    .tuplat div,
    ul.aakkostetut li {
        display: block;
	    width: auto;
	    }
    }

@media all and (max-width: 860px) {
    header {
        padding-bottom: 1.5em;
        }
    header h1 {
        padding-bottom: 0.5em;
        }
    header img {
        max-width: 100%;
        }
    header li {
        display: block;
        padding: 0 0 0.5em 0;
        }
    header a {
        display: block;
        margin: 0;
        }
    header form {
        position: static;
        padding: 2em;
        text-align: center;
        background: #333;
        font-size: 0.9em;
        }
    header input {
        width: 60%;
        }
    header button {
        margin: 0.5em;
        }
    }