/*  
Theme Name: TEP

Theme URI: http://tep.kaapeli.fi/

Description: TEP:n uudistunut ulkoasu.

Version: 1

Author: Aleksi Kaistinen 
URI: http://niceone.fi/
*/

html,body {
	margin: 0;
	padding: 0;
	height: 100%;
}
body {
	background: #ccc url(images/body-background.gif) repeat;
	font: normal 12px/20px Verdana, Arial, Helvetica, sans-serif;
}



/* Peruselementit */
p {
 margin: 0 0 15px 0; padding: 0;
}



/* Rakenne */

#content {
	width: 750px;
	background: url(images/content-background.gif) repeat-y;
	margin: 0 auto;
	min-height: 100%;
	padding: 0 15px;
}
#header {
	width: 740px; height: 82px;
	background: #fff url(images/header.png) no-repeat;
	text-align: right;
	padding: 10px 10px 0 0;
	font-size: .9em;
	color: #999;
}
#menu {
	width: 750px; height: 23px;
	background: #776633; 
	color: #fff;
	font-size: .9em;
}
#main {
	float: right;
	width: 470px;
	padding: 0 20px 40px 0;
	color: #333;
}
#sidebar {
	float: left;
	width: 190px;
	padding: 0 0 0 20px;
/* tässä oli aluperin color: #666; */
	color: #000;
	font-size: .9em;
	line-height: 16px;
}
#footer {
	width: 730px;
	margin: 0 auto;
	padding: 30px 15px 25px 35px;
	background: url(images/footer-background.gif) bottom no-repeat;
	font-size: .9em;
	color: #666;
}
.news {
	margin: 0; padding: 0 0 20px 0;
}



/* Yleisemmät linkit */

/* (oli ennen) a:link, a:hover { color: #669900; text-decoration: underline; } */
/* (oli ennen) a:visited { color: #90bc1a; text-decoration: underline; } */
a:link, a:hover { color: #004400; text-decoration: underline; }
a:visited { color: #006600; text-decoration: underline; }

#header a:link, #header a:visited { text-decoration: none; color: #999; }
#header a:hover, #header a:active { text-decoration: none; color: #666; }

#menu a { display: block; line-height: 23px; color: #fff; text-decoration: none; padding: 0 8px; }
#menu a:hover { color: #99bc1a; }



/* Otsikot */

h1 { display: none; }
h2 { font-size: 16px; margin: 0; padding: 30px 0 20px 0; }
h3 { font-size: 14px; margin: 0; padding: 30px 0 20px 0; }
#main h2 { padding-bottom: 0; margin-bottom: 20px; }
#main h3 { padding: 0; margin-top: 20px; margin-bottom: 20px; }


/* Muut määrätyt teksit */

#sidebar p { margin: 0 0 0 0; padding: 0 0 10px 0; }

#sidebar p.date {
	display: block;
	font-weight: bold;
	margin: 0; padding: 0;
}



/* Ylävalikko */

#menu ul { list-style: none; margin: 0; padding: 0 0 0 15px;}
#menu ul li { float: left; margin: 0; padding: 0; }
	

/* Sivupalkin valikko */

	/* Taso 2 */
		ul#level2 {
			margin: 30px 0 0 0; padding: 0;
			list-style: none;
			border-top: 1px solid #90bc1a;
		}
		ul#level2 a {
			display: block;
			text-decoration: none;
			padding: 4px;
			color: #000;
			border-bottom: 1px solid #90bc1a;
		}
		ul#level2 li#level2active { font-weight: bold; }
		
	/* Taso 3 */
		ul#level3 a { border: 0; }
		ul#level3 {
			margin: 0 0 0 0; 
			padding: 0; 
			list-style: none; 
			border-bottom: 1px solid #90bc1a;
		}
		ul#level3 li { 
			margin: 0 0 0 10px; 
			border: 0; 
			padding: 0 0 0 5px; 
			background: url(images/arrow.gif) no-repeat 0 9px; 
			font-weight: normal; 
		}
		ul#level3 li#level3active { 
			font-style: italic; 
			margin: 0 0 0 15px; 
		}



/* Sivupalkin valikko */

	/* Taso 2 */
		div#sidebar ul {
			margin: 30px 0 0 0; padding: 0;
			list-style: none;
			border-top: 1px solid #90bc1a;
		}
		div#sidebar ul a {
			display: block;
			text-decoration: none;
			padding: 4px;
			color: #000;
			border-bottom: 1px solid #90bc1a;
		}
		div#sidebar ul li#level2active { font-weight: bold; }
		
	/* Taso 3 */
		div#sidebar ul ul a { border: 0; }
		div#sidebar ul ul {
			margin: 0 0 0 0; 
			padding: 0; 
			list-style: none; 
			border-bottom: 1px solid #90bc1a;
		}
		div#sidebar ul ul li { 
			margin: 0 0 0 10px; 
			border: 0; 
			padding: 0 0 0 5px; 
			background: url(images/arrow.gif) no-repeat 0 9px; 
			font-weight: normal; 
}



/* Muut */
.clear {
	clear: both;
}


