body,
#main,
html {
  min-height: 100%;
  height: 100%;
}

.text-img-repeater,
.text-img-repeater *,
.text-img-large,
.text-img-large *,
.tablewrap, 
.tablewrap * {
  box-sizing: border-box;
}

.flexible-content h1,
.flexible-content h2,
.flexible-content h3,
.flexible-content h4,
.flexible-content h5,
.flexible-content h6 {
  margin-bottom: 36px;
}

.flexible-content .text-center {
  text-align: center;
}

.flexible-content .content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.flexible-content .full-width img {
  margin-left: auto;
  margin-right: auto;
}

.flexible-content .container-small {
  max-width: 685px;
}

.flexible-content .sininappi {
  position: relative;
  bottom: auto;
  left: 0;
}

.flexible-content .tablepuolikas.left {
  padding-left: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.flexible-content .tablepuolikas .sininappi {
  margin: 0;
}

.text-img-repeater {
  display: flex;
  align-items: center;
}

.text-img-repeater .col,
.flexible-content .tablepuolikas {
  width: 50%;
}

.text-img-repeater .col-right {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  padding-left: 75px;
}

.text-img-repeater .col-left {
  align-self: stretch;
}

.text-img-repeater:nth-of-type(even) .col-left {
  order: 1;
}

.text-img-repeater:nth-of-type(even) .col-right {
  padding-left: 0;
  padding-right: 75px;
}

.text-img-repeater .button {
  margin: 0;
}

.flexible-content .text-img-repeater img,
.text-img-large .col-left img {
  object-fit: cover;
  width: 100%;
  max-width: unset;
  height: 100%;
}

.flexible-content .wrappi:after {
  background: #253f8e;
  content: '';
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0.7;
}

.flexible-content .wrappi .container {
  z-index: 1;
}

.three-cols {
  display: flex;
  justify-content: space-between;
}

.flexible-content .three-cols-heading {
  padding-left: 5%;
  margin-bottom: 58px;
}

.three-cols .col {
  width: 33.333%;
  padding: 0 5%;
}

.three-cols a {
  color: #333;
  text-decoration: underline;
}

.flexible-content .puhwrap {
  padding-top: 94px;
  padding-bottom: 94px;
}

.flexible-content .puhwrap:after {
  background-image: url('images/isopuhelin_uusi.png');
  height: 100%;
  top: 0;
  width: 240px;
}

.call-us-heading {
  margin-bottom: 40px;
}

.call-us-link {
  font-weight: 700;
  font-size: 25px;
  color: #fff;
  text-decoration: underline;
}

.flexible-content .form {
  background: #E7E7E7;
  padding: 78px 0;
}

.flexible-content .form p {
  max-width: 350px;
}

.flexible-content .form label span,
.flexible-content .form legend span {
  color: #333;
}

.flexible-content .editor img {
  margin: 45px 0 60px;
}

.flexible-content .tablewrap {
  display: flex;
}

.flexible-content .tablepuolikas {
  flex-shrink: 0;
}

.flexible-content .tablepuolikas * {
  max-width: 100%;
}

/* Blue theme colors */

.flexible-content .blue-theme {
  color: #fff;
  position: relative;
}

.blue-theme .text-img {
  padding-top: 30px;
}

.flexible-content .blue-theme .tablepuolikas.left {
  padding-right: 50px;
  padding-bottom: 30px;
}

.flexible-content .blue-theme .tablepuolikas.left:after {
  content: '';
  display: block;
  position: absolute;
  background: #253F8E;
  z-index: -1;
  right: 0;
  top: -30px;
  bottom: 0;
  left: -20%;
}

.flexible-content .blue-theme .sininappi {
  background: #E2116D;
}

.flexible-content .blue-theme .sininappi:after {
  border-color: transparent transparent #E2116D transparent;
}

.flexible-content .blue-theme .sininappi:hover {
  background: #ad044e;
}

.flexible-content .blue-theme .sininappi:hover:after {
  border-color: transparent transparent #ad044e transparent;
}

.text-img-large {
  display: flex;
  min-height: 500px;
}

.text-img-large .col {
  width: 50%;
  flex-shrink: 0;
  min-height: 500px;
}

.text-img-large .col-left img {
  width: 100%;
}

.text-img-large .col-right {
  padding: 1.5rem 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: #253f8e;
  color: #fff;
}

.text-img-large .sininappi {
  background: #e2116d;
}

.text-img-large.sininappi:after {
  border-color: transparent transparent rgb(226, 17, 109) transparent;
}

.text-img-large .sininappi:hover {
  background: #ad044e;
}

.text-img-large .sininappi:hover:after {
  border-color: transparent transparent #ad044e transparent;
}

.text-img-large .col-right-content {
  max-width: 600px;
}

.text-img-large:nth-of-type(even) .col-left {
  order: 1;
}

/* Section margins and paddings */
.flexible-content .spacing {
  padding-top: 65px;
  padding-bottom: 65px;
}

@media screen and (max-width: 1200px) {
  .flexible-content .puhwrap {
    padding-left: 20%;
  }

  .flexible-content .puhwrap:after {
    width: 200px;
  }

  .flexible-content .three-cols-heading {
    padding-left: 0;
  }

  .three-cols .col {
    width: 28.33%;
    padding: 0;
  }

  .flexible-content .tablepuolikas.left,
  .text-img-repeater .col-right,
  .text-img-large .col-right {
    padding-left: 60px;
  }

  .text-img-repeater:nth-of-type(even) .col-right,
  .text-img-large .col-right {
    padding-right: 60px;
  }

  .text-img-large .col-right-content {
    max-width: 100%;
  }
}

@media screen and (max-width: 999px) {
  .flexible-content .puhwrap:after {
    left: 2%;
  }

  .flexible-content .herobutton:after {
    border-width: 0px 45px 56px 0;
  }

  .flexible-content .tablepuolikas.left,
  .text-img-repeater .col-right {
    padding-left: 0;
  }

  .text-img-repeater .col-right {
    padding-top: 0;
    padding-bottom: 0;
  }

  .text-img-repeater,
  .flexible-content .tablewrap {
    flex-direction: column;
  }

  .text-img-repeater .col,
  .flexible-content .tablepuolikas {
    width: 100%;
  }

  .flexible-content .text-img-repeater img {
    object-fit: unset;
    width: auto;
    height: auto;
    max-width: 100%;
  }

  .flexible-content .spacing {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .text-img .tablepuolikas:first-child,
  .text-img-repeater .col:first-child {
    margin-bottom: 35px;
  }

  .text-img-repeater:nth-of-type(even) .col-left {
    order: 0;
  }

  .text-img-repeater+.text-img-repeater {
    margin-top: 80px;
  }

  .flexible-content .three-cols-heading {
    margin-bottom: 40px;
  }

  .text-img-repeater:nth-of-type(even) .col-right {
    padding-right: 0;
  }

  .flexible-content .editor img {
    margin: 40px 0;
  }

  .blue-theme .text-img {
    padding-top: 0;
  }

  .blue-theme .text-img .tablepuolikas:first-child {
    margin-bottom: 0;
  }

  .flexible-content .blue-theme .tablepuolikas.left {
    padding: 30px;
  }

  .flexible-content .blue-theme .tablepuolikas.left:after {
    top: -30px;
    right: -30px;
    left: 0;
  }

  .text-img-large .col-right {
    padding: 30px;
  }
}

@media screen and (max-width: 749px) {
  .flexible-content .puhwrap:after {
    width: 130px;
  }

  .three-cols,
  .text-img-large {
    flex-direction: column;
  }

  .three-cols .col,
  .text-img-large .col {
    width: 100%;
  }

  .three-cols .col:not(:last-child) {
    margin-bottom: 35px;
  }

  .text-img-large:nth-of-type(even) .col-left {
    order: 0;
  }

  .text-img-large .col {
    min-height: auto;
  }
}

@media screen and (max-width: 549px) {
  .flexible-content .puhwrap {
    padding-left: 0;
  }
}