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

span.red {
 color: red;
}
p {
  font-family: 'Inter', sans-serif;
  line-height: 1.5em;
  color: #222;
}

.main-content p {
  font-size: 1rem;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Outfit', serif;
  text-align: left;
  color: #000;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

/* NAVBAR */

#navbar-top {
  background-color: #5f4779 !important;
}

#navbar-main {
  background-color: #fff !important;
  padding: 1.2rem 1rem;
}

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

.navbar-dark .navbar-toggler-icon {
  background-image: url(../menu.svg);
}

.navbar-dark .navbar-toggler-icon:hover {
  background-image: url(../menu.svg);
}

.navbar-brand img {
  height: 40px;
  width: initial;
}

.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;
}

#superfish-main a, #superfish-main-accordion a {
    color: #FE000C !important;
    font-family: "Outfit", serif !important;
}

/* 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;
}

.map {
  display: flex;
  justify-content: center;
  align-content: center;
  background-image: url(../img/map.jpg);
  background-position: center;
  background-size: cover;
  height: 70vh;
}

.map img {
  width: 2rem;
}

/* Responsive */

@media all and (min-width: 576px) {
  .card {
    width: 48.5% !important;
    margin-left: 3% !important;
  }
  .card:nth-child(3) {
    width: 100% !important;
  }
  .card:nth-child(odd) {
    margin-left: 0 !important;
  }
  .card-text {
    font-size: 1em !important;
  }
  .contact-column {
    width: 50%;
    text-align: left;
  }
}

@media all and (min-width: 768px) {
  .contact-column {
    width: 33.33%;
  }
  .asunnot {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
}

@media all and (min-width: 992px) {
  .hinnasto-container {
    overflow-x: hidden !important;
  }
  .hero {
    height: 60vh !important;
  }
  .map {
    height: 40vh;
  }
  .contact-btn {
    width: auto !important;
  }
  .language-switcher-language-url .nav-link {
    padding-left: 2rem;
  }
  .card {
    width: 25% !important;
    margin: 0 2.4228em !important;
  }
  .card:nth-child(3) {
    width: 25% !important;
  }
  .card:nth-child(3) {
    margin: 0 2.4228em !important;
  }
  .card:nth-child(odd) {
    margin: 0 2.4228em !important;
  }
  .language-link {
    font-size: 0.8em;
    margin-top: 0;
  }
  .hero h2 {
    font-size: 3rem !important;
  }
  .hero p {
    margin-right: 47% !important;
  }
}

@media all and (min-width: 1200px) {
  .hero p {
    margin-right: 0 !important;
  }
}

/* FOOTER */

.site-footer .block {
  text-align: center;
}

.site-footer {
  background: #fff !important;
}

.site-footer__bottom {
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.857em;
  border: 0 !important;
  opacity: 0.5;
}

.site-footer__top p {
  margin-top: 0;
}

.site-footer__top h2 {
  color: #452060;
  font-family: 'Outfit', serif;
  text-align: center;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 0.9em;
  border-bottom: none !important;
  text-transform: none;
}

.site-footer__top a {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
}

.site-footer__top a:hover {
  color: #452060;
  text-decoration: underline;
}

.site-footer__bottom p {
  margin-top: 20px;
  text-align: center;
}

.site-footer .content a,
.site-footer .content a.is-active {
  color: #FE000C;
}

.site-footer .content a:hover,
.site-footer .content a:focus {
  color: #452060;
}

.site-footer img {
  width: 40%;
  border-radius: 5px;
}
.site-footer .block {
    margin: 20px 35%;
    border: none !important;
}
.site-footer .region {
    margin-left: 0;
    margin-right: 0;
}
@media (min-width: 851px){
  .site-footer__top .region {
      width: 50%;
      padding-left: 0;
  }
}
@media (min-width: 560px){
  .site-footer__top .region {
      float: left;
      position: relative;
      width: 50%;
      padding: 0;
  }
}
/* BUTTONS */

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

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

.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;
}

