/**
 * @file
 * Subtheme specific CSS.
 */


html {
  scroll-behavior: smooth;
}

p {
  font-family: "Source Sans Pro", sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Source Sans Pro", serif;
  text-align: center;
  color: #174b0b;
  font-weight: bold;
}

h2 {
  margin-bottom: 2rem;
}

.btn-border,
.btn-fill {
  font-family: "Source Sans Pro", serif;
}

.section {
  padding-bottom: 2rem;
  padding-top: 4rem !important;
}

/* NAVBAR */

#navbar-main {
  background-color: #f7f7f7 !important;
}

#navbar-top {
  background-color: #2bc463 !important;
}

.navbar-toggler,
.navbar-toggler:focus {
  border: none;
  outline: none;
}

.navbar-dark .navbar-toggler-icon {
  background-image: url(../menu.svg);
  opacity: 1;
  transition: transform ease-in-out 0.5s;
}

.navbar-dark .navbar-toggler-icon:hover {
  background-image: url(../menu.svg);
  opacity: 0.9;
  transform: rotateX(180deg);
}

.navbar-brand {
  display: flex;
}

.navbar-brand img {
  height: 25px;
  width: auto;
}

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 1);
  font-size: 1em;
}

.navbar-dark .nav-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 1) !important;
}

.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.7) !important;
}

#navbar-main .header-title h3 {
  margin: 0;
  color: #0b8c3a;
  font-size: 1.5em;
}

#navbar-main .header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Separator for languages */

/* .language-switcher-language-url .en.nav-link {
    border-right: solid 1px #fff;
}

.language-switcher-language-url .links-inline {
    line-height: 1em;
} */

/* Hide active language */

.language-switcher-language-url .is-active {
  display: none;
}

.language-link {
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1em;
  margin-top: 1em;
  display: flex;
}

.language-link:hover {
  color: #fff;
}

.language-switcher-language-url .nav-link {
  padding: 0;
}

#block-languageswitcher {
  float: left;
}

.language-link::before {
  content: "";
  background-image: url(/img/globe.svg);
}

.language-link::before {
  content: "";
  background-image: url(../img/globe.svg);
  background-size: contain;
  background-repeat: no-repeat;
  height: 1em;
  width: 1em;
  margin: 0.25em 0.5em;
  margin-left: 0;
}

/* Hide contextual links */

.block-language .contextual {
  display: none;
}

.menu--tools .contextual,
.menu--account .contextual {
  display: none;
}

/* Contact page */

.contact-column {
  width: 100%;
  float: left;
  text-align: left;
}

.contact-map {
  width: 100%;
  height: 400px;
}

/* BUTTONS */

.webform-button--submit.btn-border {
  width: 100%;
}

.header-contact p {
  margin: 0;
}

.btn-border {
  background-color: transparent;
  background: transparent;
  border: 2px #2bc463 solid;
  color: #2bc463;
  border-radius: 4px;
  padding: 1em;
  text-transform: uppercase;
  font-size: 10px;
  display: inline-block;
  transition: all 0.1s ease;
}

.btn-contact {
  border: 2px #0b8c3a solid;
  color: #0b8c3a;
}

.btn-border:hover {
  text-decoration: none;
  color: #fff;
  background-color: #2bc463;
}

.btn-contact:hover {
  background-color: #0b8c3a;
}

.btn-fill {
  background-color: #2bc463;
  background: #2bc463;
  border: 2px #2bc463 solid;
  color: #fff;
  border-radius: 4px;
  padding: 0.8em 1.6em;
  font-size: 12px;
  text-transform: uppercase;
  display: inline-block;
  transition: all 0.1s ease;
  width: 100%;
  text-align: center;
}

.btn-fill:hover {
  text-decoration: none;
  color: #2bc463;
  background-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  border-color: #2bc463;
  background-color: #2bc463;
}

.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: #2bc463;
  border-color: #2bc463;
}

.btn-primary.focus,
.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-round {
  display: inline-flex;
  text-align: center;
  font-size: 1em;
  color: #00b5ff;
  background-color: transparent;
  border: 2px #00b5ff solid;
  padding: 10px;
  padding-left: 30px;
  padding-right: 30px;
  border-radius: 30px;
  margin-bottom: 3rem;
  transition: color 0.1s, background-color 0.1s;
}

.btn-round:hover {
  color: #fff;
  background-color: #00b5ff;
  border: 2px #00b5ff solid;
}

.region-contact-btn p {
  margin: 0;
}

/* FRONT PAGE */

