/* ===== RESET & BASE ===== */
html {
        scroll-behavior: smooth;

}
* {
    box-sizing: border-box;
}
/*
.asiatieto,
#palvelut,
#hinnat,
#galleria,
#tietoa,
#yteys {
    scroll-margin-top: 80px;
}
*/

.vasen img {
    height: 60px;
}

body {
    overflow-x: hidden;
    background-color: #f7f7f7;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
}
.no-scroll {
    overflow: hidden;
}

/* ===== NAV ===== */
nav {
    width: 100%;
    position: fixed;
    background: #f7f7f7;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: solid 1px #cecece;
    height: 60px;
    left: 0px;
     box-shadow: 0px 15px 10px -15px #111;   
    z-index: 1000;
}

.vasen {
    margin-right: 20vw;
    color: #171717;
    font-family: "Google Sans", sans-serif;
    font-weight: bold;
}

.oikea {
    margin-left: 20vw;
}

.oikea a {
    text-decoration: none;
    margin: 15px;
    color: #171717;
    font-family: "Google Sans", sans-serif;
    font-weight: bold;
    transition: 0.3s;
    font-size: 13px;
}

.oikea a:hover {
    font-size: 14px;
    color: #494949;
}

/* ===== BUTTON ===== */
.nappi {
    color: #fff !important;
    border-radius: 30px;
    padding: 10px;
    transition: 0.3s;
    background-color: #21b91c;
}

.nappi:hover {
    font-size: 13px !important;
    background-color: #3bc436;
}

.rivi,
#rivi1
#rivi2
#rivi3 {
    scroll-margin-top: 150px;
}


.valia {
    margin: 40px;
}

.rivi {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin-top: 50px;
    margin-bottom: 50px;
    width: 100%;
}

.kokos {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}



.form-controlli {
    width: 42vw;
    border-radius: 30px;
    padding: 10px;
    background-color: #f7f7f7;
    border: solid 2px #cecece;
}

.kuvarivi img {
    margin: 40px;
}

.kuva img {
    max-height: 300px;
    margin: 30px;
}

.lisamargin {
    margin: 200px;
}

