@charset "utf-8";
/* Jerkkovalta.com */
/* Fontit */
@font-face {
  font-family: "leipateksti";
  src: url(fonts/josefin-sans.ttf);
  font-display: swap;
}
@font-face {
  font-family: "otsikko";
  src: url(fonts/josefin-sans.ttf);
  font-display: swap;
}
/* Sivustonlaajuiset elementit */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}
body {
  background-color: #ffffff;
  color: #222222;
  font-family: "leipateksti", sans-serif;
  font-size: 11pt;
  line-height: 125%;
  animation-fill-mode: forwards;
  width: 100vw;
  overflow-x: hidden;
}
/* Typografia */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "otsikko", sans-serif;
  line-height: 110%;
}
h1 {
  font-size: 3em;
  letter-spacing: -1px;
  margin: 0.5em 0 -0.25em 0;
}
h2 {
  margin: 1em 0 1em 0;
  text-align: center;
  font-size: 2.5em;
}
h3 {
  font-size: 1.2em;
  text-transform: uppercase;
  margin: 2em 0 0.75em 0;
}
h4 {
  font-size: 1.25em;
}
h1:first-child,
h2:first-child,
h3:first-child {
  margin-top: 0;
}
p {
  margin: 1em 0;
}
blockquote {
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0;
  margin-inline-end: 0;
}
a {
  color: #ff9c38;
  text-decoration: none;
}
a:hover {
  color: #ffb56c;
}
.nosto {
  font-size: 1.5em;
  font-weight: 300;
  line-height: 120%;
}
.tasaus-keski {
  text-align: center;
}
.meta {
  color: #a5a5a5;
}
/* Napit ja lomakekentät */
.nappi,
button {
  color: #ffffff;
  border: 0px none;
  background-color: #ff9c38;
  border-radius: 0.5em;
  display: block;
  text-transform: uppercase;
  width: fit-content;
  padding: 1em 1.5em 0.8em 1.5em;
  margin: 1em 0;
  text-decoration: none;
  font-size: 0.8em;
  font-weight: 800;
  letter-spacing: 1px;
  transition: 0.2s;
  user-select: none;
}
.nappi:hover,
button:hover {
  background-color: #ffb56c;
  color: #ffffff;
  transform: scale(1.05);
}
.nappi:active {
  transform: scale(0.95);
}
/* Kuvat ja videot */
img {
  max-width: 100%;
  display: inline-block;
}
.kuvake {
  height: 2em;
  display: inline-block;
  vertical-align: middle;
}
/* Isot osiot */
.osio {
  padding: 3em 0 4em 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-x: hidden;
  width: 100vw;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.osio:nth-child(even) {
  background-color: #E5E5E5;
  background-image: radial-gradient(circle, #e5e5e5 0%, #e5e5e5 30%, #d1c7c0 100%);
}
#aloitus {
  min-height: 100vh;
}
#palvelut {
  padding-bottom: 6em;
}
/* Yleinen välike */
.erottaja {
  width: 100%;
  box-sizing: border-box;
  height: 3em;
}
/* Palstarakenne */
.wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25em;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
}
.palsta {
  width: 100%;
  clear: both;
  padding: 0 1em;
  box-sizing: border-box;
}
.palsta h2:first-child,
.palsta h3:first-child {
  margin-top: 0;
}
/* ======================================================== */
/* Vain MOBIILI ja pienet näytöt */
/* ======================================================== */
@media only screen and (max-width: 649px) {
  .piilota-mobiilissa {
    display: none;
  }
  .mobiili-keskitys {
    text-align: center;
  }
}
/* ======================================================== */
/* Vain MOBIILI ja tabletti */
/* ======================================================== */
@media only screen and (max-width: 999px) {
  .nayta-desktopilla {
    display: none;
  }
}
/* ======================================================== */
/* TABLETTI ja sitä isommat näytöt */
/* ======================================================== */
@media only screen and (min-width: 650px) {
  h1 {
    font-size: 3em;
  }
  h2 {
    font-size: 2.5em;
  }
  .nappi,
  button {
    display: inline-block;
  }
  .wrapper {
    max-width: 800px;
    flex-direction: row;
    padding: 0 3em;
  }
  .nayta-mobiilissa {
    display: none;
  }
}
/* ======================================================== */
/* VAIN TABLETTI */
/* ======================================================== */
@media only screen and (min-width: 650px) and (max-width: 999px) {
  .piilota-tabletilla {
    display: none;
  }
  .mobiili-keskitys {
    text-align: center;
  }
}
/* ======================================================== */
/* DESKTOP, isoimmat näytöt */
/* ======================================================== */
@media only screen and (min-width: 1000px) {
  body {
    font-size: 12pt;
  }
  h1 {
    font-size: 3em;
  }
  .tasaus-vasen {
    text-align: left;
  }
  .tasaus-oikea {
    text-align: right;
  }
  .wrapper {
    max-width: 1000px;
    flex-wrap: nowrap;
    margin: 1em auto;
  }
  .kapea {
    max-width: 650px;
  }
  .piilota-desktopilla {
    display: none;
  }
  .puolikas {
    width: 50%;
  }
  .kolmasosa {
    width: 33.33%;
  }
  .kaksikolmasosaa {
    width: 66.66%;
  }
}
