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


* {
  box-sizing: border-box;
}
 
img {
  max-width: 100%;
  height: auto;
}
.hero {
width: 100%;
height: 430px;
background-image: url("../images/syksymaisema2019.jpg");
  margin:auto;
  background-size: cover;
  background-repeat:no-repeat;
  background-position: center;
}
.mainheader {
  position: relative;
  clear: both;
  text-align: center;
  padding-top: 100px;
 
}

.topheader2 {
  display:none;
}

h1 {
  font-family: Arial, sans-serif;
  font-size: 28px;
  text-align: center;
  color: white;
  font-weight: 600;
}

.mainheader p {
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 17px;
  position: relative;
  color: white;
  padding: 5px;
}
.topheader {
  float: left;
  padding:10px 10px 0px 20px;
}

.topheader a {
  text-decoration: none;
}


.topheader span {
 display:none;
}

.burgerheader {
  float: right;
  padding: 20px;
}

.serviceheader {
  margin:auto;
  width: 100%;
  text-align: center;
  padding: 50px;
}


#rectangle1 {
  height:4px;
  width:35px;
  
}

h2 {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
}

h3 {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

h5 {
  font-family: Arial, sans-serif;
  font-weight:700;
  font-size: 18px;
  color: white;
}

p {
  font-family: Arial;
}

.services {
  clear:both;
  overflow:hidden;
  padding-bottom: 40px;
}

.service {
  float:left;
  text-align: center;
   width:50%;
  padding: 10px;
}

.service h3 {
  font-size:13px;
}
.referenceheader {
  margin: auto;
  width: 100%;
  text-align: center;
  padding: 50px;
}

.references {
  width:100%;
  clear: both;
  background-color: #e6e6e6;
  margin: auto;
  text-align: center;
  padding: 5px;
  position: relative;
  padding-bottom: 60px;
}

#rectangle2 {
  height:4px;
  width:35px;
  
}
.reference {
  position: relative;
}

.reference::after {
  display: block;
  position: relative;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), black 200%);
  margin-top: -150px;
  height: 150px;
  width: 100%;
  content: '';
}


.reference h3 {
  position: absolute;
  color: white;
  left: 50%;
  margin-top: -50px;
  margin-left: -140px;
  z-index: 1000;
}


 .reference p {
   font-family: Arial, sans-serif;
   font-size:11px;
   color: white;
   position: absolute;
   left: 50%;
   margin-top: -30px;
   margin-left: -140px;
   z-index: 1000;
}

.contactinfo {
width:100%;
margin:auto;
background-color: #384f67;
    text-align: center;
}


.contactinfo h2 {
  padding: 50px;
  color:white;
}

#rectangle3 {
  height:4px;
  width:35px;
  position: absolute;
  margin-left: -15px;
    margin-top: -40px;
}

.contact h3 {
  text-align:center;
  font-size: 22px;
  color: white;
  padding: 20px;
}

.contact p {
  text-align: center;
  font-family: Arial, sans-serif;
   font-size:15px;
   color: white;
  padding: 10px;
}

#email {
  color:#e74c3c;
  text-decoration: underline;
  padding-bottom:20px;
}

#tietosuojalink {
  color:#787878;
  text-decoration: underline;
  padding-bottom:20px;
}

.facebook img {
  width:35px;
  max-width:100%;
  padding-bottom: 40px;
}

.linkedin img {
  width:35px;
  max-width:100%;
  padding-bottom: 40px;
}

