/*********************************************
 *
 *
 *              S - koko
 *
 *
 ********************************************/

@media all and  (max-width: 716px) {

body { 															/* Sivuston tausta */

  background-attachment: fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;

}

.toppic {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 200px;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;

border-bottom: 0px solid #000000;

background-color: transparent;
text-align: center top;

}

.slogan {
font-family: 'Rubik', sans-serif;
font-weight:bold;
display: inline-block;

padding: 5px;
padding-top: 5px;
width:100%;
font-size: 19px;

letter-spacing:initial;
  text-align: center;
  background-color: transparent;
  

}




#logo {
display: inline;
width:225px;
margin-bottom:-5px;

}


    .bgtable {
    position: absolute;
    top: 130px;
    left: 0;
    right: 0;
    bottom: 0;
    
    z-index: 0;
    }
    
    #etusivu.bgtable
    {

    position: inherit;
    }

  .mainbg {
  margin-top: 10px;
  padding: 10px;


  min-height: 320px;
  }
  
  
  .footerdiv {

  width: 100%;

  font-size: 13px;
  font-family: 'Rubik', sans-serif;


  color: #000000;
background-color: transparent;

  
  margin-top:-35px;
  padding-left:10px;
  padding-right:15px;
 
  }

  .logot {
display: none;


  }
  
  #navbg {
  width: 100%;
  position: absolute;
  top: 0;
  padding-top: 135px;
  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: 2px;

  margin-left: auto;
  margin-right: auto;
}
  
  .navi li a:hover {


}


.navi li a#active {

}




  .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: #0891da;
    border: 2px solid #155a7e;    
    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: 80px;

  width: 100%;
   z-index: 99;
}

.menu-button, .call-button {
  float: left;
  display: none;
  padding: 1em;

  background-color: #d9261c;
  font-size: 16px;
  color: #ffffff;
  cursor: pointer;
  border-bottom: 1px solid #fff;
  border-top: 1px solid #fff; 
  width: 60%;
  text-align: center;
  border-right: 1px solid #fff; 
  
  white-space:nowrap;
}

.menu-button a, .call-button a {
  color: #ffffff;
  text-decoration: none;
}

.menu-button {
	width: 40%;
}

/* 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;
}

}