@charset "UTF-8";
/* 
    the stylesheet of seitsemanveljesta.net
    composed & written by sebastian 
*/
/* dependencies */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap");
/* variables */
/* mixins */
/* animations */
@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}
/* STYLESHEET */
html {
  scroll-behavior: smooth;
  overflow-y: visible;
}

/* typography */
.sr-only {
  color: #10232F;
  background: #fff;
  font-size: 16px;
}

body {
  font-family: "Roboto", sans-serif;
  color: #10232F;
  line-height: 150%;
  letter-spacing: 0.05em;
  background: #fff;
}
@media (min-width: 900px) {
  body {
    background: #FAF6E7;
  }
}
body.modal-open {
  overflow-y: hidden !important;
}

.index {
  color: #3D7B47;
}

p {
  line-height: 180%;
  widows: 5;
  orphans: 5;
  hanging-punctuation: first last;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}
@media (max-width: 575px) {
  p {
    font-size: 13px;
  }
}
#infoOverlay p {
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}
.index p {
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}
p.lead {
  font-size: 20px;
  text-align: center;
  margin: 0 auto 40px auto;
  width: 100%;
  max-width: 470px;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}
@media (max-width: 575px) {
  p.lead {
    font-size: 16px;
  }
}
.green p.lead {
  color: #3D7B47;
}
.grey p.lead {
  color: #8D5B4F;
}
.red p.lead {
  color: #8D5B4F;
}
.blue p.lead {
  color: #314586;
}
p.lead-2 {
  color: #10232F;
  max-width: 600px;
  margin: 30px auto 40px auto;
}
p.narrow {
  width: 70%;
  font-size: 85%;
  margin: 0 auto 50px auto;
  text-align: center;
}
.row.veljekset p {
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}
p.download {
  padding-bottom: 10px;
}
p.caption {
  text-align: center;
  color: #10232F;
  background-color: #fff;
  font-size: 80%;
  padding: 0 10px 10px 10px;
  margin: 0;
}

mark {
  background-color: #E3CA66;
}

.solid {
  white-space: nowrap;
}

h1 {
  font-size: 200%;
  font-weight: 700;
  text-align: center;
}
@media (min-width: 576px) {
  h1 {
    font-size: 305%;
  }
}
@media (max-width: 575px) {
  h1 {
    font-size: 150%;
  }
}
.green h1 {
  color: #3D7B47;
}
.grey h1 {
  color: #8D5B4F;
}
.red h1 {
  color: #8D5B4F;
}
.blue h1 {
  color: #314586;
}

h2 {
  font-size: 207%;
  font-weight: 700;
  text-align: center;
  line-height: 180%;
  padding-top: 20px;
}
@media (max-width: 575px) {
  h2 {
    font-size: 120%;
    line-height: 150%;
  }
}
.green h2 {
  color: #3D7B47;
}
.blue h2 {
  color: #314586;
}
.red h2 {
  color: #8D5B4F;
}
.grey h2 {
  color: #8D5B4F;
}
.index h2 {
  line-height: 100%;
  padding-top: 0;
  margin-bottom: 20px;
}
#infoOverlay h2 {
  font-size: 150%;
  text-align: left;
}

h3 {
  text-transform: uppercase;
  font-size: 150%;
  font-weight: 700;
  padding: 15px 0 10px 0;
  text-align: center;
}
.grey h3 {
  color: #8D5B4F;
}
.container-sanasto h3 {
  color: #314586;
  font-size: 200%;
}
.tekijat h3 {
  text-transform: none;
}
@media (max-width: 575px) {
  .tekijat h3 {
    font-size: 100%;
  }
}
#infoOverlay h3 {
  text-transform: none;
  text-align: left;
  font-size: 120%;
  padding: 15px 0 5px 0;
}
h3.modal-title {
  margin-top: 30px;
  text-align: center;
  color: #3D7B47;
  padding-bottom: 20px;
  text-transform: none;
}

h4 {
  text-align: left;
  color: #3D7B47;
  font-weight: 700;
}

.info-box {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  font-size: 85%;
  margin: 60px auto 50px;
  padding: 20px;
  line-height: 150%;
  border: 15px solid red;
  border-image-source: url("../images/border.png");
  border-image-slice: 40;
  border-image-repeat: round;
  border-image-width: 20px;
  border-image-outset: 7px;
  background: #fff;
  max-width: 396px;
  position: relative;
  text-align: center;
}
.info-box::before {
  font-family: "Roboto Slab", serif;
  content: "Tässä luvussa";
  position: absolute;
  font-weight: 700;
  font-size: 85%;
  top: -40px;
  left: 0;
  right: 0;
  width: 150px;
  text-align: center;
  margin: 0 auto;
  display: block;
  padding: 5px 10px;
  border: 8px double;
  background: #D99876;
  color: #fff;
}
.info-box:after {
  content: " ";
}
@media (max-width: 575px) {
  .info-box {
    padding: 10px;
  }
}
.veli-nav .info-box {
  max-width: 100%;
  padding: 10px;
}
.veli-nav .info-box::before {
  content: "Tutustu veljeksiin";
  width: 200px;
  top: -40px;
}
.info-box.pakopeli {
  position: relative;
  max-width: unset;
}
.info-box.pakopeli::before {
  content: "Seitsemän veljestä -pakopeli";
  width: 250px;
}
.info-box.mainpage {
  border: 15px solid red;
  border-image-source: url("../images/border.png");
  border-image-slice: 50;
  border-image-repeat: round;
  border-image-width: 20px;
  border-image-outset: 7px;
  max-width: 600px;
  padding: 10px;
  color: #10232F;
  margin: 10px auto 40px;
}
.info-box.mainpage::before {
  content: "Pääsivu";
  width: 150px;
  top: -40px;
}
.info-box.mainpage .veljekset-narrow {
  padding: 10px 0 0 0;
}

hr {
  margin: 0 0 15px 0;
  border: 5px solid transparent;
}
hr::after {
  text-shadow: 0 0.5rem 1rem #10232F, 0.3;
  font-family: "Font Awesome 5 Free";
  content: "";
  display: inline-block;
  position: absolute;
  color: #fff;
  font-size: 150%;
  left: 50%;
  padding: 1rem;
  transform: translate(-50%, -50%);
}
.tekijat hr::after {
  color: #5B7789;
}
#infoOverlay hr {
  margin: 5px 0;
  margin-bottom: -15px;
  border: 20px solid transparent;
}
#infoOverlay hr::after {
  color: #5B7789;
  font-family: "Font Awesome 5 Free";
  font-weight: 700;
  content: "";
  left: 50%;
}

blockquote {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border-radius: 22px;
  border: 0;
  font-family: "Roboto Slab", serif;
  background: #F4F4F4;
  color: #8D5B4F;
  padding: 20px;
  line-height: 180%;
  font-size: 85%;
  max-width: 532px;
  margin: 0 auto;
}
blockquote:before {
  display: block;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 30px;
  content: "";
  float: left;
  margin-left: -1.4em;
  opacity: 0.5;
}
blockquote:after {
  display: block;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 30px;
  content: "";
  float: right;
  margin-right: -1.4em;
  margin-top: -1.4em;
  opacity: 0.5;
}
blockquote .blockquote-footer {
  color: #8D5B4F;
  text-align: right;
}
blockquote cite {
  color: #8D5B4F;
  font-style: normal;
}
.narrow blockquote {
  max-width: 300px;
}

.nav-pills {
  text-align: center;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
}
.nav-pills .nav-link {
  border-radius: 22px;
  border: 0;
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-sizing: border-box;
  text-align: center;
  margin: 5px;
  display: block;
  text-transform: uppercase;
}

dl {
  padding: 10px 40px;
}
@media (max-width: 575px) {
  dl {
    padding: 10px;
  }
}
dl dt {
  float: left;
  clear: left;
}
dl dt::after {
  content: " – ";
}
dl dd {
  padding: 0 0 0.5em 0;
}

ol {
  margin-inline-start: 0rem;
  width: 100%;
}
@media (max-width: 575px) {
  ol {
    font-size: 13px;
  }
}

