/***********************************/
/***Yli 1600px levyiset ruudut***/
/************************************/
.mobilelink
{
     display: none;
}

.rss-container
{
     min-height: 800px;
     display: block;
     margin-right: 10%;
     margin-left: 10%;

}
.mobilecontainer
{
     display: block;
     display: none;
     min-height: 100%;
}



label
{
     display: none;
}

#toggle
{
     display: none;
}


body
{
     display: block;
     min-width: 100%;
     min-height: 100%;
     margin: 0;
     padding: 0;
     background-color: #eaeaea;
     background-repeat: no-repeat, no-repeat;
     background-position:  top left, top right;
     background-attachment: fixed;
     font-family: 'Open Sans', sans-serif;
     font-size: 18px;

}

.banner
{
     background: #eaeaea;
     overflow: hidden;
     margin-left: 10%;
     margin-right: 10%;
}

.banner-img
{
     display: block;
     width: 62vw;
     margin-top: 50px;
     margin-left: auto;
     margin-right: auto;
}

.nav
{
     padding-top: 50px;
     overflow: hidden;
     background: #eaeaea;
     height: 250px;
     margin-left: 10%;
     margin-right: 10%;
}

.link1
{

}

.link2
{
     max-width: 50%;
     max-height: 50%;
}
.link3
{
}

.nav-img
{
     display: inline-block;
     width: 10%;
     height: auto;
     position: absolute;
}

#nav-left-img
{
     background-image: url('linkki_palvelut.png');
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;
     left: 19.9%;
}
#nav-left-img:hover
{
     background-image: url('linkki_palvelut_rollover.png');
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;
}

#nav-right-img
{
     background-image: url('linkki_yhteys.png');
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;
     float: right;
     right: 19.9%;
     left: auto;

}

#nav-right-img:hover
{
     background-image: url('linkki_yhteys_rollover.png');
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;
     float: right;
     right: 19.9%;
     left: auto;

}


#nav-mid-img
{
     background-image: url('linkki_info.png');
     position: absolute;
     margin-left: -157.25px;
     left: 50%;
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;

}

#nav-mid-img:hover
{
     background-image: url('linkki_info_rollover.png');
     position: absolute;
     margin-left: -157.25px;
     left: 50%;
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;

}

.container
{
     display: block;
     min-height: 100%;
     padding-top: 100px;
     overflow: hidden;
     margin-left: 10%;
     margin-right: 10%;
     padding-bottom: 20px;
     background: #eaeaea;
     position: relative;
}


.content
{
     max-width: 600px;
     margin: 0 100px 50px 100px;
     height: auto;

}

.divider
{
     height: 150px;
     width: 100%;
}

.content2
{
     overflow: auto;
     float: right;
     max-width: 600px;
     text-align: justify;
     margin: 0 100px 50px 0px;
     height: auto;
}

.head-text
{
     margin: 0 150px 50px 150px;
     text-align: center;
}

.yhteys-content
{
     margin: 0px 150px 0px 150px;
     height: 1500px;
}

.toimipisteOtsikko
{
     text-align: center;
     display: block;
     height: 50px;
     width: 100%;
}

.toimipisteet
{
     text-align: center;
     display: block;
     margin-left: auto;
     margin-right: auto;
}

.mapContainer
{
     align-items: center;
     height: 50%;
     display: block;
     margin-top: 10px;
     margin-left: 25%;
     margin-right: auto;
}

.toimipisteetRight
{
     display: block;
     margin-left: auto;
     margin-right: auto;
}

.yhteys
{

     display: block;
     text-align: center;
}

