/*---------------------------
PERUSASETUKSET 
---------------------------*/

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
}

ul, li {
    list-style: none;
}

body {
    color: #eaeaea;
    font-family: "Lato", "Arial", sans-serif;
    font-size: 20px;
    color: #2c2c2c;
    background: #eaeaea;
}

.clearfix:after {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
}
    
.row {
    margin: 0 auto;
}

.top-bottom-margin {
    margin: 10px 0;
}

.side-margin {
    margin-top: 75px;
    margin-left: 20px;
}

.side-margin2 {
    margin-top: 100px;
    margin-left: 20px;
}

.side-margin3 {
    margin-top: 10px;
    margin-left: 20px;
}


/*Sticy footer https://css-tricks.com/couple-takes-sticky-footer/ */
html, body {
    height: 100%;
}

body {
    display: flex;
  flex-direction: column;
}

.content {
  flex: 1 0 auto;
}
.footer {
  flex-shrink: 0;
}

/*-----------------
SITAATTI TEKSTIT
-----------------*/

.sitaatti {
	width: 400px;
	font-size: 35px !important;
	line-height: 35px;
}

.sitaatti1 {
	font-family: "Damion", "Arial", sans-serif;
	color: #3fa435;
	
}

.sitaatti2 {
	font-family: "La Belle Aurore", "Arial", sans-serif;
	color: #3fa435;

}

.sitaatti3 {
	font-family: "Bad Script", "Arial", sans-serif;
	color: #3fa435;
	
}

.sitaatti4 {
	font-family: "Satisfy", "Arial", sans-serif;
	color: #3fa435;

}


/*-----------------
IMAGES
-----------------*/
.index-img {
    height: 275px; 
    width: auto;
    visibility: visible;
}

.kuka-img {
    margin-top: 10px;
    margin-left: 20px;
    height: 450px; 
    width: auto;
    visibility: visible;
}

.terapia-img {
    margin-top: 100px;
    margin-left: 20px;
    width: 450px;
    height: auto;
    visibility: visible;
}

.tyonohjaus-img {
    height: auto;
    width: 450px;
    margin-top: 100px;
    margin-left: 20px;
    visibility: visible;
}

.tyonohjaus-img-mobiili {
    visibility: hidden;
    width: 0%;
    height: auto;
}

.header-logo {
  width: 431px;
  height: 219px;
	
}

/*---------------------------
HEADER
---------------------------*/
.header-one {
    background-image: url(images/bg1.jpg);
    background-position: center; 
}

.header-two {
    background-image: url(images/bg2.jpg);
    background-position: center; 
}

.header-content {
    background: rgba(0,0,0,0.00);
    overflow: hidden;
    height: 100%;
    z-index: 2;
    height: 350px;   
}

header h1 {
    font-size: 325%;
    font-weight: 300;
    color: #eaeaea;
}

.header-text-area {
    width: 960px;
    margin: 0 auto;
    padding-top: 130px;
    line-height: 325%;
}



/*---------------------------
NAVIGAATIO
---------------------------*/
nav {
    width: 100%;
    background-color: #40ad48;
}

.nav-pun {
    width: 100%;
    background-color: #40ad48 !important;
}

.topnav {
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto;
}

.topnav a {
    float: left;
    display: block;
    color: #eaeaea;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background 0.8s;
}

/* Change the color of links on hover */
.topnav a:hover {
    background: #2c2c2c;
}

/* Add an active class to highlight the current page */
.active {
    background-color: #2c2c2c;
    color: #eaeaea;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
    display: none;
}


/*Media queries*/

/* When the screen is less than 980 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 980px) {
  .topnav a {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
    height: 52px;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 980px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
    height: 52px;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/*---------------------------
MAIN CONTENT
---------------------------*/
.main-content {
    max-width: 960px;
    margin: 0 auto;
    padding-top: 50px;
    padding-bottom: 25px;
}

.main-content h1 {
    margin-bottom: 25px;
    font-size: 200%;
    font-weight: 600;
}

.main-content h3 {
    margin-top: 50px;
    margin-bottom: 15px;
    font-size: 150%;
    font-weight: 500;
}

.main-content p {
    margin-bottom: 15px;
    font-size: 100%;
    font-weight: 300;
}

.main-content a {
    color: #68a050;
}

/*taulukko hinnasto*/

.taulukko-hinnasto {
    font-size: 100%;
    font-weight: 300;
    line-height: 175%;
    border: 0px;
    border-collapse: collapse;
    width: 600px;
}