ul {
  list-style: none;
  /*@include for-mobile-only {
      padding-inline-start: 20px;
  }*/
}
@media (max-width: 575px) {
  ul {
    font-size: 13px;
  }
}
ul.nav-pills {
  max-width: 600px;
}
#infoOverlay ul {
  padding: 0;
}
nav ul li {
  padding-bottom: 5px;
}
.container.mainpage ul {
  padding: 0;
  margin: 0 auto;
}
.container.mainpage ul li {
  display: inline-block;
  padding: 5px 10px 5px 0;
}
@media (max-width: 575px) {
  .container.mainpage ul li {
    padding: 0 10px 5px 0;
  }
}
ul.pagenav {
  padding: 0;
  text-align: center;
}
ul.pagenav li {
  display: block;
  margin: 10px auto;
}
ul.kansanelama li, ul.luonto li {
  display: inline-block;
  margin: 5px;
}
ul.kirkko li:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "";
  float: left;
  margin-left: -2em;
  color: #8D5B4F;
}
ul.kansa li:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "";
  float: left;
  margin-left: -2em;
  color: #8D5B4F;
}
ul.kieli li:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "";
  float: left;
  margin-left: -2em;
  color: #256AE5;
}
ul.veli {
  margin-left: 20px;
}
ul.veli li {
  margin: 20px auto;
  max-width: 250px;
}
ul.veli li:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "";
  float: left;
  margin-left: -2em;
  color: #79A844;
}
.tekijat ul {
  text-align: left;
}
.tekijat ul li:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "";
  font-size: 9px;
  float: left;
  margin-left: -2em;
  color: #5B7789;
}
.tekijat ul.sisallys {
  float: right;
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  font-size: 85%;
  margin: 30px;
  padding: 20px;
  line-height: 150%;
  border: 15px solid red;
  border-image-source: url("../images/border.png");
  border-image-slice: 40;
  border-image-repeat: round;
  border-image-width: 20px;
  border-image-outset: 7px;
  background: #fff;
  position: relative;
  text-align: left;
}
.tekijat ul.sisallys::before {
  font-family: "Roboto Slab", serif;
  content: "Sisällys";
  position: absolute;
  font-weight: 700;
  font-size: 85%;
  top: -40px;
  left: 0;
  right: 0;
  width: 150px;
  text-align: center;
  margin: 0 auto;
  display: block;
  padding: 5px 10px;
  border: 8px double;
  background: #D99876;
  color: #fff;
}
.tekijat ul.sisallys:after {
  content: " ";
}
@media (max-width: 575px) {
  .tekijat ul.sisallys {
    float: none;
    margin: 50px auto;
    width: 70%;
  }
}

/* tooltips */
.tooltip .tooltip-inner {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border-radius: 15px;
  color: #fff;
  background: #256AE5;
  border: 0px solid #256AE5;
  padding: 10px 15px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: left;
  margin: 0 auto;
  max-width: 100%;
  font-size: 12px;
}

.tooltip.bs-tooltip-right .arrow:before,
.tooltip.bs-tooltip-left .arrow:before {
  border-top-color: transparent;
  border-right-color: #256AE5;
  border-bottom-color: transparent;
  border-left-color: #256AE5;
}

.tooltip.bs-tooltip-top .arrow:before,
.tooltip.bs-tooltip-bottom .arrow:before {
  border-top-color: #256AE5;
  border-right-color: transparent;
  border-bottom-color: #256AE5;
  border-left-color: transparent;
}

/* links */
a, a:active, a:hover, a:visited {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  color: #256AE5;
}
p a, p a:active, p a:hover, p a:visited {
  color: #256AE5;
}
a.btn, a:active.btn, a:hover.btn, a:visited.btn {
  color: #fff;
}
.scroll-down a, .scroll-down a:active, .scroll-down a:hover, .scroll-down a:visited {
  color: #fff;
}
.backtop a, .backtop a:active, .backtop a:hover, .backtop a:visited {
  text-decoration: none;
  color: #10232F;
  font-size: 80%;
}
a.nav-link, a:active.nav-link, a:hover.nav-link, a:visited.nav-link {
  background: linear-gradient(132deg, #256ae5, #256ae5);
  color: #fff;
  font-weight: 700;
  font-family: "Roboto Slab", serif;
  text-align: center;
  border-radius: 50%;
}
a.nav-link:hover, a:active.nav-link:hover, a:hover.nav-link:hover, a:visited.nav-link:hover {
  background: linear-gradient(132deg, #314586, #256ae5);
}
a.nav-link.active, a:active.nav-link.active, a:hover.nav-link.active, a:visited.nav-link.active {
  border-radius: 50%;
  background: linear-gradient(132deg, #314586, #256ae5);
  border: 3px solid #fff;
}

/* buttons */
.btn {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border-radius: 22px;
  border: 0;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.12em;
  padding: 20px 25px;
  line-height: 120%;
  margin-bottom: 5px;
  color: #fff;
  /*.container.mainpage & {
      font-size: 156%;
      letter-spacing: 0.08em;
      font-weight: 700;
      text-transform: none;
      text-align: left;
      border-radius: 45px;
      padding: 20px 25px;
      @include for-mobile-only {
          font-size: 100%;
          padding: 10px 15px;
      }
  }*/
}
@media (max-width: 575px) {
  .btn {
    font-size: 14px !important;
  }
}
.btn-primary {
  background: linear-gradient(132deg, #3d7b47, #3d7b47);
}
.btn-primary:hover {
  background: linear-gradient(132deg, #79a844, #3d7b47);
}
.btn-primary[aria-expanded=true] {
  background: linear-gradient(132deg, #79a844, #3d7b47);
}
.btn-secondary {
  background: linear-gradient(132deg, #79a844, #79a844);
}
.btn-secondary:hover {
  background: linear-gradient(132deg, #3d7b47, #79a844);
}
.btn-info {
  background: linear-gradient(132deg, #256ae5, #256ae5);
}
.btn-info:hover {
  background: linear-gradient(132deg, #314586, #256ae5);
}
.btn-disabled {
  background-color: #5B7789;
  color: #99A2B1;
}
.btn-plus {
  font-size: 20px;
  width: 40px;
  height: 40px;
  padding: 0;
  letter-spacing: 0;
}
.btn-audio {
  font-size: 10px;
  width: 34px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  letter-spacing: 0;
  margin: 5px 15px 5px 0;
}
.btn-audio-small {
  box-shadow: none;
  font-size: 10px;
  width: 27px;
  height: 27px;
  padding: 15px;
  border-radius: 100%;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
nav .btn {
  padding: 10px 10px;
  font-size: 16px !important;
}
.backtop .btn {
  padding: 8px 9px 8px 12px;
  font-size: 120%;
}
.accordion .btn-primary {
  font-size: 16px;
}
.btn.close {
  background-color: #79A844;
  color: #fff;
  opacity: 1;
  padding: 12px 10px;
  font-size: 120%;
  width: 45px;
  height: 43px;
}

/* loader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #3D7B47;
  /* change if the mask should have another color then white */
  z-index: 99999;
  /* makes sure it stays on top */
}

#status {
  width: 100px;
  height: 100px;
  position: absolute;
  left: 50%;
  /* centers the loading animation horizontally one the screen */
  top: 45%;
  /* centers the loading animation vertically one the screen */
  z-index: 9999;
  /* path to your loading animation */
  background-repeat: no-repeat;
  background-position: center;
  margin: -10px 0 0 -36px;
  /* is width and height divided by two */
}

/* parallax */
.kuvitus {
  position: relative;
  z-index: 10;
  display: block;
  height: 900px;
  margin: 0;
  padding: 0;
  width: 100%;
  background: #3c7642;
}
.kuvitus .scroll-down {
  animation-name: bounce;
  animation-timing-function: ease-in-out;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  position: absolute;
  margin: 0 auto;
  bottom: 400px;
  text-align: center;
  width: 100%;
  font-size: 200%;
  color: #fff;
  z-index: 30;
}
.kuvitus .scroll-down i {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border-radius: 50%;
  background: #3D7B47;
  padding: 10px 12px;
}
.kuvitus .kuvitus_layer {
  background-position: bottom center;
  background-size: auto 900px;
  background-repeat: repeat-x;
  width: 100%;
  padding: 0;
  margin: 0;
  position: absolute;
  height: 900px;
  overflow: hidden;
}
.kuvitus .parallax {
  position: fixed;
  will-change: transform;
}
.kuvitus #kuvitus-0 {
  background-image: url("../images/index/maisema_parallax_0-700.png");
  background-color: #3c7642;
}
.kuvitus #kuvitus-1 {
  background-image: url("../images/index/maisema_parallax_1-700.png");
}
.kuvitus #kuvitus-2 {
  background-image: url("../images/index/maisema_parallax_2-700.png");
}
.kuvitus #kuvitus-3 {
  background-image: url("../images/index/maisema_parallax_3-700.png");
}
.kuvitus #kuvitus-4 {
  background-image: url("../images/index/maisema_parallax_4-700.png");
}
.kuvitus #kuvitus-5 {
  background-image: url("../images/index/maisema_parallax_5-700.png");
}
.kuvitus #kuvitus-6 {
  background-image: url("../images/index/maisema_parallax_6-700.png");
}
.kuvitus #kuvitus-7 {
  background-image: url("../images/index/maisema_parallax_7-700.png");
}
.kuvitus #kuvitus-8 {
  background-image: url("../images/index/maisema_parallax_8-700.png");
}
.kuvitus #kuvitus-9 {
  background-image: url("../images/index/maisema_parallax_9-700.png");
}
@media (min-width: 700px) {
  .kuvitus #kuvitus-0 {
    background-image: url("../images/index/maisema_parallax_0.png");
    background-color: #3c7642;
  }
  .kuvitus #kuvitus-1 {
    background-image: url("../images/index/maisema_parallax_1.png");
  }
  .kuvitus #kuvitus-2 {
    background-image: url("../images/index/maisema_parallax_2.png");
  }
  .kuvitus #kuvitus-3 {
    background-image: url("../images/index/maisema_parallax_3.png");
  }
  .kuvitus #kuvitus-4 {
    background-image: url("../images/index/maisema_parallax_4.png");
  }
  .kuvitus #kuvitus-5 {
    background-image: url("../images/index/maisema_parallax_5.png");
  }
  .kuvitus #kuvitus-6 {
    background-image: url("../images/index/maisema_parallax_6.png");
  }
  .kuvitus #kuvitus-7 {
    background-image: url("../images/index/maisema_parallax_7.png");
  }
  .kuvitus #kuvitus-8 {
    background-image: url("../images/index/maisema_parallax_8.png");
  }
  .kuvitus #kuvitus-9 {
    background-image: url("../images/index/maisema_parallax_9.png");
  }
}

