/* General */
BODY {
	margin: 0;
	padding: 10px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 80%;
	color: black;
	background: red;
}
H1 {
	font-size: 207%;
	font-style: italic;
	text-align: center;
	text-transform: lowercase;
}
H2 {
	font-size: 173%;
	font-style: italic;
	text-align: center;
	text-transform: lowercase;
}
H3 {
	font-size: 144%;
	font-style: italic;
	text-transform: lowercase;
	color: red;
	margin: 1em 0;
}
H4 { font-size: 120% }
H6, .note { font-size: 80% }
IMG { border: 0 }
TT, PRE { font-size: 120% }
HR { border: 1px solid #800000 }
INPUT, SELECT { vertical-align: middle }
INPUT[type=radio] { vertical-align: baseline }
INPUT[readonly] { color: silver }

#body IMG { margin: 0 5px }

/* Links */
A:link {
	color: #FF0000;
	padding: 1px 2px;
}
A:visited {
	color: #800000;
	padding: 1px 2px;
}
A:link:hover, A:visited:hover {
	padding: 0 1px;
	border: 1px dotted black;
}
A:link:active, A:visited:active { background: #800000 }
A.remote:before { content: url("img/layout/remote.gif") }	
A.email:before { content: url("img/layout/email.gif") }	
A.feed:before { content: url("img/layout/rss.gif") }	
A.wap:before { content: url("img/layout/wap.gif") }	

/* Lists */
DT, H3 {
	display: list-item;
	margin-left: 20px;
}
UL LI, DT, H3 {
	list-style-type: disc;
	list-style-image: url("img/b.gif");
}
UL OL LI { list-style-type: decimal }

/* Tables */
TABLE {
	font-size: 100%;
	border-collapse: collapse;
	margin: auto;
/*	clear: both;*/
}
TABLE[align] { margin: 0 }
TABLE CAPTION { text-align: left }
TD {
	vertical-align: top;
	padding: 0;
}
TABLE.list TH {
	text-align: left;
	background: red;
	color: white;
	font-weight: bold;
	padding: 2px;
}
TABLE.list TH A {
	color: white;
	text-decoration: none;
}
TABLE.list TD {
/*	border-top: 1px solid silver;*/
	padding: 2px;
}
TABLE.list TBODY TR:nth-child(odd) { background: #fff7ef }
TABLE.list TBODY TR:hover { background: #ffc6c6 }
TABLE.list TFOOT {
	border-top: 1px solid silver;
	background: none;
}

/* Layout elements */
#frame { background: white url("img/tausta.gif") 50% 140px no-repeat }
#body, #header, #footer {
	position: relative;
	z-index: 1;
}
#body { margin: 0 20px }
#header	{ padding: 60px 80px 20px }
#footer	{
	height: 160px;
	padding: 40px;
	font-style: italic;
/*	white-space: nowrap;*/
}
#footer A IMG {
	width: 468px;
	height: 60px;
}
#tlcorner, #trcorner, #blcorner, #brcorner {
	position: absolute;
	top: auto;
}
#tlcorner, #blcorner {
	left: 10px;
}
#trcorner, #brcorner {
	right: 0;
	border-right: 10px solid red;
}
.title:link, .title:visited {
	font-family: Arial Black, Arial, Helvetica, sans-serif;
	font-size: 249%;
	font-style: italic;
	font-weight: 900;
	text-decoration: none;
	color: red;
	margin-right: 1ex;	
	text-transform: lowercase;
}
.slogan {
	font-size: 144%;
	font-style: italic;
	font-weight: bold;
	white-space: nowrap;
}	
.cats {
	font-size: 144%;
	font-style: italic;
	font-weight: bold;
	text-transform: lowercase;
}
.cats A:link, .cats A:visited {
	text-decoration: none;
	color: silver;
}
A.cat1:link, A.cat1:visited, .cats A:hover {
	color: red;
}
DIV.null { line-height: 0 }
CENTER.loose { display: none }
.decor1 { background: url(img/layout/decor1.gif) no-repeat 90% }
.decor2 { background: url(img/layout/decor2.gif) no-repeat 100% }

/* Common classes */
DL.index, DL.links { margin: 0 30px }
DL.index DT A {
	font-size: 144%;
	font-style: italic;
	font-weight: bold;
	text-transform: lowercase;
}
DL.index DD { margin-bottom: 0.5em }
DL.links DT { font-weight: bold }
.boxnote {
	margin: 1em 30px;
	border: 2px solid #800000;
	padding: 1em;
	font-size: 80%;
	text-align: center;
}
[lang=fi] { color: #004C83 }
[lang=fi]:before { content: url("img/layout/fi.gif") }
.error {
	color: #800000;
	font-size: 144%;
	font-weight: bold;
	text-decoration: blink;
	text-align: center;
}
.right { text-align: right }
.nowrap { white-space: nowrap }
P.pic {
	float: right;
	text-align: center;
	font-weight: bold;
	background: white;
}
TABLE.pic TD {
	font-weight: bold;
	font-size: smaller;
	text-align: center;
}
.form {
	font-weight: bold;
	white-space: nowrap;
	vertical-align: middle;
}
.form TD {
	padding: 0 .5ex;
	vertical-align: middle;
}
.form .note { font-size: 80% }
TR.buttons TD { padding-top: 1em }
.footnote {
	margin: 1em 0 0;
	border-top: 2px solid #800000;
	padding-top: 1em;
	font-size: 80%;
}
INPUT.num { text-align: right }
.list LI { padding: 2px }

@media print, handheld {
	#tlcorner, #trcorner, #blcorner, #brcorner, #fspacer { display: none }
	#body { margin: 0 }
	#header { padding: 0 0 20px }
	#footer { 
		padding: 40px 0 0;
		height: auto;
	}
}	
