* {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  height: 100%;
  background: #888 url('pics/bg_body.png') center top repeat-y;
/* aligns whole wrapper div center, for older browsers */
  text-align: center;
}

/*TYPOGRAPHY ETC...
*/
body {
  font: 100% "Trebuchet MS",Georgia,Verdana,helvetica, sans-serif;
}

tr.odd td, tr.even td {
  padding: 0.3em;
}
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
}
h1 {
  font-size: 1.3em;
}
h2 {
  font-size: 1.2em;
}
h3, h4, h5, h6 {
  font-size: 1.1em;
}
p {
  margin-top: 0.5em;
  margin-bottom: 0.9em;
}
a {
  text-decoration: none;
}
a:link {
  color: #39c;
}
a:visited {
  color: #369;
}
a:hover {
  color: #39c;
  text-decoration: underline;
}
fieldset {
  border: 1px solid #ccc;
}
pre {
  background-color: #eee;
  padding: 0.75em 1.5em;
  font-size: 12px;
  border: 1px solid #ddd;
}
table {
  /* make <td> sizes relative to body size! */
  font-size: 1em;
}
.form-item label {
  font-size: 1em;
  color: #222;
}
.item-list .title {
  font-size: 1em;
  color: #222;
}

/*END OF TYPO */

div#wrapper {
/* resets center defined on body */
   text-align: left;
/* reserves space for footer (height of footer div) */
  margin-bottom: -130px;
  width: 961px;
/* stretch whole wrapper to page body height, have to be on this order! */  
  min-height: 100%;
  height: auto !important;
  height: 100%;
  background-color: #fff;
}

div#wrapper {
/* center-align for new browsers */
  margin-left: auto;
  margin-right: auto;
}

div#header {
  width: 961px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: #444 url('pics/bg_header.png') left top repeat-x;
}

div#headercontent2 {
  margin: 0;
  padding: 0;
  float: left;
  width: 240px;
}

#logo {
  clear: both;
  background: url('pics/sprites1.png') right -211px no-repeat;
  height: 140px;
  width: 240px;
  margin: 0;
  padding: 0;
}

p#banner {
  float: left;
  text-align: center;
  margin-right: 15px;
}

#banner img {
  /* for vertical alignment */
  margin: 30px 0 0 0;
  background-color: #333;
}

div#headercontent {
  background-color: #333;
  color: #ccc;
  font-weight: normal;
  text-align: left;
  float: right;
  font-size: 0.8em;
  margin-right: 10px;
  width: 180px;
}

#headercontent * {
  margin: 0;
  padding: 0;
}

div#user-bar {
  padding: 7px;
}

#user-bar label{
  margin: 0;
  padding: 0;
  font-size: 0.8em;
  color: #fff;
}

#user-bar ul li {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

#edit-name-1, #edit-pass-1 {
  border: none;
  background-image: url('pics/sprites1.png');
  background-repeat: no-repeat;
  background-position: -310px -180px;
}

#user-login-form {
  text-align: left;
}

#block-phpbbforum-1 {
  padding: 7px;
}

#headerfooter {
  width: 100%;
  height: 0;
  clear: both;
  line-height: 0;
  height: 0;
  font-size: 0px;
}

#headercontent h2 {
  font-size: 1em;
}

div#navi {
  width: 961px;
  background: #909000 url('pics/bg_navi.png') left top repeat-x;
  color: #ccc;
}

#navi a {
  color: #ccc;
}

h1 {
  padding-left: 10px;
  margin-right: 20px;
  padding-top: 10px;
  font-size: 1em;
  font-weight: bold;
  color: #ccc;
  float: left;
}
/* SIIVOTTAVA KUN EHTII */
#topmenu ul {
  float: left;
  color: #fff;
  font-size: 0.9em;
  font-variant: small-caps;
}

#topmenu {
  float: left;
  height: 50px;
}

#topmenu li {
  padding: 0;
  display: inline;
}

#topmenu a {
  padding: 0 5px 0 5px;
  width: 80px;
  text-align: center;
  color: #ccc;
  text-decoration: none;
  height: 50px;
  display: block;
}

#topmenu a.active {
  background: transparent url('pics/sprites1.png') center -360px no-repeat;
}

#submenu {
  float: left;
  clear: both;
  height: 25px;
  font-size: 0.8em;
  width: 900px;
}

#submenu h2 {
  display: none;
  width: 0;
  height: 0;
}

#submenu ul {
  float: left;
  color: #fff;
}

#submenu a {
  text-decoration: underline;
  font-weight: bold;
  color: #eee;
}

div#sitemaplink {
  width: 60px;
  display: block;
  text-align: right;
  float: right;
}

/* TESTITESTI------------- */
#navi .menu li {
  margin: 0;
  padding: 0;
  display: inline;
  float: left;
}

#block-menu_block_split-1 li {
  line-height: 40px;
}


#block-menu_block_split-1 a.active {
  background: transparent url('pics/sprites1.png') center -360px no-repeat;
}

#block-menu_block_split-1000 li {
  line-height: 20px;
}

#submenu a {
 padding: 0 10px 0 10px;
}

/* -------------------- */

