body, html {
  height: 100%;
  margin: 0;
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  line-height: 1.8em;
  color: black;
}
header {
  background-color: #1a1a1a;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1a1a;
  color: white;
}
.brand-title {
  font-size: 1.5rem;
  margin: .5rem;
}
.brand-title a {
  text-decoration: none;
  color: white;
  font-family: 'Fugaz One', cursive, sans-serif;
}
.navbar-links ul {
  margin: 0;
  padding: 0;
  display: flex;
}
.navbar-links li {
  list-style: none;
}
.navbar-links li a {
  text-decoration: none;
  color: white;
  padding: 10px;
  display: block;
  margin: 15px;
  font: 900 12px/1.4 'Open Sans', arial, sans-serif;
  text-transform: uppercase;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.15em;
  display: inline-block;
  position: relative;
}
.navbar-links li a:after {
  background: none repeat scroll 0 0 transparent;
  bottom: 0;
  content: "";
  display: block;
  height: 2px;
  left: 50%;
  position: absolute;
  background: #fff;
  transition: width 0.3s ease 0s, left 0.3s ease 0s;
  width: 0;
}
.navbar-links li a:hover:after {
  width: 100%;
  left: 0;
}
.toggle-button {
  position: absolute;
  top: .75rem;
  right: 1rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}
.toggle-button .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 10px;
}
@media (max-width: 1500px) {
  .toggle-button {
    display: flex;
    padding: 10px 0 10px 0;
  }
  .navbar-links {
    display: none;
    width: 100%;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0 10px 0;
  }
  .navbar-links ul {
    width: 100%;
    flex-direction: column;
  }
  .navbar-links li {
    text-align: center;
  }
  .navbar-links li a {
    padding: 1rem 1rem;
  }
  .navbar-links.active {
    display: flex;
  }
}
  .current {
    border-bottom: 2px solid;
}
h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
}
@media (max-width: 700px){
  h2 {
    font-size: 25px;
  }
}
.pimg1 {
  position: relative;
  opacity: 0.99;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-y: hidden;
}
  .pimg2, .pimg3 {
  position: relative;
  opacity: 0.95;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.pimg1 {
  background-image: url("img/pelto.jpg");
  min-height: 100%;
}
.pimg2 {
  background-image: url("img/valikoima2.jpg");
  min-height: 800px;
}
.pimg3 {
  background-image: url("img/img3.jpg");
  min-height: 400px;
}
.section {
  text-align: center;
  padding: 50px 170px;
}
.tekstivasemmalla {
  text-align: left;
}
@media (max-width: 700px){
  .pimg2 {
    min-height: 400px;
  }
}
@media (max-width: 700px){
  .section {
    padding: 45px 45px;
  }
}
.section-light {
  background-color: white;
  color: black;
}
.section-dark {
  background-color: #282e34;
  color: #ddd;
}
#yhteystiedotsivu {
  background-color: white;
  color: black;
}
.ptext {
  position: absolute;
  top: 10%;
  width: 100%;
  text-align: center;
  color: black;
  font-size: 27px;
  letter-spacing: 8px;
  text-transform: uppercase;
}
@media(max-width: 1100px) {
  .ptext {
    top: 5%;
  }
}
#centteriin {
  top: 40%;
}
 .border {
  background-color: #111;
  color: #fff;
  padding: 20px;
}
@media(max-width: 1100px) {
  .border {
    font-size: 15px;
  }
}
@media(max-width: 761px) {
  .border {
    padding: 7px;
  }
}
#contact {
  margin-top: 20px;
}
/*
.ptext .border.trans {
  background-color: transparent;
}
*/
@media(max-width: 1024px) {
  .pimg1, .pimg2, .pimg3 {
    background-attachment: scroll;
  }
  .ptext {
    font-size: 15px;
  }
}
.gotop {
  font-size: 40px;
  color: #1abc9c;
  margin-bottom: 25px;
  position: fixed;
  bottom: 1px;
  right: 15px;
  display: none;
}
footer {
  background-color: black;
  padding: 50px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media(max-width: 750px) {
  footer {
    display: block;
  }
  #foot {
    margin-top: 20px;
  }
  #facebook {
    margin-bottom: 20px;
  }
  #insta {
    margin-bottom: 20px;
  }
}
#facebook {
  color: white;
  font-size: 36px;
  margin-right: 15px;
}
#facebook:hover {
  transform: scale(1.2);
}
#insta {
  color: white;
  font-size: 36px;
}
#insta:hover {
  transform: scale(1.2);
}
footer p {
    margin: 0;
    color: white;
}
#tilat {
  padding-top: 60px;
  max-width: 500px;
}
@media(max-width: 1200px) {
  #tilat {
    width: 100%;
    height: auto;
  }
}
#footer {
  font-weight: bold;
  letter-spacing: 2px;
}

