body {
  font-family: Merriweather, serif;
  color: #333;
  font-size: 14px;
  line-height: 160%;
}

h1 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: Merriweather, serif;
  font-size: 38px;
  line-height: 44px;
  font-weight: 300;
}

h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: Merriweather, serif;
  font-size: 24px;
  line-height: 36px;
  font-weight: 400;
}

h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 32px;
  font-weight: 300;
}

.container {
  max-width: 1050px;
  margin-right: auto;
  margin-left: auto;
}

.container.mainhero {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  padding: 40px 30px 120px;
  opacity: 1;
  color: #fff;
}

.container.mainhero.koulutukset {
  display: block;
}

.container.mainhero.ota-yhteytta {
  display: block;
}

.brand {
  display: block;
}

.herowrapper {
  height: 400px;
  margin-bottom: 50px;
  background-image: url('../images/Aalto-tausta.jpg');
  background-position: 0px 0px;
  background-size: cover;
}

.herowrapper.koulutukset {
  height: 150px;
}

.mainhero__text {
  max-width: 760px;
}

.navbar {
  background-color: #fff;
}

.logo {
  max-width: 280px;
  padding: 15px 10px;
}

.mainhero__h2 {
  padding-left: 20px;
  border-left: 4px solid #6eafff;
  font-size: 22px;
  font-weight: 300;
}

.mainhero__image {
  position: relative;
  right: 0px;
  display: block;
  max-width: 320px;
  margin-right: 40px;
  margin-left: 40px;
  -webkit-align-self: flex-start;
  -ms-flex-item-align: start;
  align-self: flex-start;
  -webkit-box-ordinal-group: 1;
  -webkit-order: 0;
  -ms-flex-order: 0;
  order: 0;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  border-style: solid;
  border-width: 8px;
  border-color: #fff;
  border-radius: 12px;
  box-shadow: 1px 1px 40px 0 #0f3870;
}

.nav-menu {
  margin-top: 15px;
  margin-right: 30px;
}

.nav-link {
  white-space: normal;
}

.text--basic {
  max-width: 700px;
  margin-top: 20px;
  margin-right: 3vw;
  margin-left: 3vw;
  font-size: 16px;
  line-height: 180%;
}

.banner__koulutus {
  display: inline-block;
  max-width: 800px;
  margin: 60px 10vw 50px 3vw;
  padding: 30px 50px;
  border-radius: 100px;
  background-image: url('../images/Aalto-tausta.jpg');
  background-position: 0px 0px;
  background-size: cover;
}

.link {
  color: #fff;
  font-weight: 300;
  text-decoration: none;
}

.bold-text {
  font-size: 22px;
  font-weight: 300;
}

.heading {
  text-align: center;
}

.tutustumisaika {
  position: static;
  display: inline-block;
  margin-top: 16px;
  margin-left: 24px;
  padding: 10px;
  border: 2px solid #000;
  border-radius: 12px;
  font-size: 17px;
  -o-object-fit: fill;
  object-fit: fill;
}

.tutustumisaika.positive {
  border-color: #c0ddff;
  background-color: rgba(200, 224, 255, 0.9);
  box-shadow: 1px 1px 5px 0 #17509e;
  color: #28466f;
}

.tutustumisaika.negative {
  position: static;

}

.footer__text {
  margin-top: 20px;
  padding: 50px 30px 60px;
  border-style: solid;
  border-width: 2px 0px 0px;
  border-color: rgba(0, 0, 0, 0.15) #000 #000;
  color: #707070;
  text-align: center;
  text-transform: none;
}


[data-nav-menu-open] { background-color: #fff; box-shadow: 0 0 14px rgba(0,0,0,0.3);}

@media screen and (max-width: 991px) {
  .herowrapper {
    margin-bottom: 60px;
  }
  .mainhero__image {
    max-width: 280px;
  }
  .tutustumisaika.positive {
    display: inline-block;
    padding-top: 8px;
    padding-right: 15px;
    padding-left: 15px;
    border-color: #fff;
    background-color: #fff;
    color: #235dac;
    line-height: 160%;
  }
  .tutustumisaika.negative {
    display: none;
    border-color: #ddd090;
    background-color: #ec7825;
  }
  .footer__text {
    padding: 35px 0px 35px 30px;
  }
}

@media screen and (max-width: 767px) {
  .container.mainhero {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .herowrapper {
    height: auto;
  }
  .mainhero__image {
    margin-top: 21px;
  }
}

@media screen and (max-width: 479px) {
  .mainhero__text {
    margin-top: -19px;
  }
  .mainhero__h2 {
    font-size: 18px;
  }
  .mainhero__image {
    max-width: 100%;
    margin-left: 0px;
  }
  .tutustumisaika.positive {
    margin-left: 0px;
  }
  .heading-2 {
    font-size: 32px;
  }
}