/*

GREEN
#0b7569;

GREEN LIGHT
#d8ebe9;
GREEN DARK
#096359;

RED
#db2241;

*/

* {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
}

html {
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

h1,
h2,
h3 {
  font-family: "Open Sans", sans-serif;
  color: #333;
  text-rendering: optimizeLegibility;
}
h2 {
  font-weight: normal;
  font-size: 1.8rem;
}
h3 {
  font-weight: bold;
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p,
li {
  color: #333;
  text-rendering: optimizeLegibility;
}

a {
  color: #d01f3d;
  text-decoration: none;
  text-rendering: optimizeLegibility;
}
a:hover,
a.hidden-link:hover {
  color: #d01f3d;
  text-decoration: underline;
}
a.hidden-link {
  color: inherit;
}

img {
  -ms-interpolation-mode: bicubic;
}

ul {
  list-style: none;
  margin-bottom: 1rem;
}
li::before {
  content: "";
  border-color: transparent #db2241;
  border-style: solid;
  border-width: 0.3em 0 0.3em 0.5em;
  display: block;
  height: 0;
  width: 0;
  left: -1em;
  top: 0.9em;
  position: relative;
}
li {
  padding: 0.1rem 0;
  margin-left: 1rem;
}
@media screen and (min-width: 600px) {
  li {
    margin-left: 3rem;
  }
}

iframe {
  border: 0;
}

div.green-bg {
  background: #0b7569;
}

/* ============ NAVIGAATIOPALKKI =============== */

.upper-nav {
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 10;
}

.upper-nav-content > div {
  line-height: 28px;
  padding: 4px;
  padding-right: 0.75rem;
}

.upper-nav-content a,
.upper-nav-content a:visited,
.upper-nav-content span {
  color: white;
}

.upper-nav-content * {
  vertical-align: middle;
}
.upper-nav-content a {
  vertical-align: baseline;
}

.upper-nav-content input.small {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 0px;
  padding: 0.25rem;
  height: 28px;
  width: 90px;
}
.upper-nav-content button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: 0px;
  height: 28px;
  width: 28px;
  border-width: 1px;
  cursor: pointer;
}

.upper-nav-content {
  height: 40px;
  background: #0b7569;
}

#main-nav {
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 11;
  text-align: center;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.floating-nav {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
}

#main-nav .nav-content {
  position: relative;
  max-width: 1600px;
  padding: 1rem 0.75rem;
  margin: 0 auto;
  text-align: left;
}

#nav-logo {
  width: 256px;
  height: 40px;
  margin-right: 4rem;
}

.nav-content a,
.nav-content a:visited {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  /*text-transform: uppercase;*/
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  color: #606060;
}

a.main-nav-button,
a.main-nav-button:visited {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
}
a.main-nav-button::after {
  display: none;
}

.social-media-nav-buttons {
  float: right;
}

a.main-nav-button.current,
a.main-nav-button:hover {
  color: #db2241;
}

@media screen and (min-width: 1280px) {
  a.main-nav-button {
    transition: color 0.15s ease;
  }
  a.main-nav-button::after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0px;
    transform: translateX(-50%) scaleX(0);
    width: 40%;
    opacity: 0;
    border-top: 2px solid #db2241;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  a.main-nav-button.current::after,
  a.main-nav-button:hover::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
  }

  a.special.main-nav-button {
    border-radius: 999px;
    background: #db2241;
    color: white;
  }
  a.special.main-nav-button:hover {
    border: 1px solid #db2241;
    color: #db2241;
    background: transparent;
  }
  a.special.main-nav-button.current::after,
  a.special.main-nav-button:hover::after {
    opacity: 0;
  }
}

span.menu-toggle-icon {
  display: none;
  font-size: 1.5rem;
}

#nav-pad {
  position: relative;
  width: 100%;
  height: 116px;
}

@media screen and (max-width: 1100px) {
  .nav-content a:first-child {
    display: block;
  }
  #nav-logo {
    margin-right: 1rem;
  }
}

@media screen and (max-width: 1279px) {
  .nav-content a:first-child {
    display: inline-block;
  }

  #nav-logo {
    width: 192px;
    height: 30px;
  }

  span.menu-toggle-icon {
    position: relative;
    display: block;
    float: right;
    line-height: 30px;
    padding: 0 1rem;
    cursor: pointer;
  }

  #main-nav.responsive span.menu-toggle-icon {
    color: transparent;
  }

  #main-nav.responsive span.menu-toggle-icon::after {
    content: "\2a2f";
    color: #db2241;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  a.main-nav-button,
  .social-media-nav-buttons {
    display: none;
  }

  #main-nav.responsive a.main-nav-button,
  #main-nav.responsive .social-media-nav-buttons {
    display: block;
    text-align: center;
  }
  #main-nav.responsive a.main-nav-button {
    float: none;
  }

  #nav-pad {
    height: 100px;
  }

  #hrsuunti-kirjautuminen {
    display: none;
  }
}

/* ============ VÄLINAVIGAATIOPALKKI =============== */

div.container.middle-nav {
  display: table;
  width: 100%;
  padding: 0;
  text-align: center;
  background: #0b7569;
}
div.middle-nav > a {
  padding: 1rem;
  color: white;
  display: table-cell;
  vertical-align: middle;
  border-left: 1px solid #006559;
  border-right: 1px solid #006559;
}
div.middle-nav > a.active {
  background: white;
  color: #0b7569;
  border: 0;
  box-shadow: inset 0px 3px 8px -5px #000;
}

#toimiala-nav-div {
  display: none;
}
#toimiala-select-div {
  display: block;
}
@media screen and (min-width: 768px) {
  #toimiala-nav-div {
    display: table;
  }
  #toimiala-select-div {
    display: none;
  }
}

/* ============ SISÄLTÖ DIVIT =============== */
div.slideshow {
  width: 100%;
  position: relative;
  overflow: hidden;
}
div.slideshow.small {
  height: 15rem;
}
div.slideshow.alternating-size {
  height: 15rem;
}

@media screen and (min-width: 640px) {
  div.slideshow.alternating-size {
    height: 50vw;
  }
}
@media screen and (min-width: 1024px) {
  div.slideshow.small {
    height: 20rem;
  }
  div.slideshow.alternating-size {
    height: 400px;
  }
}

