
body {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	margin: 0;
	padding: 0;
	background: #F0F0F0 url(pics/tausta.gif) repeat top left;
	line-height: 1em;
	height: 100%;
	font-size: 100%;
}

html {
	height: 100%;
}

#ulkoreuna {
	width: 870px;
	background-color: #fff;
	border-right: 3px solid #eee;
	border-left: 3px solid #9BD8A2;

	position: relative;
  	min-height: 100%; /* Standardi */
  	height: auto !important; /* Standardi */
  	height: 100%; /* IE */
  	clear: both;
}

#sisareunat {
	width: 870px;
	background-color: #fff;
	border-top: 3px solid #9BD8A2;
}

#ylapalkki {
	line-height: 0;
	height: 78px;
	width: 870px;
	background: #fff url(pics/tausta_yla.gif) repeat-x top left;
	margin: 0 0 9px 0;
}

#ylalaatikko {
	background: #9BD8A2 url(pics/ylalaatikko_vasen.gif) no-repeat top left;
	height: 28px;
	margin: 0 0 0 311px;
	font-size: 75%;
	line-height: 1em;
}

#ylalaatikko div {
	float: left; 
	width: 90px;
	height: 20px;
	margin: 6px 0 0 0;
}

#ylalaatikko img {
	float: left;
	margin-top: 1px;
}

#ylalaatikko input {
	float: left;
	margin-top: 1px;
}

#ylalaatikko a:link, #ylalaatikko a:visited {
	color: #1E6827;
	text-decoration: none;
}

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


/* YLÄLINKIT */

ul#linkit {
	font-family: Arial, Helvetica, sans-serif;
	margin: 20px 0 0 25px;
	padding: 0;
	list-style: none;
	font-size: 90%;
	width: 845px;
}

#linkit li {
	float: left;
	padding: 0 0 0 12px;
}

#linkit a:link, #linkit a:visited {
	float: left;
	display: block;	
	color: #fff;
	text-decoration: none;
	font-weight: bold;
	padding: 13px 30px 13px 18px;
}

/* Valittu linkki */

#linkit #current {
}

#linkit #current {
	float: left;
	background: url(pics/linkki_vasen.gif) no-repeat left top;
	margin: 0;
	padding: 0 0 0 12px;
}

#linkit #current a {
	float: left;
	display: block;
	background:url(pics/linkki_oikea.gif) no-repeat right top;
	padding: 22px 30px 8px 18px;
	color: #000;
	text-decoration: none;
	font-weight: bold;
}

/* Commented Backslash Hack hides rule from IE5-Mac \*/
#linkit a {float:none;}
/* End IE5-Mac hack */

#linkit a:active, #linkit a:hover {
	color: #DFFDE3;
}

table#ylakuvat {
	width: 870px;
	border: 0;
	padding: 0;
	margin: 0;
	vertical-align: top;
	border-collapse: collapse;
}

#ylakuvat td {
	margin: 0;
	padding: 0;
	vertical-align: top;
	line-height: 0;
}

#ylakuvat td#yla {
	height: 45px;
	background: url(pics/feidaus_yla.gif) repeat-x bottom left;
}

#ylakuvat td#ylakuva {
	height: 185px;
}

#ylakuvat td#ala {
	height: 68px;
	background: url(pics/feidaus_ala.gif) repeat-x top left;
}


/* VASEN PALSTA */

#vasen {
	float: left;
	margin: 0px 0px 20px 0;
	width: 190px;
}

ul.alalinkit {
	font-size: 70%;
	margin: 0 0 20px 18px;
	padding: 0;
	list-style-type: none;
}

ul.alalinkit li {
	background: url(pics/li.gif) no-repeat center left;
	padding: 6px 0 7px 16px;
	border-bottom: 1px solid #D7DFEB;
}

#vasen a:link, #vasen a:visited {
	color: #416A9F;
	text-decoration: none;
}

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

#vasen #current2 {
	font-weight: bold;
}

#ajankohtaista {
	margin: 0 0 0 18px;
	font-size: 70%;
}

#ajankohtaista h2 {
	color: #416A9F;
	font-weight: normal;
	margin: 7px 0 38px 0;
	font-size: 150%;
}

#ajankohtaista p {
	margin: 0 0 13px 0;
	padding: 0;
}

#etusivu_tiedotteet{
	margin: 0 0 0 18px;
	font-size: 70%;
}

