/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 4 version
*/

/* Yleiset määrittelyt */

* {
  margin: 0 auto;
  padding: 0;
  max-width: 100%;
}

.body {
  overflow-x: hidden;
}

/* Gridin määrittely */

.grid-container {
  display: grid;

  /*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 4 version
*/

display: -ms-grid;
-webkit-transition: all .5s;
-o-transition: all .5s;
transition: all .5s;
}

@supports (display: grid) {
.grid {
  display: -ms-grid;
  display: grid;
}
}

::-moz-selection { /* Code for Firefox */
  color: white;
  background: black;
}

::selection {
  color: white;
  background: rgba(0, 0, 0, 1);
}

/* Yleiset fontti-määrittelyt */

h1, h2, h4 {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
}

p, ul, h3 {
  font-family: "Raleway", sans-serif;
}

p {
  font-weight: 400;
  font-size: 1.1em;
  line-height: 1.7em;
}

/* unvisited link */
a:link {
  color: #4236b1;
  text-decoration: none;
}

/* visited link */
a:visited {
  color: #4236b1;
  text-decoration: none;
}

/* mouse over link */
a:hover {
  color: #4236b1;
  text-decoration: underline
}

/* selected link */
a:active {
  color: #4236b1;
}

/* Header-logo */

.headerlogo {
  text-align: center;
  -ms-grid-column: 1;
  -ms-grid-column-span: 12;
  grid-column: 1  / span 12;
  -ms-grid-row: 1;
  grid-row: 1;
  margin-top: 2em;
  width: 6em;
}

/* Header-kuva */

.headerimage {
  width: 100%;
}


/* Footer-osio */

.footerlogo {
  -ms-grid-row: 4;
  grid-row: 4;
  -ms-grid-column: 3;
  -ms-grid-column-span: 8;
  grid-column: 3 / 11;
  -ms-grid-row-align: center;
      align-self: center;
  margin-top: 2em;
  width: 8em;
}

.contact {
  -ms-grid-row: 5;
  grid-row: 5;
  -ms-grid-column: 3;
  -ms-grid-column-span: 8;
  grid-column: 3 / 11;
}

.contact h4 {
  margin-bottom: 0.5em;
}

address {
  font-style: normal;
}

.contact-stripe {
  background-color: black;
  height: 6em;
  width: 100%;
  margin-top: 8em;
  text-align: center;
  padding-top: 2em;
}

.contact-stripe img {
  padding: 0 0.5em;
}

/* Tästä alkaa responsiiviset määrittelyt */

/* On screens that are 1920px wide or less, go from four columns to two columns */
@media screen and (max-width: 15000px) {
  .grid-container {
    max-width: 75em;
    grid-gap: 3em;
    -ms-grid-columns: 1fr;
    grid-template-columns: repeat(1, 1fr);
  }

  h1 {
    font-size: 10em;
    line-height: 1em;
  }

  h2 {
    font-size: 4em;
    line-height: 1em;
  }

  h3 {
    font-size: 1.5em;
    line-height: 1.5em;
    font-weight: 400;
  }

  h4 {
    font-size: 3em;
    line-height: 1em;
  }

  .headerimage {
    -ms-grid-column: 2;
    -ms-grid-column-span: 10;
    grid-column: 2 / 12;
    -ms-grid-row: 2;
    grid-row: 2;
    -ms-grid-column-align: stretch;
        justify-self: stretch;
  }

  .content {
    -ms-grid-column: 9;
    -ms-grid-column-span: 3;
    grid-column: 9 / 12;
    -ms-grid-row: 3;
    grid-row: 3;
    -ms-grid-row-align: start;
        align-self: start;
    margin-top: 3em;
  }


  .testimonial {
    width: 100%;
    text-align: center;
    margin: 2em 0em;
  }

  .testimonial h3 {
    font-style: italic;
    margin-top: -2em;
  }

  .left-column {
    -ms-grid-column: 2;
    -ms-grid-column-span: 3;
    grid-column: 2 / 5;
    -ms-grid-row: 3;
    grid-row: 3;
    -ms-grid-row-align: start;
        align-self: start;
    margin-top: 4em;
  }

  .project_information {
    padding-top: 3em;
  }

  .information {
    padding: 1em 0;
  }

  .content h2 {
    padding-bottom: 0.5em;
  }

  .content h3 {
    padding-bottom: 1.5em;
  }

  .content p {
    padding-bottom: 2em;
  }

  .content .headerimage {
    padding: 2em 0em;
  }
}