@media screen and (min-width: 2000px) {
  div.slideshow {
    height: 45rem;
  }
  div.slideshow.small {
    height: 25rem;
  }
  div.slideshow.alternating-size {
    height: 500px;
  }
}
/*
div.slide.bg1 {
  background-image: url("kuvat/jouluBG3.jpg");
}*/
.no-webp div.slide.bg1 {
  background-image: url("kuvat/Turku_Aura_River_Panorama_1920px_sRGB_web.jpg");
}
.webp div.slide.bg1 {
  background-image: url("kuvat/Turku_Aura_River_Panorama_1920px_sRGB_web.webp");
}

.no-webp div.slide.turku-hrsuunti-net-bg {
  background-image: url("kuvat/tyovuorosuunnittelu_hrsuunti_net_turku_aurajoki.jpg");
}
.webp div.slide.turku-hrsuunti-net-bg {
  background-image: url("kuvat/tyovuorosuunnittelu_hrsuunti_net_turku_aurajoki.webp");
}

div.slide.bg1 {
  transition-property: background-position;
}
div.slide.bgMara {
  background-image: url("kuvat/mara.jpg");
  background-position: 50% 0%;
}
div.slide.bgApteekit {
  background-image: url("kuvat/apteekit.jpg");
  background-position: 50% 35%;
}
div.slide.bgSote {
  background-image: url("kuvat/sote.jpg");
}
div.slide.bgMuut {
  background-image: url("kuvat/työvuorosuunnittelu_muut_toimialat.jpg");
}

div.slide {
  position: absolute;
  width: 100%;
  height: 100%;

  background-size: cover;
  background-position: 50% 50%;
  text-align: left;
  backface-visibility: hidden;
  overflow: hidden;
}

div.slide video {
  position: absolute;
}
.full-width {
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
}
.full-height {
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
}

div.slide div.container,
div.container {
  position: relative;
  height: 100%;
}
div.text-container {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translate(0, -50%);
  text-align: left;
  padding: 1rem;
}
div.text-container span,
div.text-container h1 {
  display: block;
  font-family: "Passion One", cursive;
  font-weight: normal;
  color: #fff;
  padding: 0rem 0.4rem;
  text-shadow: 0px 0px 4px black, 0px 2px 5px black;
}

div.text-container span.larger,
div.text-container h1.larger {
  font-size: 2.8rem;
}
div.text-container span,
div.text-container h1 {
  font-size: 2rem;
}

@media screen and (min-width: 768px) {
  div.slide video {
    max-height: initial;
  }
  div.text-container span.larger,
  div.text-container h1.larger {
    font-size: 3.5rem;
  }
  div.text-container span,
  div.text-container h1 {
    font-size: 2.5rem;
  }
}

@media screen and (min-width: 1280px) {
  div.left-container {
    width: 50%;
    transform: translate(0, -50%);
  }
}

@media screen and (min-width: 1536px) {
  div.left-container {
    width: 40%;
    transform: translate(-20%, -50%);
  }
  div.text-container span.larger,
  div.text-container h1.larger {
    font-size: 4rem;
  }
  div.text-container span,
  div.text-container h1 {
    font-size: 2.75rem;
  }
}

div.slideshow-nav {
  position: absolute;
  width: 100%;
  left: 0px;
  bottom: 0px;
}

span.slideshow-nav-circle {
  display: inline-block;
  margin: 0.5rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 0.8rem;
  background: white;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.75s linear;
  box-shadow: 0px 1px 5px #000;
}
span.slideshow-nav-circle:hover {
  opacity: 0.75;
}
span.slideshow-nav-circle.active {
  opacity: 1;
}

div.slideshow-nav.style2 span.slideshow-nav-circle {
  box-shadow: none;
  background: #aaa;
}
div.slideshow-nav.style2 span.slideshow-nav-circle.active {
  background: #0b7569;
}

button.slideshow-prev-arrow,
button.slideshow-next-arrow {
  position: absolute;
  top: 50%;
  width: 5rem;
  height: 5rem;
  border: 0;
  transform: translate(0, -50%);
  background: #fff;
  opacity: 0.3;
  outline: none;
  cursor: pointer;
  transition: opacity 0.3s;
}
button.slideshow-prev-arrow {
  left: 0px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

button.slideshow-next-arrow {
  right: 0px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}
button.slideshow-prev-arrow > span,
button.slideshow-next-arrow > span {
  line-height: 3rem;
  font-family: "Open Sans", sans-serif;
  font-size: 5rem;
}
button.slideshow-prev-arrow:hover,
button.slideshow-next-arrow:hover {
  opacity: 0.7;
}

div.slideshow-subtexts-wrapper {
  overflow-x: hidden;
}
div.slideshow-subtexts {
  display: table;
  width: 200vw;
  transition: transform 600ms;
  will-change: transform;
}
div.slide-subtext {
  display: table-cell;
  width: 50%;
}
div.slide-subtext h1 {
  text-align: center;
  margin-bottom: 1.75rem;
  margin-top: 1rem;
  font-weight: 400;
  font-size: 1.4rem;
}
div.slide-subtext p {
  text-align: left;
  margin-bottom: 0.8rem;
}
@media screen and (min-width: 768px) {
  div.slide-subtext h1 {
    font-size: 1.8rem;
  }
}

div.header-div {
  padding: 0.5rem;
  background: #0b7569;
}
div.header-div h1 {
  color: white;
  font-weight: bold;
}

div.content-div.overflow {
  clear: both;
  overflow: hidden;
}

div.content-div.gray,
div.container.gray {
  background-color: #d8ebe9;
}
div.light-green-bg {
  background-color: #d8ebe9;
}

div.content-div.gray.gradient {
  background: linear-gradient(#439e87, #4d968c);
  color: white;
}
div.content-div.gray.gradient p,
div.content-div.gray.gradient h1,
div.content-div.gray.gradient h2,
div.content-div.gray.gradient h3 {
  color: white;
}

.content-div {
  padding-bottom: 1rem;
  padding-top: 1rem;
}
div.top-diagonal,
div.bottom-diagonal {
  display: none;
}

div.bottom-diagonal-mirror {
  content: " ";
  display: block;
  width: 100%;
  overflow: auto;
  padding-bottom: 10%;
  background: url("kuvat/bottomDiagonalMirror2.jpg");
  background-size: 100% 100%;
  margin-top: -2px;
}

.mirror-h {
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
}

@media screen and (min-width: 768px) {
  .content-div {
    padding-bottom: 0;
    padding-top: 0;
  }

  div.top-diagonal,
  div.bottom-diagonal {
    content: " ";
    display: block;
    width: 100%;
    overflow: auto;
    padding-bottom: 10%;
    margin-top: -2px;
    margin-bottom: -2px;
  }
  div.top-diagonal {
    background: url("kuvat/topDiagonal2.jpg");
    background-size: 100% 100%;
  }
  div.bottom-diagonal {
    background: url("kuvat/bottomDiagonal2.jpg");
    background-size: 100% 100%;
  }
}

div.content-div.right {
  text-align: right;
}

.container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
}
@media screen and (min-width: 768px) {
  .container {
    padding: 1rem;
  }
}
div.wide.container {
  max-width: 1800px;
}
div.narrow.container {
  max-width: 700px;
}
.narrow.container p {
  margin-bottom: 1rem;
}

div.table {
  display: table;
  width: 100%;
  height: 100%;
  text-align: center;
}
div.table-cell {
  display: block;
  position: relative;
}

div.content-card {
  height: 100%;
  padding-bottom: 1.6rem;
  text-align: left;
}
div.content-card > * {
  text-align: left;
}
div.content-card > img {
  width: 100%;
  height: auto;
}
div.content-card p {
  padding-bottom: 1rem;
}

@media screen and (min-width: 768px) {
  div.table-cell {
    display: inline-block;
    width: 49%;
    vertical-align: top;
  }
  div.table-cell:not(:first-child)::after {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    height: 40%;
    width: 1px;
    background: #0b7569;
  }

  div.content-card {
    padding: 0.8rem;
  }
}

@media screen and (max-width: 1279px) {
  div.table-cell:nth-child(2n + 1)::after {
    height: 0;
    width: 0;
  }
}
@media screen and (min-width: 1280px) {
  div.table-cell {
    display: table-cell;
    width: 25%;
    height: 100%;
    padding: 0.2rem;
  }
}

div.flex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: stretch;
}

