/*********************************************
 *
 *
 *              M - koko
 *
 *
 ********************************************/

@media all and (min-width: 717px) and (max-width: 1099px) {

    .main {
    display: block;
    width: 100%;
    max-width: auto;
    min-height: 250px;
    }
    
    .contact {
    display: table;
    width: 100%;
    }
    
    .toparea {
    height: 400px;
    }
        
  .toppic {
      position: absolute;

      min-height: 110px;
      height: 140px;
      
      width: 100%;
      background-color: transparent;
    
    }
    
    .toppic2 {
    position: absolute;

    background-image: url('../images/topbg.png');
    background-repeat: repeat-x; 
    background-position: left bottom;
    
    background-color: #ffffff;
    
    min-height: 125px;
    height: 125px;
    
    width: 100%;

    -moz-box-shadow: 0px 0px 5px rgba(00, 00, 00, 0.5);
    -webkit-box-shadow: 0px 0px 5px rgba(00, 00, 00, 0.5);
    box-shadow: 0px 0px 5px rgba(00, 00, 00, 0.5);

    border: 1px solid #efefef; 
    z-index: 10;   
    }
    
    .mainbg {
    padding: 20px;
  
    }



    #logotext {
    max-height: 40px;
    margin-top: 20px;
    margin-left: 0px;
    }
    
    #logoname {
    display: inline;
    position: absolute; 
    top: 30px; 
    left: 50%; 
    margin-left: 250px; 
    color: #469600;
    cursor: default; 
    font-size: 18px;
    font-family: arial;
    z-index: 14;
    }
    
    #logopic {
   
    display: block;
    position: absolute;
    max-width: 180px;
    top: 5px;
    right:50%;
    margin-right:-500px;
    }
  


/* Taulukkorakenne */

    .outer {
    display: block;
    }
    
    .outer div {
    vertical-align: top;
    }

    .sidebar {
    padding-top: 20px;
    background-image: url('../images/footerbg.png');
    background-repeat: no-repeat;
    background-position: top;    

    display: block;
    width: 100%;
    }
    
    .sidebar .outer {
    display: table;
    width: 100%;
    }

    .main_50 {
    display: table-cell;
    width: 50%;
    }
    
    .main_55 {
    padding-right: 20px;
    display: table-cell;
    width: 55%;
    }
    
    .main_45 {
    padding-right: 20px;
    display: table-cell;
    width: 45%;
    }
    

 
/* Ylänavi */


    .toplinks {
    position: absolute; 
    top: 34px; 
    right: 50%; 
    margin-right:-160px;
    
    color:#666666;
    text-align: right;
    z-index: 14;
    }
    
    
    .toplinks .outlinks {
    display: inline;
    }
    

/* Navigointi */

    #navbg {
    height: 50px;
    }
    
    .navi2 {
    position: absolute;
    bottom: 5px;
    left: 20px;
    text-align: center;
    width: 100%; color: #ffffff;
    font-weight: bold;
    font-size: 15px;
    }
    
    
    .navi {
    white-space: nowrap;
    margin-left: 0px;
    margin-top: 85px;
    overflow: visible;
    width: auto;
    
    width: 100%;
    }
    
    .navi.opacity {
    opacity: 1;
    }
    
    .navi.one-page {
    top: 0;
    right: auto;
    max-width: 1080px; 
    }
    
    .navi li a {
    color: #134882;
    padding: 0px;
    padding-left: 0px;
    border-bottom: none;
    background-color: transparent;
    font-size: 17px;
    z-index: 23;
    padding-left: 12px;
    padding-right: 12px;
    line-height: 40px;
    border: 0px solid red;
    }

    .navi li~li a {
    background-image: url('../images/topnavline.png');
    background-repeat: no-repeat;
    background-position: left 10px;
    border-left: 0px solid #134882;
    }

    .navi li a#active {
    color: #469600;
    background-color: transparent;
    }
    
    .navi li a:hover {
    color: #000000;
    background-color: transparent;
    }
    
    .navi li {
    /*position: relative;*/
    list-style: none;
    float: left;
    display: block;
    
    overflow: visible;
    padding: 0px;

    }
    

    
.navi .nuoli {
position: relative;
z-index: 999;
top: -20px;
right: 0;
width: 50px;
height: 50px;
display: inline-block;
text-align: center; 
}

.navi .nuoli:hover {
cursor: pointer; 
}

.navi .nuoli .navicon {
position: relative;
top: 1em;
font-size: 15px;
color: #4A8E0E; 
}

    
    #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;
}

  
/* Muut */

  .mainbg img {
  max-width: 100%;
  width: auto;
  }
}
