@font-face {
    font-family: headerFont;
    src: url(../fonts/GothamNarrow-bold.otf);
    src: url(../fonts/DIN_Bold.ttf);

}

@font-face {
    font-family: bodyFont;
    src: url(../fonts/Assistant-Regular.otf);
    src: url(../fonts/Assistant-Regular.ttf);

}

html {
  font-size: 62.5%
}
body {
  position: relative;
  font-family: bodyFont;
  font-size: 18px;
  font-size: 1.8rem;
}

.navbar-toggler {align-self: flex-end;}
.alert-success {position: fixed; top: 0; padding: 30px; width: 100%; z-index: 10000; text-align: center}

.intro {
  background: #1c18eb url(../images/bg_top.jpg) no-repeat 50% 50%;
  background-size: cover;
  min-height: 800px}

#services {margin-bottom: 125px}
#services .col-4:hover .normal, .hover {display: none}
#services .col-4:hover .hover {display: block}

#references {
  min-height: 500px;
  background: #1c18eb url(../images/pekkola-kuva2.jpg) no-repeat 50% 50%;
  background-size: 100%;
  color: #FFF
}

/*#references h2 {margin-top: 30%}*/

.carousel {

  min-height: 200px;
}

#tuukkala {
  background: #efefef;
  padding: 25px;
  margin: 20px auto;
}

#contactinfo {
  min-height: 500px;
  background: url(../images/pekkola-kuva3.jpg) no-repeat 50% 0;
  background-size: 100%;
  color: #FFF;
}
#contactinfo a:link {color: #FFF;}



h1 {
  padding-top: 250px;
  font-family: headerFont;
  text-align: center;
  color: #FFF;
  font-size: 50px;
  font-size: 5rem;
}
h1 span {
  color: #dbfb37;
}


h2 {

  clear: both;
  text-align: center;
  font-family: headerFont;
  font-size: 40px;
  font-size: 4rem;
  margin: 100px auto;
}

h2:after {
    content: "";
    position: absolute;
    width: 33%;
    height: 1px;
    bottom: 75px;
    left: 33%;
    border-bottom: 4px solid #495563;

}

#references h2:after,
#contactinfo h2:after {
  border-color: #dbfb37;
}


h3 {
  font-family: headerFont;
  font-size: 2rem;
  margin-bottom: 20px
}

p {line-height: 2rem; margin-bottom: 1rem}

form {margin-bottom: 50px}
.form-group {background: #f1f2f3; padding: 5px;}
.form-control {background: #f1f2f3; border: none; font-size: 1.8rem}
.btn {font-size: 2rem; background: #e8f609; color: #495563; border: none; padding: 15px}

.bg-faded {background: #FFF;}
.bg-faded img {height: 50px}

.nav-item {margin-right: 10px}

.lang-selection li {list-style: none; float: right; margin-left: 10px}
.lang.active {font-weight: bold; text-decoration: none}
.lang:hover {font-weight: bold; text-decoration: none}

@media (max-width: 960px) {
  .intro {min-height: 300px}
  h1 {
    padding-top: 100px;
    font-size: 36px;
    font-size: 3.6rem;

  }
  h1 span {display: block}
  h2 {
    font-size: 30px;
    font-size: 3rem;
  }
  #services .col-4 p {font-size: 12px; line-height: 15px}
  #references {min-height: 200px}
  #references h2 {margin-top: 30px;}
  #contactinfo {min-height: 600px;
    background-size: cover;
  }
  #contactinfo h3 {margin: 15px auto 10px auto}
}