.empty-section {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  margin-top: -3px;
  padding-top: 50px;
  background: linear-gradient(180deg, #3c7642, #264c2c);
  position: relative;
  z-index: 30;
}

/* structure */
.d-flex.index {
  min-height: 100vh;
}
.d-flex.ahlqvistattack-wrap {
  min-height: 100vh;
}

nav {
  position: fixed;
  width: auto;
  top: 10px;
  right: 10px;
  text-align: center;
  z-index: 50;
}
@media (max-width: 575px) {
  nav {
    right: 5px;
    top: 5px;
  }
}
nav ul {
  /* Margin kept eating clicks to content below the last button. */
  margin-bottom: 0;
}

.gallery {
  background: #fff;
}
@media (min-width: 900px) {
  .gallery {
    background: #FAF6E7;
  }
}
.gallery .modal {
  padding-right: 0px !important;
}
.gallery .modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}
.gallery .modal-dialog {
  max-width: 1020px;
}
.gallery .modal-content {
  border: 0;
}
@media (min-width: 900px) {
  .gallery .modal-content {
    background: #FAF6E7;
  }
}
.gallery .modal-content p {
  width: 80%;
  margin: 0 auto;
  margin-bottom: 20px;
}
.gallery .modal-header {
  border: 0;
  float: left;
}

.grid {
  margin: 0 auto;
  margin-bottom: 20px;
}
.grid:after {
  content: " ";
  clear: both;
  display: block;
}
.grid .grid-sizer,
.grid .grid-item {
  width: calc(50% - 10px);
}
@media (max-width: 575px) {
  .grid .grid-sizer,
.grid .grid-item {
    width: 100%;
  }
}
.grid .grid-item {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border: 3px solid rgba(153, 162, 177, 0.55);
  height: auto;
  float: left;
  margin-bottom: 0;
  box-sizing: border-box;
  background-color: #fff;
  transform: scale(0.9);
}
.grid .grid-item:hover {
  transform: scale(0.95);
}
.grid .grid-item:hover::after {
  transform: scaleX(1);
}

#infoOverlay {
  background: linear-gradient(132deg, rgba(153, 162, 177, 0.3), rgba(91, 119, 137, 0.6)), url("../images/bg-grey.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 575px) {
  #infoOverlay {
    text-align: center !important;
  }
  #infoOverlay h2, #infoOverlay h3 {
    text-align: center !important;
  }
  #infoOverlay .text-right {
    text-align: center !important;
  }
}
#infoOverlay .modal-dialog {
  width: 95%;
  max-width: 1000px;
}
#infoOverlay .modal-header {
  border: 0;
  height: auto;
  margin-bottom: 10px;
}
#infoOverlay .modal-content {
  border: 0;
  background-color: transparent;
  width: 100%;
}
#infoOverlay .modal-body {
  border-radius: 22px;
  border: 0;
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  background-color: #FAF6E7;
  padding: 20px 40px;
}
#infoOverlay .modal-footer {
  border: 0;
}
#infoOverlay h2 {
  color: #8D5B4F;
}
#infoOverlay .row .col-sm {
  font-size: 90%;
}
#infoOverlay .row .col-sm h2 {
  font-size: 120%;
  line-height: 150%;
  color: #8D5B4F;
}
#infoOverlay .row .col-sm h3 {
  font-size: 100%;
  color: #8D5B4F;
}