.hero {
  height: auto;
  margin: 1em;
  background-image: url(../img/hero.jpg);
  background-size: cover;
  background-position: center;
}

.hero-text {
  padding: 10em 1em;
  background-color: rgba(255, 255, 255, 0.7);
  color: #000;
}

.hero-text h4 {
  text-align: left;
}

.hero-text p:last-child {
  margin-bottom: 0;
}

.hero-text-container {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.title_with_background {
  color: #fff;
  margin: 3rem 0;
  background-color: #004a68;
  text-align: center;
  padding: 5rem 1rem;
  background-size: cover;
  background-position: center;
}

.title_with_background--front {
  background-image: url(../img/front-title-bg.jpg);
}

.section-1,
.section-4,
.gallery {
  background: #f8f8f8;
  padding-top: 1rem;
}

.section-2 {
  background: #fff;
  padding-top: 1rem;
}

.section-3 {
  background: url(../img/esittely.jpg);
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: flex-end;
}

.section-3 h4 {
  color: white;
}

.section-5 section {
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.section-5 .container-fluid {
  width: 100%;
}

.section-5 label {
  font-family: "Source Sans Pro", serif;
  color: #174b0b;
}

.circles {
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 2rem;
}

.circle {
  border-radius: 50%;
  width: 80vw;
  height: 80vw;
  background: #fff;
  margin-bottom: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle-top {
  height: 60%;
  padding-top: 5rem;
  padding-bottom: 0.5rem;
}

.circle-bottom {
  width: 80%;
  padding-top: 0.5rem;
}

.circle-img {
  border-radius: 50%;
  width: 50%;
}

.cards {
  display: flex;
  flex-wrap: wrap;
}

.card {
  width: 100%;
  margin-left: 0;
  margin-bottom: 1rem;
  border: none;
  border-radius: 0;
  background-color: #fff;
  -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.08);
  -moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.08);
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.08);
  border: 2px solid #222;
}

.card h5 {
  text-align: left;
}

.card p {
  padding: 0;
  margin: 0;
}

.card-bottom {
  padding: 1rem;
}

.product {
  margin-bottom: 3rem;
}

.product a {
  margin-top: 0.5em;
}

.products {
  font-family: "Source Sans Pro", serif;
}

#block-cardsfront,
#block-etusivunkuvaus2,
#block-etusivu3,
#block-etusivu4 {
  width: 100%;
  text-align: center;
}

.content-card {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2em;
  margin-bottom: 5rem;
  box-shadow: 0 0 20px rgb(0, 0, 0, 0.03);
}

.content-card h2 {
  font-size: 1.5rem;
}

.content-card__image p {
  margin: 0;
}

.content-card__image {
  flex: 2;
}

.content-card img {
  width: 100%;
  height: auto;
}

.content-card__text {
  padding-right: 2rem;
  flex: 3;
  margin-bottom: 2rem;
}

.content-card.left-image .content-card__text {
  padding-right: 0;
  padding-left: 0;
  margin-bottom: 0;
  margin-top: 2rem;
}

.content-card__text p:last-child {
  margin-bottom: 0;
}

/* SECONDARY HERO */

.region-hero {
  margin: 0;
}

.region-hero img {
  width: 100%;
  height: auto;
}

/* CONTENT */

.region-title {
  margin: 0;
}

.main-content {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

img {
  width: 100%;
  height: auto;
}

.gallery .node__content {
  margin: 0;
}

.gallery .field--type-image img {
  margin: 0;
}

.gallery .field--type-image {
  width: 100%;
}

.gallery {
  padding-bottom: 0;
}

/* CONTENT EDITOR */

button.link {
  margin: 0;
  padding: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-size: 1em;
}

.vertical-tabs {
  border: none;
}

.vertical-tabs__menu {
  border: none;
}

li.vertical-tabs__menu-item.first {
  border-radius: 5px 0 0 0;
  border-top: 1px solid #d1d1d1;
}

li.vertical-tabs__menu-item.last {
  border-radius: 0 0 0 5px;
}

.vertical-tabs__menu-item {
  background: #f8f8f8;
  border-width: 0 1px 1px 1px;
  border-style: solid;
  border-color: #d1d1d1;
}

.vertical-tabs__menu-item a:hover {
  outline: none;
}

.vertical-tabs__menu-item.is-selected {
  border-right: 5px solid #d1d1d1;
  background-color: transparent;
}

.vertical-tabs__menu-item a {
  color: #222;
}

.vertical-tabs__menu-item a:hover {
  text-decoration: none;
}

.vertical-tabs__menu-item-title {
  text-decoration: none !important;
}

.vertical-tabs__panes {
  border-top: 1px solid #d1d1d1;
}
label.js-form-item.js-form-type-checkbox.checkbox.custom-control.custom-switch {
  padding: 0;
}

.form-required:after {
  width: 7px;
  height: 7px;
  background-size: 7px 7px;
}
.form-required:after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0.3em;
  content: "";
  vertical-align: super;
  background-image: url(../img/required.svg);
  background-repeat: no-repeat;
  background-size: 6px 6px;
}