div.card-wrapper {
  flex: 1 0 50%;
  padding: 0.5rem;
  background: transparent;
}
div.card-wrapper.wide {
  flex: 1 1 100%;
}

div.card {
  padding: 1rem;
  background: white;
  height: 100%;
  transition: box-shadow 0.2s ease-in-out;
}

div.card img {
  padding: 1rem;
  margin: auto;
}

div.card p.larger {
  font-size: 1.5rem;
}

div.card-wrapper a:hover {
  text-decoration: none;
}
div.card-wrapper a:hover div.card {
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

div.palkkaliittyma-logot > * {
  flex: 1 0 50%;
}

@media screen and (min-width: 600px) {
  div.card-wrapper {
    padding: 1rem;
  }
  div.card {
    padding: 2rem;
  }
  div.card img {
    padding: 2rem;
  }
  div.palkkaliittyma-logot > * {
    flex: 1 0 33%;
  }
}
@media screen and (min-width: 768px) {
  div.palkkaliittyma-logot > * {
    flex: 1 0 20%;
  }
}

.content-div h1 {
  padding-bottom: 1rem;
  font-size: 2rem;
  font-weight: normal;
}
h1.underline-style::after {
  content: "";
  display: block;
  width: 4rem;
  border-top: 0.2rem solid #0b7569;
  margin: auto;
  margin-top: 0.6rem;
}

h1.center-style {
  display: flex;
  align-items: center;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}
h1.center-style::before,
h1.center-style::after {
  content: "";
  flex: 1 1 auto;
  border-bottom: 2px solid #0b7569;
}
h1.center-style::before {
  margin-right: 1rem;
}
h1.center-style::after {
  margin-left: 1rem;
}

.content-div h2 {
  margin-top: 0.8rem;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
}

@media screen and (min-width: 768px) {
  h1.center-style::before,
  h1.center-style::after {
    margin: 0rem 2rem;
  }

  .content-div h2 {
    font-size: 1.7rem;
  }
}

@media screen and (min-width: 1000px) {
  .content-div h1 {
    font-size: 2.3rem;
  }
  h1.center-style::before,
  h1.center-style::after {
    margin: 0rem 2rem;
  }

  .content-div h2 {
    font-size: 1.8rem;
  }
}

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

.container.middle-align {
  display: block;
}
.container.middle-align .left {
  order: 1;
}
.container.middle-align .right {
  order: 2;
}

.img-panel {
  padding-top: 1rem;
}

.text-panel.right,
.img-panel.right {
  float: right;
}
.text-panel.left,
.img-panel.left {
  float: left;
}

.product-image {
  max-width: 580px;
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.text-panel {
  vertical-align: middle;
}
.text-panel.align-top {
  vertical-align: top;
}

@media screen and (min-width: 768px) {
  .container.middle-align {
    display: flex;
    align-items: center;
  }

  .text-panel {
    padding: 1rem;
  }

  .text-panel {
    text-align: left;
  }

  h1.underline-style::after {
    margin: 0.4rem;
  }

  .lift-content {
    margin-top: -4rem;
  }

  .product-image {
    max-width: 700px;
    margin-top: 0;
    margin-bottom: 0;
  }
}

div.container.header-logos {
  position: relative;
}
span.suomalaista-palvelua-logo,
span.tv-tuttu-logo {
  position: absolute;
  padding: 1.3rem;
  right: 10px;
  background: #fff;
  top: -5rem;
  z-index: 3;
  width: 7rem;
  height: 7rem;
}

span.tv-tuttu-logo {
  background: #d35;
  color: white;
  font-size: 1.1rem;
  text-align: center;
  font-weight: bold;
}
span.tv-tuttu-logo span.large {
  font-size: 2.2rem;
}
span.tv-tuttu-logo i.material-icons {
  font-size: 1.5rem;
  padding-left: 0.5rem;
}

@media screen and (min-width: 768px) {
  span.suomalaista-palvelua-logo,
  span.tv-tuttu-logo {
    padding: 2.5rem;
    right: initial;
    left: 10px;
    top: -5rem;
    width: 13rem;
    height: 13rem;
  }
  span.tv-tuttu-logo {
    padding: 2rem;
    font-size: 2rem;
  }
  span.tv-tuttu-logo span.large {
    font-size: 4rem;
  }
  span.tv-tuttu-logo i.material-icons {
    font-size: 2rem;
  }
}

#map {
  height: 600px;
}

div.map-info {
  background: #0b7569;
}

@media screen and (min-width: 768px) {
  #map {
    height: 1200px;
  }
  div.map-container {
    display: flex;
    width: 100%;
  }
  div.map-container > div {
    height: 1200px;
    max-height: 1200px;
  }
}

