body {
  background-color: #393b3c;
  color: #525252;
  font-family: Trebuchet MS, sans-serif;
  margin: 0;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

h1, h2, h3, h4, h5 {
  font-family:  Palatino Linotype, serif;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 14px;
}


ul {
  margin: 0;
  padding: 0;
}

.content {
  font-size: 12px;
}

div#wrap {
  background-color: #fff;
  margin: 0 auto;
  width: 960px;  
}

div#header {
  background: #fff url(bg_header.png) left top no-repeat;  
  height: 90px;
}

div#header a#home-link {  
  display: block;
  float: left;
  height: 60px;
  margin: 15px 550px 15px 40px;
  width: 60px;
}


div#main-image {
  background: #000 url(bg_main_johdanto.jpg) left top no-repeat scroll;  
  height: 330px;
}

div#navi {
  background: #4495b7 url(bg_navi.png) left top  repeat-x;
  color: #fff;
  height: 41px;
}

div#main {      
  padding: 20px;
}

div#footer {  
  background-color: #686868;
  color: #fff;
  font-family: Trebuchet MS, sans-serif;  
  font-size: 11px;
  height: 40px;  
}

div#content {
  font-size: 14px;
  line-height: 20px;
  margin-top: 10px;
  margin-left: 20px;
  margin-right: 30px;
  width: 570px;
}

div#content h1 {
  font-size: 24px;
}

div#content hr {    
  background: transparent url(bg_rule.png) left top repeat-x scroll;
  border: 0;
  clear: left;
  height: 1px;
}

div#content p {
  margin: 20px 0;
}

div#content a,
div#content table tr.desc a {
 background: transparent url(bg_sidebar_link.png) left center no-repeat;
 color: #2a81a6;
 display: block;
 padding-left: 11px;
}

div#content img {
  float: left;
  padding: 20px 20px 20px 0;
}

div#content  ul { 
  list-style-type: none;  
  padding: 0;
}

div#content  ul li { 
  background: url("bg_sidebar_list.png") no-repeat scroll 0 1px transparent;
  margin: 0 0 20px 7px;
  padding-left: 23px;
}

/* Content area lift */
div#content div.content-lift {  
  background: transparent url(../img_johdanto.png) left 20px no-repeat scroll;
  border-color:  #cbcbcb;  
  border-style: dashed;
  border-width: 1px 0;
  font-size: 12px;
  line-height: 18px;
  min-height: 150px;
  padding: 20px 0 20px 170px;
}

div#content div.content-lift  h2 {
  margin: 15px 0;
}

div#content div.content-lift  p {
  margin: 0;
}


/* Sidebar */
div#sidebar {  
  float: right;
  margin-bottom: -10px;
  margin-left: 0;
  width: 290px;  
}

div#sidebar div.content {
  background-color: #e6e6e6;
  margin-bottom: 10px;
  padding: 20px;
}

div#sidebar h2 {
  background-color: #e6e6e6;
  border-bottom: 1px dashed #9b9b9b;
  font-family:  Palatino Linotype, serif;
  font-size: 24px;
  line-height: 20px;
  margin: 0 0 20px 0;
  padding: 10px 0 20px;
  text-align: center;
}

div#sidebar h3 {
  margin: 0 0 10px 10px;
}

div#sidebar p {
  margin: 0 0 12px 10px;
}
div#sidebar span {
  margin: 0 0 0 10px;
}

div#sidebar div.subnavi {
  background-color: #deeaff;
  border-color: #72abca;
  border-style: solid;
  border-width: 1px;  
  font-size: 14px;
  padding-bottom: 40px;
}

div#sidebar .subnavi h2 {
  background-color: #deeaff;
  font-size: 14px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
  padding-top: 0;
  text-align: left;
  text-transform: uppercase;
}

div#sidebar .ajankohtaista ul {
  font-family:  Palatino Linotype, serif;
  font-size: 14px;
  font-weight: bold;
  list-style-type: none;  
  padding: 0;
  text-transform: uppercase;
}

div#sidebar .ajankohtaista ul.small {
  font-family: Trebuchet MS, sans-serif;
  font-size: 14px;
  font-weight: normal;
  list-style-type: none;  
  padding: 0;
  text-transform: none;
}

div#sidebar .ajankohtaista ul li {
  background: url("bg_sidebar_list.png") no-repeat scroll 0 2px transparent;
  margin: 0 0 25px 7px;
  padding-left: 23px;
}

div#sidebar .ajankohtaista ul.small li {
  background: url("bg_sidebar_list_small.png") no-repeat scroll 0 5px transparent;
  margin: 0 0 10px 7px;
  padding-left: 16px;
}

div#sidebar .ajankohtaista span,
div#sidebar .tutustu span,
div#sidebar .subnavi span {
  display: block;
  font-family: Trebuchet MS, sans-serif;
  font-size: 12px;
  font-weight: normal;
  text-transform: none;
}