#luelisaa {
  text-decoration: none;
  color: #1abc9c;
  font-weight: bold;
  margin-left: 10px;
}
/*Tästä alaspäin palvelut muotoilu*/

.palimg1 {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("img/läppäreitä.jpg");
  min-height: 400px;
}
.palimgmatkailu {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("img/matkailu/auringonlasku.jpg");
  min-height: 400px;
}
.paltext {
  position: absolute;
  margin-top: 155px;
  width: 100%;
  text-align: center;
  color: #000;
  font-size: 27px;
  letter-spacing: 8px;
  text-transform: uppercase;
}
#tuotepalveluteksti {
  margin-bottom: 30px;
}
#tuotepalveluteksti2 {
  margin-bottom: 70px;
}
.paltext .border.trans {
  background-color: transparent;
}
@media(max-width: 568px) {
  .paltext {
    font-size: 15px;
  }
}
.fa-location-arrow, .fa-home, .fa-shower, .fa-cutlery, .fa-sun-o, .fa-money, .fa-toolbox {
  font-size: 50px;
  color: #FF1493;
}
.fa-laptop, .fa-wifi, .fa-comments, .fa-folder-minus, .fa-shield-alt, .fa-envelope, .fa-toolbox {
  font-size: 50px;
  color: #1abc9c;
}
ul.palvelut {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 0;

}
.palvelut li {
  flex-basis: 25%;
  list-style: none;
  padding: 30px;
}
@media (max-width: 1000px) {
  .palvelut {
   margin-bottom: 0;
   padding-bottom: 0;
   margin-top: 0;
    }
  }
@media (max-width: 1000px) {
  .palvelut li{
   flex-basis: 50%;
  }
}
  @media (max-width: 740px) {
    .palvelut li{
     flex-basis: 100%;
    }
  }
  .palvelut p {
    min-width: 200px;
  }

.open {
  border-radius: 15px;
  color: white;
  background-color: #ff1493;
  width: 100px;
  height: 35px;
  cursor: pointer;
}

.avaa {
  border-radius: 15px;
  color: white;
  background-color: #1abc9c;
  width: 100px;
  height: 35px;
  cursor: pointer;
}
/*Tästä alaspäin palvelut muotoilu*/

.kuvimg1 {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("img/matkailu/tulotie.jpg");
  min-height: 400px;
}
.kuvimge1 {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("img/galleria/kuva8.jpg");
  min-height: 400px;
}
.kuvtext {
  position: absolute;
  margin-top: 155px;
  width: 100%;
  text-align: center;
  color: #000;
  font-size: 27px;
  letter-spacing: 8px;
  text-transform: uppercase;
}
.kuvtext .border.trans {
  background-color: transparent;
}
@media(max-width: 568px) {
  .kuvtext {
    font-size: 15px;
  }
}

  /* pop up moduulin muotoilu */

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 200ms ease-in-out;
  border: 1px solid black;
  border-radius: 10px;
  z-index: 10;
  background-color: white;
  width: 500px;
  max-width: 80%;
}
@media (max-width: 740px) {
  .modal{
    overflow-y: scroll;
    max-height: 100%;
  }
}
.modal.active {
  transform: translate(-50%, -50%) scale(1);
}
.modal-header {
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid black;
}
.modal-header .title {
  font-size: 1.25rem;
  font-weight: bold;
}
.modal-header .close-button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-size: 1.25rem;
  font-weight: bold;
}
.modal-body {
  padding: 10px 15px;
  max-height: 80vh;
  overflow-y: auto;
}
#overlay {
  position: fixed;
  opacity: 0;
  transition: 200ms ease-in-out;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, .3);
  pointer-events: none;
}
#overlay.active {
  opacity: 1;
  pointer-events: all;
}



/*Tästä alaspäin yhteystiedot muotoilu*/

.yhteysimg1 {
  opacity: 0.90;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("img/searchus.jpg");
  min-height: 400px;
}
@media(max-width: 700px) {
  .yhteysimg1 {
  background-image: url("img/searchxs.jpg");
  }
}
.yhteystext {
  position: absolute;
  margin-top: 155px;
  width: 100%;
  text-align: center;
  color: #000;
  font-size: 27px;
  letter-spacing: 8px;
  text-transform: uppercase;
}
.yhteystext .border.trans {
  background-color: transparent;
}
@media(max-width: 568px) {
  .yhteystext {
    font-size: 15px;
  }
}