/* On screens that are 1200px wide or less, make the columns stack on top of each other instead of next to each other */
@media screen and (max-width: 1200px) {
  .grid-container {
    max-width: 100%;
    grid-gap: 3em;
    -ms-grid-columns: 1fr;
    grid-template-columns: repeat(1, 1fr);
  }
  h1 {
    font-size: 8em;
    line-height: 1em;
  }

  .headline {
    -ms-grid-column: 2;
    -ms-grid-column-span: 4;
    grid-column: 2 / 6;
    -ms-grid-row: 3;
    -ms-grid-row-span: 2;
    grid-row: 3 / 5;
  }
  .headerimage {
    -ms-grid-column: 2;
    -ms-grid-column-span: 10;
    grid-column: 2 / 12;
    -ms-grid-row: 2;
    grid-row: 2;
    -ms-grid-column-align: stretch;
        justify-self: stretch;
  }

  .content {
    -ms-grid-column: 8;
    -ms-grid-column-span: 4;
    grid-column: 8 / 12;
    -ms-grid-row: 3;
    grid-row: 3;
  }

}

/* On screens that are 960px wide or less, make the columns stack on top of each other instead of next to each other */
@media screen and (max-width: 960px) {
  .grid-container {
    max-width: 100%;
    grid-gap: 3em;
    -ms-grid-columns: 1fr;
    grid-template-columns: repeat(1, 1fr);
  }
  h1 {
    font-size: 6em;
    line-height: 1em;
  }

  h2 {
    font-size: 3em;
    line-height: 1em;
  }

  h4 {
    font-size: 2em;
    line-height: 1em;
  }

  .headline {
    -ms-grid-column: 2;
    -ms-grid-column-span: 3;
    grid-column: 2 / 5;
    -ms-grid-row: 3;
    -ms-grid-row-span: 2;
    grid-row: 3 / 5;
  }
  .headerimage {
    -ms-grid-column: 2;
    -ms-grid-column-span: 10;
    grid-column: 2 / 12;
    -ms-grid-row: 2;
    grid-row: 2;
    -ms-grid-column-align: stretch;
        justify-self: stretch;
  }

  .content {
    -ms-grid-column: 6;
    -ms-grid-column-span: 6;
    grid-column: 6 / 12;
    -ms-grid-row: 3;
    grid-row: 3;
  }

  .footerlogo {
    -ms-grid-row: 5;
    grid-row: 5;
    -ms-grid-column: 1;
    -ms-grid-column-span: 11;
    grid-column: 1 / 12;
    -ms-grid-row-align: center;
        align-self: center;
    margin-top: 2em;
    margin-bottom: -2em;
  }

  .contact {
    -ms-grid-row: 7;
    grid-row: 7;
    -ms-grid-column: 1;
    -ms-grid-column-span: 11;
    grid-column: 1 / 12;
    -ms-grid-row-align: center;
        align-self: center;
  }
}

/* On screens that are 640px wide or less, make the columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
  .grid-container {
    max-width: 100%;
    -ms-grid-columns: 1fr;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 1em;
    row-gap: 3em;
  }

  h1 {
    font-size: 4em;
    line-height: 1em;
  }

  h2 {
    font-size: 2em;
    line-height: 1em;
    margin-bottom: 1em;
  }

  h4 {
    font-size: 1.5em;
    line-height: 1em;
  }

  .headline {
    -ms-grid-column: 2;
    -ms-grid-column-span: 9;
    grid-column: 2 / 11;
    -ms-grid-row: 2;
    -ms-grid-row-span: 4;
    grid-row: 2 / 6;
  }

  .headerimage {
    -ms-grid-column:  1;
    -ms-grid-column-span:  12;
    grid-column:  1 / span 12;
    -ms-grid-row: 2;
    grid-row: 2;
  }

  .content {
    -ms-grid-column: 2;
    -ms-grid-column-span: 9;
    grid-column: 2 / 11;
    -ms-grid-row: 3;
    grid-row: 3;
    margin-top: 0;
    margin-bottom: 0em;
  }

  .left-column {
    -ms-grid-column: 1;
    -ms-grid-column-span: 11;
    grid-column: 1 / 12;
    -ms-grid-row: 4;
    grid-row: 4;
    margin-top: 0em;
  }

  .testimonial h3 {
    margin-top: 0em;
  }
  
}