div#sidebar .subnavi span {
  font-size: 14px;
}

div#sidebar .ajankohtaista ul li a, 
div#sidebar .tutustu a,
div#sidebar .subnavi a {
 background: transparent url(bg_sidebar_link.png) left center no-repeat;
 color: #2a81a6;
 display: block;
 padding-left: 11px;
}

/* Lists */
div#header ul {
  font-family:  Palatino Linotype, serif;
  font-size: 11px;
  font-weight: bold;  
  list-style-type: none;
  margin-left: 650px;
  padding: 15px 40px 15px 20px;
  text-transform: uppercase;
}

div#header ul li {
  background: transparent url(bg_header_link_list.png) 0 8px no-repeat scroll;
  color: #2a81a6;  
  font-family: Trebuchet MS, sans-serif;
  font-weight: normal;
  padding: 0 0 0 10px;
  margin: 0;
  text-transform: none;  
  line-height: 16px;
}

div#header a {
  color: #2a81a6;
}

div#navi ul {  
  font-size: 18px;
  font-weight: bold;
  height: 41px;
  line-height: 41px;
  list-style-type: none;
  margin-left: 36px;
}

div#navi ul li {
  display: block;
  float: left;  
  height: 41px;
  margin-right: 23px;
  width: 100px;
}

div#navi ul li.selected {
  background: transparent url(bg_menu_selected.png) center bottom no-repeat;
}

div#navi ul li.johdanto {
  width: 58px;
}
div#navi ul li.toiminta {
  width: 67px;
}
div#navi ul li.kalenteri {
  width: 67px;
}
div#navi ul li.hallitus {
  width: 60px;
}
div#navi ul li.liittyminen {
  width: 85px;
}
div#navi ul li.palaute {
  width: 55px;
}


div#navi ul li a {  
  color: transparent;
  display: block;
  width: 100%;
  height: 100%;
}
div#footer ul {
  color: #fff;  
  height: 40px;
  line-height: 40px;
  list-style-type: none;
  margin-left: 167px;
  padding: 0;
}

div#footer ul li {
  display: block;
  float: left;
  font-weight: bold;  
  height: 20px;
  line-height: 20px;
  padding: 0 25px 0 0;
  margin: 10px 0;
}

div#footer ul li:first-child {
  padding-right: 25px;
  margin-right: 25px;
  border-right: 1px solid #7e7e7e;
}

div#footer a{
  color: #fff;
  font-weight: normal;
}

div#footer ul li:first-child a {
  font-weight: bold;  
}

/* */
#main-image #main-lift-left, #main-image #main-lift-right {
  display: block;
  float: left;
  height: 100px;
  margin-top: 170px;  
  width: 220px;  
}
#main-image #main-lift-left {    
  margin-left: 380px;
}
#main-image #main-lift-right {
  margin-left: 48px;
}

/* Forms */
div#content form label {
  background-color: #f2f2f2;
  display: inline-block;
  padding: 5px 5px 5px 10px;
  width: 120px;
}
div#content form label.wide {
  background: transparent url(bg_label.png) left bottom repeat-x scroll;
  width: 548px;
}

div#content form ul {
  list-style-type: none;
  list-style-image: none;
}
div#content form ul li{
  background: transparent;
  margin: 5px 0;
  padding: 0;
}

div#content form ul li.buttons{
  margin-left: -8px;
  margin-top: 26px;
}

div#content form input[type=text], textarea {
  background-color: #ebf2ff;
  border: 1px solid #9b9b9b;
  padding: 5px 0;
}

div#content form textarea {
  display: block;
  height: 150px;
  width: 560px;
}

div#content form input[type=text] {
  width: 419px;
}

.input-button {
  display: inline-block;
  height: 57px;
  vertical-align: bottom;
  *vertical-align: middle;  /* only for IE */
  background: white url('bg_button_right.png') no-repeat right top;
  cursor: pointer;
}
 
.input-button span {
  display: block;
  _display: inline-block; /* only for IE6 */
  font-family: CronosPro, Cronos, sans-serif;
  font-size: 17px;
  font-weight: bold;
  line-height: 48px;
  padding: 0 30px;
  height: 100%;
  color: #ffffff;
  background: url('bg_button_left.png') no-repeat left top;
  overflow: hidden;
  position: relative;
}
 
.input-button input {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
  opacity: 0;
  filter: alpha(opacity=0); /* only for IE */
}

.secondary {
  background: white url('bg_button_secondary_right.png') no-repeat right top;
}

.secondary span {
  background: url('bg_button_secondary_left.png') no-repeat left top;
}

/* Lisäyslomake */
form#admin-form {
  
}

div#content form#admin-form fieldset label {
  width: 200px;
}

div#content form#admin-form input[type="text"] {
  width: 350px;
}

div#content form#admin-form fieldset input[type="text"] {
  width: 200px;
}