.contact-btn {
  background-color: #64c6e2;
  background: #64c6e2;
  border: 2px #64c6e2 solid;
  color: #fff;
  border-radius: 4px;
  padding: 0.8em 1.6em;
  font-size: 12px;
  display: inline-block;
  transition: all 0.1s ease;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.contact-btn:hover {
  text-decoration: none;
  color: #64c6e2;
  background-color: transparent;
}

/* FRONT PAGE */

#block-kaikkiuudisrakentamisestalumenpudotuksiin {
  width: 100%;
}

#block-kaikkiuudisrakentamisestalumenpudotuksiin h2 {
  text-align: right;
  margin: 0;
}

.hero {
  background-image: url(../img/hero.jpg);
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  height: 40vh;
}

.hero h2 {
  color: #fff;
  text-align: left;
  font-family: 'Outfit', serif;
  font-size: 2rem;
}

.hero p {
  margin-right: 20%;
}

.region-hero {
  margin: 0;
}

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

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

.asunnot {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 1em 1em;
}

.asunto {
  background: #452060;
  text-align: center;
  color: #fffafb;
  padding: 1em;
  border-radius: 0.3em;
}

.asunto a {
  background: #fffafb;
  padding: 1em 1.5em;
  display: block;
  font-size: 0.8em;
  font-weight: bold;
  color: #222;
  transition: all 0.2s cubic-bezier(0, 0.50, 0.25, 1);
}

.asunto a:hover {
  background: #FE000C;
  text-decoration: none;
  color: #fffafb;
}

.asunto p {
  color: inherit;
}

.asunto .title {
  color: inherit;
  font-weight: bold;
  font-size: 1.2em;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1%;
  margin-top: 5%;
}

.card {
  width: 100%;
  margin-left: 0;
  margin-bottom: 3%;
  border: none;
  transition: transform 0.1s;
  background-color: transparent !important;
  border: 2px solid #eb554e;
  border-radius: 0;
  padding: 2em;
}

.card p {
  margin: 0;
}

/* .card:hover {
    transform: scale(1.02);
} */

.card:nth-child(odd) {
  margin-left: 0;
}

.card-img-top {
  width: initial;
  padding: 1.8rem;
  height: 70%;
}

.card-body {
  text-align: center;
  padding: 0;
}

.card-body .block {
  width: 100%;
}

.card-text {
  font-family: 'Inter', sans-serif;
  color: #000;
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 1rem;
}

.card a {
  text-align: center;
  text-decoration: none;
  width: 100%;
  height: 100%;
  position: absolute;
}

.region-cards-front {
  width: 100%;
}

#block-cardsfront {
  width: 100%;
  margin-left: 15px;
  margin-right: -15px;
  background: #fff;
  position: relative;
}

/* SECONDARY HERO */

.hero-title {
  position: relative;
  overflow: hidden;
}

.hero-title p {
  margin-bottom: 0;
}

.hero-title .region-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-title h1 {
  color: #222;
  background-color: rgba(255,255,255,0.9);
  padding: 1.5rem 2.5rem;
}

.region-hero2 {
  margin: 0;
}

.region-hero2 .block {
  width: 100%;
  overflow: hidden;
}

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

/* CONTENT */

.region-title {
  margin: 0;
}

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

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

#AAA {
  width: 50%;
  max-width: 300px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 3%;
}

/* 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;
}

.site-footer__top .content li a {
  display: block;
  border-bottom: none;
  line-height: 1.5;
  padding: 0;
  text-indent: 0;
  font-size: 1em;
}

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;
}

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

.custom-control-input {
  z-index: 0;
  opacity: 1;
}

.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%;
}

.site-footer__top .content li a:hover {
  background-color: transparent;
  text-decoration: underline;
  color: #ffb0b0;
}

/* Tables */

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

.hinnasto td {
  border: none;
  padding: 1em 0.5em;
  white-space: nowrap;
}

.hinnasto tr {
  border: none;
  background: none;
  border-bottom: 1px solid #222;
}

.hinnasto tr {
  border: none;
  background: none;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.hinnasto tr th {
  background: #FE000C;
  border: none;
  padding: 1em 0.5em;
  white-space: nowrap;
}

.hinnasto-container {
  overflow-x: scroll;
}