div#asiakas-valinta-table {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#asiakaslista {
  text-align: left;
  margin-top: 0.5rem;
  flex-grow: 1;
  overflow-y: auto;
}
span.company-span {
  display: inline-block;
  padding: 0.1rem 0.3rem;
  margin: 0.1rem;
  background: #d8ebe9;
  border-radius: 1px;
  box-shadow: 1px 1px 4px -1px #000;
  color: #222;
  cursor: pointer;
  font-size: 0.9rem;
}
span.company-span:hover {
  background: #e5f0c0;
}

div.asiakas-logot {
  position: relative;
  overflow: hidden;
  height: 14rem;
  margin: 2rem 0;
  left: 2rem;
  width: calc(100% - 4rem);
}
div.asiakas-logot.front-page {
  height: 7rem;
  left: 0;
  width: 100%;
}
div.asiakas-logot.map-side {
  height: 1000px;
  left: 0;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}
div.asiakas-logot.map-side a.asiakas-logo {
  display: inline-block;
  position: initial;
  width: 25%;
  scale: 1;
  transition: scale 0.15s ease-in-out;
}
div.asiakas-logot.map-side a.asiakas-logo:hover {
  scale: 1.1;
}
@media screen and (min-width: 1280px) {
  div.asiakas-logot.map-side a.asiakas-logo {
    width: 20%;
  }
}

a.asiakas-logo {
  position: absolute;
  left: 0;
  top: 0;
  padding: 1rem;
  background-size: contain;
  background-origin: content-box;
  background-position: center;
  background-repeat: no-repeat;
  backface-visibility: hidden;
}
a.asiakas-logo.animated {
  transition: transform 0.6s ease;
}

#ref-arrow-left,
#ref-arrow-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: auto;
  padding-left: 0.5rem;
  cursor: pointer;
}
#ref-arrow-left:hover,
#ref-arrow-right:hover {
  src: url("/kuvat/arrowLeftRed.png");
}
#ref-arrow-left {
  left: 0;
}
#ref-arrow-right {
  right: 0;

  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1) translateY(-50%);
  filter: FlipH;
  -ms-filter: "FlipH";
}

/* ============ FOOTER =============== */

footer {
  margin-top: 4rem;
}

footer .content-div {
  background: #15564f;
}
footer .content-div.darkgray {
  background: #444;
}
footer .content-div.darkgreen {
  background: #20625d;
}
footer .content-div.white {
  background: white;
}

footer .box-wrapper {
  display: flex;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  justify-content: space-between;
}

footer .box-wrapper > div {
  padding: 1rem;
  flex: 1 0 240px;
}

@media screen and (min-width: 600px) {
  footer .box-wrapper > div {
    padding: 1.5rem;
  }
}

footer .box-wrapper h1,
footer a,
footer a:visited,
footer p,
footer span {
  font-weight: normal;
  color: white;
}

footer .box-wrapper p:first-child {
  font-size: 1.3rem;
  text-transform: uppercase;
  font-weight: bold;
  color: #acc;
}

footer h1.center-style {
  color: white;
}
footer h1.center-style::after,
footer h1.center-style::before {
  border-bottom-color: white;
}

footer a:hover {
  color: white;
}

.float-right {
  float: right;
  text-align: right;
}
.loose-link-list a {
  display: inline-block;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* ============== COMMON ELEMENTS ============= */

.center {
  text-align: center;
}

a.button {
  display: inline-block;
  position: relative;
  color: white;
  background: #db2241;
  padding: 0.8rem 3rem;
  margin-top: 2rem;
  border: 0;
  border-radius: 3px;
  transition: all 200ms;
}
a.button:hover {
  text-decoration: none;
  padding-right: 3.5rem;
  padding-left: 2.5rem;
}

a.button::after {
  content: ">";
  position: absolute;
  right: 25px;
  opacity: 0;
  top: 50%;
  transform: translate(-25px, -50%);
  transition: transform 200ms, opacity 200ms;
}
a.button:hover::after {
  position: absolute;
  transform: translate(0px, -50%);
  opacity: 1;
}

a.center-red-button {
  background: #db2241;
  color: white;
  display: inline-block;
  padding: 0.8rem 3rem;
  margin-bottom: 2rem;
}
a.center-red-button:hover {
  color: white;
  text-decoration: none;
  background: #eb3251;
}

a.button.white {
  border: 2px solid #fff;
  background: transparent;
  padding: 0.8rem 4rem;
  text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
}
a.button.white:hover {
  text-decoration: none;
  padding-right: 4.5rem;
  padding-left: 3.5rem;
}

.anchor-point {
  position: absolute;
  top: -150px;
}

/* NUMBER SLIDE STYLING ========= */

div.diagram-bg-div {
  height: 15rem;
  background: #096359;
}

@media screen and (max-width: 1279px) {
  div.number-slide {
    position: absolute;
    left: 10%;
    top: 40%;
    width: 80%;
    height: 50%;
    transform: translateY(-50%) scaleY(0);
    backface-visibility: hidden;
    perspective: 1000;
  }

  div.number-slide:first-child {
    animation: numberSlideAnimation 12s ease-in-out 0s infinite forwards;
  }
  div.number-slide:nth-child(2) {
    animation: numberSlideAnimation 12s ease-in-out 4s infinite forwards;
  }
  div.number-slide:nth-child(3) {
    animation: numberSlideAnimation 12s ease-in-out 8s infinite forwards;
  }

  @keyframes numberSlideAnimation {
    0% {
      transform: translateY(-120%) scaleY(0);
    }
    4% {
      transform: translateY(-50%) scaleY(1);
    }
    33% {
      transform: translateY(-50%) scaleY(1);
    }
    37% {
      transform: translateY(20%) scaleY(0);
    }
  }
}

@media screen and (min-width: 1280px) {
  div.diagram-bg-div {
    height: 18rem;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
  }
}

/* END OF NUMBER SLIDE STYLING ========= */

div.person-div {
  display: flex;
  padding: 1rem 0;
}
div.person-div.bold {
  background: #fae5ea;
}

div.person-div > div {
  vertical-align: top;
  padding-top: 2rem;
}
div.person-div div > img {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 999px;
  margin-right: 1rem;
}

div.person-div p {
  margin-bottom: 0.2rem;
}
div.person-div p.name {
  font-family: "Open Sans", sans-serif;
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.8rem;
}
div.person-div p.field {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
}

div.person-div.bold p {
  font-weight: bold;
}

div.person-div p img {
  display: inline-block;
  height: 1rem;
  width: auto;
  vertical-align: middle;
}

@media screen and (min-width: 640px) {
  div.person-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  div.person-div {
    display: block;
    padding: 1rem 2rem;
  }
  div.person-div > div {
    display: block;
    padding-top: 0.5rem;
  }
  div.person-div div > img {
    width: 125px;
    height: 125px;
    margin-right: 0;
  }
  div.person-div h2 {
    font-size: 1.5rem;
    margin-top: 1rem;
  }
}
@media screen and (min-width: 1280px) {
  div.person-div div > img {
    width: 175px;
    height: 175px;
  }
}

span.top-right-close-icon {
  position: absolute;
  right: 0.5rem;
  top: 0.2rem;
  font-size: 1.5rem;
  cursor: pointer;
}

button#back-to-top-button {
  margin-top: 1rem;
  position: relative;
  width: 3rem;
  height: 3rem;
  background: transparent;
  border-radius: 100%;
  border: 1px solid #fff;
  color: #fff;
  transform: rotate(90deg);
  outline: none;
  cursor: pointer;
  transition: background 0.3s;
}
button#back-to-top-button::after {
  content: "\003c";
  position: absolute;
  left: 50%;
  top: 45%;
  font-family: "Open Sans", sans-serif;
  transform: translate(-50%, -50%) scaleX(0.7);
  font-size: 2.8rem;
  transition: color 0.3s;
}
button#back-to-top-button:hover {
  background: #fff;
}
button#back-to-top-button:hover::after {
  color: #0b7569;
}