/* burgermenu */
.menu{z-index:1000000; font-family:Arial; font-size:18px; width:100%; background:#34495e;  position:absolute; text-align:center;}
.menu ul {margin: 0; padding: 0; list-style-type: none; list-style-image: none;}
.menu li {display: block;   padding:15px 0 15px 0; border-bottom:#1d1f20 1px solid;}
.menu li:hover{display: block;    background:#181818; padding:15px 0 15px 0; border-bottom:#1d1f20 1px solid;}
.menu ul li a { text-decoration:none;  margin: 0px; color:#fff;}
.menu ul li a:hover {  color: #fff; text-decoration:none;}
.menu a{text-decoration:none; color:white;}
.menu a:hover{text-decoration:none; color:white;}

.hamburger{
  background:none;
  position:absolute;
  top:0;
  right:0;
  line-height:45px;
  padding:5px 10px 0px 10px;
  color:#ffffff;
  border:0;
  font-size:1.8em;
  font-weight:bold;
  cursor:pointer;
  outline:none;
  z-index:10000000000000;
}

.cross{
  background:none;
  position:absolute;
  top:0px;
  right:0;
  padding:5px 15px 0px 10px;
  color:#ffffff;
  border:0;
  font-size:3em;
  line-height:65px;
  font-weight:bold;
  cursor:pointer;
  outline:none;
  z-index:10000000000000;
}


  .menu2 {
    display:none;
  } 


  .menu3 {
    display:none;
  }

  .menu4 {
    display:none;
  }

.menu5 {
    display:none;
  }

  .slick-prev {
    left: 10px;
}
.slick-next {
    right: 10px;
}

.slideshow2  h3 {
  font-family: Arial;
  font-size: 13px;
  color: white;
  position: relative;
  padding: 40px;
  margin-top: -100px;
}

.slideshow3  h3 {
  font-family: Arial;
  font-size: 13px;
  color: white;
  position: relative;
  padding: 40px;
  margin-top: -100px;
}

.slideshow4  h3 {
  font-family: Arial;
  font-size: 13px;
  color: white;
  position: relative;
  padding: 40px;
  margin-top: -120px;
}

.slideshow  h3 {
  font-family: Arial;
  font-size: 13px;
  color: white;
  position: relative;
  padding: 40px;
  margin-top: -110px;
}
}
@media only screen and (min-width: 768px) {

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}
.hero {
width: 100%;
height: 660px;
background-image: url("../images/syksymaisema2019.jpg");
  margin:auto;
  background-size: cover;
  background-repeat:no-repeat;
  background-position: center;
}

.hero br {
  display:none;
}

.mainheader {
  clear: both;
  padding: 200px;
}

h1 {
	font-family: Arial;
  font-size: 60px;
  text-align: center;
  color: white;
  font-weight: 600;
}

.mainheader p {
  text-align: center;
  font-family: Arial, sans-serif;
  position: relative;
  color: white;
  padding:5px;
}
.topheader {
  float: left;
  width: 50%;
  padding: 30px;
  text-align: center;
}

.topheader a {
  text-decoration: none;
}


.topheader2 {
float:left;
  width:50%;
  padding: 30px;
  text-align: center;
}

.topheader2 h5{
  display:inline;
  padding:20px;
  cursor:pointer;
}

.slideheader {
  margin:auto;
  width: 100%;
  text-align: center;
  padding: 50px;
}


.serviceheader {
  margin:auto;
  width: 100%;
  text-align: center;
  padding: 50px;
}


#rectangle1 {
  height:4px;
  width:35px;
  
}

h2 {
	font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
}

h3 {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

h5 {
  font-family: Arial, sans-serif;
  font-weight:700;
  font-size: 18px;
  color: white;
}

p {
	font-family: Arial;
}

.services {
  clear:both;
  text-align: center;
  padding-bottom: 60px;
}

.service {
  display: inline-block;
	text-align: center;
  width: 30%;
  padding: 20px;
}
.referenceheader {
  margin: auto;
  width: 100%;
  text-align: center;
  padding: 50px;
}

.references {
  clear: both;
  background-color: #e6e6e6;
  margin: auto;
  padding: 5px;
  text-align: center;
  padding-bottom: 60px;
}

#rectangle2 {
  height:4px;
  width:35px;
  
}
.reference {
  display: inline-block;
	text-align: center;
  width: 34%;
  padding: 20px;
  background-color: #e6e6e6;
}

.reference::after {
  display: block;
  position: relative;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), black 200%);
  margin-top: -135px;
  height: 150px;
  width: 100%;
  content: '';
}

.reference h3 {
  position: relative;
   margin-top:-50px;
  color: white;
  z-index: 1000;
  
}
 .reference p {
   position: relative;
   font-family: Arial, sans-serif;
   padding: 3px;
   font-size:11px;
   color: white;
   z-index: 1000;
   
}

.contactinfo {
  clear:both;
width:100%;
margin:auto;
background-color: #384f67;
    text-align: center;
}
.contactinfo h3 br {
  display:none;
}

.contactinfo h2 {
  padding: 50px;
  color:white;
}

#rectangle3 {
  height:4px;
  width:35px;
  position: absolute;
  margin-left: -15px;
    margin-top: -40px;
}