/* Hakulomake*/
form#search-form {
  background: url(bg_search_form.png) repeat-x left top transparent scroll;  
  height: 120px;
  padding: 20px;
  width: 532px;    
}

div#content form#search-form label {
  background: transparent;
  display: block;
  padding: 0;
  width: auto;
}

div#content form#search-form select,
div#content form#search-form input[type="text"] {
  width: 200px;
}


.search-title {
  color:#fff;
  font-family: Palatino Linotype,serif;
  font-size:18px;  
  font-weight: bold;
}

.search-primary {
  color: #fff; 
  font-family: Palatino Linotype,serif;
  height: 40px;
  margin-top: 10px;
}

.search-secondary {
  color: #0b4063;
  font-family: Palatino Linotype,serif;
  height: 40px;
  margin-top: 10px;
}

.search-float {
  float: left;
  margin-right: 20px;
}

form#search-form .input-button {
  background: url(bg_button_search.png) no-repeat left top transparent scroll;
  height: 40px;
  width: 68px;
}
form#search-form .input-button span {
  background: transparent;
}


div#content form#search-form .search-secondary input[type="text"],
div#content form#search-form .search-secondary select {
  background-color: #2a81a6;
  border: 1px solid #abd5e6;
  color: #abd5e6;
  padding: 0;
}

div#content form#search-form .search-secondary select {
  width: 130px;
}

/* Tables */
tr.odd, tr.odd td {
  background-color: #f2f2f2;
  border-color: #f2f2f2;
}

tr.even, tr.even td {
  background-color: #e5e5e5;
  border-color: #e5e5e5;
}

table {
  border: 1px solid #d7d7d7;
  border-spacing: 0px;
  margin-bottom: 20px;
  padding: 0 4px 4px;
  width: 100%;
}

th {
  background: transparent url(bg_table_th.png) left top repeat-x scroll;
  border-width: 4px 0 5px;
  border-style: solid;
  border-color: #fff;  
  line-height: 10px;
  padding: 10px;
  text-align: left;
}

td {
  
  padding: 15px 10px;
}

tr.desc td {
  /*
  border: 0;
  border-top: 1px dashed #a1a1a1;
  border-bottom: 5px solid #fff;
  border-spacing: 0;
  */
  background: transparent url(bg_rule.png) left top repeat-x;
  border-style: solid;  
  border-width: 0 10px;  
  padding: 15px 0;
  
}


/* Search results */

table.mentor-card {  
  background: url(bg_mentor_card.png) center bottom repeat-x #f0f0f0;
  border: 0;  
  margin: 0 0 5px 0;
  padding: 20px;
  
}

table.mentor-card tr.first td {
  padding-top: 10px;  
} 

table.mentor-card td {
  font-family: Trebuchet MS, sans-serif;
  padding: 0;  
}  

table.mentor-card tr.title td {
  font-weight: bold;
  font-size: 16px;
}

table.mentor-card tr.field td {
  font-size: 14px;
}

table.mentor-card tr.attribute td {
  font-size: 12px;
}

table.mentor-card tr.description td {
  font-size: 14px;
}


div#sidebar p a,
div#content table a,
div#content p a {
  background: transparent;
  color: #2A81A6;
  padding: 0;
  text-decoration: underline;
}
div#content p a {
  display: inline;
}

.caps {
  text-transform: uppercase;
 }

 .placeholder {
  height: 400px;
 }
 
/*
** Markup free clearing
** Details: http://www.positioniseverything.net/easyclearing.html
*/
.clear-block:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.clear-block {
  display: inline-block;
}

/* Hides from IE-mac \*/
* html .clear-block {
  height: 1%;
}
.clear-block {
  display: block;
}
/* End hide from IE-mac */

/******************************************************************************
 * http://nicolasgallagher.com/micro-clearfix-hack/
 *****************************************************************************/

/* For modern browsers */
.cf:before,
.cf:after {
    content:"";
    display:table;
}

.cf:after {
    clear:both;
}

/* For IE 6/7 (trigger hasLayout) */
.cf {
    zoom:1;
}

/******************************************************************************/

/* */
div#main-image.main-johdanto {
  background: transparent url(bg_main_johdanto.jpg) left top no-repeat scroll;
}
/*
div#main-image.main-toiminta {
  background: transparent url(kuvitus_toiminta.jpg) left top no-repeat scroll;
}
div#main-image.main-kalenteri {
  background: transparent url(kuvitus_kalenteri.jpg) left top no-repeat scroll;
}
div#main-image.main-hallitus {
  background: transparent url(kuvitus_hallitus.jpg) left top no-repeat scroll;
}
div#main-image.main-liittyminen {
  background: transparent url(kuvitus_liittyminen.jpg) left top no-repeat scroll;
}
div#main-image.main-palaute {
  background: transparent url(kuvitus_palaute.jpg) left top no-repeat scroll;
}
div#main-image.main-mentoripankki {
  background: transparent url(kuvitus_mentoripankki.jpg) left top no-repeat scroll;
}
*/