a.team-viewer-nappi {
  text-align: center;
  display: inline-block;
  margin-top: 1rem;
  max-width: 128px;
}
a.team-viewer-nappi p {
  text-align: center;
  padding-top: 0.3rem;
}

div[data-video-id] {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.2%;
  margin: 0;
  background-size: cover;
  background-position: center;
  background-color: #000;
}
div[data-video-id] > iframe {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
}

/* ============== FORM ELEMENTS ================== */

div.container.form-container {
  padding: 1rem 0 0 0;
}

form {
  padding: 1rem;
  padding-top: 0;
  text-align: left;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
label,
textarea {
  text-align: left;
  display: block;
  margin: 0.2rem 0.2rem;
}
label {
  margin-top: 0.5rem;
  margin-left: 0.8rem;
  font-weight: bold;
  font-size: 0.9em;
  color: #ffffff;
}
label.white {
  color: white;
}
label.required::after {
  content: "*";
  color: #ffffff;
  padding: 0.1rem;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: calc(100% - 0.4rem);
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  padding: 0.6rem;
  font-size: 1rem;
  background: #fff;

  box-shadow: inset 0px 1px 6px -4px #000;
}

input.small {
  display: inline-block;
  width: 80px;
  margin: 0 0.2rem;
  padding: 0.2rem;
}

textarea {
  font-family: inherit;
  resize: vertical;
  min-height: 8em;
  max-height: 16em;
}

input[type="submit"],
input[type="button"] {
  margin: 1rem 0.2rem;
  padding: 0.8rem 2rem;
  font-family: inherit;
  background: #db2241;
  color: white;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  box-shadow: 0px 1px 4px -1px #000;
  border-radius: 2px;
}
input[type="submit"]:hover,
input[type="button"]:hover {
  background: #eb3251;
}

div.input-wrapper {
  width: 100%;
  display: flex;
}

div.input-wrapper > input {
  display: inline-block;
  width: 90%;
  margin-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
div.input-wrapper > span {
  display: inline-block;
  width: 4rem;
  border: 1px solid #aaa;
  border-left: 0;
  background: #ddd;
  color: #000;
  margin: 0.2rem 0.2rem;
  margin-left: 0;
  padding: 0.6rem 0.2rem;
  text-align: center;
  font-size: 1rem;
  box-shadow: inset 0px 1px 6px -4px #000;
}

.lazyload:not(.no-loading-icon):after {
  content: "";
  position: absolute;
  display: inline-block;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 100%;
  border: 6px solid #ddd;
  border-top: 6px solid transparent;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: spinnerRotation 1s infinite linear;
}

@keyframes spinnerRotation {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

ul.columns {
  columns: 1;
  -webkit-columns: 1;
  -moz-columns: 1;
}

@media screen and (min-width: 400px) {
  ul.columns {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
  }
}

@media screen and (min-width: 768px) {
  ul.columns {
    columns: 4;
    -webkit-columns: 4;
    -moz-columns: 4;
  }
}

a.ohjelma-nappi {
  display: inline-block;
  width: 180px;
  text-align: center;
  margin: 0.25rem;
  padding: 0.5rem 0;
  box-shadow: 0px 1px 3px -1px #000;
}
a.ohjelma-nappi.blue {
  color: #44e;
}
a.ohjelma-nappi:hover {
  background: #ffe0e5;
  box-shadow: 0px 2px 8px -2px #000;
}
a.ohjelma-nappi.blue:hover {
  background: #e3e3ff;
}

a.ohjelma-nappi img {
  width: 80%;
  height: auto;
}

@media screen and (min-width: 1024px) {
  div.double-content {
    display: flex;
    justify-content: center;
  }

  div.double-content > div {
    padding: 2rem;
  }
  div.double-content > div:first-child {
    margin-right: 0;
  }
  div.double-content > div:last-child {
    margin-left: 0;
  }
}

/* ============== COLUMNS ================== */

.column-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.col-s {
  width: 100%;
}
@media screen and (min-width: 768px) {
  .col-s {
    width: 33%;
  }
}

.col-m {
  width: 100%;
  display: inline-block;
}
@media screen and (min-width: 768px) {
  .col-m {
    width: 49.7%;
  }
}

.template-image {
  border: 2px dashed #0b7569;
  background: repeating-linear-gradient(
    45deg,
    #0b7569,
    #0b7569 2px,
    transparent 2px,
    transparent 12px
  );
}

img.medium-logo,
span.text-logo {
  margin: 1.5rem;
  vertical-align: middle;
}

img.medium-logo {
  height: 5rem;
  width: auto;
}

span.text-logo {
  display: inline-block;
  color: #2a487f;
  text-align: center;
  font-size: 1.2rem;
  font-style: italic;
}

.fullscreen-container {
  z-index: 100;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
}

#fullscreen-image {
  width: 90%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.close-marker {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 56px;
  color: #999;
  cursor: pointer;
}

.zoomable {
  cursor: zoom-in;
}

#fullscreen-post-it-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
#fullscreen-post-it {
  background-color: #ee8;
  padding: 2rem;
  font-family: "Indie Flower", cursive;
  font-size: 1.25rem;
  max-width: 600px;
}

@media screen and (min-width: 768px) {
  #fullscreen-post-it {
    padding: 3rem;
    font-size: 1.5rem;
  }
}

/* =============== CHECKBOX STYLES =============================*/

/* Customize the label (the container) */
.checkbox {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox input {
  position: absolute;
  opacity: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  width: 22px;
  background-color: #fff;
  border: 1px solid #bbb;
  border-radius: 3px;
}

.checkbox:hover input ~ .checkmark {
  box-shadow: inset 0px 0px 8px -3px #000;
}
.checkbox input:checked ~ .checkmark {
  border: 1px solid #0b7569;
  background-color: #0b7569;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
/* Show the checkmark when checked */
.checkbox input:checked ~ .checkmark:after {
  display: block;
}
/* Style the checkmark/indicator */
.checkbox .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* ======================================================== */

a.white:hover {
  color: white;
}

div.files {
  border: 1px solid #aaa;
}

div.folder {
  cursor: pointer;
}

div.file,
div.folder {
  text-align: left;
  background: #e0e0e0;
  color: #222;
  position: relative;
}

div.file:nth-child(2n),
div.folder:nth-child(2n) {
  text-align: left;
  background: #efefef;
}

div.file:hover {
  display: block;
  background: #efc0c4;
}
div.file a:hover {
  text-decoration: none;
}

div.file a,
div.folder {
  padding: 0.5rem;
}

div.folder {
  background: #c0e0c0;
}
div.folder:nth-child(2n) {
  background: #cfefcf;
}

div.folder:hover {
  background: #b0efb0;
}

div.file a {
  display: block;
}

div.file a > *,
div.folder > * {
  vertical-align: middle;
}

div.file a > i,
div.folder > i {
  padding-right: 0.8rem;
  font-size: 1.8rem;
}

span.indent {
  display: inline-block;
  width: 40px;
}

div.file a {
  color: #222;
}

.vertical-margins {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.modified-date {
  display: none;
}

@media screen and (min-width: 600px) {
  .modified-date {
    display: inline-block;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #777;
    font-size: 0.9rem;
    font-style: italic;
  }
}

.new-file {
  font-weight: bold;
}

div.toimiala-selector {
  background-color: #0b7569;
  border-top: 1px solid #adc;
  text-align: center;
}

div.toimiala-selector > div > span {
  display: inline-block;
  padding: 1.5rem 2.5rem;
  color: #fff;
  font-weight: bold;
  background-color: #0b7569;
  cursor: pointer;
  transition: background-color 0.3s;
}

div.toimiala-selector > div > span:hover {
  background-color: #298;
}

div.toimiala-panel {
  border-bottom: 1px solid #adc;
}

.images {
  text-align: center;
}
.images img {
  height: auto;
  width: auto;
  max-width: 120px;
  max-height: 80px;
  vertical-align: middle;
  margin: 2rem;
}

.flex-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media screen and (min-width: 768px) {
  .flex-panel {
    flex-direction: row;
  }
}

.post-it-note-container {
  width: 280px;
  flex: 0 0 auto;
  padding-top: 1rem;
}
#post-it-note {
  position: relative;
  background-color: #ee8;
  padding-bottom: 100%;
  transform: rotate(-5deg);
}

#post-it-note-text {
  position: absolute;
  font-family: "Indie Flower", cursive;
  font-size: 1rem;
  padding: 1rem;
  text-align: center;
  opacity: 1;
  transition: opacity 300ms linear;
}
#post-it-note-text.hidden {
  opacity: 0;
}

@media screen and (min-width: 768px) {
  .post-it-note-container {
    width: 360px;
    padding-top: 8rem;
    order: -1;
  }

  #post-it-note-text {
    font-size: 1.3rem;
    padding: 1.5rem;
  }
}

