/*
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/

* {
	margin: 0;
	padding: 0;
}

body {
	background: #E0E0E0 url(img01.gif) repeat-x;
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #333333;
}

form {
        display: inline;
}

input, textarea {
	padding: 2px 5px;
	font: normal 1em "Trebuchet MS", Arial, Helvetica, sans-serif;
	color: #333333;
}

div.white{
  background-color: #FFFFFF;
  width:            800px;
  text-align:       right;
  margin:           0 auto;
  /*float:            left;
  clear:            left;*/
}

div.lomake{        
  margin: 10px 0;              
}

div.lomake label{
  display: block;
}

div.center {
  text-align: center;
}

div.rightfloat {
  /*width: 280px;*/
  float: right;
}

.huom{             
  color: red;
  font-weight: bold;
}

h1, h2, h3 {
	margin-top: 1.5em;
	font-weight: normal;
}

h1 {
	font-size: 2em;
}

h2 {
	font-size: 1.4em;
}

h3 {
	font-size: 1em;
}


p.topic {
/*  border : solid 5px #cccccc;*/
/*  border-bottom : solid 4px #cccccc;*/
  color: #000000;
  padding: 2px 8px 2px 8px;
  margin: 0;
  margin: 0 22px 0 22px;
  
}

p.short, pre.short {
  /*border : solid 6px #cccccc;*/
/*  border-top : solid 1px #cccccc;*/
  padding: 2px 8px 2px 8px;
  margin: 0 22px 0 22px;
}

p.article, pre.article {
/*  border : solid 6px #cccccc;*/
/*  border-top : solid 1px #cccccc;*/
  padding: 2px 8px 2px 8px;
  margin-top: 10px 6px 2px 6px;
}

p, ul, ol {
	margin-top: 1.5em;
	line-height: 160%;
}

p.note {
	padding: 0 2px 0 2px;
	margin: 3px 10px 3px 0px;
	border: dotted 1px;
}

li {
	margin-left: 1.5em;
}

blockquote {
	margin-left: 3em;
	margin-right: 3em;
}

a {
	color: #CC6B47;
}

a:hover {
	text-decoration: none;
	color: #3760BF;
}

a img {
	border: none;
}

img.left {
	float: left;
        display: inline;
	margin: 0 20px 0 0;
}

img.right {
	float: right;
        display: inline;
	margin: 0 0 0 20px;
}

div.clear-both {
  clear: both;
}


hr {
	display: none;
}

td,th {
  text-align: left; 
}


#topbar {
	width: 800px;
	height: 20px;
	margin: 0 auto;
}



/* Header */

#header {
	width: 800px;
	height: 90px;
	margin: 0 auto;
}

#header h1, #header h2 {
	margin: 0;
	letter-spacing: -0.05em;
/*	text-transform: lowercase;*/
	font-weight: normal;
}

#header h1 {
	float: left;
	padding-top: 20px;
	font-size: 4em;
}

#header h1 a {
	text-decoration: none;
        color: #333333;
}

#header h2 {
	float: left;
	padding: 47px 0 0 8px;
	font-size: 2em;
	font-style: italic;
	color: #858585;
}

/* Menu */

#menu {
	width: 800px;
	height: 40px;
	margin: 0 auto;
	background: #4471CA url(img02.gif) no-repeat;
}

#menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: normal;
}

#menu li {
	display: inline;
}

#menu a {
	float: left;
	height: 28px;
/*	padding: 13px 8px 0 8px;*/
	padding: 13px 5px 0px 5px;
	background: url(img03.gif) no-repeat;
	text-decoration: none;
	font-weight: bold;
	color: #FFFFFF;
}

#menu a:hover {
	text-decoration: underline;
}

#menu .first a {
	background: none;
}

/* Page */

#page {
	width: 800px;
	margin: 0 auto;
}

/* Post */

.post {
        background: #FFFFFF;
}

.post .title {
	margin: 0;
}

.post .title a {
	text-decoration: none;
}

.post .byline {
	margin: 0 0 30px 0;
	line-height: normal;
}

.post .entry {
        background: #FFFFFF;
}

.post .entryNarrow {
        width: 400px;
        float: left;
        background: #FFFFFF;
}

.post .entryNarrowRight {
        width: 400px;
        background: #FFFFFF;
}

.post .meta {
	clear: both;
}

.post .meta a {
	text-decoration: none;
	font-weight: bold;
}

.post .meta a:hover {
	text-decoration: underline;
}

