/*
 * Kemistikillan sivujen CSS-tyylit
 * Matti Lehtimäki 2005-2012 
 */

html {
  height: 100%;
}

body {
  background: url(../kuvat/bg2.png) center repeat-y;
  font-family: arial, sans-serif;
  font-size: 12px;
  height: 100%;
  margin: 0;
}

h1, h2, h3, h4 {
  background-color: transparent;
  font-weight: bold;
}

h1 {
  color: #000099;
  font-family: serif;
  font-size: xx-large;
  margin: 0;
  padding: 10px;
}

h2 {
  font-size: 1.2em;
}

h3 {
  font-size: 1.1em;
}

h4 {
  font-size: 1em;
}

div {
  background-color: transparent;
  color: #000000;
  margin: 0;
  padding: 0;
  text-align: left;
}

div.container {
  background-color: #f2f2f2;
  margin: 0 auto;
  max-width: 1440px;
  min-width: 909px;
  width: 1000px;
}

div.header {
  background: #ffffff url(../kuvat/header4.png) 0 0 no-repeat;
  height: 150px;
  text-align: center;
}

div.navigation {
  background-color: #eae9e8;
  font-size: 1.2em;
  height: 30px;
  text-align: center;
  width: 100%;
}

div.main {
  background: #f2f2f2;
  width: 100%;
}

div.content {
  float: left;
  padding: 30px;
  width: 700px;
}

div.widecontent {
  float: left;
  padding: 30px;
  width: 940px;
}


div.sidebar {
  float: right;
  margin: 0 30px 30px 0;
}

div.sidebar-content {
  background-color: #e6e6e6;
  clear: both;
  float: right;
  font-size:110%;
  margin-top: 30px;
  padding: 10px;
  width: 190px;
}

div.sidebar-content-header {
  background-color: #0f1b32;
  color: #f2f2f2;
  font-size: 110%;
  margin: -10px -10px 5px;
  padding: 3px 10px;
  text-align: center;
  width: 190px;
}

div.tiedotukset {
  line-height: 1.2em; 
  width: 100%;
}

div.footer {
  background-color: #cccccc;
  clear:both;
  font-size: smaller;
  height: 20px;
  padding-top: 10px;
  text-align: center;
  width: 100%;
}

div.floatleft {
  float:left;
  padding-right: 20px;
  position: relative;
  z-index: 10;
}

div.floatright {
  float:right;
  position: relative;
}

table {
  background-color: transparent;
  border-collapse: collapse;
  border-spacing: 0;
  border-width: 0;
  color: #000000;
  margin: 0;
  padding: 0;
  text-align: left;
  vertical-align: top;
}

td {
  text-align: center;
  vertical-align: top;
}

table.raati {
  margin: 0 auto;  
  text-align: center;
  width: 100%;
}

table.left td {
  padding-right: 20px;
  text-align: left;
}

table.events td.td1 {
  width: 38px;
}

table.events td.td2 {
  width: 152px;
}

table.events td {
  padding: 2px 1px 3px;
  text-align: left;
}

div.calendar {
  text-align: center;
}

div.calendar > h2 {
  margin-top: 0;
}

table.calendar th {
  background: #ccccfc;
  border-color: #aaaaaa;
  border-style: solid;
  border-width: 1px;
  text-align: center;
  width: 127px;
}


table.calendar td {
  background: #fcfcfc;
  border-color: #aaaaaa;
  border-style: solid;
  border-width: 1px;
  height: 70px;
  padding: 0 2px;
  text-align: left;
  width: 127px;
}

table.calendar td.current {
  background: #fcfcaa;
}

table.calendar div {
  background: #ddddfc;
  height: 1em;
  margin: 0 -2px;
  padding: 0 2px 2px;
  text-align: left;
  width: 127px;
}

table.calendar td.week {
  background: #ccccfc;
  vertical-align:middle;
  width: 15px;
}

table.calendar td.tablefooter {
  background: #ccccfc;
  height: 1em;
  vertical-align: middle;
}

tr.odd {
  background: #cccccc;
}

tr.even {
  background: transparent;
}

span.red {
  color: #CC4444;
  font-size: 1.2em;
}

.red {
  color: #CC4444;
}

.green {
  color: #00AA00;
}

.big {
  font-size: 1.2em;
}

.keskitetty {
  text-align: center;
}

.center {
  text-align: center;
}

ul {
  list-style-type: square;
  margin-left: 15px;
  padding-left: 0;
}

li {
  color: #000000;
}

a {
  color: #254276;
  font-size: 1em;
  text-decoration: none;
}

a:hover {
  background: transparent;
  color: #142642;
  text-decoration: underline;
}

a:visited {
  color: #882288;
}

img {
  margin: 0;
  padding: 0;
  border-width: 0;
}

img.left {
  float: left;
}

img.right {
  float: right;
}

ul.events {
  color: #2d2dc8;
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

/* uusi valikko */

.navigation > ul {
  margin: 0;
}

.menu {
  line-height:30px;
}

.menu li {
  border-color: #142642;
  border-right-style: solid;
  border-right-width: 1px;
  cursor: default;
  float: left;
  list-style-type: none;
  position: relative;
  width: 99px;
}

.menu a {
  color: #000000;
  display: block;
  padding: 0 2px;
}

.menu a:hover, .menu a:focus {
  background: #142642;
  color: #f2f2f2;
  text-decoration: none;
}

.menu ul {
  background-color: #eae9e8;
  cursor: default; 
  display: none;
  left: 0; 
  margin-left: 0;
  position: absolute;
  top: 100%;
  width: 140px; 
}

.menu > li:hover > ul, .menu > li:focus > ul {
  display: block;
  z-index: 20;
}

.submenu li {
  border-color: #142642;
  border-style: solid;
  border-width: 1px 0 0 1px;
  margin-left: -1px;
  width: 140px;
  z-index: 20;
}

.submenu a:hover, .submenu a:focus {
  background: #142642;
  color: #f2f2f2;
  text-decoration: none;
}

.submenu a {
  color: #000000;
  display: block;
  padding: 0 5px;
}

/* sidebar linkkien tyylit, jperala 06092010 */

div.sidebar-content a {
  color: #254276;
  font-size: 1em;
}

div.sidebar-content-header > a {
  background: transparent;
  color: #f2f2f2; 
}

div.sidebar-content a:hover {
  font-size: 1em;
  text-decoration: underline;
}