.post-it-button {
  position: absolute;
  display: inline-block;
  bottom: 4px;
  text-align: center;
  vertical-align: middle;
  background: #eea;
  cursor: pointer;
}
.post-it-button.small {
  width: 32px;
  height: 32px;
  line-height: 32px;
}
.post-it-button i {
  font-size: 30px;
  color: #775;
}
#post-it-note .right-arrow {
  right: 4px;
}
#post-it-note .left-arrow {
  right: 40px;
}
#post-it-note .video-button,
#post-it-note .read-more {
  left: 4px;
}
#post-it-note .read-more {
  padding: 0.5rem;
  display: inline-block;
}

.right-image-container {
  display: none;
}
@media screen and (min-width: 1400px) {
  .right-image-container {
    display: block;
    width: 400px;
    order: 3;
    padding-top: 2rem;
  }
  .xmas.right-image-container {
    transform: rotate(5deg);
  }
}

.col-9 {
  width: 100%;
}
.col-8 {
  width: 100%;
}
.col-4 {
  width: 50%;
}
.col-3 {
  width: 33.33%;
}

.larger-container {
  padding: 1rem;
  margin: auto;
}

@media screen and (min-width: 768px) {
  .col-9 {
    width: 75%;
  }
  .col-8 {
    width: 66.67%;
  }
  .col-4 {
    width: 33.33%;
  }
  .col-3 {
    width: 25%;
  }

  .larger-container {
    max-width: 1600px;
  }
}

a.white.link {
  color: white;
  text-decoration: underline;
}
a.white.link:hover {
  color: white;
  text-decoration: none;
}

.text-left-bottom-corner-cut {
  shape-outside: polygon(0% 0%, 0% 20%, 0% 100%);
}

#mobi-front-page-content-div picture,
#mobi-front-page-content-div picture img {
  margin-top: -5rem;
}

@media screen and (min-width: 768px) {
  #mobi-front-page-content-div .text-panel {
    margin-top: -5rem;
  }
}

@media screen and (min-width: 1280px) {
  #mobi-front-page-content-div picture,
  #mobi-front-page-content-div picture img {
    margin-top: 4rem;
    margin-left: -3rem;
  }
}

