/*********************************************
 *
 *
 *              M - koko
 *
 *
 ********************************************/

@media all and (min-width: 900px) and (max-width: 1099px) {

.toparea {
height: 290px;
/* 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-position: center center;


}

    .main {
    display: block;
    width: 100%;
    max-width: auto;
    min-height: 250px;
    }
    
    .contact {
    display: table;
    width: 100%;
    }
    
 
.toppic {

min-height: 110px;
height: 150px;

width: 100%;
background-color: #00ab4f;
z-index: 99;
}

.toppic2 {

background-color: transparent;



height:150px;

width: 100%;


border: 0px solid #efefef;
z-index: 10;

text-align: left;


}
.logot_big {
color: #ffffff;
float: right;
margin: 0px;
margin-top: 40px;
width: 400px;
}
.logot_small {
display: none;
}

.bgtable {

position: absolute;
right: 0;
top:200px;
border-bottom: 1px solid #66665b;


width: 100%;
background-color: transparent;
z-index: 99;
}
    .mainbg {
    padding: 5px;
  
    }



    #logotext {
max-height: 130px;
margin-top: 10px;
margin-left: 20px;
margin-right: auto;
    }
    


  

/* Taulukkorakenne */

.outer2 {

display: table;
width: 100%;
border-spacing: 20px;


}

.inner {
display: table-cell;
}


.inner2 {
width: 50%;
display: table-cell;
}
.inner3
{
border: 1px solid red;
width: 100%;
}

.outer div {
vertical-align: top;
}

.main {
vertical-align: top;
display: table-cell;
width: 100%;
max-width: 75%;


}

.content {

display: table-cell;
min-height: 550px;
padding-right: 0em;

max-width: 25%;

-moz-border-radius: 15px;
border-radius: 15px;

}
.content_text {
margin: 20px;
}

.sidebar {


padding-right: 20px;

vertical-align: top;
display: table-cell;


}




.main_55 {

display: table-cell;
width: 55%;
}
.main_45 {
padding-left: 20px;
display: table-cell;
width: 45%;
}

.main_50 {
display: block;
width: 100%;
}

.footerdiv {
padding-bottom: 10px;
}


/* Navigointi */


    #navbg {
      height: 62px;
   width: 100%;
    margin-left: 0px;
    margin-right: 0px;
     
      border: 3px solid #ffffff;

    }


  .navi {
    overflow: visible;
    width: auto;
    
  }
  
  .navi.opacity {
    opacity: 1;
  }
  


  .navi li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
   height: 50px;
   font-size: 14px;
margin: 0px;
  }

  .navi li {
    position: relative;
    list-style: none;
    float: left;
    display: block;
  padding: 0px;
    overflow: visible;
margin: 0px;
  }
  
  .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; 
  }
  
    #mobi {
    display: none; 
    }

/* Alavalikko */


.subnavi {
position: absolute;
display: block;
white-space: nowrap;
overflow: visible;


opacity: 1;

background-color: #ffffff;
background-image: url('../images/subnavi.png');
background-repeat: repeat-x; 
background-position: left bottom;
border: 1px solid #51a517;

border-left: 0px;
border-right: 0px;


-moz-box-shadow: 0px 0px 5px rgba(00, 00, 00, 0.25);
-webkit-box-shadow: 0px 0px 5px rgba(00, 00, 00, 0.25);
box-shadow: 0px 0px 5px rgba(00, 00, 00, 0.25);    


width: 100%;
height: 40px;


-webkit-transition: all .1s ease-in-out;
-moz-transition: all .1s ease-in-out;
-ms-transition: all .1s ease-in-out;
transition: all .1s ease-in-out; 
padding-top: 0px;
padding-bottom: 10px;
padding-left: 20px;


z-index: 1;
top: 115px;


}

.subnavi .navi-show {


}

.navi li ul {
position: absolute;
display: block;
white-space: nowrap;
overflow: visible;


opacity: 1;
/*
background-color: #ffffff;
background-image: url('../images/subnavi.png');
background-repeat: repeat-x;
background-position: left bottom;
border: 1px solid #efefef;

-moz-border-radius-bottomright: 90px;
border-bottom-right-radius: 90px;
-moz-border-radius-bottomleft: 20px;
border-bottom-left-radius: 20px;


-moz-box-shadow: 0px 0px 5px rgba(00, 00, 00, 0.25);
-webkit-box-shadow: 0px 0px 5px rgba(00, 00, 00, 0.25);
box-shadow: 0px 0px 5px rgba(00, 00, 00, 0.25);

*/





-webkit-transition: all .1s ease-in-out;
-moz-transition: all .1s ease-in-out;
-ms-transition: all .1s ease-in-out;
transition: all .1s ease-in-out;
padding-top: 0px;
padding-bottom: 10px;
padding-left: 20px;


z-index: 1;
top: 33px;



}

.navi li ul li {
position: relative;
list-style: none;
float: left;

overflow: visible;


}



.navi li ul.navi-show li {
overflow: visible;

}

.navi li ul li a {
margin-top: 0px;

display: block;
background: transparent;
font-size: 15px;
color: #3C8200;

text-shadow: 0px 0px 4px #ffffff;
padding-top: 10px;
padding-left: 10px;
padding-right: 10px;

line-height: 25px;
}


.navi  ul li a {
border-left: 0px solid #efefef;
}

.navi  ul li~li a {
background-image: url('../images/subnavline.png');
background-repeat: no-repeat;
background-position: left 15px;
border-left: 0px solid #cccccc;
}

.navi li ul li a:hover {
color: #000000;

background-color: transparent;
}

.navi ul li ul li a {
background-color: transparent;
}

.navi ul li ul li ul li a {
background-color: transparent;
}

  
    /***********/
  
 
  .lnavi {
  display: block;
  
  margin: 10px;
  }
  
  .lnavi li a {
   font-size: 15px;

background-color: transparent;
border: 0px;

  text-align: left;
   padding: 5px;
   padding-left: 15px;
   padding-right: 20px;
  }

  .lnavi li {
  
    list-style: none;

    display: block;
   
    overflow: visible;

    padding: 0px;
   
min-width: 100px;
width: 100%;
  }
  
  .lnavi ul li:nth-child(even) {
  background-color: #C0E0C0;
  }

  .lnavi ul li:nth-child(odd) {

  background-color: #85B585;
  }

  
/* Muut */

  .mainbg img {
  max-width: 100%;
  width: auto;
  }
  

#contpic {

  height: 450px;


}

#contpic div {


  min-height: 450px;

}


}
