/*********************************************
 *
 *
 *              M - koko
 *
 *
 ********************************************/

@media all and (min-width: 717px) and (max-width: 1099px) {

h1 {
font-size: 25px;
}
h2 {
font-size: 24px;
}


.toppic {
position: absolute;
top: 0px;

height: 310px;

width: 100%;
background-color: #f9f9f9;
z-index: 99;

background-image:url('../images/topbg.jpg');
background-repeat: no-repeat;
background-position: bottom right;
z-index: 10;
}

.toppic2 {
position: absolute;
height: 310px;

width: 100%;


z-index: 10;

text-align: center;

background-color: transparent;

background-image:url('../images/toppic.png');
background-repeat: repeat-x;  
background-position: bottom left;



}

.logot_big {
position: absolute; 
top: 0; 
right: 0;
padding: 10px;

background-color: #ffffff;
opacity: 0.9;
-moz-border-radius-bottomleft: 20px;
border-bottom-left-radius: 20px;
border: 1px solid #ffffff;

box-shadow: 0px 0px 5px #000000;
z-index: 99;
}

.logot_small {
display: none;
}




#logo {
display: block;
margin-left: auto; 
margin-right: auto;
margin-top: 65px;
max-width: 750px;

}
body, td {
font-size: 1em;
}

body {
    background-image:url('../images/grass.png');
    background-repeat: repeat-x;  
    background-position: bottom left;
}

  #bodybg {
  
  
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
    
  margin-top: 310px;
  


  }


    .bgtable {
/*    position: absolute;
    top: 10%;
    left: 16%;
    right: 0;
    bottom: 16%;*/
    width: 75%;
float: right;
    margin-top: 0;

    min-height: 400px;
    z-index: 20;
    

    
    }
    
    #etusivu.bgtable
    {

    position: inherit;
    }
    

  .outer {
    display: block;
  }
  .main {
    display: block;
    width: 100%;
    max-width: auto;
  }
  .contact {
  display: table;
  width: 100%;

  }
  .main_60 {
  padding: 20px;

  width: 100%;
  vertical-align: top;
  }
  
  .main_40 {
  padding: 20px;

  width: 100%;
  vertical-align: top;
  }
  
  .sidebar {
    display: block;
    width: 100%;
  }


  
  .mainbg {
  margin-top: 0px;
  padding: 35px;
  padding-left: 35px;
  padding-bottom: 0px;
  background-color: transparent

  min-height: 0px;

  

  }
  


  
  .footerdiv {

  width: 100%;

  line-height: 0px;
  font-size: 16px;
  font-family: arial, sans-serif;
  
margin-top: 20px;


  border-top: 0px solid #000000;

  padding: 20px;
  

  }


#map {
  height: 300px;
  max-width: 40%;
  min-width: 200px;

}


   /* Navigointi */
  
  
  #navbg {
  float: left;
  width: 25%;
    min-height: 650px;
    padding-top: 20px;
        padding-left: 0px;
  }


  .navi {
    overflow: visible;
    width: auto;
    padding-top: 0px;


  }
  
  .navi.opacity {
    opacity: 1;
  }
  


  .navi li a {
    font-size: 19px;
 
    border-radius: 2px;

    max-width: 290px;
    margin-left: auto;
    margin-right: auto;
  }

  .navi li {
    position: relative;
    list-style: none;

    display: block;
    max-width: 290px;
    overflow: visible;
    margin: 10px;

  }



  .navi li > ul li {
    width: 100%;
  }
  
  .navi li ul li > ul {
    margin-left: 100%;
    top: 0; 
  }
  .navi li ul li a {
    border-bottom: none; 
    border-radius: 0px;
  }
  .navi li ul.open {
    display: block;
    opacity: 1;
    visibility: visible;
    z-index: 1; 
  }
  .navi li ul.open li {
    overflow: visible;
    max-height: 100px; 
  }
  .navi li ul.open ul.open {
    margin-left: 100%;
    top: 0; 
  }
  
  #mobi {
    display: none; 
  }
  .main img {
    display: block;
    max-width: 100%;


    width: auto;
    height: auto;
}
}