/*taulukko koulutus*/
.taulukko-koulutus {
    font-size: 100%;
    font-weight: 300;
}

.taulukko-koulutus td {
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 95%;
}

.koulutus_td_1 {
    width: 60%;
    font-weight: 500;
}

.koulutus_td_2 {
    width: 35%;
    vertical-align: top;
}

.koulutus_td_empty {
    width: 5%;
}

/*lista terapia*/
.main-content li{
    list-style-type: disc;
    font-size: 100%;
    font-weight: 300;
    line-height: 150%;
    margin-left: 25px;
}

.otsikko-yhteystiedot {
    font-size: 100%;
    font-weight: 500;
}

/*Google map*/

iframe {
    margin-top: 50px;
}

#map {
    height: 300px;
    width: 90%;
    margin-top: 25px;
}

/*---------------------------
FOOTER
---------------------------*/
footer {
    width: 100%;
    background-color: #2c2c2c;
    color: #eaeaea;
    padding-top: 25px;
    padding-bottom: 25px;
    margin-top: 50px;
}

footer .row {
    max-width: 960px;
    margin: 0 auto;
}

footer h2 {
    font-size: 100%;
    font-weight: 500;
    margin-top: 15px;
}

footer p {
    font-size: 90%;
    font-weight: 300;
    margin-top: -20px;
}

footer a {
    color: #68a050;
    font-weight: 400;
}




/*---------------------------
MEDIA QUERIES
---------------------------*/
.kuka-img2 {visibility: hidden; width: 0; height: 0;}
.kuka-img3 {visibility: hidden; width: 0; height: 0;}

@media screen and (max-width: 980px){
    header h1, .main-content, footer .row {margin: 0 20px;}
    
    .index-img {width: 300px; height: auto;}
    
    .terapia-img {width: 350px;}
}

@media screen and (max-width: 800px){
    .index-img {width: 250px; height: auto;}
    
    .terapia-img {width: 100%; margin: 0; margin-bottom: 20px;}
    
    .tyonohjaus-img {width: 33%; height: auto; margin-top: 75px;}
  
    
}

@media screen and (max-width: 700px){
   .header-logo {width: 350px; height: auto;
	padding-top: 25px;
  
   
}


@media screen and (max-width: 600px){
    header h1 {font-size: 275%; line-height: 100%;}
    .header-text-area {padding-top: 100px;}
    .header-content {height: 300px;   
}
    
    .main-content h1 {font-size: 175%;}
    .main-content h3 {font-size: 150%;}
    .main-content p {font-size: 90%;}
	.main-content li {font-size: 90%;}
    .taulukko-koulutus {font-size: 80%;}
    .taulukko-hinnasto {width: 90%; font-size: 90%;}
    
    footer h2 {font-size: 80%;}
    footer p {font-size: 70%;}
    
    .index-img {width: 200px; height: auto;}
    
    .kuka-img {width: 0px; height: 0px; visibility: hidden;}
    .kuka-img2 {visibility: visible; width: 175px; height: auto;}
    
    .tyonohjaus-img {width: 0; height: 0; margin: 0; visibility: hidden;}
    
    .tyonohjaus-img-mobiili { visibility: visible; width: 100%; height: auto; margin: 0; margin-bottom: 20px;}
	
	.header-logo {width: 350px; height: auto;}
	
	

}

@media screen and (max-width: 500px){
    .index-img {width: 150px; height: auto;}
    
    .main-content h1 {font-size: 150%;}
    .main-content h3 {font-size: 125%;}
    .main-content p {font-size: 90%;}
	.main-content li {font-size: 90%;}
    
    .kuka-img2 {visibility: hidden; width: 0; height: 0;}
    .kuka-img3 {visibility: visible; width: 200px; height: auto;}
	.header-logo {width: 300px; height: auto; padding-top: 15px;}
	.header-text-area {padding-top: 125px;}
	.sitaatti {width: 350px; font-size: 30px !important; line-height: 30px;
}
}

@media screen and (max-width: 410px){
    .index-img {width: 120px; height: auto;}
    
    .main-content h1 {font-size: 120%;}
    .main-content h3 {font-size: 110%;}
    .main-content p {font-size: 80%;}
	.main-content li {font-size: 80%;}
	.header-logo {width: 275px; height: auto; padding-top: 5px;}
	.header-text-area {padding-top: 150px;}
	.sitaatti {width: 300px; font-size: 30px !important; line-height: 30px;}
}
}