/*********************************************
 *
 *
 *              M - koko
 *
 *
 ********************************************/

@media all and (min-width: 750px) and (max-width: 1099px) {

#back-to-top {

    bottom: 40px;
    right: 40px;
    width: 62px;
    height: 62px;
    line-height: 60px;
    font-size: 20px;

}

body, td { 										
font-size: 20px;
line-height: 35px;
font-weight: bold;
}


.toppic {
position: absolute;
/*
*/
top: 0px;

min-height: 110px;
height: 140px;

width: 100%;
background-color: #FFF;
z-index: 99;


  background-repeat: repeat-x;
  background-position: bottom center;
  
  text-align: center;
}

.toppic2 {
position: absolute;

width: 100%;

background-color: transparent;
background-repeat: no-repeat;
background-position: left top;

height: 180px;



border: 0px solid #efefef;
z-index: 10;

text-align: center;


}



.bgtable {

max-width: 100%;
}

.mainbg {
max-width: 100%;
min-height: 110px;


width: 100%;
background-color: #fff;
z-index: 99;
/*-moz-box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
-webkit-box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
*/
margin-bottom: 150px;
}


.content {



padding-right: 5em;


width: 100%;


margin-left: auto;
margin-right: auto;

}

.content_text {
margin: 20px;

width: 100%;

}

.toparea {
height: 145px;
/* Pieni kuva
width: 1100px;
-moz-border-radius-bottomright: 10px;
border-bottom-right-radius: 10px;
-moz-border-radius-bottomleft: 10px;
border-bottom-left-radius: 10px;
*/
 background-repeat: no-repeat;
  background-position: bottom center;
  background-attachment: fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
background-color: transparent;
width: 100%;
}




#logotext {
max-height:180px;
margin-top: 220px;
margin-left: 0;
margin-right: auto;
}




.main_header {
display: block;

padding-top: 15px;
padding-left: 20px;
padding-bottom: 0px;
}

.footerdiv {

margin-left: auto;
margin-right: auto;

font-size: 14px;
width: 100%;

}


/* Taulukkorakenne */

.outer {

display: table;
width: 100%;
border-spacing: 0px;


}

.inner {
width: 50%;
display: table-cell;
}

.inner2 {
width: 40%;
display: table-cell;
}


.inner3 {
width: 20%;
display: table-cell;
}
.outer div {
vertical-align: top;
}


.sidebar {
padding: 20px;

vertical-align: top;
display: none;

white-space: nowrap;

width: 300px;


/*
-moz-box-shadow: 0px 0px 9px #ADA9A9;
-webkit-box-shadow: 0px 0px 9px #ADA9A9;
box-shadow: 0px 0px 9px #ADA9A9;
*/

}
.main_5 {

display: table-cell;
width: 5%;
}

.main_20 {
padding-left: 20px;
display: block;
width: 20%;
vertical-align: top;
line-height: 20px;
font-size: 15px;
text-align: left;
font-weight: bold;
margin-bottom: 30px;
}

.main_25 {
padding-left: 20px;
display: block;
width: 25%;
vertical-align: top;
line-height: 20px;
font-size: 15px;
text-align: left;
font-weight: bold;
margin-bottom: 30px;
}


.main_55 {

display: table-cell;
width: 55%;
}

.main_47 {
padding-left: 20px;
display: table-cell;
width: 47%;
}

.main_45 {
padding-left: 20px;
display: table-cell;
width: 45%;
}
.main_40 {
padding-left: 20px;
display: table-cell;
width: 40%;
}
.main_50 {
padding-left: 20px;
display: table-cell;
width: 50%;
min-width: 500px;

}
.main_60 {
padding-left: 20px;
display: table-cell;
width: 60%;min-width: 500px;
}


/* Navigointi */


    #navbg {
    margin-top: 30px;
      height: 40px;
   width: 50%;
    margin-left: auto;
    margin-right: 0px;
/* border: 1px solid #666666;
 border-right:0px;*/  


    }


  .navi {
    overflow: visible;
    width: auto;
    
  }
  
  .navi.opacity {
    opacity: 1;
  }
  


  .navi li a {

/*border-right: 1px solid #666666;*/



  }

  .navi li {
    position: relative;
    list-style: none;
    float: left;
    display: block;
   
    overflow: visible;
    margin: 5px;
    margin-left: 15px;
  }
  .navi li a:hover{


border-bottom: 3px solid #ccc;
}


.navi li a#active {
background-color: transparent;

border-bottom: 3px solid #000;
/*
  border-left: 1px solid #386D18;
  border-top: 1px solid #386D18;
  border-bottom: 1px solid #386D18;*/
}
  .navi li > ul {
    position: absolute;
    top: auto;
    left: 0; 
  }
  
  .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; 
  }
  


/* Mobipainikkeet */
#mobi {
display: none;
}

/* Muut */
.mainbg img {
max-width: 100%;
width: auto;
}

#map {
height: 350px;
width: 450px;
}



#contpic {

  height: 450px;

-moz-border-radius-bottomright: 20px;
border-bottom-right-radius: 20px;
-moz-border-radius-bottomleft: 20px;
border-bottom-left-radius: 20px;
}

#contpic div {


  min-height: 450px;

}

.feedback {
width: 650px;
}


@keyframes fadein {
    from { opacity: 0; margin-top: 230px; }
    to   { opacity: 1; margin-top: 220px; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; margin-top: 230px; }
    to   { opacity: 1; margin-top: 220px; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; margin-top: 230px; }
    to   { opacity: 1; margin-top: 220px; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; margin-top: 230px; }
    to   { opacity: 1; margin-top: 220px; }
}


}