.article-img
{
     margin-top: 30px;
     margin-right: 100px;
     margin-left: 25px;
     margin-bottom: 50px;
     float: right;
     overflow: auto;
     display: block;
     width: 35%;
     height: auto;
     border-radius: 2px;
     box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.article-img2
{
     margin-left: 100px;
     margin-bottom: 10px;
     float: left;
     overflow: auto;
     display: block;
     width: 33%;
     height: auto;
     border-radius: 2px;
     box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.italic
{
     font-style: italic;
}

.wrapper
{
    display: grid;

    grid-template-columns: repeat(5, 20%); 
    grid-template-rows: repeat(10, auto);
}

.contactContainer
{
     display: grid;
     grid-template-columns: repeat(3, 33.333%);
     grid-column: 2/5;
     box-shadow: 1px 1px 10px 1px #888888;
     background-color: #f7f7f7;
}

.gridHead1
{
     text-align: center;
     grid-row: 1/2;
     grid-column: 1/ 4;
     margin: 1em auto 5vh auto;
}

.gridElement1
{
     text-align: center;
     grid-row: 2/3;
     grid-column: 1/4;
     margin: 0 0 0 0;
}

.gridElement2
{
     text-align: center;
     grid-row: 2/3;
     grid-column: 2/ 4;
     margin:0 0 0 0;
}

.gridElementPost
{
     text-align: center;
     grid-row: 3/4;
     grid-column: 1/ 4;
     margin: 0 auto 2vh auto; 
}

.postWrapper{
     margin: 0 1em 0 1em;
}

.gridElement3
{
    text-align: center;
    grid-row: 4/5;
    grid-column: 2/ 5;
    margin: 2vh auto 2vh auto; 
}

.gridElement4
{
     text-align: center;
     grid-row: 5/6;
     grid-column: 2/ 5;
     margin-bottom: 1vh;
}

.gridElement5
{
     grid-row: 6/8;
     grid-column: 2/ 5;
     margin-bottom: 10vh;
     width: 100%;
    height: 50vh; 
}

.gridElement6
{
     text-align: center;
     grid-row: 8/9;
     grid-column: 2/ 5;
     margin-bottom: 1vh;
}

.gridElement7
{
     height: 50vh;
     grid-row: 9/10;
     grid-column: 2/ 5;
     margin-bottom: 10vh;
}

.footer
{
     background-color: #eaeaea;
     background-image: url('footer_blue_small.png');
     background-repeat: no-repeat;
     background-position: center;
     background-size: cover;
     width: auto;
     height: 150px;
     text-align: center;
     padding-top: 25px;
     margin-left: 10%;
     margin-right: 10%;
     overflow: hidden;
     position: relative;
     bottom: 0;
     background-color: white;
}

.yhteystieto
{
     position: absolute;
     left: 25px;
     text-align: left;
     text-decoration: none;
     color: white;
}



/* Style all font awesome icons */
.fa {

    padding: 20px;
    font-size: 30px;
    width: 50px;
    text-align: center;
    text-decoration: none;
}

/* Add a hover effect if you want */
.fa:hover {
    opacity: 0.7;
}

/* Set a specific color for each brand */

/* Facebook */
.fa-facebook
{
     margin-right: 25px;
     width: auto;
     height: auto;
     border-radius: 2px;
     float: right;
     background: #3B5998;
     color: white;
}

.face
{
     margin-top: 15px;
     margin-right: 30px;
     float: right;
     width: 80px;
     height: auto;
}

.face:hover
{
     opacity: 0.8;
}

#isannointi_logo
{
     display: block;
     position: absolute;
     width: 15%;
     height: auto;
     margin-top: 1em;
     right: 5%;
     margin-left: -76px;
}

#isannointi_logo:hover
{
     opacity: 0.8;
}

/***********************************/
/***Yli 1250px levyiset ruudut***/
/************************************/

@media screen and (max-width: 1600px) {

.banner
{
     margin: 0 0 0 0;
}

.banner-img
{
    width: 70vw;
}

.footer
{
     margin: 0 0 0 0;
}



.nav
{
     margin: 0 0 0 0;
}

.container
{
     margin: 0 0 0 0;
}


#nav-left-img
{
     background-image: url('linkki_palvelut.png');
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;
     left: 10%;
}
#nav-left-img:hover
{
     background-image: url('linkki_palvelut_rollover.png');
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;
}

#nav-right-img
{
     background-image: url('linkki_yhteys.png');
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;
     float: right;
     right: 10%;
     left: auto;

}

#nav-right-img:hover
{
     background-image: url('linkki_yhteys_rollover.png');
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;
     float: right;
     right: 10%;
     left: auto;

}


#nav-mid-img
{
     background-image: url('linkki_info.png');
     position: absolute;
     margin-left: -157.25px;
     left: 50%;
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;

}

#nav-mid-img:hover
{
     background-image: url('linkki_info_rollover.png');
     position: absolute;
     margin-left: -157.25px;
     left: 50%;
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;

}

.gridElement1
{
     grid-column: 1/4;
}

.gridElement2
{
     grid-column: 2/4;
}


}


@media screen and (max-width: 1250px) {

.banner
{
     margin: 0 0 0 0;
}

.footer
{
     margin: 0 0 0 0;
}



.nav
{
     margin: 0 0 0 0;
}

.container
{
     margin: 0 0 0 0;
}


#nav-left-img
{
     background-image: url('linkki_palvelut.png');
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;
     left: 0;
}
#nav-left-img:hover
{
     background-image: url('linkki_palvelut_rollover.png');
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;
}

#nav-right-img
{
     background-image: url('linkki_yhteys.png');
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;
     float: right;
     right: 0;
     left: auto;

}

#nav-right-img:hover
{
     background-image: url('linkki_yhteys_rollover.png');
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;
     float: right;
     right: 0;
     left: auto;

}


#nav-mid-img
{
     background-image: url('linkki_info.png');
     position: absolute;
     margin-left: -157.25px;
     left: 50%;
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;

}

#nav-mid-img:hover
{
     background-image: url('linkki_info_rollover.png');
     position: absolute;
     margin-left: -157.25px;
     left: 50%;
     background-size: contain;
     background-repeat: no-repeat;
     width: 300px;
     height: 250px;

}

.yhteys
{
     max-width: 300px;
}

.toimipisteet
{
     max-width: 300px;
}

.content
{
     margin: 1%;
}

.content2
{
     margin: 1%;
}
.article-img
{
     margin: 1%;
}

.article-img2
{
     margin: 1%;
}

}

/*************************************/
/***Alle 1000px levyiset ruudut***/
/*************************************/
@media screen and (max-width: 1000px) {

.divider
{
     display: none;
}

.container
{
     margin: 0 0 0 0;
}
.nav
{
     display: none;
}

.banner
{
     background: #3d7dca;
     margin-bottom: 75px;
}

.banner-img
{
    width: 100%;
}

body
{
     text-align: justify;
     height: 100%;
     background-image: none;
     background: #eaeaea;
     font-size: 15px;
}

#nav-left-img
{
     display: none;
     background-image: url('linkki_palvelut.png');
     background-size: contain;
     background-repeat: no-repeat;
     width: 33.3%;
     left: 0;
}
#nav-left-img:hover
{
     display: none;
     background-image: url('linkki_palvelut_rollover.png');
     background-size: contain;
     background-repeat: no-repeat;
     width: 33.3%;
}

#nav-right-img
{
     display: none;
     background-image: url('linkki_yhteys.png');
     background-size: contain;
     background-repeat: no-repeat;
     float: right;
     right: 0;
     left: auto;
     width: 33.3%;

}

#nav-right-img:hover
{
     display: none;
     background-image: url('linkki_yhteys_rollover.png');
     background-size: contain;
     background-repeat: no-repeat;
     float: right;
     right: 0;
     left: auto;
     width: 33.3%;

}


#nav-mid-img
{
     display: none;
     text-align: center;
     background-image: url('linkki_info.png');
     background-size: contain;
     background-repeat: no-repeat;
     width: 33.3%;
     margin-left: auto;
     margin-right: auto;


}

#nav-mid-img:hover
{
     display: none;
     text-align: center;
     background-image: url('linkki_palvelut_info.png');
     position: absolute;
     left: 50%;
     background-size: contain;
     background-repeat: no-repeat;
     margin-left: auto;
     margin-right: auto;
     width: 33.3%;


}

.head-text
{
     word-wrap: break-word;
     overflow: none;
     display: block;
     padding-left: 1%;
     padding-right: 1%;
     margin-left: auto;
     margin-right: auto;
     font-size: 18px;
     margin: 0 5% 50px 5%;
     text-align: justify;
}

.mobilelink
{
     -webkit-user-select: none;
     -moz-user-select: none;
     -ms-user-select: none;
     user-select: none;
     color: black;
     text-decoration: none;
     text-align: center;
     display: block;
     margin-right: auto;
     margin-left: auto;
     font-size: 50px;
     border-bottom: 3px solid #eaeaeb;
}

.mobilelink:hover
{
     color: black;
     text-decoration: none;
     text-align: center;
     display: block;
     margin-right: auto;
     margin-left: auto;
     font-size: 50px;
     background-color: #eaeaea;
     opacity: 0.8;
}

#toggle:checked + .mobilenav
{
     display: block;
}

.labelContainer
{
     display: block;
     margin-bottom: 80px;
     width: 100%;
     height: 100%;
}

label
{
     position: absolute;
     overflow: none;
     right: 5%;
     -webkit-user-select: none;
     -moz-user-select: none;
     -ms-user-select: none;
     user-select: none;
     background: #eaeaea;
     display: block;
     font-size: 150px;
     line-height: 0px;
     cursor: pointer;
}

@-moz-document url-prefix() {
  #mozfix
  {
       margin-top: -160px;
 }

.container
{
     font-size: 40px;
}

.head-text
{
     font-size: 40px;
}

.content
{
     font-size: 40px;
}

}

.border
{
     height: 160px;
     width: 100%;
     background: #3d7dca;
     margin-top: -80px;
     margin-bottom: 0;
     border-radius: 0 0 15px 15px;
     border-bottom: 3px solid #eaeaeb;
}

.mobilenav
{
     display: none;
     width: 100%;
     line-height: 150px;
     font-size: 25px;
     border-radius: 15px;
     background: #3d7dca;
     margin-right: auto;
     margin-left: auto;
}

.content
{
     display: block;
     max-width: 85%;
     margin-left: auto;
     margin-right: auto;
     text-align: left;
     float: none;
}

.content2
{
     display: block;
     max-width: 85%;
     margin-left: auto;
     margin-right: auto;
     text-align: left;
     float: none;
}
.article-img
{
     display: block;
     float: none;
     width: 85%;
     text-align: center;
     margin-left: auto;
     margin-right: auto;
}

.article-img2
{
     display: block;
     float: none;
     width: 85%;
     text-align: center;
     margin-left: auto;
     margin-right: auto;
     margin-bottom: 50px;
}

.wrapper
{
     display: block;
    margin: 0 2vh 0 2vh;
}

.contactContainer
{
     display: block;
}

.gridHead1
{
     grid-column: 1/ 4;
     grid-row: 1;
     width: 100%;
     margin-bottom: 2vh; 
}

.gridElement1
{
    text-align: center;
    grid-column: 1/4;
    grid-row: 2/3;
    margin-bottom: 3vh; 
}

.gridElement2
{
    text-align: center;
    grid-row: 3/4;
    grid-column: 1/ 4;
}

.gridElementPost
{
     text-align: center;
     grid-column: 1/4;
     grid-row: 4/5;
     bottom: 0;
     margin-bottom: 2vh; 
     width: 100%;
}

.gridElement3
{
    text-align: center;
    grid-row: 5/6;
    grid-column: 2/ 5; /*tässä on muutos*/
    margin: 2vh auto 2vh auto; 
}

.gridElement4
{
     text-align: center;
     grid-row: 6/7;
     grid-column: 1/ 6;
     margin-bottom: 1vh;
}

.gridElement5
{
     grid-row: 7/8;
     grid-column: 1/ 6;
     margin-bottom: 10vh;
     width: 100%;
    height: 50vh; 
}

.gridElement6
{
     text-align: center;
     grid-row: 8/9;
     grid-column: 1/ 6;
     margin-bottom: 1vh;
}

.gridElement7
{
     height: 50vh;
     grid-row: 9/10;
     grid-column: 1/ 6;
     margin-bottom: 10vh;
}


.footer
{
     height: 150px;
     font-size: 30px;
}

.toimipisteet
{
     float: left;
     margin: 0 auto;
}

.yhteys
{
     float: right;
     margin: 0 auto;
}

#isannointi_logo
{
     height: 100px;
     width: auto;
     position: static;
     float: right;
     margin-right: 6%;
     margin-top: 15px;
}

.face
{
     height: 100px;
     width: auto;
}
.face:hover
{
     height: 100px;
     width: auto;
}
}