.fade-in-appear:not(.lazyload) {
  animation: fade-appear-animation 0.5s ease 0s 1;
}

@keyframes fade-appear-animation {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

a.opacity-hover:hover {
  opacity: 0.8;
}

a#bottom-floating-button {
  position: fixed;
  right: 0.6rem;
  bottom: 0.6rem;
  z-index: 4;
  padding: 1rem;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background: #db2241;
  border-radius: 5px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
}
a#bottom-floating-button:active,
a#bottom-floating-button:hover {
  text-decoration: none;
}

@media screen and (min-width: 500px) {
  a#bottom-floating-button {
    font-size: 20px;
  }
}

#yhteistyossa-page {
  margin-bottom: -25rem;
}
#yhteistyossa-page .card-wrapper:last-child .card p,
#yhteistyossa-page .card-wrapper:last-child .card h3 {
  position: relative;
  z-index: 1;
}
#yhteistyossa-page + footer:before {
  content: "";
  display: block;
  width: 100%;
  height: 25rem;
  background: white;
  /*position: relative;*/
}

#giosg_chat_now_button {
  animation: appear-from-right 0.5s ease 0s;
}
@keyframes appear-from-right {
  from {
    transform: translateX(150%);
  }
  to {
    transform: translateX(0%);
  }
}

.darkgreen-to-white-round {
  position: relative;
  height: 4rem;
  overflow: hidden;
  background: #096359;
}
.darkgreen-to-white-round:after {
  content: "";
  position: absolute;
  background: white;
  border-radius: 50%;
  left: -10%;
  width: 120%;
  height: 10rem;
  top: 0rem;
}

.no-padding-top {
  padding-top: 0px !important;
}
.no-top-margin {
  margin-top: 0px !important;
}

.content-div .link-icon-image {
  display: block;
  padding: 8px;
  background: #db2241;
  max-width: 80px;
  border-radius: 100%;
  margin: 1.5rem auto 1.5rem auto;
}

@media screen and (min-width: 400px) {
  .content-div .image-on-right-container {
    display: flex;
    align-items: center;
  }
  .content-div .link-icon-image {
    display: inline-block;
    flex: 0 0 auto;
    margin: 0;
  }
  .content-div .image-on-right-container p {
    flex: 1 1 auto;
    text-align: left;
    padding-left: 2rem;
    margin-bottom: 0;
  }
}

@media screen and (min-width: 768px) {
  .content-div .image-on-right-container {
    width: 80%;
    margin-left: 10%;
  }
}

.joulu-flex {
  padding-top: 4rem;
  text-align: center;
}
.joulu-flex img {
  max-width: 100%;
  border: 1px solid #888;
}

@media screen and (min-width: 768px) {
  .joulu-flex img {
    max-width: 600px;
    width: 100%;
  }
}

.quote-box {
  background: #f1f1f1;
  padding: 0.5rem;
  padding-left: 1rem;
  border-left: 3px solid #ddd;
  font-style: italic;
}

@media screen and (min-width: 1500px) {
  #hrmobi-advertise {
    position: relative;
    left: 100px;
    top: 100px;
  }
}

@media screen and (min-width: 768px) {
  .language-versions-box {
    bottom: -4rem;
    left: 1rem;
  }
  .language-versions-box span {
    text-align: left;
  }
  .language-versions-box img {
    width: 180px;
    height: auto;
  }
}
@media screen and (min-width: 1280px) {
  .language-versions-box {
    top: 2.5rem;
    bottom: inherit;
    right: 1rem;
    left: inherit;
  }
}

.social-media-logos a {
  display: inline-block;
}
.social-media-logos a img {
  width: 2.5rem;
  height: auto;
  padding-right: 0.5rem;
}

.reference-slideshow {
  animation-name: appear-fade;
  animation-duration: 0.5s;
  animation-delay: 500ms;
  animation-iteration-count: 1;
  animation-timing-function: cubic-bezier(0.455, 0.03, 0.515, 0.955);
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes appear-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reference-slideshow .slide-subtext .container {
  padding: 1rem;
  margin-bottom: 2rem;
}

.reference-slideshow div.slideshow-subtexts {
  transition-timing-function: cubic-bezier(0.49, 0, 0.26, 0.97);
}

@media screen and (min-width: 640px) {
  div.reference-slideshow.slideshow.alternating-size {
    height: 50vw;
  }
}
@media screen and (min-width: 1024px) {
  div.reference-slideshow.slideshow.alternating-size {
    height: 600px;
  }
  .reference-slideshow.slideshow-subtexts-wrapper {
    margin-top: -8rem;
    overflow-x: none;
  }
  .reference-slideshow .slide-subtext .container {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
  }
}

@media screen and (min-width: 2000px) {
  div.reference-slideshow.slideshow.alternating-size {
    height: 700px;
  }
}

/* ===   OWN UTILITIES   === */

.clear {
  clear: both;
}

.green {
  color: #0b7569;
}
.white {
  color: white;
}

/* ===   Utilities   === */

.inline-block {
  display: inline-block;
}
.hidden {
  display: none;
}
.block {
  display: block;
}
.flex {
  display: flex;
}

.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}

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

.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}

.flex {
  display: flex;
}
.flex-1 {
  flex: 1 1 0%;
}

.absolute {
  position: absolute;
}
.relative {
  position: relative;
}

.bottom-0 {
  bottom: 0;
}
.left-0 {
  left: 0;
}

.w-4\/5 {
  width: 80%;
}
.w-full {
  width: 100%;
}

.max-w-4xl {
  max-width: 56rem;
}

.italic {
  font-style: italic;
}

