/* JOS ET OLE VARMA MITÄ TEET, OTA VANHA KOODI TALTEEN */



/* 
   Valikkorakenne muokattu Daniel Burkan alkuperäisen pohjalta.
   http://labs.silverorange.com/archives/2004/may/updatedsimple

   "Again, feel free to use this code and if you improve on them 
   I'd love to hear about it. Thanks."
*/


#navi {
	position: relative;
	height: 2em;
	width: 675px; /* a width is required for Opera, older Mozilla browsers, and Konqueror browsers */
}

#navi ul#paataso {
	margin: 0;
	padding: 0;
	position: absolute;
	bottom: -1px;
	width: 675px; /* a width is required for Opera, older Mozilla browsers, and Konqueror browsers */
}

#navi ul#paataso li  {
	display: inline;
	list-style: none;
}

#navi ul#paataso a,#navi ul#paataso span,#navi ul#paataso a.aktiivi {
	/* Kaikki tabit ja teksti joka ei linkkinä */
	display: block;
	float: left;
	padding: 4px 10px 0px 10px;
	margin: 1px 2px 0px 0;
	text-align: center;
	text-decoration: none;
	color: #000000;
}

#navi ul#paataso span,#navi ul#paataso a.aktiivi,#navi ul#paataso a.aktiivi:hover {
	/* Auki oleva välilehti */
	border: 1px solid #000000;
	border-bottom: none;
	background: #CFDCE5;
	padding-bottom: 6px;
	margin-top: 0;
}

#navi ul#paataso a {
	/* taustalla olevat välilehdet */
	background: #DFE6ED;
	border: 1px solid #666;
	border-bottom: none;
}

#navi ul#paataso a:hover {
	/* välilehden päällä hiiri */
	margin-top: 0;
	border-color: #000000;
	background: #CFDCE5;
	padding-bottom: 5px;
}

#navi ul#alataso {
	position: absolute;
	margin: 0;
	padding: 0;
	top: 2.2em;
	left: 1px;
	width: 670px; /* a width is required for Opera, older Mozilla browsers, and Konqueror browsers */
}

#navi ul#alataso li a,#navi ul#alataso li span {
	width: auto;
	display: block;
	float: left;
	padding: 0 10px;
	margin: 0;
	border: none;
	border-right: 1px dotted #000000;
	background: none;

}

#navi ul#alataso li#viimeinen a,#navi ul#alataso li#viimeinen span {
	border-right: none;
}

#navi ul#alataso li a {
	color: #003366;
}

#navi ul#alataso li a:hover {
	color: #EC2D2B;
	background: transparent;
	padding: 0 10px;
	border: none;
	border-right: 1px dotted #000000;
	text-decoration: underline;
}

#navi ul#alataso li a:active {
	color: #000;
	background: transparent;
}

/*
	Tämä on css3:n ominaisuus, toimii mozillan selaimissa, ei IE;ssä.
	Ongelma kierretty php:n avulla

	#navi ul#alataso li:last-child a { border: none; }
*/



/* Tähän id;t */

#hallinta {
	font-size: small;
}

#runko {
	width: 680px;
	text-align: left;
	margin-left: auto;
	margin-right: auto;
}

#yla {
	text-align: center;
}

#keski {
	border: 1px solid #000000;
	background: #CFDCE5;
	clear: both;
	padding-top: 2em;
	line-height: 130%;
	text-align: justify;
}
#sisalto {
	padding: 1px 10px 10px 10px;
	text-align: left;
	background-color: white;
        background-image: url('http://turunpientalot.fi/khoky/kuvat/logo3.gif');
        background-repeat: no-repeat;
        background-attachment: scroll;
        background-position: center center;
}

#ala {
	text-align: center;
	padding: 3px 10px 0 10px;
	font-size: small;
	
}


#liity {
	float: right;
	position: relative;
	top: -20px;
	padding: 10px;
	border: 1px solid #666666;
	background: #DFE6ED;
}


#ajankohtaista {
	width: 400px;
	padding-top: 20px;
        margin-left: auto;
        margin-right: auto;
	text-align: center;
}

#logo {
	text-align: center;
}

#puumerkki {
        font-size: xx-small;
        position: relative; 
        top: 15px;
        left: 559px;
        color: #888888;
        width: 110px;
}

/* Spesiaaliluokat */

p.no-first-letter:first-letter {
	font-weight: normal;
}

p.virhe:first-lett {
	font-weight: normal;
}

p.virhe {
	color: red;
}

ul.kierra-ie-bugi {
	list-style-type: disc;	
}

textarea.teksti {
	height: 100px;
}

/* Tähän yleiset luokat */
.teksti {
	width: 200px;
	border: 1px solid black;
	background: #DFE6ED;
	font-size: medium;
}

.levea {
	width: 410px;
}

.valkoinen_tausta {
	background-color: white;
}

/* Spesiaalielementit */



/* Elementit */

body {
	text-align: center;
}

body, pre {
	font-family: Verdana,Arial,sans-serif;
	font-size: medium;
}

img {
	border: 0px;
}

h1 {
	font-size: xx-large;
	font-weight: bold;
}

h2 {
	font-size: x-large;
	font-weight: normal;
}

h3 {
	font-size: large;
	text-decoration: underline;
	font-weight: normal;
}

h4 {
	font-size: medium;
	font-weight: bold;
}

h5 {
	font-size: medium;
	font-weight: normal;
	text-decoration: underline;
}

th {
	text-align: left;
}

p:first-letter {
	font-weight: bold;
}

a:link {
	text-decoration: none;
	color: #003366;
	border-bottom: 1px dotted #003366;
}
a:visited {
	text-decoration: none;
	color: #003366;
	border-bottom: 1px dotted #003366;
}	
a:hover {
	color: #EC2D2B;
	border-bottom: 1px solid #EC2D2B;
}




@media print {

	h1 {
		position: relative;
		text-align: left;
		font-size: x-large;
		top: 1em;

	}

	#navi {
		display: none;
		height: 0;
		
	}

	#keski {
		border: none;
	}

	#sisalto {
		padding: 0;
		margin: 0 2em 0 0;
		background: none;
	}

	#liity {
		display: none;
	}

	#hallinta {
		display: none;
	}
        
        #puumerkki {
                display: none;
        }

	a:link {
		color: black; 
		border-bottom: none;
	}

	a:visited {
		color: black; 
		border-bottom: none;
	}
}