details {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
details article {
  padding: 20px;
  margin: 0 auto;
}

@media (max-width: 575px) {
  .container-fluid {
    padding: 0;
    margin: 0 auto;
  }
}
.container-fluid.index {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-repeat: no-repeat;
  background-color: #293300;
  background-position: center top;
}
.container-fluid.video-wrapper {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-color: #000;
  margin: 0;
  padding: 0;
}
.container-fluid.question {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-color: #E0F7FF;
  background-image: url("../images/ahlqvist-body.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.container-fluid.question .container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border-radius: 22px;
  border: 0;
  background-color: #fff;
  padding: 5%;
}
.container-fluid.mainpage {
  min-height: 100vh;
  background: linear-gradient(132deg, rgba(121, 168, 68, 0.3), rgba(61, 123, 71, 0.6)), url("../images/bg-green.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}
@media (max-width: 575px) {
  .container-fluid.mainpage {
    min-height: auto;
  }
}
.container-fluid.mainpage main {
  border-radius: 22px;
  border: 0;
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border: 0px dotted #3D7B47;
  background: #FAF6E7;
  padding: 40px;
  max-width: 800px;
}
.card-body .container-fluid {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  max-width: 620px;
}
.container-fluid .video {
  position: relative;
  height: 0;
  margin: 0 auto;
  padding: 30px 0 56% 0;
  overflow: hidden;
}
.container-fluid .video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.container {
  width: 85%;
  max-width: 602px;
}
@media (max-width: 575px) {
  .container {
    padding: 0;
    margin: 0 auto;
  }
}
.container.text-samples {
  margin: 20px auto;
}
.container-sanasto {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  font-size: 85%;
  margin: 60px auto 50px;
  padding: 10px;
  line-height: 150%;
  border: 20px solid red;
  border-image-source: url("../images/border.png");
  border-image-slice: 46 47;
  border-image-repeat: round;
  border-image-width: 20px;
  border-image-outset: 7px;
  background: #fff;
  width: 100%;
  position: relative;
  /*@include shadow;
  @include border;
  background: $color-grey-light;
  margin-top: 20px;
  padding: 20px;
  width: 100%;*/
}
.container-sanasto::before {
  font-family: "Roboto Slab", serif;
  content: "Sanasto";
  position: absolute;
  font-weight: 700;
  font-size: 85%;
  top: -50px;
  left: 0;
  right: 0;
  width: 150px;
  text-align: center;
  margin: 0 auto;
  display: block;
  padding: 5px 10px;
  border: 8px double;
  background: #D99876;
  color: #fff;
}
.container-sanasto:after {
  content: " ";
}
@media (max-width: 575px) {
  .container-sanasto {
    padding: 10px;
  }
}
.container.index .col-sm-7, .container.index .col-sm-4 {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border-radius: 22px;
  border: 0;
  padding: 20px;
  background-color: #FAF6E7;
}
.container.index .col-sm-4 {
  padding-bottom: 10px;
  background-image: url("../images/sielunvelitesti-banner.png");
  background-position: top;
  background-size: contain;
  background-repeat: no-repeat;
}
@media (max-width: 575px) {
  .container.index .col-sm-4 {
    background-image: none;
    margin-top: 20px;
    padding-top: 10px;
    margin-bottom: 50px;
  }
}
.container.veljessuosio {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border-radius: 22px;
  border: 0;
  padding: 10px 20px;
  margin-top: 20px;
  background-color: #FAF6E7;
}
.container.clear {
  clear: both;
}
.container.video-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1020px;
}
.container.mainpage {
  max-width: 900px;
}
.container.columns {
  max-width: 900px;
}
.container.columns-narrow {
  max-width: 750px;
}
.container.veli-nav {
  padding: 0px 0 20px 0;
}
.container.kansanelamaa {
  padding: 0;
  width: 100%;
}
@media (min-width: 900px) {
  .container.kansanelamaa {
    width: 85%;
  }
}
.container-audio {
  width: 100%;
  margin: 0 auto;
  font-size: 80%;
}
@media (min-width: 900px) {
  .container-audio {
    max-width: 420px;
  }
}
.col-md .container-audio {
  margin: 20px auto;
  max-width: 300px;
}

@media (min-width: 900px) {
  section.white {
    background: #fff;
  }
}
@media (min-width: 900px) {
  section.lightblue {
    background: #E0F7FF;
  }
}
@media (min-width: 900px) {
  section.lightgreen {
    background: #E4F2B7;
  }
}
section.divider {
  visibility: hidden;
  position: relative;
  z-index: -1;
  margin-bottom: -2px;
}
section.divider svg {
  margin-top: -50px;
}
section.divider.lightblue {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  z-index: -1;
  background: #fff;
  margin-bottom: -2px;
}
section.divider.lightblue path {
  fill: #E0F7FF;
}
section.divider.lightblue-white {
  margin-bottom: -2px;
  background: #E0F7FF;
  fill: #fff;
}
section.divider.lightgreen {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  z-index: -1;
  background: #fff;
  margin-bottom: -2px;
}
section.divider.lightgreen path {
  fill: #E4F2B7;
}
section.divider.lightgreen-white {
  margin-bottom: -2px;
  background: #E4F2B7;
  fill: #fff;
}
section.divider.cream {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  z-index: -1;
  background: #fff;
  margin-bottom: -2px;
}
section.divider.cream path {
  fill: #FAF6E7;
}
@media (min-width: 900px) {
  section.divider {
    visibility: visible;
    display: block;
  }
}

@media (max-width: 575px) {
  .row .col-md-6 {
    padding: 0;
    margin: 0;
    width: 100%;
  }
}
.row.veljekset .col-3 {
  border-radius: 22px;
  border: 0;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  min-height: 100px;
  margin: 5px;
  padding: 0;
  position: relative;
}
.row.veljekset .col-3.juhani {
  background-color: #79A844;
  background-image: url("../images/passi-juhani.png");
}
.row.veljekset .col-3.aapo {
  background-color: #E3CA66;
  background-image: url("../images/passi-aapo.png");
}
.row.veljekset .col-3.tuomas {
  background-color: #3D7B47;
  background-image: url("../images/passi-tuomas.png");
}
.row.veljekset .col-3.simeoni {
  background-color: #8D5B4F;
  background-image: url("../images/passi-simeoni.png");
}
.row.veljekset .col-3.timo {
  background-color: #256AE5;
  background-image: url("../images/passi-timo.png");
}
.row.veljekset .col-3.lauri {
  background-color: #E4F2B7;
  background-image: url("../images/passi-lauri.png");
}
.row.veljekset .col-3.eero {
  background-color: #B2D8B8;
  background-image: url("../images/passi-eero.png");
}
.row.veljekset .col-3:hover {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  transform: scale(1.025);
  z-index: 1;
  border-radius: 0;
}
.row.veljekset .col-3 a, .row.veljekset .col-3 a:active, .row.veljekset .col-3 a:hover, .row.veljekset .col-3 a:visited {
  border-radius: 22px;
  border: 0;
  margin: 0;
  padding: 85% 30% 5% 30%;
  display: block;
  text-align: center;
  text-transform: uppercase;
  height: 100%;
  width: 100%;
  font-weight: 900;
  color: #fff;
  font-size: 80%;
  background: linear-gradient(rgba(227, 202, 102, 0) 70%, rgba(61, 123, 71, 0.4) 100%);
}
.row.veljekset .col-3 a:active, .row.veljekset .col-3 a:hover {
  text-decoration: none;
  border-radius: 0;
}
.row.veli {
  margin-top: -180px;
}
@media (min-width: 576px) {
  .row.veli {
    margin-top: 0;
  }
}
.row.veljekset-narrow {
  padding: 20px 0 20px 0;
  margin: 0 auto;
  width: 100%;
}
.row.veljekset-narrow .col {
  border-radius: 22px;
  border: 0;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  min-height: 70px;
  margin: 2px;
  padding: 0;
  position: relative;
}
.row.veljekset-narrow .col.juhani {
  background-color: #79A844;
  background-image: url("../images/passi-juhani.png");
}
.row.veljekset-narrow .col.aapo {
  background-color: #E3CA66;
  background-image: url("../images/passi-aapo.png");
}
.row.veljekset-narrow .col.tuomas {
  background-color: #3D7B47;
  background-image: url("../images/passi-tuomas.png");
}
.row.veljekset-narrow .col.simeoni {
  background-color: #8D5B4F;
  background-image: url("../images/passi-simeoni.png");
}
.row.veljekset-narrow .col.timo {
  background-color: #256AE5;
  background-image: url("../images/passi-timo.png");
}
.row.veljekset-narrow .col.lauri {
  background-color: #E4F2B7;
  background-image: url("../images/passi-lauri.png");
}
.row.veljekset-narrow .col.eero {
  background-color: #B2D8B8;
  background-image: url("../images/passi-eero.png");
}
.row.veljekset-narrow .col:hover {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  transform: scale(1.025);
  z-index: 1;
  border-radius: 0;
  background-color: #314586;
}
.row.veljekset-narrow .col a, .row.veljekset-narrow .col a:active, .row.veljekset-narrow .col a:hover, .row.veljekset-narrow .col a:visited {
  border-radius: 22px;
  border: 0;
  margin: 0;
  padding: 0;
  display: block;
  text-align: center;
  text-transform: uppercase;
  height: 100%;
  width: 100%;
  font-weight: 900;
  color: #fff;
  font-size: 75%;
}
.row.veljekset-narrow .col a:active, .row.veljekset-narrow .col a:hover {
  text-decoration: none;
  border-radius: 0;
}
.row.veljekset-narrow .col.active {
  border-bottom: 5px solid #79A844;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.row.veljekset-narrow .col.active a, .row.veljekset-narrow .col.active a:active, .row.veljekset-narrow .col.active a:hover, .row.veljekset-narrow .col.active a:visited {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.backtop {
  margin: 0 auto;
  padding: 40px 0 20px 0;
  text-align: center;
}
.backtop.white {
  background: #fff;
}
@media (min-width: 900px) {
  .backtop.lightgreen {
    background: #E4F2B7;
  }
}

.profile {
  position: relative;
}
@media (min-width: 900px) {
  .profile {
    top: 0;
  }
}
@media (max-width: 575px) {
  .profile img {
    max-height: 350px;
  }
}
@media (min-width: 900px) {
  .profile img {
    position: absolute;
    top: -150px;
  }
}
@media (min-width: 1200px) {
  .profile img {
    position: absolute;
    top: -250px;
  }
}

header {
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-attachment: fixed;
  /*&.veljekset {
      background-color: $color-green-dark;
      background-image: url('../images/bg-veljekset.jpg');
      background-size: cover;
      position: relative;
      background-position: center top;
      height: 40vh;
      .shape {
          position: absolute;
          bottom: -1px;
          @include for-big-desktop-up {
              bottom: -2px;
          }
      }
      @include for-tablet-landscape-up() {
          height: 60vh;
      }
      @include for-desktop-up {
          height: 70vh;
      }
      @include for-big-desktop-up {
          height: 70vh;
      }
  }*/
}
header.green {
  background: linear-gradient(132deg, rgba(121, 168, 68, 0.3), rgba(61, 123, 71, 0.6)), url("../images/bg-green.jpg");
  background-size: 100% auto;
}
header.grey {
  background: linear-gradient(132deg, rgba(153, 162, 177, 0.3), rgba(91, 119, 137, 0.6)), url("../images/bg-grey.jpg");
  background-size: 100% auto;
}
header.red {
  background: linear-gradient(132deg, rgba(196, 74, 44, 0.2), rgba(141, 91, 79, 0.7)), url("../images/bg-red.jpg");
  background-size: 100% auto;
}
header.blue {
  background: linear-gradient(132deg, rgba(37, 106, 229, 0.2), rgba(49, 69, 134, 0.7)), url("../images/bg-blue.jpg");
  background-size: 100% auto;
}
header .shape {
  position: relative;
  bottom: -1px;
  left: -1px;
  width: 100.5%;
}
header .shape path {
  fill: #fff;
}
@media (min-width: 900px) {
  header .shape path {
    fill: #FAF6E7;
  }
}
header.veli {
  background: linear-gradient(132deg, rgba(121, 168, 68, 0.3), rgba(61, 123, 71, 0.6)), url("../images/bg-green.jpg");
  background-size: 100% auto;
  position: relative;
  height: 200px;
}
header.veli .shape {
  position: absolute;
  bottom: -1px;
}
@media (min-width: 900px) {
  header.veli {
    height: 300px;
  }
}

footer {
  position: relative;
  overflow: hidden;
}
footer.green {
  background: transparent linear-gradient(132deg, #3D7B47 0%, #79A844 100%) 0% 0% no-repeat padding-box;
}
footer.grey {
  background: transparent linear-gradient(132deg, #5B7789 0%, #99A2B1 100%) 0% 0% no-repeat padding-box;
}
footer.red {
  background: transparent linear-gradient(132deg, #C44A2C 0%, #8D5B4F 100%) 0% 0% no-repeat padding-box;
}
footer.blue {
  background: transparent linear-gradient(132deg, #256AE5 0%, #314586 100%) 0% 0% no-repeat padding-box;
}
footer .shape {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  position: relative;
  top: -1px;
  width: 100.5%;
}
footer .shape path {
  fill: #fff;
}
@media (min-width: 900px) {
  footer .shape path {
    fill: #FAF6E7;
  }
}
@media (min-width: 900px) {
  footer.white path {
    fill: #fff;
  }
}
@media (min-width: 900px) {
  footer.lightgreen path {
    fill: #E4F2B7;
  }
}

summary {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  margin: 0 auto;
  width: 100%;
  font-size: 80%;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 68px;
  position: relative;
  background: none;
}
@media (min-width: 900px) {
  summary {
    max-width: 420px;
  }
}
summary::-webkit-details-marker {
  display: none;
}
summary::before {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border-radius: 50%;
  font-family: "Font Awesome 5 Free";
  font-size: 120%;
  content: "";
  font-weight: 900;
  color: #fff;
  padding: 4px 10px;
  text-align: center;
  background: #256AE5;
  margin-left: -53px;
  top: 5px;
  position: absolute;
}
summary::after {
  display: block;
  content: " ";
  clear: both;
}

details[open] {
  padding-bottom: 50px;
}
details[open] summary::before {
  background: #314586;
}

/* carousel for chats */
.carousel {
  max-width: 572px;
  margin: 0 auto;
}
.carousel#rakkaus, .carousel#auktoriteetit {
  max-width: 1920px;
}

@media (max-width: 575px) {
  .chat {
    font-size: 14px;
  }
}
.chat.carousel-inner {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border-radius: 22px;
  border: 0;
  background: #E3CA66;
  padding: 20px 20px 50px 20px;
}
@media (max-width: 575px) {
  .chat.carousel-inner {
    padding: 5px 5px 45px 5px;
  }
}
.chat.single {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border-radius: 22px;
  border: 0;
  background: #E3CA66;
  width: 100%;
  padding: 15px;
  margin: 0 auto;
}
@media (max-width: 575px) {
  .chat.single {
    padding: 5px 5px 45px 5px;
  }
}

#auktoriteetit, #rakkaus {
  position: relative;
}
#auktoriteetit .carousel-inner, #rakkaus .carousel-inner {
  overflow: visible;
  padding: 10px 0px 30px 10px;
}
#auktoriteetit .controllers, #rakkaus .controllers {
  position: relative;
  margin: 20px auto 0 auto;
  max-width: 900px;
  width: 95%;
}
@media (min-width: 1200px) {
  #auktoriteetit .carousel-item.carousel-auktoriteetit, #rakkaus .carousel-item.carousel-auktoriteetit {
    background: url("../images/auktoriteetit.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
}

#rakkaus {
  /*&.carousel {
      @include for-mobile-only {
          background: url('../images/tunteet.jpg');
          background-size: 80% auto;
          background-position: top 50px left 40px;
          background-repeat: no-repeat;
      }
  }*/
}
#rakkaus .controllers {
  margin: 0 auto;
  max-width: 1020px;
}
@media (max-width: 575px) {
  #rakkaus .controllers {
    margin-top: 20px;
  }
}

.carousel-fadein .carousel-item {
  opacity: 0;
  transition-duration: 0.6s;
  transition-property: opacity;
}

.carousel-fadein .carousel-item.active,
.carousel-fadein .carousel-item-next.carousel-item-left,
.carousel-fadein .carousel-item-prev.carousel-item-right {
  opacity: 1;
}

.carousel-fadein .active.carousel-item-left,
.carousel-fadein .active.carousel-item-right {
  opacity: 0;
}

.carousel-fadein .carousel-item-next,
.carousel-fadein .carousel-item-prev,
.carousel-fadein .carousel-item.active,
.carousel-fadein .active.carousel-item-left,
.carousel-fadein .active.carousel-item-prev {
  transform: translateX(0);
  transform: translate3d(0, 0, 0);
}

/*.carousel {
    overflow-y: hidden;
}*/
.carousel-indicators {
  margin: 0 auto 20px auto;
  width: 70%;
}
#auktoriteetit .carousel-indicators, #rakkaus .carousel-indicators {
  margin: 0 auto;
}
.carousel-indicators li {
  background-color: transparent;
  border-radius: 100%;
  border: 2px solid #fff;
  width: 12px;
  height: 12px;
  margin: 3px;
  padding: 0;
  opacity: 1;
}
@media (max-width: 575px) {
  .carousel-indicators li {
    width: 6px;
    height: 6px;
  }
}
#auktoriteetit .carousel-indicators li, #rakkaus .carousel-indicators li {
  border-color: #79A844;
}
.carousel-indicators li.active {
  background: #fff;
}
#auktoriteetit .carousel-indicators li.active, #rakkaus .carousel-indicators li.active {
  background: #79A844;
}