.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.rounded {
  border-radius: 0.25rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-full {
  border-radius: 9999px;
}

.cursor-pointer {
  cursor: pointer;
}

.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.pt-0 {
  padding-top: 0;
}
.pt-1 {
  padding-top: 0.25rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-3 {
  padding-top: 0.75rem;
}
.pt-4 {
  padding-top: 1rem;
}
.pt-8 {
  padding-top: 2rem;
}
.pt-16 {
  padding-top: 4rem;
}
.pt-32 {
  padding-top: 8rem;
}

.pl-0 {
  padding-left: 0;
}
.pl-1 {
  padding-left: 0.25rem;
}
.pl-2 {
  padding-left: 0.5rem;
}
.pl-3 {
  padding-left: 0.75rem;
}
.pl-4 {
  padding-left: 1rem;
}
.pl-12 {
  padding-left: 3rem;
}

.pb-0 {
  padding-bottom: 0;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pb-8 {
  padding-bottom: 2rem;
}
.pb-12 {
  padding-bottom: 3rem;
}

.m-auto {
  margin: auto;
}
.m-0 {
  margin: 0;
}
.m-4 {
  margin: 1rem;
}

.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-8 {
  margin-bottom: 2rem;
}

.bg-gray-100 {
  background-color: #f7fafc;
}
.bg-gray-200 {
  background-color: #edf2f7;
}
.bg-gray-300 {
  background-color: #e2e8f0;
}

.text-gray-800 {
  color: #2d3748;
}
.text-yellow-500 {
  color: #ecc94b;
}

.text-red-300 {
  color: #feb2b2 !important;
}
.text-red-400 {
  color: #fc8181 !important;
}
.text-red-500 {
  color: #f56565 !important;
}
.text-red-600 {
  color: #e53e3e !important;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-base {
  font-size: 1rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-4xl {
  font-size: 2.25rem;
}
.text-5xl {
  font-size: 3rem;
}
.text-6xl {
  font-size: 4rem;
}

.font-bold {
  font-weight: 700;
}

.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}

.align-middle {
  vertical-align: middle;
}
.align-top {
  vertical-align: top;
}

.overflow-hidden {
  overflow: hidden;
}

.justify-center {
  justify-content: center;
}

@media (min-width: 640px) {
  .sm\:block {
    display: block;
  }
  .sm\:inline-block {
    display: inline-block;
  }
  .sm\:inline {
    display: inline;
  }
  .sm\:flex {
    display: flex;
  }
  .sm\:hidden {
    display: none;
  }

  .sm\:w-4\/5 {
    width: 80%;
  }

  .sm\:text-base {
    font-size: 1rem;
  }
  .sm\:text-xl {
    font-size: 1.25rem;
  }
  .sm\:text-5xl {
    font-size: 3rem;
  }
  .sm\:text-6xl {
    font-size: 4rem;
  }

  .sm\:p-8 {
    padding: 2rem;
  }
  .sm\:pt-0 {
    padding-top: 0;
  }
}

@media (min-width: 768px) {
  .md\:block {
    display: block;
  }
  .md\:flex {
    display: flex;
  }
  .md\:hidden {
    display: none;
  }

  .md\:w-4\/5 {
    width: 80%;
  }

  .md\:text-center {
    text-align: center;
  }

  .md\:text-xl {
    font-size: 1.25rem;
  }
  .md\:text-5xl {
    font-size: 3rem;
  }
  .md\:text-6xl {
    font-size: 4rem;
  }

  .md\:p-0 {
    padding: 0;
  }
  .md\:p-8 {
    padding: 2rem;
  }
  .md\:pt-0 {
    padding-top: 0;
  }

  .md\:pl-0 {
    padding-left: 0;
  }

  .md\:items-center {
    align-items: center;
  }
  .md\:items-start {
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .lg\:block {
    display: block;
  }
  .lg\:flex {
    display: flex;
  }
  .lg\:hidden {
    display: none;
  }

  .lg\:w-4\/5 {
    width: 80%;
  }

  .lg\:text-center {
    text-align: center;
  }

  .lg\:text-xl {
    font-size: 1.25rem;
  }
  .lg\:text-5xl {
    font-size: 3rem;
  }
  .lg\:text-6xl {
    font-size: 4rem;
  }

  .lg\:p-0 {
    padding: 0;
  }
  .lg\:p-8 {
    padding: 2rem;
  }
  .lg\:pt-0 {
    padding-top: 0;
  }

  .lg\:pl-0 {
    padding-left: 0;
  }

  .lg\:items-center {
    align-items: center;
  }
  .lg\:items-start {
    align-items: flex-start;
  }
}

@media (min-width: 1280px) {
  .xl\:block {
    display: block;
  }
  .xl\:flex {
    display: flex;
  }
  .xl\:hidden {
    display: none;
  }

  .xl\:flex-row {
    flex-direction: row;
  }
  .xl\:flex-col {
    flex-direction: column;
  }

  .xl\:text-base {
    font-size: 1rem;
  }
  .xl\:text-lg {
    font-size: 1.125rem;
  }
  .xl\:text-xl {
    font-size: 1.25rem;
  }
  .xl\:text-2xl {
    font-size: 1.5rem;
  }
  .xl\:text-4xl {
    font-size: 2.25rem;
  }
  .xl\:text-6xl {
    font-size: 4rem;
  }

  .xl\:mt-8 {
    margin-top: 2rem;
  }

  .xl\:p-0 {
    padding: 0;
  }
}

#front-page-main-header {
  margin-bottom: 1.5rem;
  color: #255;
  font-weight: bold;
}

.toimiala-panel p {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.toimiala-panel h2 {
  font-size: 1.875rem;
  font-weight: bold;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  margin-top: 0;
  margin-bottom: 0;
}

.green-text-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 120, 90, 0.5);
}

.side-video-wrapper {
  overflow: hidden;
  background: black;
}

.no-webp .turku-bg {
  background-image: url("kuvat/Turku_Aura_River_Panorama_1920px_sRGB_web.jpg");
}
.webp .turku-bg {
  background-image: url("kuvat/Turku_Aura_River_Panorama_1920px_sRGB_web.webp");
}
.turku-bg {
  background-position: 50% 50%;
  background-size: cover;
}

.new-homepage-header {
  height: 60vw;
}

@media screen and (min-width: 640px) {
  .new-homepage-header {
    height: 45vw;
  }
}
@media screen and (min-width: 1024px) {
  .new-homepage-header {
    height: 35vw;
  }
}
@media screen and (min-width: 1280px) {
  .new-homepage-header {
    height: 26vw;
  }
  .side-video-wrapper {
    width: 55%;
    border-left: 5px solid #fff;
  }
}

@media (min-width: 1536px) {
  .green-text-container .text-container {
    padding-left: 3rem;
  }
}

.toimiala-div p {
  padding-bottom: 1rem;
}
.toimiala-div p,
.toimiala-div {
  font-size: 1.125rem;
  line-height: 1.75rem;
  text-align: left;
}

.marquee {
  --gap: 1rem;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
}
.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: var(--gap);
  animation: scroll 20s linear infinite;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}
.maintenance-announcement {
  width: 100%;
  background: #f22;
  padding: 0.25rem;
}
.maintenance-announcement p {
  color: white;
}
