/* 

Versio 5.0 Suomursu :)

*/

body {
    font-family: "trebuchet ms";
    background-image: url(images/body_bg.png);
    background-repeat: repeat-x;
    background-color: #f5f7f9;
    margin: 0;
    padding: 0 5px 5px 5px;
    font-size: 0.9em;
}

h1, h2, h3, h4 {
    padding: 0 5px;
    margin: 10px -5px;
}

h2 {
    background-image: url(images/h_bg.png);
    background-repeat: repeat-x;
    background-position: bottom;
    font-size: 160%;
    padding: 3px 5px;
}

#header {
    position: relative;
    height: 100px;
    max-width: 1180px;
    margin: auto;
    color: white;
}

#header #logo {
    float: left;
}

#header h1 {
    margin: 0;
    padding: 10px 0 0 0;
    font-size: 220%;
    border: none;
    background: none;
}

#header a {
    color: white;
}

#header p {
    margin: 0;
}

#menu {
    position: relative;
    z-index: 10000;
    top: 0;
    height: 30px;
    max-width: 1180px;
    min-width: 1000px;
    margin: auto;
}

#menu ul {
    width: 1000px;
    margin: 0 0 0 5px;
    padding: 5px 0 0px 5px;
    list-style-type: none;
    position: absolute;
    bottom: 1px;
    background-image: url(images/menu_separator.png);
    background-repeat: no-repeat;
    background-position: left bottom;
}

#menu ul li {
    position: relative;
    display: block;
    float: left;
    padding: 0px;
    margin: 0 0 0 -5px;
    height: 26px;
}
* html #menu ul li {
    display: inline;
    height: 24px;
}
* html #menu ul li a {
    display: inline;
}

#menu ul li a {
    display: block;
    position: relative;
    bottom: -1px;
    height: 15px;
    padding: 5px 7px;
    margin: 0 1px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    background-image: url(images/menu_separator.png);
    background-repeat: no-repeat;
    background-position: right bottom;
}

#menu ul li a:hover {
    color: black;
}

#menu ul li.active a,
#menu ul li:hover a {
    margin: 0;
    bottom: 0;
    border: 1px solid black;
    border-bottom: 1px solid white;
    background-color: white;
    background-image: url(images/menu_active_bg.png);
    background-repeat: repeat-x;
    color: black;
}

#menu ul li ul {
    display: none;
    position: absolute;    
    top: 28px;
    left: 0px;
    z-index: 10000;
    width: 160px;
    min-width: 160px;
    padding: 0;
}
* html #menu ul li ul {
    top: 25px;
}

#menu ul li ul li {
    display: block;
    background-color: white;
    background-image: none;
    margin-top: -1px;
    width: 160px;
}

#menu ul li:hover ul a,
#menu ul li ul a,
#menu ul li.active ul a {
    color: black;
    font-weight: normal;
    background-image: none;
    display: block;
    margin: 0;
    padding: 5px;
    border: 1px solid black;
    border-top: none;
}

#menu ul li.active ul a:hover,
#menu ul li ul a:hover {
    background-color: #f1f1f1;
}

#left {
    position: absolute;
    top: 0;
    left: 0px;
    padding: 30px 0 0 10px;
    float: left;
    height: 100%;
    background-image: url(images/submenu_bg.png);
    background-repeat: no-repeat;
    height: 340px;
    width: 175px;
}

#left ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#left ul li {
    padding: 5px;
    margin: 0;
    background-image: url(images/submenu_separator.png);
    background-repeat: no-repeat;
    background-position: left bottom;
}

#left ul li a {
    padding: 5px;
    margin: -5px;
    color: #4e779d;
    font-weight: bold;
    text-decoration: none;
}

#left ul li a:hover {
    color: black;
}

#left ul li.active a {
    color: black;
}

