/*********************************************
 *
 *
 *              S - koko
 *
 *
 ********************************************/

@media all and  (max-width: 716px) {

body { 															/* Sivuston tausta */



}


.bg {
display: none;
}

#logo {
  display: block;
  position: absolute;
  top: 0;


  
  width: 90%;
  max-height: 120px;
  max-width: 300px;
  left:0px; 
  right:0;
}


    .bgtable {
    position: absolute;
    top: 170px;
    left: 0;
    right: 0;
    bottom: 0;
    
    z-index: 0;
    }
    
    #etusivu.bgtable
    {

    position: inherit;
    }

  .mainbg {
  margin-top: 70px;
  padding: 10px;
  background: transparent;
    background-image:url('../images/fade2.png');
    background-repeat: repeat;  
  min-height: 320px;
  }
  
  
  .footerdiv {

  width: 100%;
  line-height: 20px;
  font-size: 13px;
  font-family: arial, sans-serif;


  color: #000000;
background-color: transparent;
  background-image:url('../images/fade2.png');
  background-repeat: repeat;  
  border-bottom: 2px solid #0071BB;
  
  padding: 15px;
 
  }


    .logot_short {
    overflow: hidden;
    
    width: 100%;
    margin: 0;
    min-height: 70px;
    
    
    
    background: #ffffff;
    
    
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #0071BB;
    
    border-radius: 0px;
  }
  
  .logot_tall {
  display: none;
  }
  
  #navbg {
  width: 100%;
  position: absolute;
  top: 0;
  padding-top: 170px;
  background: transparent;
  background-image:url();
  background-repeat: repeat;
  z-index: 1;
  }
  
.navi {
  max-height: 0;
}  
  

.navi li a {

background-color: #ffffff;
  padding-top: 11px;
  padding-bottom: 11px;
border: 0;
border-bottom: 1px solid #0071BB;
  /*
  overflow: hidden;
  */

}

.navi li a:hover {

  background: #0071bb;

}


.navi li a#active {

   background: #0071bb;

}


/* Mobipainikkeet */
#mobi {
position: absolute;
top: 120px;

  width: 100%;
   z-index: 99;
}

.menu-button, .call-button {
  float: left;
  display: block;
  padding: 1em;

  background: #0071BB;
  color: #ffffff;
  cursor: pointer;
  border-bottom: 1px solid #0071BB;
  border-top: 1px solid #0071BB; 
  width: 33.33%;
  text-align: center;
  border-right: 1px solid #0071BB; 
  
  white-space:nowrap;
}

.menu-button a, .call-button a {
  color: #ffffff;
  text-decoration: none;
}




/* Lomakkeet */



.txtinput, .selekti {		         /* teksti-inputti, nimi, puh/email  */
width:100%;

}

.tarea  { 		                  /* viestin tekstialue */
width:100%;

}

.main img {
    display: block;
    max-width: 300px;


    width: auto;
    height: auto;
}

}