.post .meta .comments {
	padding-left: 20px;
	background: url(img07.gif) no-repeat left center;
}

.post .meta .permalink {
	padding-left: 20px;
	background: url(img08.gif) no-repeat left center;
}

.normi {
  width: 396px;
  clear: left;
  margin: 10px 5px 5px 5px;
}

.keski {
  float: middle;
  width: 600px;
  margin: 5px 30px 5px 30px;
  clear: both;
  display: inline;
}

.wide {
  float: middle;
  width: 800px;
  margin: auto;
  clear: both;
  background: #FFFFFF;
}

.oikea {
  float: right;
  width: 396px;
  clear: both;
  margin: 10px 5px 5px 5px;
}

div.oikealla {
  float: right;
  clear: both;
}

/* Main news list */

#latest-post {
	width: 792px;
	margin: 0 auto;
	padding: 0 4px 20px 4px;
        clear: none;
}

#latest-post .byline {
	margin: 0 0 20px 0;
	padding: 0;
	text-align: center;
	font-size: .9em;
	font-weight: bold;
	color: #3760BF;
        float: middle;
}

#latest-post .byline span {
	padding: 0 0 0 30px;
	background: url(img04.gif) no-repeat;
}

#latest-post .byline a {
	padding: 0 30px 0 0;
	background: url(img05.gif) no-repeat right top;
	text-decoration: none;
}

#latest-post .byline a:hover {
	text-decoration: underline;
}

#latest-post .h1 {
        padding: 0 15px 0 0;
}

/* Main article */

#recent-posts {
	width: 405px;
	margin: 0 auto;
//	background: url(img09.gif) no-repeat;
        float: left;
        margin: 0 auto;
        padding: 0;
}

#recent-posts h2 {
	height: 18px;
	margin: 0;
	padding-top: 2px;
	background: url(img10.gif) no-repeat right top;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: .5em;
	font-size: .9em;
	font-weight: bold;
	color: #FFFFFF;
}

#recent-posts h3 {
	font-size: 1.4em;
}

#recent-posts ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#recent-posts li {
	float: left;
	width: 246px;
	padding-left: 20px;
}

#recent-posts li.first {
	padding: 0;
}

/* Sidebar */

#sidebar {
	width: 800px;
	margin: 0 auto;
}

#sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#sidebar li {
	float: left;
	width: 255px;
	background: url(img09.gif) no-repeat;
}

#sidebar li ul {
	padding-left: 20px;
}

#sidebar li li {
	float: none;
	width: auto;
	padding: 0;
	background: none;
}

#sidebar h2 {
	height: 19px;
	margin: 0 0 20px 0;
	padding-top: 1px;
	background: url(img10.gif) no-repeat right top;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: .5em;
	font-size: .9em;
	font-weight: bold;
	color: #FFFFFF;
}

.ad {
        float: left;
        clear: left;
}

/* Search */

#search {
	text-align: center;
}

#search #s {
	width: 70%;
	margin-bottom: 10px;
}

/* Calendar */

#calendar {
}

#calendar table, #calendar caption {
	width: 70%;
	margin: 0 auto;
	text-align: center;
}

#calendar caption {
	font-weight: bold;
}

#calendar a {
	font-weight: bold;
}

/* Footer */

#footer {
	clear: both;
	margin: 0 auto;
	padding: 20px 0;
	background: url(img11.gif) repeat-x;
	text-align: center;
}

#footer p {
	margin: 0;
	font-size: .8em;
	color: #666666;
}


div.figure {
  float: right;
/*  width: 25%;*/
  border: thin silver solid;
  margin: 0.5em;
  padding: 0.5em;
}
div.figure p {
  text-align: center;
  font-style: italic;
  font-size: smaller;
  text-indent: 0;
}


#sddm
{	margin: 0;
	padding: 0;
	z-index: 30}

ul.sddm
{
        display: inline;
}

#sddm li
{	margin: 0;
	padding: 0;
	list-style: none;
	/*float: left;*/
	font: bold 11px arial;
        position: relative
}

#sddm li a
{	display: block;
	margin: 0 1px 0 0;
	padding: 4px 10px;
	width: 60px;
	background: #5970B2;
	color: #FFF;
	text-align: center;
	text-decoration: none}

