/*********************************************
 *
 *
 *              S - koko
 *
 *
 ********************************************/

@media all and  (max-width: 716px) {

body { 															/* Sivuston tausta */



}

.toppic {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 250px;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;

border-bottom: 0px solid #000000;
    background-image:url('../images/toppic.jpg');
    background-repeat: repeat-x;  
    background-position: bottom left;
background-color: transparent;
text-align: center top;

}

.slogan {
font-family: 'Satisfy', cursive;
position: absolute;
bottom: 0;
right: 0;
padding: 10px;

font-size: 20px;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
}




#logo {
  display: block;
  position: absolute;
  top: 0px;


  

  max-height: 120px;
  max-width: 340px;
  
  margin: 10px;
  left:0;
}


    .bgtable {
    position: absolute;
    top: 110px;
    left: 0;
    right: 0;
    bottom: 0;
    
    z-index: 0;
    }
    
    #etusivu.bgtable
    {

    position: inherit;
    }

  .mainbg {
  margin-top: 80px;
  padding: 10px;


  min-height: 320px;
  }
  
  
  .footerdiv {

  width: 100%;
  line-height: 20px;
  font-size: 13px;
  font-family: arial, sans-serif;


  color: #000000;
background-color: transparent;

  
  padding: 15px;
 
  }

  .logot {
display: none;


  }
  
  #navbg {
  width: 100%;
  position: absolute;
  top: 0;
  padding-top: 190px;
  background-color: transparent;

  z-index: 1;
  }
  
.navi {
  max-height: 0;
}  
  

  .navi li {
    position: relative;
    list-style: none;

    display: block;

    overflow: visible;
    margin: 0px;

  }
  .navi li a {
  font-size: 18px;

  border-radius: 0px;

  margin-left: auto;
  margin-right: auto;
}
  
  .navi li a:hover {
  color: #ffffff;
  background: #000000;

}


.navi li a#active {
  color: #ffffff;
  background: #000;
  border: 2px solid #000;
}




  .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;
    text-transform: none;
    font-size: 16px;
    text-align: left;
    
    padding-left: 10px;

    background-color: #fd6e06;
    border: 2px solid #000;    
    border-top: 0px;  
  }

  .navi li ul li a:hover {
  
  }
  
  .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; 
  }

/* Mobipainikkeet */
#mobi {
position: absolute;
top: 140px;

  width: 100%;
   z-index: 99;
}

.menu-button, .call-button {
  float: left;
  display: block;
  padding: 1em;

  background-color: #5f3a1f;
  font-size: 16px;
  color: #ffffff;
  cursor: pointer;
  border-bottom: 1px solid #000000;
  border-top: 1px solid #000000; 
  width: 50%;
  text-align: center;
  border-right: 1px solid #000000; 
  
  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: 100%;


    width: auto;
    height: auto;
}

}