* {
	padding: 0; margin: 0;
}
body {
	margin: 0 auto;
	width: 800px;
	background-image: url("images/bg.jpg");
	background-repeat: repeat-x;
	background-color: #2d2d2d;
	font-family: arial, sans-serif;
	font-size: 95%;
}

#out {
	background-color: #2d2d2d;
	color: white;
}

/* Valikko */

#menu {
	font-family: Verdana, arial, sans-serif; 
	width:100%;
	margin:0; 
	padding: 0;
	height: 30px;
	margin-bottom: 2px; 
}
/* PURKKAA */
#loppuborderit { 
border-top: 1px solid #c0c0c0;
border-bottom: 1px solid #c0c0c0; 
height: 30px;
}
/* remove the bullets and set the margin and padding to zero for the unordered list */
#menu ul {
padding:0; 
margin:0;
list-style-type: none;
}
/* float the list so that the items are in a line and their position relative so that the drop down list will appear in the right place underneath each list item */
#menu ul li {
float:left; 
position:relative;
}
/* style the links to be 104px wide by 30px high with a top and right border 1px solid white. Set the background color and the font size. */
#menu ul li a, #menu ul li a:visited {
display:block; 
text-align:center; 
text-decoration:none; 
width:114px;
height:30px; 
color:#ccc; 
background:#2d2d2d; 
line-height:30px; 
font-size:80%;

}
#menu ul li a.top, #menu ul li a.top:visited {
border-top: 1px solid #c0c0c0;
border-bottom: 1px solid #c0c0c0;
}
#menu ul li a#selected {
	background-color: #5d2d2d;
}
/* make the dropdown ul invisible */
#menu ul li ul {
display: none;
}

/* specific to non IE browsers */
/* set the background and foreground color of the main menu li on hover */
#menu ul li:hover a.top {
color:#fff; 
border-top: 1px solid #f00;
border-bottom: 1px solid #f00;

}
/* make the sub menu ul visible and position it beneath the main menu list item */
#menu ul li:hover ul {
display:block; 
position:absolute; 
top:32px; 
left:0; /* -10px */
/*width:135px;*/
}
/* style the background and foreground color of the submenu links */
#menu ul li:hover ul li a {
display:block; 
background:#505050; 
color:#c0c0c0;
padding-top: 1px;
padding-bottom: 1px;
/*width: 135px;*/
}
/* style the background and forground colors of the links on hover */
#menu ul li:hover ul li a:hover {
background:#505050; 
color:#fff;
padding-top: 0px;
padding-bottom: 0px;
border-bottom: 1px solid #f00;
border-top: 1px solid #f00;
}

/* Valikko vihdoin ohi */

#sisalto {
	padding: 20px;
	padding-right: 0;
	min-height: 350px;
	background: #1c1c1c url("images/bg2.gif") fixed center 150px no-repeat; 
}

#sisalto td {
	vertical-align: top;
}

#polku {
	color: #a66;
	font-size: 80%;
	padding-bottom: 10px;
}

#teksti {
	width: 380px; /* 500 ilman mainosta */
	float: left;
	padding-right: 20px;
}

#mainos {
	padding: 0;
	margin: 0;
/*	text-align: right;*/
}

p {
	margin-bottom: 1em;
}
h1 {
	font-size: 200%;
	border-bottom: 1px solid #f00;
	margin-bottom: 0.4em;
	font-family: "Century Gothic", Arial, sans-serif;
	letter-spacing: 3px;
}
a:link, a:active {
	color: #faa;
	text-decoration: underline;
}
a:visited {
	color: #caa;
	text-decoration: underline;
}
a:hover {
	color: #f55;
	text-decoration: none;
}
.pieniboksi {
	width: 240px;
	float: left;
	
	border: 1px solid #000;
	background-color: #505050;
	margin-bottom: 10px;

}

.pieniboksi p {
	padding: 10px;
}
h2 {
	font-family: "Century Gothic", Arial, sans-serif;
	letter-spacing: 1px;
	border-bottom: 1px solid #f00;
	padding: 10px 10px 0 10px;
	font-size: 130%;
}

.warn {
	border: 1px solid #ff0;
	background-color: #f00;
	padding: 5px;
	margin: 5px;
	color: #fff;
}
.warn a:link, a:hover {
	color: #ffc;
}
#copyright, #login {
	width: 100%;
	text-align: center;
	padding-top: 10px;
	padding-bottom: 10px;
	color: #c0c0c0;
}
#copyright {
	font-size: 80%;
	padding-right: 15px;
}
#login {
	font-size: 80%;
	vertical-align: top;
	float: left;
	background: #242424;
}
#login input {
	border: 1px dotted #c0c0c0;
	background-color: #2d2d2d;
	margin-left: 5px;
	color: #c0c0c0;
}

table.taulukko {
	border: 1px solid white;
	border-width: 1px 0px 0px 1px;
}
table.taulukko td {
	border: 1px solid white;
	border-width: 0px 1px 1px 0px;
	
	padding: 5px;
}

ul li ul {
padding-left: 3em;
}

