*{
    margin: 0;
    padding: 0;

    font-family: 'M PLUS 2', sans-serif;
}





body{
    background-color: rgb(214, 214, 214);
    margin-bottom: 0;
}


.content {
    animation: fadeInAnimation ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    margin-left: 1%;
    margin-right: 1%;
}
@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}




/* ------------------------------------------------------ Header ----------------------------------------------------- */

header {
    padding: 30px;
    text-align: center;
    background: url(images/IMG_2680-2.jpg);
    background-size: cover;
    box-shadow: 0 0 10px 0px #333;
  }
  
header a img {
    width: 800px;
    padding-top: 2%;
    padding-bottom: 15%;
  }



  





/* --------------------------------------------------------- Navigointi -------------------------------------------------------- */

/*.topnav {
    overflow: hidden;
    background-color: #333;
    position: relative;
    box-shadow: 0 0 10px 0px #333;
} */

.navigointi {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

  
.topnav #myLinks {
    display: none;
    animation: fadeInAnimation ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.topnav a {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
}

.topnav2 a {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
}
  
.topnav a.icon {
    background: #222222;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}
  
.topnav a:hover {
    background-color: rgb(70, 70, 70);
    color: white;
    transition: 1s;
}
  
.active {
    background-color: #222222;
    color: white;
    font-weight: bold;
}

.topnav h2 {
    display: none;
}





/* ------------------------------------------------- asiakkaille/isännöitsijöille ----------------------------------------- */


.kolmas_osio{
    margin-top: 20px;
    background-color: #f2f0ef;
    border-radius: 2px;
}

.text-box1{
    width: 80%;
    margin: auto;
    text-align: left;
}

.kolmas_osio h1{
    font-weight: 400;
    color: #687864;
    padding-top: 30px;
}

.kolmas_osio h2{
    padding: 10px;
}

.kolmas_osio p{
    padding: 12px 50px;
}






/* -------------------------------------------------------- Napit ------------------------------------------------ */

.buttons{
    margin: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 13%;
}

.button1 {
    display: inline-block;
    text-decoration: none;
    color: rgb(255, 255, 255);
    border: 2px solid rgb(0, 0, 0);
    border-radius: 10px;
    padding: 12px 34px;
    font-size: 13px;
    background: #333;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 4px 0px #333;
    margin: 3px;
}

/* napin animaatio */
.button1:hover{
    border: 2px solid black;
    background: rgb(175, 175, 175);
    color: black;
    transition: 0.5s;
}

.button2 {
    display: inline-block;
    text-decoration: none;
    color: rgb(255, 255, 255);
    border: 2px solid rgb(0, 0, 0);
    border-radius: 10px;
    padding: 12px 34px;
    font-size: 13px;
    background: #333;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 4px 0px #333;
    margin: 3px;
}

/* napin animaatio */
.button2:hover{
    border: 2px solid black;
    background: rgb(175, 175, 175);
    color: black;
    transition: 0.5s;
}










/* ----------------------------------------------------- Etusivun palvelut osio ------------------------------------------------------------ */


.kuvat_2{
    width: 100%;
    margin: auto;
    text-align: center;
    background-color: #f2f0ef;
    border-radius: 2px;
    margin-top: 20px;
}

.kuvat_2 h1{
    padding-top: 50px;
}

.kuvat_2 p{
    padding: 30px 100px 50px;
}

.rivi{
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: auto;
}

/* rivien asettelut */
.palvelut-rivi{
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
   /* text-align: left; */
   background-color: #eeeeee;
   border: 1px solid #33333325;
   padding: 10px;
}

/* rivin kuvien asettelu */
.palvelut-rivi img{
    width: 80%;
}

/* tekstien asettelu */

.palvelut-rivi p{
    padding: 0;
    text-align: left;
}
.palvelut-rivi h3{
    margin-top: 16px;
    margin-top: 15px;
    text-align: left;
}

.palvelut-rivi p{
    padding-top: 5px;
    margin: 1%;
}





/*------------------------------------------ footer ------------------------------------------------*/

.rivi2{
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    background-color: #333;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    box-shadow: 0 0 5px 0px rgb(0 0 0);
}

ul {
    list-style-type: none;
}

.yhteystiedot li{
    padding: 3px;
}

.yhteystiedot{
    flex-basis: 49%;
    padding: 5px 12px;
    box-sizing: border-box;
    text-align: center;
    color: #f7f9fb;
}
.yhteystiedot ul{
    color: #f7f9fb;
}


.avoinna{
    flex-basis: 49%;
    padding: 15px 12px;
    box-sizing: border-box;
    text-align: center;
    color: #f7f9fb;
}
.avoinna ul{
    color: #f7f9fb;
}

.avoinna li{
    padding: 3px;
}

.avoinna li a:link, a:visited{
    text-decoration: none;
    color: white;
    
}








/* ----------------------------------------------------------------- Ota yhteyttä sivu ------------------------------------------------------------ */


.sivu_yhteystiedot{
    width: 100%;
    margin-top: 20px;
    background-color: #f2f0ef;
    border-radius: 2px;
}

.yhteys_text_box{
    text-align: center;
    padding-top: 30px;
    padding-bottom: 50px;
}

.yhteys_text_box p{
    padding: 20px;
}

.sivu_yhteystiedot i {
    font-size: 100px;
    color: #333;
}

.yhteystiedot_sijainti i {
    font-size: 100px;
    color: #333;
}

.sivu_yhteystiedot a {
    padding: 5px;
    text-decoration: none;
}


.sivu_yhteystiedot h3{
    padding: 5px;

}

.yhteystiedot_sijainti h3 {
    padding: 15px 50px;
}

.yhteystiedot_sijainti p {
    padding: 5px;
}



.yhteys_rivi{
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    width: 90%;
    margin: auto;
}

.logo1{
    flex-basis: 31%;
    padding: 20px 12px 20px;
    box-sizing: border-box;
    text-align: center;
}

.logo2{
    flex-basis: 31%;
    padding: 20px 12px 20px;
    box-sizing: border-box;
    text-align: center;
}

.logo3{
    flex-basis: 31%;
    padding: 20px 12px 20px;
    box-sizing: border-box;
    text-align: center;
}

/* higlight */

.logo1:target{
    background-color: rgba(100, 100, 100, 0.100);
}

.logo2:target{
    background-color: rgba(100, 100, 100, 0.100);
}

.logo3:target{
    background-color: rgba(100, 100, 100, 0.100);
}

.yhteystiedot_sijainti{
    width: 100%;
    background-color: #f2f0ef;
    border-radius: 2px;
}

.yhteys_rivi2{
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    width: 90%;
    margin: auto;
}

.toimistoyht{
    flex-basis: 45%;
    padding: 50px 12px;
    box-sizing: border-box;
    text-align: center;
}

.kartat{
    padding: 20px;
    flex-basis: 45%;
    box-sizing: border-box;
    text-align: center;
}







/* ------------------------------------------------------------------------- Vikailmoitukset------------------------------------------------------------ */

.asiointi_sivu{
    width: 100%;
    margin-top: 20px;
    background-color: white;
    border-radius: 2px;
    padding-bottom: 50px;
}

.asiointi_text-box{
    text-align: center;
    padding-top: 30px;
    padding-bottom: 50px;
}

.asiointi_text-box h2{
    padding: 10px;
}

.asiointi_text-box p{
    padding: 5px;
    width: 80%;
    margin: 0 auto;
}




/*-------------------------------------------------------------- Muutto/huoltoilmoitus ----------------------------------------------------------------*/


/* Lomakkeen osat (fieldset ja legend) */
fieldset {
    border: 2px solid #33333325;
    padding: 10px;
    margin: 0 auto 20px;
    background-color: #fff;
    width: 55%;
}

legend {
    font-weight: bold;
}

/* Lomakkeen sisäiset osat (div ja label) */
.muutto_div {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
}

/* Lomakkeen kentät */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="name"],
input[type="address"],
textarea {
    width: 98%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Lomakkeen radio- ja checkboxit */
input[type="radio"],
input[type="checkbox"] {
    margin-right: 5px;
    margin-bottom: 10px;
}

/* Lomakkeen lähetä-painike */
button[type="submit"] {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

button[type="submit"]:hover {
    background-color: #555;
}

/* radiobuttonit vierekkäin */
.muutto_div label {
    display: inline-block;
    margin-right: 10px; /* Säädä väliä tarvittaessa */
}

.muutto_div p {
    padding: 3px 0;
}

.muutto_div_checkbox label{
    display: inline-block;
    margin-right: 10px; /* Säädä väliä tarvittaessa */
}


/* Responsiivinen ulkoasu */
@media screen and (max-width: 768px) {
    /* Aseta kentät pystyyn mobiilinäytöillä */
    div {
        flex-direction: column;
    }
    label {
        flex: none;
    }



    /* Muuta lomakkeen leveyttä ja painikkeen kokoja */
    fieldset {
        width: 90%;
        padding: 20px;
        margin: 0 auto 20px;
    }
    button[type="submit"] {
        width: 80%;
        font-size: 16px;
        margin-top: 10px;
    }
}


/* ---------------------------------------------------------------------- Media --------------------------------------------------------------------- */



@media screen and (max-width: 605px) {

    .kolmas_osio p {
        padding: 12px 20px;
    }
}



@media(max-width: 700px){
    .rivi{
        flex-direction: column;}
    .rivi2{
        flex-direction: column;}

    .palvelut_lista{
        flex-direction: column;}
    .palvelut_lista2{
        flex-direction: column;}

    .yhteys_rivi{
        flex-direction: column;}
    .yhteys_rivi2{
        flex-direction: column;}

    .mySlides{
        width: 100%;}
    
    .kuvat_2 p{
        padding: 30px 40px 50px;
    }

    .palvelut-rivi p{
        padding: 30px 30px 50px;
    }

}




@media screen and (max-width: 850px) {
    header a img{
        width: 500px;
    }
    /* .nouto_rivi1, .nouto_rivi2{
        flex-direction: column;
    } */

    .kuvat_2 p{
        text-align: left;
    }

    .cfp-body{
        max-width: 90%;
    }
}

@media screen and (max-width: 560px) {
    header a img{
        width: 250px;
    }

    .kartat{
        display: none;
    }

    .muutto_div_checkbox label{
        display:block;
        margin-right: 10px;
        margin-bottom: 10px;
    }
    
}




@media screen and (min-width: 2200px) {
    body {
        width: 2200px;
        margin: 0 auto;
    }

    .content{
        margin: 0;
    }
}


@media screen and (max-width: 1299px) {
    .kartta_suuri{
        display: none;
    }
    
    .nouto_rivi1{
        flex-wrap: wrap;
    }

}

@media screen and (min-width: 1300px) {
    .kartta_pieni{
        display: none;
    }
    .palvelut_lista, .palvelut_lista2{
        width: 70%;
    }
}

@media screen and (max-width: 313px) {
    header a img{
        width: 200px;
    }
    .kolmas_osio h2{
        font-size: larger;
    }
}