@import url('perustyylit.php');

body {
	margin: 0;
	padding: 0;
	background: white url(../img/top-gradient.jpg) repeat-x;
	text-align: center;
}

img {
	border: none;
}

#topMenu ul, #sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#container {
	width: 966px;
	text-align: left;
	margin: 15px auto 0 auto;
	position: relative;
}

#topLinks {
	text-align: right;
	font-size: 90%;
}

#topLinks img {
	vertical-align: middle;
}

#topLinks a {
	color: black;
	text-decoration: none;
}

#topLinks span,
#topLinks a {
	margin: 0 20px 0 0;
}

#topLinks span a {
	margin: 0;
}

#header {
	background: url(../img/header.jpg) no-repeat;
	height: 253px;
}

#header h1 {
	display: none;
}

#topMenu {
	background: #e0e5ea;
	padding: 6px 4px 6px 4px;
}

#topMenu ul {
	background: url(../img/menu-background.jpg) repeat-x;
	height: 37px;
	width: 100%;
}

#topMenu li {
	float: left;
	height: 37px;
	color: white;
	font: bold 13px Arial;
	padding: 0 15px 0 15px;
	border-right: 1px solid #5a2640;
}

#topMenu li:last-child {
	border-right: none;
}

#topMenu a {
	text-decoration: none;
	line-height: 37px;
	vertical-align: middle;
	color: white;
}

#topMenu .menuLeft,
#topMenu .menuRight {
	background: url(../img/menu-left.jpg) no-repeat;
	width: 5px;
	padding: 0;
	border-right: none;
}

#topMenu .menuRight {
	background-image: url(../img/menu-right.jpg);
	float: right;
}

#topMenu .search {
	padding-top: 6px;
	height: 30px;
	float: right;
	line-height: 30px;
	vertical-align: middle;
}

.search input[type=text] {
	border: none;
	background: transparent url(../img/search-background.gif) no-repeat;
	height: 22px;
	width: 122px;
	color: black;
	padding: 4px 0 0 10px;
	float: left;
	margin: 0 0 0 0;
	font: 100% Arial;
}

.search input[type=image] {
	float: left;
}

#topMenu ul::after,
#main::after {
	content: "."; 
	display: block; 
	height: 0; 
	clear: both; 
	visibility: hidden;
}

#topMenu .selected {
	background: #dde4ea;
	border-top: 3px solid #913d71;
	border-bottom: 1px solid #d9d9e2;
	height: 33px;
}

#topMenu .selected a {
	color: #823866;
}

#sidebar {
	width: 201px;
	position: absolute;
	top: 317px;
	left: 0px;
}

#linkbar {
	width: 217px;
	float: right;
	color: #344d68;
}

#sideLinks {
	width: 199px;
	background: #fafafa;
	padding: 16px 0 4px 0;
	margin: 0 0 30px 0;
}

#sideLinks li {
	border-bottom: 1px solid #d5d5d5;
	padding: 9px 0 4px 10px;
}

#sideLinks li:first-child {
	border-top: 1px solid #e1e1e1;
}

#sideLinks li ul li {
	border: 0;
}

#sideLinks li a.valittu {
	font-weight: bold;
}

.sideBox {
	width: 201px;
	color: #344d68;
}


.sideBox .content {
	background: url(../img/sidebox-background.jpg) repeat-y;
	padding: 15px;
}

.sideBox .header {
	background: url(../img/sidebox-top.jpg) no-repeat top left;
	padding-top: 7px;
}

.sideBox .footer {
	background: url(../img/sidebox-bottom.jpg) no-repeat bottom left;
	padding-bottom: 7px;
}

#sideLinks a:link, #sideLinks a:visited {
	color: #823866;
	text-decoration: none;
}

#sideLinks a:hover, #sideLinks a:active {
	text-decoration: underline;
}

.footer a {
	border-top: 1px solid #dededf;
	display: block;
	background: url(../img/kolmio.gif) no-repeat 0% 85%;
	margin: 0 10px 0 10px;
	padding: 10px 0 0 14px;
	font: bold 120% Arial;
	color: #344d68;
}

.header h2 {
	margin: 0 0 0 10px;
	padding: 0 0 0 14px;
	background: url(../img/kolmio.gif) no-repeat center left;
	font-size: 120%;
}



.sideBox h3 {
	font-weight: normal;
	margin: 0 0 0 0;
	font-size: 100%;
}

.sideBox p {
	margin: 0 0 10px 0;
}

#content {
	margin: 0 0 0 205px;
	padding: 35px 0 0 50px;
	width: 480px;
	float: left;
}

#content h1 {
	margin: 0 0 0 0;
	padding: 0 0 0 0;
	font-weight: normal;
	font-size: 150%;
}

#linkbar .header {
	margin: 20px 0 0 0;
	background: url(../img/linkbar-header.jpg) no-repeat;
	width: 216px;
	height: 34px;
	line-height: 34px;
	vertical-align: baseline;
}

.linkBox {
	margin: 8px 0 0 0;
	text-align: center;
}

#footer {
	margin: 20px 0 0 0;
	height: 58px;
	background: url(../img/footer-background.jpg) repeat-x;
	padding: 45px 20px 0 20px;
	color: #333333;
}

#footer p {
	line-height: 0.1em;
	margin: 0;
	padding: 0;
}

.poweredBy {
	float: left;
}
.poweredBy a:link, .poweredBy a:visited, .poweredBy a:hover, .poweredBy a:active {
	color: #333333;
	text-decoration: none;
}
.address {
	float: right;
}