#content {
    position: absolute;
    top: 130px;
    z-index: 500;
    clear: both;
    border: 1px solid black;
    border-top: none;
    background-image: url(images/content_bg.png);
    background-repeat: repeat-y;
    background-color: white;
    max-width: 1000px;
    margin: auto;
    padding: 0 0 0 180px;
}

body > #content {
    position: relative;
    top: 0;
}

#right {
    padding: 10px 190px 10px 5px;
    font-size: 10pt;
    line-height: 1.4;
}

#advertisements {
    text-align: center;
    border-left: 1px solid #ddd;
    float: right;
    width: 180px;
    padding: 10px 0;
    margin: 10px 0;
}

#advertisements  img {
    border: none;
    display: block;
    margin: auto;
    margin-bottom: 5px;
}

#footer {
    clear: both;
    color: #aaa;
    padding: 25px 0 5px 0;
    font-size: 9pt;
}

.box {
    width: 50%;
    float: left;
    min-width: 15em;
}

.box-content {
    background-color: #f9f9f9;
    margin: 5px;
    padding: 10px;
}

.box-content h3 {
    background-image: url(images/box_title_bg.png);
    background-repeat: repeat-x;
    background-position: bottom;
    font-size: 110%;
    margin: -10px -10px 10px -10px;
    padding: 3px 5px;
}

.box .highlight {
	background-color: #F9F9D2;
}

.box ul {
    color: #447eb3;
    margin: 0 0 0 1.2em;
    padding: 0;
    list-style-type: square;
}

a {
    color: #2258c6;
    text-decoration: none;
}

a img {
	border: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style-type: square;
}

table {
    border-collapse: collapse;   
}

table th {
    padding: 3px;
    background-image: url(images/h_bg.png);
    background-repeat: repeat-x;
    background-position: bottom;
}

table td {
    padding: 1px 5px 1px 1px;
}

.sinettilogo {
  position: absolute;
  right: 10px;
  top: 10px;
}

.spacer {
	clear: left;
}

#comment_form img { border-width: 0px; }

h2.uutisotsikko{ margin-bottom: 0 }
h2.kalenteri {
    text-align: center;
}


td.email {
    vertical-align:middle
}
table.reunat {  
    border: 1px solid black;  
    empty-cells: show; 
    padding: 0px;  
    margin-top: 0.5em; 
}
table.reunat th, table.reunat td { 
    padding: 3px; 
    border-right: 1px solid black; 
    border-top: 0; 
    border-bottom: 1px solid black; 
    border-left: 0; 
    background-color: white
}
table.reunat td.kalenteri_spot {
    background-color: #efefef;
    height: 110px;
}
table.reunat td.kalenteri_empty{
    background-color: #dfdfdf;
    height: 110px;
}
table.reunat td.korostus { 
    background-color: yellow
}
table.reunat td.kalenteri_otsikko {
    text-align: center;
    width: 110px; 
    background-color: #3374f6;
    color: white;
    font-weight: bold;
}

td.polli {
    vertical-align: middle
}
small.kirjoitti {
    font-style: oblique;
    font-size: 75%;
    line-height: 1.3em;
}
pre {
    font-size: 90%;
}

dt { font-weight: bold }

p.skip { 
    display: none 
}
p.virhe {
    color: red;
    font-weight: bold;
}

img.email { vertical-align: middle }

p.info {
    border:1px solid yellow; 
    background-color: #f9f9d2; 
    padding:1em;
    font-size: 100%;
}

table td h3 {
    background-color: #eff7ff;
    padding: 2px;
}

.futaajat {
  font-size:1em;
}

#menu ul li ul li a.external,
#left ul li a.external {
    background-image: url(images/external.png);
    background-position: right;
    background-repeat: no-repeat;
}

#left ul li a.external {
    padding-right: 20px;
}

@media print {
    #navcontainer, #left {
        width: 0px;
        display: none;
    }
    #header {
        padding-bottom: 2em;
    }
    #header, #right {
        border-width: 0px;
    }
    
    img { display: none }
}

@media handheld {

}

