
/* Setting up some basic defaults */
html, body, form {
	margin: 0;
	font-size: 100%;
}
html {
	border-top: 1em solid #FFEEAA;
}
body {
	background-color: white;
	color: #222;
	border-left: 1em solid #FF9933;
	padding: 0 1em;

}
label:hover, a:hover, #header a:hover {
	text-decoration: underline;
}
.longcomment, #footer .longcomment{
	display: none;
}

/* Common header and footer settings */
#header, #footer {
	background-color: #FFEEAA;
	margin: 0 -1em 0 -2em;
	padding: 3px 1em;
}
/* A header with switching to alternate lenguates and some basic
 * navigation */
#header {
	text-align: right;
	display: block;
	list-style: none;
	color: black;
	margin-top: -1em;
}
ul#header li {
	display: inline;
	padding-left: 1em;
}
#header a {
	color: black;
	text-decoration: none;
}


/* A footer with copyright and contact infos */
#footer {
	display: block;
	list-style: none;
	text-align: center;
	clear: both;
}
#footer * {
	display: inline;
	font-size: 100%;
	font-weight: normal;
	list-style: none;
	margin: 0;
	padding: 0;
}
#footer dt {
	padding-left: 1em;
	width: auto;
	float: none;

}
#footer dd, #footer h2 {
	background-color: inherit;
	color: black;
}

/* The main page header */
h1 {
	margin: 0;
	padding: 0 1em;
	font-size: 200%;
	height: 64px;
	min-height: 64px;
	display: table-cell;
	vertical-align: middle;
}
body.titlepage h1 {
	height: 100px;
	min-height: 100px;
	padding-left: 140px;
	background-image: url(fi-logo-colored-100-100.png);
	background-repeat: no-repeat;
	background-position: 10px top;
}
h1 span {
	display: block;
}
h1 span + span {
	font-size: 70%;
}
.back_to_homepage {
	float: left;
	display: block;
	margin-top: 3px;
	width: 74px;
	height: 64px;
	background-image: url(fi-logo-colored-64-64.png);
	background-repeat: no-repeat;
	background-position: 10px top;
}
.back_to_homepage span {
	display: none;
}

/* Horizontal menu */

ul#menu {
	display: block;
	padding: 0.5em 2em;
	list-style: none;
	margin: 0 -1em;
}
ul#menu li {
	display: inline;
	float: left;
	padding: 0.5em 0em;
	list-style: none;
	text-align: right;
}
ul#menu li ul {
        display: none;
	position: absolute;
	margin-top: 0.5em;
	padding: 0;
	border: 2px solid #FF9933;
	border-top: 1px solid #FF9933;
}
ul#menu li:hover ul {
	display: block;
	background-color: white;
}
ul#menu li ul li {
	float: none;
	padding: 0;
}
ul#menu li ul li,
ul#menu li ul li a {
	background-color: white;
	color: black;
	text-align: left;
	display: block;
}
ul#menu li a:hover {
	background-color: black;
}
ul#menu li ul li a:hover {
	background-color: #FFEEAA;
	color: black;
}

ul#menu, ul#menu li, ul#menu li a {
	background-color: #505050;
	color: white;
	font-weight: bold;
}
ul#menu li a {
        text-decoration: none;
	padding: 0.5em 1em;
}

ul#menu li.switchlang {
	float: right;
}
ul#menu li.search {
	float: none;
}

/* Forms as dls */
form dl dt {
	text-align: right;
}
dl.noform dt {
	text-align: left;
}
dl dt {
	width: 26%;
	float: left;
	font-weight: bold;
}
dl dd {
	margin-left: 26%;
	padding-left: 1em;
}

fieldset {
	margin: 0.5em 0;
}

/* Presenting data */
img {
	float: right;
}
li img {
	float: none;
}

/* Title page with sections and news */

body.with_news div#sections {
	float: right;
	width: 70%;
	border-left: 1px solid #888;
}
div#sections div {
	clear: both;
}
body.with_news div#sections ul {
	padding: 0.2em 1em 1em;
	float: left;
	margin-bottom: 1px;     /* Fix Mozilla(?) error */
}
body.with_news div.news ul li, div#sections ul li {
	color: #FF9933;
	list-style: square inside;
}
div#sections ul ul {
	font-size: 80%;
	padding: 0em;
}
div#sections ul li a,
div#sections ul li span,
div#sections ul li a:visited,
div.news ul li a,
div.news ul li span,
div.news ul li a:visited {
        color: #222;
        text-decoration: none;
}
div#sections ul li a:hover,
div.news ul li a:hover {
        text-decoration: underline;
}


body.with_news div.news {
	float: left;
	width: 30%;
	margin-right: -1px;
}
body.with_news div.news h2 {
	display: none;
}
body.with_news div.news ul {
	padding: 0.3em 1em;
}


div#sections h2 {
	clear: both;
	margin: 0;
	margin-right: -0.666em;
}


body.with_news div.news div h3 {
	margin: 0 1px 0 -1em;
	padding: 0.5em 1em;
        font-size: 100%;
        font-weight: bold;
        background-color: #FFEEAA;
        color: #222;
}
a {
	color: #C95300;
}
p a:visited {
	color: red;
}
div.news div h3, div.news div h3 a {
        color: black;
        text-decoration: none;
}
div.news div h3 a:hover {
        text-decoration: underline;
}

/* Generic niceties */

h2 {
	font-size: 150%;
	margin: 0 -0.666em;
	padding: 0.5em 0.666em;
	background-color: #F0F0F0;
	color: #C95300;
}
h2 a {
	color: inherit;
	text-decoration: none;
}
h3 {
	margin: 1em 0 0.3em;
	padding: 0;
	padding-top: 0.5em;
	border-top: 1px solid #FFEEAA;
}
h2 + h3 {
	padding-top: 0;
	border-top: none;
}

.date {
        font-style: italic;
}

pre {
	padding: 0 1em;
	background-color: #F0F0F0;
}

table {
        border-collapse: collapse;
        margin: 0.3em 0em;
}
tbody, thead, tfoot, tr, th, td {
        border: 1px solid #C0C0C0;
        vertical-align: top;
        margin: 1em;
        padding: 0.3em 0.6em;
}
thead th, tfoot th {
        background-color: #E0E0E0;
        border: 1px solid grey;
}
.obor {
	font-style: italic;
}