.carousel-control-prev, .carousel-control-next {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border-radius: 22px;
  border: 0;
  position: absolute;
  top: auto;
  bottom: 0;
  background: #79A844;
  opacity: 1;
  width: 40px;
  height: 40px;
  margin: 10px;
}
#auktoriteetit .carousel-control-prev, #auktoriteetit .carousel-control-next {
  margin: 0 auto;
}

.message {
  display: block;
  margin: 15px auto 10px auto;
}
.message::after {
  content: "";
  display: table;
  clear: both;
}
.chat .message {
  margin: 7px auto 3px auto;
}
#rakkaus .message {
  margin: 3px auto 3px auto;
}

p.chat {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  width: 85%;
  font-size: 90%;
  padding: 10px 15px 15px 15px;
  line-height: 160%;
}
@media (max-width: 575px) {
  p.chat {
    font-size: 12px;
    padding: 10px 10px 10px 10px;
  }
}
p.chat.left {
  background: #fff;
  float: left;
  border-radius: 20px 0 20px 20px;
}
p.chat.right {
  background: #FAF6E7;
  float: right;
  border-radius: 0px 20px 20px 20px;
}
p.chat .speaker {
  text-transform: uppercase;
  display: block;
  font-size: 80%;
  font-weight: 700;
  color: #3D7B47;
  /*#rakkaus & {
      color: $color-red;
  }*/
}
p.chat.white {
  background-color: #fff;
  border: 3px solid rgba(153, 162, 177, 0.5);
}
#rakkaus .carousel-item:nth-of-type(odd) p.chat.white {
  background: #F4F4F4;
  border: 3px solid rgba(153, 162, 177, 0.3);
}
#rakkaus .carousel-item:nth-of-type(odd) p.chat.white .speaker {
  color: #3D7B47;
}
#rakkaus .carousel-item:nth-of-type(even) p.chat.white {
  background: #FAF6E7;
  border: 3px solid rgba(217, 152, 118, 0.3);
}
#rakkaus .carousel-item:nth-of-type(even) p.chat.white .speaker {
  color: #3D7B47;
}
.carousel p.chat {
  width: 85%;
}
#rakkaus p.chat {
  width: 100%;
}
p.source {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border-radius: 22px;
  border: 0;
  margin: 2px auto 25px auto;
  width: 80%;
  font-family: "Roboto Slab", serif;
  max-width: 250px;
  background: #F4F4F4;
  color: #5B7789;
  padding: 15px 20px;
  font-size: 80%;
}
p.narrator {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border-radius: 22px;
  border: 0;
  margin: 2px 0 25px 0;
  font-size: 80%;
  width: 100%;
  padding: 15px 20px;
  font-family: "Roboto Slab", serif;
  background: #F4F4F4;
  color: #5B7789;
}

/* images */
img {
  max-width: 100%;
}
img.decoration {
  max-width: 150px;
  margin: 0 auto;
  margin-top: -20px;
}
img.avatar {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  border: 2px solid #fff;
}
@media (max-width: 575px) {
  img.avatar {
    height: 35px;
    width: 35px;
  }
}
img.avatar.right {
  float: left;
}
img.avatar.left {
  float: right;
}
img.avatar.juhani {
  background-color: #79A844;
}
img.avatar.timo {
  background-color: #256AE5;
}
img.avatar.simeoni {
  background-color: #8D5B4F;
}
img.avatar.eero {
  background-color: #B2D8B8;
}
img.avatar.aapo {
  background-color: #E3CA66;
}
img.avatar.tuomas {
  background-color: #3D7B47;
}
img.avatar.lauri {
  background-color: #E4F2B7;
}
#rakkaus img.avatar {
  display: none;
}
img.illustration {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  object-fit: cover;
  object-position: 80% 20%;
  margin: 0 auto;
  display: block;
  width: 80%;
  height: 300px;
  border: 20px solid #fff;
  border-radius: 5px;
}
img.card-img {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  border-radius: 0;
  padding: 0;
  margin: 0 auto;
  width: 100%;
}
.grid-item img {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  border: 10px solid #fff;
  border-radius: 0;
}
.gallery img {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  border: 10px solid #fff;
  border-radius: 0;
}
#rakkaus img {
  margin: 5px auto 20px auto;
}
@media (max-width: 575px) {
  #rakkaus img {
    display: none;
  }
}

/* Floating plus buttons */
.floatingButtonContainer {
  position: relative;
}