#sddm li a:hover
{	background: #49A3FF}

#sddm div
{	position: absolute;
	visibility: hidden;
	margin: 0;
	padding: 0;
	background: #EAEBD8;
	border: 1px solid #5970B2}

	#sddm div a
	{	position: relative;
		display: block;
		margin: 0;
		padding: 5px 10px;
		width: auto;
		white-space: nowrap;
		text-align: left;
		text-decoration: none;
		background: #EAEBD8;
		color: #2875DE;
		font: 11px arial}

	#sddm div a:hover
	{	background: #49A3FF;
		color: #FFF}


@import s.css;


/******* New calendar styles ******************/

table.calendartable {
    /* Bottom must not have a border because cells have bottom border. border-collapse
     * cannot be used here as it is buggy in Firefox when used in combination with
     * rowspans and colspans. */
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-top: 1px solid black;
}

table.calendartable tr {
    /* This is needed to prevent rows with zero height */
    height: 1em;
}

table.calendartable th.day {
    text-align: center;
}

table.calendartable td {
    width: 4em;
    border-left: 1px dashed black;
    border-bottom: 1px solid black;
    text-align: top;
}

table.calendartable .even {
    background-color: #FFFFFF;
}

table.calendartable .odd {
    background-color: #F4F4F4;
}

.main table.calendartable .noSpace {
    background-color: #CCCCFF;
}

.main table.calendartable .notReserved {
    background-color: #FDFEC7;
}

.main table.calendartable .reserved {
    background-color: #C7FFC7;
}

table.calendartable th {
    border-bottom: 1px solid black;
}

table.calendartable th.rowheader {
    height: 4em;
    color: black;
    background: #3888D0 none;
}

@media screen, projection {
    table.calendartable th.rowheader {
        height: 6em;
    }
}

table.calendartable th.outsideeventrowheader {
    height: 1em;
    color: black;
    background: #3888D0 none;
}

table.calendartable td.outsidecell {
    height: 1em;
}

table.daycalendartable th.columnheader {
    background-color: #87CEEB;
}

table.daycalendartable th.day {
    background-color: #87CEEB;
}

table.weekcalendartable {
    width: 100%;
}

table.weekcalendartable th.columnheader {
    background-color: #87CEEB;
}

table.weekcalendartable th.day {
    background-color: #87CEEB;
    width: 14%;
}

table.monthcalendartable th.rowheader {
    background: #3888D0 none;
}

table.monthcalendartable {
    border-collapse: collapse;
    border: solid 1 px;
}

table.monthcalendartable td {
    border: 1px solid black;
    min-width: 14%;
    width: 14%;
    vertical-align: top;
}

table.monthcalendartable th {
    border: 1px solid black;
}

table.monthcalendartable th.columnheader {
    color: black;
    background: #87CEEB none;
}

table.monthcalendartable th.weekday {
    color: black;
    background: #87CEEB none;
}

.main table.yearcalendartable {
    border: 1px solid black;
}

.main table.yearcalendartable td {
    border: none;
    padding: 0;
    vertical-align: middle;
}

.main table.yearcalendartable td.dayWithEvents {
    background-color: #97CEFF;
}

.main table.yearcalendartable td.today {
    border: 2px solid black;
}

table.yearcalendartable td a {
    display: block;
    padding: 4px;
    text-decoration: none;
    color: black;
}

table.yearcalendartable td a:hover {
    background-color: #DDDDDD;
    color: black;
    text-decoration: none;
}

table.yearcalendartable td.dayWithEvents a:hover {
    background-color: #67AEDA;
}

table.yearcalendartable th {
    border: none;
    padding: 2px;
}

.main table.yearcalendartable th.rowheader {
    background-color: #E7ECF2;
    color: black;
    border-bottom: none;
    border-top: none;
    border-left: none;
    border-right: 1px solid black;
    text-align: right;
    width: 1.8em;
}

.main table.yearcalendartable th.weekday {
    background-color: #E7ECF2;
    border-bottom: 1px solid black;
    border-top: none;
    border-left: none;
    border-right: none;
}

table.yearcalendartable th.columnheader {
    background: #E7ECF2 none;
}

table.eventListTable tr.hiddenEvent td,
tr.deletedRow td {
    text-decoration: line-through;
    font-style: italic;
}

.main .newEvtLink {
    font-size: 70%;
    font-weight: bold;
    color: #aaaaaa;
}

.main .newEvtLink a {
    color: #012c5f;
    text-decoration: none;
}

.main .newEvtLink a:hover {
    color: #5f91c4;
}

.main .backToCurrentDate {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.extraSettings .hideInExtraSettings {
    display: none;
}

/******* New calendar styles ends *************/