.contact h3 {
  text-align:center;
  font-size: 22px;
  color: white;
  padding: 20px;
}

.contact p {
  text-align: center;
  font-family: 'Crimson Text', sans-serif;
   font-size:15px;
   color: #ffffff;
  padding:5px;
}

#email {
  color:#e74c3c;
  text-decoration: underline;
  padding-bottom:20px;
}

#tietosuojalink {
  color:#787878;
  text-decoration: underline;
  padding-bottom:20px;
}

.facebook img {
  width:35px;
  max-width:100%;
  padding-bottom: 40px;
}

.facebook img:hover {
  opacity: .5;
}

.linkedin img {
  width:35px;
  max-width:100%;
  padding-bottom: 40px;
}
.linkedin img:hover {
		opacity: .5;
	}


/* Slider */

     .menu2 {
  width: 50%;
            margin:auto;
  padding: 10px;
  text-align: center;
        }
        .carousel {
          width:50%;
          margin:auto;
          text-align: center;
          max-width: 1000px;
        }
        .slick-prev:before, .slick-next:before  {
            color: gray ! important;
        }
.menu2 img {
  width: 24%;
}
.carousel img {
          margin:auto;
  width: 100%;
}
 
.slideshow  h3 {
  font-family: Arial;
  font-size: 16px;
  color: white;
  position: relative;
  padding: 40px;
  margin-top: -100px;
}
.burgerheader {
  display:none;
}
.menu {
  display:none;
}

/* Slider2 */

.menu3 {
  width: 50%;
            margin:auto;
  padding: 10px;
  text-align: center;
        }
        .carousel2 {
          width:50%;
          margin:auto;
          text-align: center;
          max-width: 1000px;
        }
        .slideshow2  h3 {
  font-family: Arial;
  font-size: 16px;
  color: white;
  position: relative;
  padding: 40px;
  margin-top: -100px;
}

.menu3 img {
  width: 24%;
}
.carousel2 img {
          margin:auto;
  width: 100%;
}

/* Slider3 */

.menu4 {
  width: 50%;
            margin:auto;
  padding: 10px;
  text-align: center;
        }
        .carousel3 {
          width:50%;
          margin:auto;
          text-align: center;
          max-width: 1000px;
        }
        .slideshow3  h3 {
  font-family: Arial;
  font-size: 16px;
  color: white;
  position: relative;
  padding: 40px;
  margin-top: -100px;
}

.menu4 img {
  width: 24%;
}
.carousel3 img {
          margin:auto;
  width: 100%;
}

/* Slider4 */

.menu5 {
  width: 50%;
            margin:auto;
  padding: 10px;
  text-align: center;
        }
        .carousel4 {
          width:50%;
          margin:auto;
          text-align: center;
          max-width: 1000px;
        }
        .slideshow4  h3 {
  font-family: Arial;
  font-size: 16px;
  color: white;
  position: relative;
  padding: 40px;
  margin-top: -100px;
}

.menu5 img {
  width: 24%;
}
.carousel4 img {
          margin:auto;
  width: 100%;
}

@media only screen and (min-width: 1921px) {
	.reference {
  width: 25%;
}
@media only screen and (min-width: 2561px) {
	.reference {
  width: 20%;
}
}