.clear {
  width: 100%;
  clear: both;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0px;
}

div#extrawrapper {
  padding: 9px;
  background-color: #444;
  height: 170px;
}

div.extra {
  float: left;
  height: 170px;
  margin-right: 9px;
}

.extra a {
  color: #444;
  text-decoration: none;
}

div.extracontent {
  float: left;
  width: 308px;
}

.extracontent h2 {
  font-size: 1.1em;
  width: 100%;
  text-align: center;
}

.extracontent ul li {
  margin: 0;
  padding: 0;
  list-style-type: none;
  padding-left: 15px;
}

#extra1 {
  background: transparent url('pics/sprites1.png') left top no-repeat;
  font-size: 0.9em;
  font-weight: bold;
}

#extra2 {
  background: transparent url('pics/sprites1.png') right top no-repeat;
  font-size: 0.9em;
  font-weight: bold;
  color: #444;
}

div#extra3 {
  margin-right: 0;
  font-size: 0.8em;
  background: transparent url('pics/sprites1.png') left -180px no-repeat; 
}

#extrawrapper .event-time {
  font-size: 0.8em;
}

#extrawrapper .more-link {
  clear: both;
  text-align: left;
  padding-left: 50px;
}

#extra3 .event-calendar {
  line-height: 1em;
}

div#content {
  margin-left: 9px;
  margin-right: 9px;
  padding-bottom: 40px;
  background-color: #fff;
}

div#content_main {
font-size: 0.9em;
  padding-top: 40px;
  width: 600px;
  float: left;
  color: #000;
}

#content ul li {

}

.content_narrow {
  width: 500px;
}

div#content_secondary {
  font-size: 0.8em;
  width: 285px;
  float: right;
}


.marginator {
 padding-left: 20px;
  padding-right: 15px;
}

div#content_footer {
  width: 100%;
  clear: both;
/* height estabilish longer content to stretch under the footer */
  height: 130px;
  background-color: #fff;
}

div#footerwrapper {
  width: 100%;
  clear: both;
  height: 130px;
  text-align: center;
}

div#footercontent {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  height: 100%;
  font-size: 0.9em;
  line-height: 1.1em;
  color: #444;
  width: 943px;
  background: #ccc url('pics/bg_extras.png');
}

#footercontent p {
  padding-left: 10px;
  padding-top: 15px;
  float: left;
  font-size: 0.9em;
}

#footernavi {
  float: right;
  margin-top: 15px;
  margin-right: 10px;
  font-size: 0.9em;
}

#footercontent ul.menu {
  list-style: none;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

#footercontent a {
  color: #444;
  text-decoration: underline;
}

#footercontent .menu li {
  list-style: none;
  float: left;
  padding-left: 10px;
  margin: 0;
}

#footercontent .menu ul {
  margin: 0;
  padding: 0;
}

#footercontent .menu li li {
  clear: both;
  margin: 0;
  padding: 0;
}

#footercontent .menu li li a {
  text-decoration: none;
}

#headercontent p {
  margin-top: 3px;
  color: #ccc;
  font-size: 0.8em;
  line-height: 1.3em;
  margin-bottom: 3px;
}

h1 {
  margin-bottom: 1.1em;
  font-size: 1.3em;
}

#content_main p {
  font-family: "Lucida Sans Unicode","Lucida Grande","Lucida Sans",Arial,Helvetica;
  line-height: 2em;
  margin-bottom: 2em;
  font-size: 0.9em;
}

#content_main .submitted {
  font-family: "Lucida Sans Unicode","Lucida Grande","Lucida Sans",Arial,Helvetica;
	font-size: 0.8em;
}

.title {
  text-align: center;
  color: #555;
}

p.title {
  font-weight: bold;
}

#extra3 .event-calendar table {
  margin: 0;
  padding: 0;
  height: 130px;
  width: 290px;
  margin-left: auto;
  margin-right: auto;
}

#user-login-form #edit-name, #edit-pass {
  background: #444 url('pics/sprites1.png') -310px -180px no-repeat;
  border: 0;
  width: 120px;
  padding: 1px 3px 1px 0;
}

#headercontent #edit-submit-1, #headercontent #edit-submit {
  margin-top: 5px;
  margin-bottom: 5px;
  font-size: 0.8em;
  background-color: #aa0000;
  color: #fff;
  border: #000 1px solid;
  width: 120px;
  text-align: center;
}

#banner img {
  border: #aaa 5px solid;
}

textarea .fckeditor {
  color: #000;
  background-color: #fff;
}

.clear-block {
  width: 100%;
  display: block;
  clear: both;
}


#submenu ul li.active-trail a {
  font-weight: bold;
  color: #000;
  text-decoration: none;
}

#content table {
  font-size: 1em;
}

#ad li {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
  list-style-type: none;
}

#content_secondary li {
  list-style-type: none;
}

#banner img {
  border: #aaa 5px solid;
}

textarea .fckeditor {
  color: #000;
  background-color: #fff;
}


#block-search-0 {
  float: right;
  margin-right: 9px;
}

.feedbacklink {
	font-size: 0.9em;
	text-align: right;
	padding-bottom: 20px;
}