#etusivu_tiedotteet h2{
	color: #416A9F;
	font-weight: normal;
	margin: 7px 0 15px 0;
	font-size: 150%;
}

#etusivu_tiedotteet p{
	margin: 0 0 5px 0;
	padding: 0;
	font-size: 80%;
}

/* OIKEA PALSTA */

#oikea {
	float: right;
	padding: 0 35px 20px 0;
	width: 600px;
	font-size: 75%;
	text-align: left;
}


/* ALASIVU ILMAN YLÄKUVAA */

#alasivu {
	background: url(pics/sauva_alasivu.gif) no-repeat top left;
  	height: 100%;
}

#alasivu #vasen {
	padding-top: 275px;
}

#alasivu #oikea {
	padding-top: 80px;
}



/* ALAOSA */

#alaosan_suoja {
	clear: both;
	overflow: hidden;
	height: 6em;
}

#alaosa {
	position: absolute;
	left: 0px;
	bottom: 0 !important;
	clear: both;
	display: block;
	width: 870px;
	margin: -55px 0px 0px 0px;
	overflow: hidden;
	background-color: #fff;
}

#footer {
	background-color: #9BD8A2;
	font-size: 70%;
	margin: 0 0 0 0;
	padding: 0.5em 1em 0.5em 0.7em;
}

#footer2 {
	background: #3E9A49 url(pics/tausta_ala.gif) repeat-x top left;
	height: 61px;
	margin: 0;
}


/* YLEISET */

form {
	margin: 0;
	padding: 0;
}

h1 {
	color: #416A9F;
	font-weight: normal;
	margin: 2em 0 1.8em 0;
	font-size: 150%;
	line-height: 1.5em;
}

h1.eka {
	color: #416A9F;
	font-weight: normal;
	margin: 0 0 1.8em 0;
	font-size: 150%;
	line-height: 1.5em;
}

h2 {
	color: #3F9A4A;
	font-weight: bold;
	margin: 2em 0 1em 0;
	font-size: 125%;
	padding: 0;
}

h3 {
	color: #3F9A4A;
	font-weight: bold;
	margin: 1.5em 0 1em 0;
	font-size: 110%;
	padding: 0;
}

h4 {
	font-weight: bold;
	margin: 1em 0 0.5em 0;
	font-size: 100%;
	padding: 0;
}

h2 a:link, h2 a:visited {
	color: #3F9A4A;
}

p {
	margin: 0 0 1em 0;
	padding: 0;
}

a:link, a:visited {
	color: #416A9F;
	text-decoration: none;	
}

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


/* ALASIVULISTA */ 

ul.alasivulista {
	margin: 1em 0 0 0;
	padding: 0;
	list-style-type: none;
}

ul.alasivulista li {
	background: url(pics/li.gif) no-repeat center left;
	padding: 1px 0 1px 16px;
}


/* TIETOKORTTI (HENKILÖT JA SEURAKUNNAT) */

div.tietokortti {
	border: 1px solid #D7DFEB;
	width: 545px;
	position: relative;
	padding: 5px 0;
	margin: 10px 0;
	background-color: #f7f7f7;
}

div.tietokortti div.oikealle {
	margin: 0 5px 0 147px;
	width: 390px;
}

div.tietokortti div.piispa_oikealle {
	margin: 0 5px 0 167px;
	width: 370px;
}


.tietokortti table {
	padding: 0;
	border-collapse: collapse;
	width: 100%;
}

.tietokortti table th {
	color: #fff;
	background-color: #3572B5;
	font-weight: normal;
	line-height: 1.9em;
	text-align: left;
	padding: 0 0 0 0.5em;
	font-size: 110%;
}

.tietokortti table td {
	line-height: 1.4em;
	text-align: left;
	padding: 3px 0 3px 0.5em;
	vertical-align: top;
}

.tietokortti table td.vas {
	width: 8em;
	font-weight: bold;
}

.tietokortti table td.piispa_vas {
	width: 11em;
	font-weight: bold;
}

.tietokortti table td.vali {
	line-height: 0em;
}

.tietokortti div.vasemmalle {
	float: left;
	width: 136px;
	text-align: center;
}

.tietokortti div.piispa_vasemmalle {
	float: left;
	width: 155px;
	text-align: center;
}

.tietokortti div.vasemmalle img, .tietokortti div.piispa_vasemmalle img {
	margin: 0 0 0 5px;
}

.tietokortti div.turvaksi {
	line-height: 0em;
	clear: both;
}