.keskitys {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

@media (max-width: 980px) {
    .banner {
        justify-content: center;
    }
    .banner2 {
        justify-content: center;
    }
    .banner3 {
        justify-content: center;
    }
    .keskitieto {
        margin: 0px;
        text-align: center;
    }
}

@media (max-width: 768px) {

    nav {
        flex-direction: row;
        height: auto;
        padding: 10px;
    }

    .vasen, .oikea {
        margin: 0;
    }

.form-controlli {
width: 80vw;
}

    .oikea {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .oikea a {
        margin: 8px;
    }
}

@media (max-width: 600px) {
    .keskitieto h1 {
        font-size: 20px;
    }

    .keskitieto p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
   .show {
    display: block;
   }
}

.show {
    display: none;
}

/* ===== HAMBURGER ===== */
.menu-toggle {
    display: none;
    font-size: 22px;
    color: #171717;
    cursor: pointer;
}

.menu-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.valittu {
    color: #21b91c !important;
}
.valittu#hover {
    color: #3bc436 !important;
}


@media (max-width: 1311px) {

    nav {
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
    }

        .menu-links {
            position: absolute;
            top: 60px;
            left: 0;
            width: 100%;
            background: #f7f7f7;
            flex-direction: column;
            align-items: center;

            max-height: 0;
            overflow: hidden;

            opacity: 0;
            transform: translateY(-10px);

            transition: max-height 0.35s ease, opacity 0.2s ease, transform 0.35s ease;

            padding: 0;
            border-top: solid 1px #cecece;
        }

    .menu-links a {
        margin: 10px 0;
        font-size: 16px;
    }

    .menu-links.active {
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
        padding: 20px 0;

    }

    .oikea {
        margin: 0;
    }

    .rivi {
        flex-direction: column;
    }
}

@media (max-width: 812px) {
    .vasen {
        margin-right: 10px;
    }
    .oikea {
        margin-left: 10px;
    }

    nav {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
  .banner {
    height: 400px; /* pienempi korkeus */
    background-attachment: scroll; /* tärkein fix */
    background-size: cover;
    background-position: center top; /* valinnainen */
  }
  .banner2 {
    height: 400px; /* pienempi korkeus */
    background-attachment: scroll; /* tärkein fix */
    background-size: cover;
    background-position: center top; /* valinnainen */
  }
  .banner3 {
    height: 400px; /* pienempi korkeus */
    background-attachment: scroll; /* tärkein fix */
    background-size: cover;
    background-position: center top; /* valinnainen */
  }
}

/* Navbar koodit*/
.banner {
  background-image: 
    linear-gradient(
      to right,
      rgba(0, 255, 0, 0.8) 0%,
      rgba(0, 255, 0, 0.4) 20%,
      rgba(0, 255, 0, 0) 30%
    ),
    url("../images/banner.webp");

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  width: 100%;
  height: 800px;

  display: flex;
  align-items: center;
       box-shadow: 0px 15px 10px -15px #111;   
}

.banner2 {
  background-image: 
    linear-gradient(
      to right,
      rgba(0, 255, 0, 0.8) 0%,
      rgba(0, 255, 0, 0.4) 20%,
      rgba(0, 255, 0, 0) 30%
    ),
    url("../images/banner2.webp");

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  width: 100%;
  height: 800px;

  display: flex;
  align-items: center;
       box-shadow: 0px 15px 10px -15px #111;   
}
.aa3 {
    color: #fff !important;
    border-radius: 30px;
    padding: 13px;
    font-size: 15px;
    transition: 0.3s;
    font-weight: bold;
    text-decoration: none;
    background-color: #21b91c;
    margin: 5px;
        display: inline-block;

    margin-top: 15px;
}

.aa3:hover {
    background-color: #4c9749;
}


.banner3 {
  background-image: 
    linear-gradient(
      to right,
      rgba(0, 255, 0, 0.8) 0%,
      rgba(0, 255, 0, 0.4) 20%,
      rgba(0, 255, 0, 0) 30%
    ),
    url("../images/banner3.webp");

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  width: 100%;
  height: 800px;

  display: flex;
  align-items: center;
       box-shadow: 0px 15px 10px -15px #111;   
}

.keskitieto {
    color: #fff;
    font-family: "Google Sans", sans-serif;
    font-weight: bold;
    margin: 100px;
    padding: 10px;
    background-color: #21b91c;
}

.tieto {
        font-family: "Google Sans", sans-serif;
        color: #171717;
        margin: 30px;

}

.tieto p {
    max-width: 700px;
}

.yhteystiedot {
    width: 100%;
    background-color: #21b91c;
    font-family: "Google Sans", sans-serif;
    color: #fff;
    padding: 5px;
}

.yhteystiedot .tieto p {
    color: #fff;
}

.yhteystiedot .tieto a {
    color: #fff;
    text-decoration: none;
}


footer {
    background-color: #3bc436;
    border-top: solid 1px #cecece;
    padding: 5px;
    text-align: center;
    color: #fff;
    margin-top: auto;
    font-family: "Google Sans", sans-serif;
}

footer a {
    color: #171717;
    text-decoration: none;
}

.card {
    background: #EBEBEB;
    background: linear-gradient(360deg, rgba(235, 235, 235, 1) 0%, rgba(194, 194, 194, 1) 100%);
    padding: 4px;

    width: 300px;
    margin: 20px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 30px;
}

.card img {
    height: 300px;
    margin: 15px;
    font-family: "Google Sans", sans-serif;
}

.card p {
    margin: 15px;
    font-size: 15px;
    font-family: "Google Sans", sans-serif;
    color: #21b91c;
}
.card h2 {
    margin: 15px;
    font-family: "Google Sans", sans-serif;
    font-size: 20px;
    color: #21b91c;
}
.aa {
    margin-left: 5px;
    margin-right: 5px;
    text-decoration: none;
}

.aa2 {
    color: #21b91c;
    font-size: 15px;
}

.l {
    background: #EBEBEB;
    background: linear-gradient(360deg, rgba(235, 235, 235, 1) 0%, rgba(194, 194, 194, 1) 100%);
    padding: 4px;

    width: 300px;
    margin: 20px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 30px;
}

.l img {
    width: 250px;
    border-radius: 30px;
    height: 150px;
    margin: 15px;
    font-family: "Google Sans", sans-serif;
}

.l p {
    margin: 15px;
    font-size: 15px;
    font-family: "Google Sans", sans-serif;
    color: #21b91c;
}
.l h2 {
    margin: 15px;
    font-family: "Google Sans", sans-serif;
    font-size: 20px;
    color: #21b91c;
}