.floatingButton {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  position: absolute;
  background-color: #256AE5;
  color: #fff;
  border: 0;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-sizing: content-box;
  padding: 0;
  transition: background-color 0.1s;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}
.floatingButton:focus {
  outline: none;
  background-color: #5389ea;
}
.floatingButton:hover {
  background-color: #5389ea;
}
.floatingButton-active {
  background-color: #314586;
  border: 6px solid #fff;
  margin-left: -6px;
  margin-top: -6px;
}
.floatingButton-active:hover {
  background-color: #3f58ab;
}
.floatingButton-active .floatingButtonPopup {
  display: block;
}
.floatingButton-active i {
  transform: rotate(45deg);
}
.floatingButton-ahlqvist-1 {
  left: 22%;
  top: 17%;
}
.floatingButton-ahlqvist-2 {
  left: 25%;
  top: 32%;
}
.floatingButton-ahlqvist-3 {
  left: 63%;
  top: 34%;
}
.floatingButton-ahlqvist-4 {
  left: 68%;
  top: 54%;
}
.floatingButton-ahlqvist-5 {
  left: 24%;
  top: 64%;
}
.floatingButton-ahlqvist-6 {
  left: 67%;
  top: 75%;
}
.floatingButton-rovasti-1 {
  left: 68%;
  top: 20%;
}
.floatingButton-rovasti-2 {
  left: 25%;
  top: 25%;
}
.floatingButton-rovasti-3 {
  left: 68%;
  top: 35%;
}
.floatingButton-rovasti-4 {
  left: 28%;
  top: 55%;
}
.floatingButton-lukkari-1 {
  left: 18%;
  top: 20%;
}
.floatingButton-lukkari-2 {
  left: 65%;
  top: 25%;
}
.floatingButton-lukkari-3 {
  left: 45%;
  top: 40%;
}
.floatingButton-viertola-1 {
  left: 60%;
  top: 20%;
}
.floatingButton-viertola-2 {
  left: 15%;
  top: 25%;
}
.floatingButton-viertola-3 {
  left: 50%;
  top: 45%;
}
.floatingButton-nimismies-1 {
  left: 65%;
  top: 20%;
}
.floatingButton-nimismies-2 {
  left: 15%;
  top: 25%;
}
.floatingButton-nimismies-3 {
  left: 45%;
  top: 55%;
}
.floatingButton-lautamies-1 {
  left: 65%;
  top: 25%;
}
.floatingButton-lautamies-2 {
  left: 15%;
  top: 20%;
}
.floatingButton i {
  transition: transform 0.2s ease-in-out;
}

.floatingButtonPopup {
  position: absolute;
  background: #E0F7FF;
  color: #10232F;
  padding: 10px 15px;
  display: none;
  z-index: 1;
  top: 70px;
  font-size: 14px;
  line-height: 180%;
  font-weight: 500;
  box-shadow: 0 3px 6px #00000042;
  border-radius: 20px;
  min-width: 220px;
  text-align: left;
}
.floatingButtonPopup:after {
  content: "";
  position: absolute;
  left: calc(50% - 10px);
  top: -18px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid #E0F7FF;
}

