/*********************************************
 *
 *
 *              M - koko
 *
 *
 ********************************************/

@media all and (min-width: 717px) and (max-width: 1099px) {

    body, td {
    font-size: 0.9em;
    }

    .bgtable {
    margin-top: 6%;

    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;
  display: table-cell;
  width: 60%;
  }
  
  .main_40 {
  padding: 20px;
  display: table-cell;
  width: 40%;
  }
  
  .sidebar {
    display: block;
    width: 100%;
  }

  #bodybg {
  padding-left: 20%;
  left: 0;
  }
  
  .logot {
  overflow: hidden;
  position: relative;
  
  width: 100%;
  margin: 0px;
  min-height: 80px;
  
  margin-top: 20px;
  
  background: #ffffff;
  
  
  text-decoration: none;
  font-weight: bold;
  border-top: 2px solid #8673A0;
  border-bottom:  2px solid #8673A0;
  

  }
  
  .mainbg {
  padding: 20px;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  
  border-top: 1px solid #FFFDF7;
  border-left: 1px solid #FFFDF7;

  
   border: 2px solid #558240;
-moz-box-shadow: 0px 0px 10px #BFAA91;
-webkit-box-shadow: 0px 0px 10px #BFAA91;
box-shadow: 0px 0px 10px #BFAA91;
    background: transparent;
    background-image:url('../images/fade2.png');
    background-repeat: repeat;  
  min-height: 320px;

  }
  
  
  .footerdiv {

  width: 100%;
  line-height: 25px;
  font-size: 13px;
  font-family: arial, sans-serif;



  background: transparent;
  border-top: 0px solid #000000;
  
  padding: 5px;

  }

  #etusivu .footerdiv {

  position: absolute;
  top: auto;
  bottom: 0;
  width: auto;
  right: 0;
  left: 20%;
  
  line-height: 25px;
  font-size: 14px;
  font-family: arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background: transparent;
  background-image:url('../images/fade2.png');
  background-repeat: repeat;
  border-top: 1px solid #000000;
  
  padding: 15px;
  
  text-shadow: 0px 0px 3px #000000;
  }
  #map {
    height: 300px;
    max-width: 60%;
    min-width: 200px;
  
  }

   /* Navigointi */
  
  
  #navbg {
  margin-left: -20%; /* "#menu" width */
  width: 20%;

  position: fixed;
  top: 0;
  left: 20%;
  bottom: 0;
  z-index: 100; /* so the menu or its navicon stays above all content */
  background: transparent;
  /*background-image:url('../images/fade1.png');
  background-repeat: repeat-y;*/
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  
 /* border-right: 2px solid #977FB4;*/
  
  padding-top:30px;
  text-align: center;
     overflow:x-hidden;
  }


  body.one-page {
    padding-top: 0px;
  }
  
  .navi {
    overflow: visible;
    width: auto;
    padding-top: 20px;

  }
  
  .navi.opacity {
    opacity: 1;
  }
  
  .navi.one-page {
    top: 0;
    right: auto;

    
  }

  .navi li a {
    font-size:16px;


text-align: right;
padding-right: 20px;

background-color: transparent;
border: 0px;

border-radius: 20px;
  border: 1px solid transparent;
border-right: 5px solid #006600;
    max-width: 190px;

    margin-left: auto;
    margin-right: auto;
    
  }
  
.navi li a:hover {
  color: #000000;
  background-color: #fff;
  border: 1px solid #006600;
  border-right: 5px solid #006600;
}


.navi li a#active {

  background-color: transparent;

border: 0px;
  
  border-right: 5px solid #006600;
}


  .navi li {
    position: relative;
    list-style: none;

    display: block;
   

    margin: 5%;
   

  }

  .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; 
  }
  
}
