/*********************************************
 *
 *
 *              S - koko
 *
 *
 ********************************************/

@media all and  (max-width: 716px) {

body { 															/* Sivuston tausta */



}


#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: 80px;
  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 #228b22;
  
  padding: 15px;
 
  }

  .logot {
overflow: hidden;

width: 100%;
margin: 0;
min-height: 80px;



background: #ffffff;


text-decoration: none;
font-weight: bold;
border-bottom: 1px solid #228b22;

border-radius: 0px;
  }
  
  #navbg {
  width: 100%;
  position: absolute;
  top: 0;
  padding-top: 170px;
  background: transparent;
  background-image:url('../images/fade2.png');
  background-repeat: repeat;
  z-index: 1;
  }
  
.navi {
  max-height: 0;
}  
  

.navi li a {


  padding-top: 11px;
  padding-bottom: 11px;
border: 0;
border-bottom: 1px solid #228b22;
  /*
  overflow: hidden;
  */

}

/* 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;
}

}