/* Juonikartta */
@keyframes pulsate {
  from {
    background-color: #e83408;
    transform: scale(1.4);
  }
  to {
    background-color: #C44A2C;
    transform: scale(1);
  }
}
.plotmap {
  position: relative;
  border-radius: 20px;
  box-shadow: 0px 3px 12px #00000033;
  width: 100%;
  max-width: 1046px;
  margin: 0 auto;
  overflow: hidden;
  touch-action: manipulation;
}
.plotmap-begin {
  position: absolute;
  z-index: 1;
  left: 8%;
  top: 14%;
  width: 150px;
}
@media (min-width: 900px) {
  .plotmap-begin {
    width: 200px;
    padding: 30px;
  }
}
.plotmap-begin-hidden {
  display: none;
}
.plotmap-bubble {
  max-width: none;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.3s;
  z-index: 1;
  filter: drop-shadow(2px 15px 2px rgba(0, 0, 0, 0.6));
}
@media (min-width: 576px) {
  .plotmap-bubble-active {
    opacity: 1;
  }
}
.plotmap-bubble-1 {
  width: 231px;
  top: -135px;
  left: -124px;
}
.plotmap-bubble-2 {
  width: 127px;
  top: -132px;
  left: 3px;
}
.plotmap-bubble-3 {
  width: 169px;
  top: -138px;
  left: -34px;
}
.plotmap-bubble-4 {
  width: 276px;
  top: -144px;
  left: 36px;
}
.plotmap-bubble-5 {
  width: 86px;
  top: -66px;
  left: -95px;
}
.plotmap-bubble-6 {
  width: 152px;
  top: -107px;
  left: 28px;
}
.plotmap-bubble-7 {
  width: 203px;
  top: -175px;
  left: 36px;
}
.plotmap-bubble-8 {
  width: 287px;
  top: -77px;
  left: -72px;
}
.plotmap-bubble-9 {
  width: 170px;
  top: -40px;
  left: 40px;
}
.plotmap-bubble-10 {
  width: 170px;
  top: -40px;
  left: 40px;
}
.plotmap-bubble-11 {
  width: 247px;
  top: -14px;
  left: -24px;
}
.plotmap-bubble-12 {
  width: 165px;
  top: -30px;
  left: 38px;
}
.plotmap-bubble-13 {
  width: 178px;
  top: -90px;
  left: -38px;
}
.plotmap-bubble-14 {
  width: 208px;
  top: -60px;
  left: 20px;
}
.plotmap-bubble-15 {
  width: 270px;
  top: -200px;
  left: -40px;
}
.plotmap-bubble-16 {
  width: 181px;
  top: 15px;
  left: 32px;
}
.plotmap-bubble-17 {
  width: 170px;
  top: 34px;
  left: -110px;
}
.plotmap-bubble-18 {
  width: 114px;
  top: -80px;
  left: 38px;
}
.plotmap-bubble-19 {
  width: 126px;
  top: -166px;
  left: 33px;
}
.plotmap-bubble-20 {
  width: 258px;
  top: -224px;
  left: -76px;
}
.plotmap-map {
  transform: scale(1.4);
}
@media (min-width: 900px) {
  .plotmap-map {
    transform: none;
  }
}
.plotmap-pincontainer {
  position: absolute;
  user-select: none;
}
.plotmap-pincontainer:focus, .plotmap-pincontainer:hover {
  z-index: 1;
}
.plotmap-pincontainer-hidden {
  display: none;
}
.plotmap-pincontainer-1 {
  top: 81%;
  left: 54%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-1 {
    top: 73%;
    left: 54%;
  }
}
.plotmap-pincontainer-2 {
  top: 87%;
  left: 55%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-2 {
    top: 77%;
    left: 54%;
  }
}
.plotmap-pincontainer-3 {
  top: 85%;
  left: 42%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-3 {
    top: 74%;
    left: 44%;
  }
}
.plotmap-pincontainer-4 {
  top: 63%;
  left: 25%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-4 {
    top: 59%;
    left: 32%;
  }
}
.plotmap-pincontainer-5 {
  top: 69%;
  left: 30%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-5 {
    top: 63%;
    left: 35%;
  }
}
.plotmap-pincontainer-6 {
  top: 76%;
  left: 27%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-6 {
    top: 69%;
    left: 36%;
  }
}
.plotmap-pincontainer-7 {
  top: 76%;
  left: 51%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-7 {
    top: 67%;
    left: 51%;
  }
}
.plotmap-pincontainer-8 {
  top: 30%;
  left: 54%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-8 {
    top: 36%;
    left: 52%;
  }
}
.plotmap-pincontainer-9 {
  top: 75%;
  left: 57%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-9 {
    top: 68%;
    left: 54%;
  }
}
.plotmap-pincontainer-10 {
  top: 36%;
  left: 57%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-10 {
    top: 39%;
    left: 56%;
  }
}
.plotmap-pincontainer-11 {
  top: 11%;
  left: 45%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-11 {
    top: 22%;
    left: 48%;
  }
}
.plotmap-pincontainer-12 {
  top: 18%;
  left: 56%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-12 {
    top: 27%;
    left: 54%;
  }
}
.plotmap-pincontainer-13 {
  top: 42%;
  left: 54%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-13 {
    top: 43%;
    left: 53%;
  }
}
.plotmap-pincontainer-14 {
  top: 57%;
  left: 10%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-14 {
    top: 54%;
    left: 22%;
  }
}
.plotmap-pincontainer-15 {
  top: 75%;
  left: 39%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-15 {
    top: 68%;
    left: 42%;
  }
}
.plotmap-pincontainer-16 {
  top: 38%;
  left: 49%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-16 {
    top: 41%;
    left: 49%;
  }
}
.plotmap-pincontainer-17 {
  top: 8%;
  left: 83%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-17 {
    top: 19%;
    left: 73%;
  }
}
.plotmap-pincontainer-18 {
  top: 44%;
  left: 49%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-18 {
    top: 46%;
    left: 49%;
  }
}
.plotmap-pincontainer-19 {
  top: 79%;
  left: 61%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-19 {
    top: 71%;
    left: 58%;
  }
}
.plotmap-pincontainer-20 {
  top: 86%;
  left: 61%;
}
@media (min-width: 900px) {
  .plotmap-pincontainer-20 {
    top: 76%;
    left: 58%;
  }
}
.plotmap-pin {
  background-color: #C44A2C;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 2px #00000033;
  transition: background-color 0.1s, transform 0.1s;
  margin: 0;
  padding: 0;
}
@media (min-width: 576px) {
  .plotmap-pin {
    font-size: 18px;
    width: 30px;
    height: 30px;
  }
}
.plotmap-pin:focus, .plotmap-pin:hover {
  background-color: #e83408;
  outline: none;
  transform: scale(1.4);
}
.plotmap-pin-active {
  animation: ease-in-out pulsate 1s infinite alternate;
  z-index: 1;
}
.plotmap-popup {
  position: absolute;
  background: #fff;
  left: 0;
  top: 0;
  margin: 5px;
  border-radius: 20px;
  box-shadow: 0 3px 6px #00000029;
  padding: 20px 16px;
  transition: opacity 0.15s ease-in-out;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
@media (min-width: 576px) {
  .plotmap-popup {
    width: 40%;
    min-width: 320px;
    left: 5%;
    top: 5%;
  }
}
.plotmap-popup-carousel {
  display: flex;
}
.plotmap-popup-carousel-arrow {
  background: #79A844;
  border: 0;
  border-radius: 100%;
  box-shadow: 0 3px 6px #00000029;
  color: #fff;
  transition: background-color 0.1s;
  width: 27px;
  height: 27px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plotmap-popup-carousel-arrow:focus, .plotmap-popup-carousel-arrow:hover {
  background-color: #abcd85;
  outline: none;
}
.plotmap-popup-carousel-dots {
  flex: 1;
  text-align: center;
}
.plotmap-popup-carousel-dot {
  background-color: transparent;
  border-radius: 100%;
  border: 2px solid #79A844;
  width: 12px;
  height: 12px;
  margin: 3px;
  padding: 0;
}
.plotmap-popup-carousel-dot-active {
  background-color: #79A844;
}
.plotmap-popup-close {
  color: #99A2B1;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  padding: 0 12px 6px;
}
.plotmap-popup-close:focus, .plotmap-popup-close:hover {
  color: #636e81;
  outline: none;
}
.plotmap-popup-content {
  display: none;
}
.plotmap-popup-content-active {
  display: block;
}
.plotmap-popup-active {
  opacity: 1;
  pointer-events: all;
}
.plotmap-popup-header {
  display: flex;
  align-items: flex-start;
}
.plotmap-popup-heading {
  flex: 1;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}
@media (min-width: 576px) {
  .plotmap-popup-heading {
    font-size: 20px;
  }
}
.plotmap-popup-playpause {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  margin-bottom: 8px;
  font-size: 13px;
}
@media (min-width: 576px) {
  .plotmap-popup-playpause {
    font-size: 14px;
    margin-bottom: 18px;
  }
}
.plotmap-popup-playpause-icon {
  background: #256AE5;
  color: #fff;
  display: flex;
  font-size: 10px;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  margin-right: 12px;
  border-radius: 100%;
}
.plotmap-popup-text {
  display: none;
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 8px;
}
@media (min-width: 576px) {
  .plotmap-popup-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
  }
}
.plotmap-popup-text-active {
  display: block;
}

/* Veljessuosio */
.veljessuosio {
  -webkit-font-smoothing: antialiased;
  padding: 20px 0;
}
.veljessuosio-heading {
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 80px;
}
@media (max-width: 575px) {
  .veljessuosio-heading {
    margin-top: 0;
  }
}
.veljessuosio-category {
  display: flex;
  height: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}
.veljessuosio-category-label {
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
  width: 70px;
  display: flex;
  align-items: center;
}
.veljessuosio-category-bar {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 3px 6px rgba(16, 35, 47, 0.085);
  flex-grow: 1;
}
.veljessuosio-category-bar-value {
  border-radius: 5px 0px 0px 5px;
  background-color: #E3CA66;
  box-shadow: inherit;
  height: 100%;
}

/* Kirjoita kiveä -peli */
.wordgame {
  border-radius: 20px;
  box-shadow: 0 3px 6px #00000029;
  min-height: 650px;
  display: flex;
  touch-action: manipulation;
  hyphens: none;
  -ms-hyphens: auto;
  -webkit-hyphens: none;
}
.wordgame-view {
  display: none;
  border-radius: inherit;
  flex-grow: 1;
}
.wordgame-view-active {
  display: flex;
  flex-direction: column;
}
.wordgame-begin {
  background-color: #314586;
  background-image: url("../images/bg-wordgame.png");
  background-size: cover;
  border-radius: inherit;
  display: none;
}
.wordgame-begin-action {
  width: 170px;
  height: 80px;
  font-size: 22px;
}
.wordgame-begin.wordgame-view-active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.wordgame-end {
  background-color: #314586;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 20px;
  text-align: center;
}
@media (min-width: 900px) {
  .wordgame-end {
    padding: 80px;
  }
}
.wordgame-end-congrats {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 60px;
  -webkit-font-smoothing: antialiased;
  hyphens: none;
  -ms-hyphens: auto;
  -webkit-hyphens: none;
}
.wordgame-mistakeoverlay {
  background-color: rgba(49, 69, 134, 0.5);
  height: 100%;
  position: absolute;
  z-index: 1;
}
.wordgame-mistakeoverlay.wordgame-view-active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.wordgame-mistakeoverlay-notice {
  background: #ffc981;
  border: 4px solid #fff;
  border-radius: 10px;
  margin: 60px;
  padding: 20px 12px;
  pointer-events: none;
  text-align: center;
}
@media (min-width: 900px) {
  .wordgame-mistakeoverlay-notice {
    margin: 100px;
    padding: 30px 40px;
  }
}
.wordgame-question {
  padding: 30px 10px 10px;
}
@media (min-width: 900px) {
  .wordgame-question {
    padding: 40px 20px 20px;
  }
}
.wordgame-question-blue {
  background-color: #E0F7FF;
}
.wordgame-question-grey {
  background-color: #F4F4F4;
}
.wordgame-question-white {
  background-color: #FAF6E7;
}
.wordgame-question-portrait {
  border-radius: 100%;
  box-shadow: 0 3px 12px #00000066;
  margin: 0 10px;
  width: 100px;
  height: 100px;
}
.wordgame-question-portrait-image {
  border-radius: inherit;
  width: 100%;
  height: 100%;
}
.wordgame-question-portrait-aapo {
  background-color: #E3CA66;
}
.wordgame-question-portrait-eero {
  background-color: #B2D8B8;
}
.wordgame-question-portrait-juhani {
  background-color: #79A844;
}
.wordgame-question-portrait-lauri {
  background-color: #E4F2B7;
}
.wordgame-question-portrait-makela {
  background-color: #314586;
}
.wordgame-question-portrait-simeoni {
  background-color: #8D5B4F;
}
.wordgame-question-portrait-timo {
  background-color: #256AE5;
}
.wordgame-question-portrait-tuomas {
  background-color: #3D7B47;
}
.wordgame-question-portrait-kertoja {
  background-color: #5B7789;
  color: #F4F4F4;
  display: flex;
  font-size: 50px;
  align-items: center;
  justify-content: center;
}
.wordgame-question-quote {
  background-color: #fff;
  border-radius: 0 22px 22px 22px;
  box-shadow: 0 3px 12px #00000033;
  padding: 19px;
  margin: 26px 10px 40px;
}
.wordgame-question-quote-author {
  color: #3D7B47;
  font-size: 14px;
  text-transform: uppercase;
}
.wordgame-question-quote-blank {
  color: #3D7B47;
  width: 150px;
  max-width: 100%;
  border-bottom: 2px solid #256AE5;
  height: 23px;
  margin: 0 3px;
  display: inline-block;
  text-align: center;
  font-weight: 700;
}
.wordgame-question-quote-long {
  margin-bottom: 20px;
}
.wordgame-question-options {
  text-align: center;
}
.wordgame-question-option {
  background-color: #256AE5;
  box-shadow: #00000029 0 3px 6px;
  color: #fff;
  margin: 10px 7px;
  padding: 8px;
  border: 6px solid transparent;
  letter-spacing: 1px;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) {
  .wordgame-question-option {
    padding: 12px 24px;
    font-size: 16px;
  }
}
.wordgame-question-option-active {
  background-color: #314586;
  box-shadow: #0000005D 0 3px 6px;
  border-color: #fff;
}
.wordgame-question-option:focus {
  background-color: #314586;
  border-color: #fff;
  color: #fff;
  outline: none;
}
.wordgame-question-option:hover {
  background-color: #314586;
  color: #fff;
}
.wordgame-question-content {
  flex-grow: 1;
}
.wordgame-question-footer {
  text-align: center;
  height: 100px;
}
.wordgame-question-next-button[disabled] {
  opacity: 0;
}
.wordgame-question-progress {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}
.wordgame-question-progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 100%;
  border: 2px solid #79A844;
  margin: 3px;
}
.wordgame-question-progress-dot-active {
  background-color: #79A844;
}