.custom-control-input:checked ~ .custom-control-label::before {
  color: #fff;
  background-color: #00b5ff;
  border: 3px solid #dee2e6;
}

.dropbutton a:hover {
  text-decoration: none;
}

.dropbutton-widget .dropbutton-toggle button {
  border-left: 1px solid #dee2e6;
}

.dropbutton-widget {
  border: 1px solid #dee2e6 !important;
}

.dropbutton-widget:hover {
  border: 1px solid #ccc !important;
}

.dropbutton-multiple .dropbutton {
  border-right: none;
}

.js .dropbutton .secondary-action {
  border-top-color: #ccc;
}

a.tabledrag-handle .handle {
  width: 100%;
  height: 100%;
}

/* Tables */

.draggable a.tabledrag-handle {
  margin-right: 0.6em;
}

/* Responsive */

@media all and (min-width: 576px) {
  .contact-column {
    width: 50%;
    text-align: left;
  }
  .content-card h2 {
    font-size: 1.7rem !important;
  }
}

@media all and (min-width: 768px) {
  .contact-column {
    width: 33.33%;
  }
  .hero {
    margin-bottom: 5rem;
  }
  .navbar-brand img {
    height: 40px;
    width: auto;
  }
  #navbar-main .header-title h3 {
    margin: 0;
    color: #0b8c3a;
    font-size: 2em;
  }

  .btn-border {
    padding: 0.8em 1.6em;
    font-size: 12px;
  }

  .hero-text-container {
    width: 30%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .hero-text {
    padding: 3em;
    border-radius: 4px;
  }
  .btn-fill {
    width: auto;
  }

  .webform-button--submit.btn-border {
    width: auto;
  }

  .hero {
    margin: 2em;
    height: calc(100vh - 66px - 4em);
  }

  .circle {
    width: 25vw;
    height: 25vw;
    margin-right: 1rem;
  }

  .circle:last-child {
    margin-right: 0;
  }

  .circle-top {
    padding-top: 2rem;
  }

  .circle-bottom {
    font-size: 0.8rem;
  }

  .product {
    width: 40%;
  }

  .product-container {
    display: flex;
    justify-content: center;
  }
  .section-5 .container-fluid {
    width: 80%;
  }
  .card {
    width: 48.5%;
    margin-bottom: 3%;
  }
  .card:nth-child(2n) {
    margin-right: 3%;
  }
}

@media all and (min-width: 992px) {
  .language-switcher-language-url .nav-link {
    padding-left: 2rem;
  }
  .language-link {
    font-size: 0.8em;
    margin-top: 0;
  }
  .content-card__text {
    margin-bottom: 0 !important;
  }
  .content-card.left-image .content-card__text {
    padding-left: 2rem !important;
    margin-top: 0 !important;
  }
  .content-card h2 {
    font-size: 2rem !important;
  }
  .section-1 .container-fluid {
    max-width: 800px;
  }
  .product {
    width: 35%;
  }
  .section-3 {
    height: 600px;
  }
  .card {
    width: 31.33%;
  }
  .card:nth-child(2n) {
    margin-right: 0;
  }
  .card:nth-child(3n) {
    margin-left: 3%;
    margin-right: 3%;
  }
  .section-5 .container-fluid {
    width: 50%;
  }
}

@media all and (min-width: 1200px) {
  .circle {
    width: 20vw;
    height: 20vw;
    margin-right: 4rem;
  }

  .circle:last-child {
    margin-right: 0;
  }

  .circle-top {
    padding-top: 3rem;
  }

  .circle-bottom {
    font-size: 0.9rem;
  }
  .product {
    width: 25%;
  }

  .section-4 .container-fluid {
    width: 70%;
  }
}

@media all and (min-width: 1400px) {
  .section-4 .container-fluid {
    width: 80%;
  }

  .section-5 .container-fluid {
    width: 40%;
  }
}

@media all and (min-width: 1900px) {
  .section-4 .container-fluid {
    width: 60%;
  }

  .section-5 .container-fluid {
    width: 30%;
  }
}