/*Tästä alaspäin yhteystietojen muotoilu*/

ul.contact-content {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 40px 0 30px 0;
}
.contact-content li {
  flex-basis: 33%;
  list-style: none;
}
.fa-mobile-alt, .fa-map-marker-alt, .fa-envelope {
  font-size: 50px;
  color: #1abc9c;
}
@media (max-width: 740px) {
  .contact-content li{
   flex-basis: 100%;
   margin-top: 30px;
  }
  #nocall {
    display: none;
  }
}
@media (min-width: 740px) {
  #ringring{
   display: none;
  }
}
@media (min-width: 740px) {
  #callto{
   display: none;
  }
}
iframe {
  width: 600px;
  height: 450px;
  border: 1px solid black;
  margin-bottom: 50px;
}
@media (max-width: 890px) {
  iframe{
   width: 270px;
   height: 300px
  }
}
#contactindex {
  margin-top: 80px;
}

/* Kuvien muotoilu tästä alaspäin */


.gallery-section {
  width: 100%;
  padding: 60px 0;
}
.inner-width {
  width: 85%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}
.gallery-section h2 {
  text-align: center;
  text-transform: uppercase;
  color: #333;
}
.border2 {
  width: 180px;
  height: 4px;
  background: #333;
  margin: 60px auto;
}
.gallery-section .gallery {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: center;
}
.gallery-section .gallery2 {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: center;
}
.gallery-section .image {
  flex: 20%;
  overflow: hidden;
  cursor: pointer;
  max-width: 300px;
}
.gallery-section .gallery2 .image {
  flex: 33.33%;
  overflow: hidden;
  cursor: pointer;

}
@media screen and (max-width: 768px) {
  .gallery-section .gallery2 .image {
    flex: 50%;
  }
}
@media screen and (max-width: 540px) {
  .gallery-section .gallery2 .image {
    flex: 100%;
  }
}

.gallery-section a{
padding: 7px;
}

.gallery-section .image img{
  width: 100%;
  height: 100%;
  transition: 0.4s;

}
.gallery-section .image:hover img {
  cursor: cell;
  transform: scale(1.1);
}
/*
@media screen and (max-width: 768px) {
  .gallery-section .image {
    flex: 50%;
  }
}
*/
@media screen and (max-width: 580px) {
  .gallery-section .image {
    flex: 100%;
  }
}

@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
}

#space {
  text-align: center;
  margin-top: 200px;
  margin-bottom: 100px;
}


/* Verkkosivut muokkaukset*/