/* Audio pin */
.audiopin {
  position: relative;
}
.audiopin-yellow, .audiopin-mint, .audiopin-green, .audiopin-greenlight, .audiopin-brown, .audiopin-blue2, .audiopin-greendark {
  top: 20px;
  left: 0px;
}
.audiopin-blue .audiopin-bubble {
  background: #256AE5;
}
.audiopin-blue .audiopin-portrait {
  background: #256AE5;
}
.audiopin-blue .audiopin-bubble:after {
  border-top-color: #256AE5;
}
.audiopin-yellow .audiopin-bubble {
  background: #256AE5;
}
.audiopin-yellow .audiopin-portrait {
  background: #E3CA66;
}
.audiopin-yellow .audiopin-bubble:after {
  border-top-color: #256AE5;
}
.audiopin-mint .audiopin-bubble {
  background: #256AE5;
}
.audiopin-mint .audiopin-portrait {
  background: #B2D8B8;
}
.audiopin-mint .audiopin-bubble:after {
  border-top-color: #256AE5;
}
.audiopin-green .audiopin-bubble {
  background: #256AE5;
}
.audiopin-green .audiopin-portrait {
  background: #79A844;
}
.audiopin-green .audiopin-bubble:after {
  border-top-color: #256AE5;
}
.audiopin-greenlight .audiopin-bubble {
  background: #256AE5;
}
.audiopin-greenlight .audiopin-portrait {
  background: #E4F2B7;
}
.audiopin-greenlight .audiopin-bubble:after {
  border-top-color: #256AE5;
}
.audiopin-brown .audiopin-bubble {
  background: #256AE5;
}
.audiopin-brown .audiopin-portrait {
  background: #8D5B4F;
}
.audiopin-brown .audiopin-bubble:after {
  border-top-color: #256AE5;
}
.audiopin-blue2 .audiopin-bubble {
  background: #256AE5;
}
.audiopin-blue2 .audiopin-portrait {
  background: #256AE5;
}
.audiopin-blue2 .audiopin-bubble:after {
  border-top-color: #256AE5;
}
.audiopin-greendark .audiopin-bubble {
  background: #256AE5;
}
.audiopin-greendark .audiopin-portrait {
  background: #3D7B47;
}
.audiopin-greendark .audiopin-bubble:after {
  border-top-color: #256AE5;
}
.audiopin-red .audiopin-bubble, .audiopin-red .audiopin-portrait {
  background-color: #C44A2C;
}
.audiopin-red .audiopin-bubble:after {
  border-top-color: #C44A2C;
}
.audiopin-bubble {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  position: absolute;
  left: 75px;
  top: -100%;
  border-radius: 20px;
  width: 200px;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-transform: uppercase;
  z-index: 1;
  cursor: pointer;
}
.audiopin-bubble:after {
  position: absolute;
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 3px solid transparent;
  border-top: 23px solid;
  transform: rotate(55deg);
  bottom: -11px;
  left: 0;
}
@media (max-width: 575px) {
  .audiopin-bubble {
    font-size: 10px;
    width: 150px;
    top: -80%;
  }
}
.audiopin-yellow .audiopin-bubble, .audiopin-mint .audiopin-bubble, .audiopin-green .audiopin-bubble, .audiopin-greenlight .audiopin-bubble, .audiopin-brown .audiopin-bubble, .audiopin-blue2 .audiopin-bubble, .audiopin-greendark .audiopin-bubble {
  top: -60%;
  left: 90px;
}
.audiopin-portrait {
  border-radius: 100%;
  box-shadow: 0 3px 6px #00000029;
}
.audiopin-portrait-wrap {
  position: relative;
}
.audiopin-transcript {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  position: absolute;
  top: 100px;
  z-index: 1;
  background-color: #FCE8DD;
  border-radius: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out, margin-top 0.3s ease-in-out;
  margin-top: -50px;
  border: 3px solid #D99876;
}
.audiopin-transcript:after {
  width: 0;
  height: 0;
  display: block;
  content: "";
  position: absolute;
  top: -16px;
  left: 28px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 16px solid #D99876;
}
.audiopin-transcript-active {
  margin-top: 0;
  opacity: 1;
  pointer-events: all;
}
.audiopin-transcript-close {
  background: none;
  border: 0;
  color: #8D5B4F;
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 22px;
  cursor: pointer;
}
.audiopin-transcript-close:focus, .audiopin-transcript-close:hover {
  color: #4c312a;
  outline: none;
}
@media (max-width: 575px) {
  .audiopin-transcript-close {
    right: 10px;
    top: 10px;
  }
}
.audiopin-transcript-content {
  padding: 13px 40px;
  margin: 0;
}
.audiopin-transcript-icon {
  color: #8D5B4F;
  position: absolute;
  top: 18px;
  left: 12px;
}
.audiopin-transcript-icon-2 {
  color: #8D5B4F;
  position: absolute;
  bottom: 18px;
  right: 12px;
}
.rakkaus .audiopin-red {
  margin-top: 10px;
}
.rakkaus .audiopin-red .audiopin-bubble {
  left: 85px;
  top: -70%;
}

/* Ahlqvist attack */
.ahlqvistattack.container-fluid {
  min-height: 100vh;
  background: #E0F7FF;
}
@media (max-width: 575px) {
  .ahlqvistattack.container-fluid {
    padding: 0;
    margin: 0 auto;
  }
}
.ahlqvistattack.container {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  max-width: 800px;
  border: 45px solid #C44A2C;
  border-image-source: url("../images/border.png");
  border-image-slice: 70;
  border-image-width: 45px;
  border-image-repeat: round;
  border-image-outset: 11px;
  box-sizing: border-box;
  background: #FAF6E7;
}
@media (max-width: 575px) {
  .ahlqvistattack.container {
    background-color: #FAF6E7;
    width: 85%;
    padding: 20px 15px;
    margin: 10px auto;
    border-image: none;
    border: 0;
  }
}
@media (min-width: 900px) {
  .ahlqvistattack.container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
.ahlqvistattack .transcript {
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
  background-color: #FCE8DD;
  border-radius: 30px;
  border: 3px solid #D99876;
}
.ahlqvistattack .transcript:after {
  width: 0;
  height: 0;
  display: block;
  content: " ";
  position: absolute;
  top: -15px;
  left: 48%;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 16px solid #D99876;
}
@media (min-width: 576px) {
  .ahlqvistattack .transcript:after {
    top: 50px;
    left: -10px;
    border-top: 10px solid transparent;
    border-right: 16px solid #D99876;
    border-bottom: 10px solid transparent;
  }
}
.ahlqvistattack .transcript-content {
  padding: 13px 30px;
  margin: 0;
}
.ahlqvistattack .transcript-icon {
  color: #8D5B4F;
  position: absolute;
  top: 23px;
  left: 25px;
}
.ahlqvistattack .transcript-icon-2 {
  color: #8D5B4F;
  position: absolute;
  bottom: 23px;
  right: 25px;
}
.ahlqvistattack-portrait {
  object-fit: contain;
}
@media (max-width: 575px) {
  .ahlqvistattack-portrait {
    -webkit-appearance: none !important;
    -webkit-box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
    box-shadow: 0 0.5rem 1rem rgba(16, 35, 47, 0.15);
    height: 100px;
    width: 100px;
    margin: 0 auto;
    display: block;
    background: #256AE5;
    border-radius: 50%;
    margin-bottom: 20px;
  }
}
@media (min-width: 900px) {
  .ahlqvistattack-portrait {
    position: absolute;
    min-width: 300px;
    max-width: 400px;
    margin-top: -40px;
    margin-left: -150px;
  }
}
.ahlqvistattack-info {
  font-weight: 700;
}
.ahlqvistattack .col-4 {
  padding: 0;
  margin: 0;
}
.ahlqvistattack .col-sm-8.ahlqvistattack {
  margin-top: 0;
  margin-bottom: 20px;
}

/* Compact audio player */
.compact-audio {
  display: flex;
  justify-content: center;
}
.compact-audio .audioplayer-controller {
  background: none;
  border: 0;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compact-audio .btn {
  margin-right: 10px;
}

/* Move invisible anchor element up so that box title is visible */
#pakopeli {
  position: absolute;
  top: -50px;
}

.pakopeliToggle {
  cursor: pointer;
  font-weight: 600;
}
.pakopeliToggle::before {
  content: "▾";
}
.pakopeliToggle.collapsed::before {
  content: "▸";
}