.container {
height: 30vh;
display: flex;
justify-content: center;
align-items: center;
}
.container2 {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}
.container p {
font-size: 3rem;
font-weight: bold;
letter-spacing: 0.1rem;
text-align: center;
overflow: hidden;
padding: 0.9rem;
font-family: 'Montserrat', sans-serif;
}
@media screen and (max-width: 900px) {
.container p {
  font-size: 1.5rem;
  }
}
.typed-text {
font-weight: normal;
color: #dd7732;
}
.cursor {
display: inline-block;
width: 3px;
background-color: #ccc;
margin-left: 0.1rem;
animation: blink 1s infinite;
}
.cursor.typing {
animation: none;
}
@keyframes blink {
0% { background-color: #ccc; }
49% { background-color: #ccc; }
50% { background-color: transparent; }
99% { background-color: transparent; }
100% { background-color: #ccc; }
}
#websites {
  background-color: black;
  height: 100%;
}
@media screen and (max-width: 1024px) {
#websites {
  padding: 40px 3px;
  }
}
#websitetext {
  color: white;
}
.contact1 {
  position: absolute;
  top: 75%;
  width: 100%;
  text-align: center;
  color: black;
  font-size: 15px;
  letter-spacing: 6px;
  text-transform: uppercase;
  animation: slideMe2 .5s ease-in;
}
@media screen and (max-width: 700px) {
.contact1 {
  top: 70%;
  }
}
#contact {
  background-color: red;
  color: #fff;
  padding: 15px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  }
  #contact:hover {
  opacity: .8;
  }
  @media screen and (max-width: 1024px) {
  #contact {
    font-size: 12px;
    }
  }
  /*
  #picture1 {
    position: absolute;
    top: 30%;
    width: 140%;
    text-align: center;
    animation: slideMe .5s ease-in;
  }
  */
  #slide {
    max-width: 700px;
      animation: slideMe5 .5s ease-in;
  }
  @media(max-width: 1300px) {
    #slide {
      width: 400px;
      height: auto;
    }
    #slide2 {
      width: 300px;
      height: auto;
    }
  }
  @media(max-width: 700px) {
    #slide {
      width: 280px;
      height: auto;
    }
    #slide2 {
      width: 150px;
      height: auto;
    }
    }
    /*
   #picture1 {
      width: 160%;
    }
    #picture2 {
      left: -5%;
    }
  }
  #picture2 {
    position: absolute;
    top: 35%;
    width: 60%;
    text-align: center;
    animation: slideMe .5s ease-in;
  }
  */

  #slide2 {
    max-width: 400px;
    animation: slideMe4 .5s ease-in;
  }
  #slide3 {
    animation: slideMe3 .5s ease-in;
  }
  /*
  @keyframes slideMe {
    0%{
      transform: skewX(53deg) translateX(-500px);
      opacity: 0;
    }

    100% {
      transform: skew(0deg);
      opacity: 1;
    }
  }
  */
  @keyframes slideMe2 {
    0%{
      transform:  translateY(500px);
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  /*@keyframes slideMe3 {
    0%{
      transform:  translateY(-500px);
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
*/

@keyframes slideMe5 {
  0%{
    transform:  translateX(500px);
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideMe4 {
  0%{
    transform:  translateX(-500px);
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* SCROLL EFFECT */

  #picture3 {
    transform: translateY(-50%);
    top: 50%;
    position: absolute;
    left: 500px;
  }
  #picture4 {
    transform: translateY(-50%);
    top: 50%;
    position: absolute;
    right: 350px;
  }

  @media(max-width: 1700px) {
    #picture3 {
      width: 600px;
      height: auto;
      left: 85px;
      top: 60%;
    }
    #picture4 {

      height: auto;
      right: 85px;
      top: 40%;

    }
    #silde {
      width: 300px;
      height: auto;
      right: 85px;
    }
  }
  @media(max-width: 700px) {
    #picture3 {
      left: 25px;
      top: 55%
    }
    #picture4 {
      right: -40px;
      top: 40%;
    }
  }
.container2 {
  color: white;
  font-size: 20px;
  font-family: 'Secular One', sans-serif;
}
.container2 a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 7px;
  border: 1px solid;
  animation: slide .5s ease-in, pulse 300ms 1s;
  display: inline-block
}
.container2 a:hover {
  transform: scale(1.1);
  display: inline-block
}
@keyframes slide {
  0%{
    transform:  translateY(500px);
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes pulse {
  from {
    transform: scale(1);
  }
  	to {
    		transform: scale(1.2);
   	}
}
#kysylisaa{
  margin-bottom: 50px;
}
@media screen and (max-width: 700px) {
.container2 {
  height: 3vh;
  font-size: 15px;
  }
}
.teksti {
  max-width: 1100px;
  margin: auto;
  font-family: 'Open Sans', sans-serif;
}
#fraasi {
  margin-top: 55px;
  text-decoration: underline;
}

/* Puun kuljetussivun muokkaukset */

.kulimg1 {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("img/puunlastaus.jpg");
  min-height: 400px;
}
.metsahommia {
  padding-top: 10px;
  max-width: 500px;
}
@media(max-width: 1200px) {
  .metsahommia {
    width: 100%;
    height: auto;
  }
}
#puutavarakuvat {
  margin-top: 100px;
  margin-bottom: 50px;
}

/* Matkailu kuljetussivun muokkaukset */

.matkimg1 {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("img/matkailu/paakuva.jpg");
  min-height: 400px;
}
#matkailu {
  padding-top: 60px;
  max-width: 500px;
}
@media(max-width: 1200px) {
  #matkailu {
    width: 100%;
    height: auto;
  }
}
#headertext {
  margin: 0;
  font-size: 15px;
}
@media screen and (max-width: 700px) {
  #headertext{
  font-size: 10px;
  }
}
#facefeed {
  width: 500px;
  height: 600px;
  margin-top: 70px;
}
@media screen and (max-width: 900px) {
  #facefeed {
    display: none;
  }
}
@media screen and (min-width: 900px) {
  #facefeedmobile {
    display: none;
  }
}
#facefeedmobile {
  width: 250px;
  height: 420px;
  margin-top: 50px;
}
