/*
Theme Name: Otavan Kirjapaino
Theme URI: http://otavankirjapaino.fi
Description: This theme is property of Otava Publishing Company Ltd.
Author: Otava Publishing Company Ltd - Olli Mustonen
Author URI: http://otava.fi
Version: 6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
img,
legend {
  border: 0;
}
legend,
td,
th {
  padding: 0;
}
html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}
audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
[hidden],
template {
  display: none;
}
a {
  background-color: transparent;
}
a:active,
a:hover {
  outline: 0;
}
abbr[title] {
  border-bottom: 1px dotted;
}
b,
optgroup,
strong {
  font-weight: 700;
}
dfn {
  font-style: italic;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
mark {
  background: #ff0;
  color: #000;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}
svg:not(:root) {
  overflow: hidden;
}
figure {
  margin: 1em 40px;
}
hr {
  box-sizing: content-box;
  height: 0;
}
pre,
textarea {
  overflow: auto;
}
code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}
button {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}
button[disabled],
html input[disabled] {
  cursor: default;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
input {
  line-height: normal;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
input[type="search"] {
  -webkit-appearance: textfield;
  box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
fieldset {
  border: 1px solid silver;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */
html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}
::selection {
  background: #b3d4fc;
  text-shadow: none;
}
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
textarea {
  resize: vertical;
}
.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}
.hidden {
  display: none !important;
}
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}
.invisible {
  visibility: hidden;
}
.clearfix:after,
.clearfix:before {
  content: " ";
  display: table;
}
.clearfix:after {
  clear: both;
}
@media print {
  blockquote,
  img,
  pre,
  tr {
    page-break-inside: avoid;
  }
  *,
  :after,
  :before,
  :first-letter,
  :first-line {
    background: 0 0 !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  blockquote,
  pre {
    border: 1px solid #999;
  }
  thead {
    display: table-header-group;
  }
  img {
    max-width: 100% !important;
  }
  h2,
  h3,
  p {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}

/*Grid.css*/
.group:after,
.section {
  clear: both;
}
.span_2_of_2 {
  width: 100%;
}
.span_1_of_2 {
  width: 49.2%;
}
@media only screen and (max-width: 480px) {
  .span_1_of_2,
  .span_2_of_2 {
    width: 100%;
  }
}
.span_3_of_3 {
  width: 100%;
}
.span_2_of_3 {
  width: 66.13%;
}
.span_1_of_3 {
  width: 32.26%;
}
@media only screen and (max-width: 480px) {
  .span_1_of_3,
  .span_2_of_3,
  .span_3_of_3 {
    width: 100%;
  }
}
.span_4_of_4 {
  width: 100%;
}
.span_3_of_4 {
  width: 74.6%;
}
.span_2_of_4 {
  width: 49.2%;
}
.span_1_of_4 {
  width: 23.8%;
}
@media only screen and (max-width: 480px) {
  .span_1_of_4,
  .span_2_of_4,
  .span_3_of_4,
  .span_4_of_4 {
    width: 100%;
  }
}
.span_5_of_5 {
  width: 100%;
}
.span_4_of_5 {
  width: 79.68%;
}
.span_3_of_5 {
  width: 59.36%;
}
.span_2_of_5 {
  width: 39.04%;
}
.span_1_of_5 {
  width: 18.72%;
}
@media only screen and (max-width: 480px) {
  .span_1_of_5,
  .span_2_of_5,
  .span_3_of_5,
  .span_4_of_5,
  .span_5_of_5 {
    width: 100%;
  }
}
.span_6_of_6 {
  width: 100%;
}
.span_5_of_6 {
  width: 83.06%;
}
.span_4_of_6 {
  width: 66.13%;
}
.span_3_of_6 {
  width: 49.2%;
}
.span_2_of_6 {
  width: 32.26%;
}
.span_1_of_6 {
  width: 15.33%;
}
@media only screen and (max-width: 480px) {
  .span_1_of_6,
  .span_2_of_6,
  .span_3_of_6,
  .span_4_of_6,
  .span_5_of_6,
  .span_6_of_6 {
    width: 100%;
  }
}
.span_7_of_7 {
  width: 100%;
}
.span_6_of_7 {
  width: 85.48%;
}
.span_5_of_7 {
  width: 70.97%;
}
.span_4_of_7 {
  width: 56.45%;
}
.span_3_of_7 {
  width: 41.94%;
}
.span_2_of_7 {
  width: 27.42%;
}
.span_1_of_7 {
  width: 12.91%;
}
@media only screen and (max-width: 480px) {
  .span_1_of_7,
  .span_2_of_7,
  .span_3_of_7,
  .span_4_of_7,
  .span_5_of_7,
  .span_6_of_7,
  .span_7_of_7 {
    width: 100%;
  }
}
.span_8_of_8 {
  width: 100%;
}
.span_7_of_8 {
  width: 87.3%;
}
.span_6_of_8 {
  width: 74.6%;
}
.span_5_of_8 {
  width: 61.9%;
}
.span_4_of_8 {
  width: 49.2%;
}
.span_3_of_8 {
  width: 36.5%;
}
.span_2_of_8 {
  width: 23.8%;
}
.span_1_of_8 {
  width: 11.1%;
}
@media only screen and (max-width: 480px) {
  .span_4_of_8,
  .span_5_of_8,
  .span_6_of_8,
  .span_7_of_8,
  .span_8_of_8 {
    width: 100%;
    margin-left: 0;
  }
  .span_3_of_8 {
    width: 74.2%;
    margin: 1% 0 1% 3.2%;
  }
  .span_1_of_8,
  .span_2_of_8 {
    width: 48.4%;
    margin: 1% 0 1% 3.2%;
  }
  .span_1_of_8:nth-child(4n + 1) {
    clear: both;
    margin-left: 0;
  }
  .col.span_1_of_8:nth-child(odd) {
    margin-right: 3%;
  }
}
.span_9_of_9 {
  width: 100%;
}
.span_8_of_9 {
  width: 88.71%;
}
.span_7_of_9 {
  width: 77.42%;
}
.span_6_of_9 {
  width: 66.13%;
}
.span_5_of_9 {
  width: 54.84%;
}
.span_4_of_9 {
  width: 43.55%;
}
.span_3_of_9 {
  width: 32.26%;
}
.span_2_of_9 {
  width: 20.97%;
}
.span_1_of_9 {
  width: 9.68%;
}
@media only screen and (max-width: 480px) {
  .span_1_of_9,
  .span_2_of_9,
  .span_3_of_9,
  .span_4_of_9,
  .span_5_of_9,
  .span_6_of_9,
  .span_7_of_9,
  .span_8_of_9,
  .span_9_of_9 {
    width: 100%;
  }
}
.span_10_of_10 {
  width: 100%;
}
.span_9_of_10 {
  width: 89.84%;
}
.span_8_of_10 {
  width: 79.68%;
}
.span_7_of_10 {
  width: 69.52%;
}
.span_6_of_10 {
  width: 59.36%;
}
.span_5_of_10 {
  width: 49.2%;
}
.span_4_of_10 {
  width: 39.04%;
}
.span_3_of_10 {
  width: 28.88%;
}
.span_2_of_10 {
  width: 18.72%;
}
.span_1_of_10 {
  width: 8.56%;
}
@media only screen and (max-width: 480px) {
  .span_10_of_10,
  .span_1_of_10,
  .span_2_of_10,
  .span_3_of_10,
  .span_4_of_10,
  .span_5_of_10,
  .span_6_of_10,
  .span_7_of_10,
  .span_8_of_10,
  .span_9_of_10 {
    width: 100%;
  }
}
.span_11_of_11 {
  width: 100%;
}
.span_10_of_11 {
  width: 90.76%;
}
.span_9_of_11 {
  width: 81.52%;
}
.span_8_of_11 {
  width: 72.29%;
}
.span_7_of_11 {
  width: 63.05%;
}
.span_6_of_11 {
  width: 53.81%;
}
.span_5_of_11 {
  width: 44.58%;
}
.span_4_of_11 {
  width: 35.34%;
}
.span_3_of_11 {
  width: 26.1%;
}
.span_2_of_11 {
  width: 16.87%;
}
.span_1_of_11 {
  width: 7.63%;
}
@media only screen and (max-width: 480px) {
  .span_10_of_11,
  .span_11_of_11,
  .span_1_of_11,
  .span_2_of_11,
  .span_3_of_11,
  .span_4_of_11,
  .span_5_of_11,
  .span_6_of_11,
  .span_7_of_11,
  .span_8_of_11,
  .span_9_of_11 {
    width: 100%;
  }
}
.span_12_of_12 {
  width: 100%;
}
.span_11_of_12 {
  width: 91.53%;
}
.span_10_of_12 {
  width: 83.06%;
}
.span_9_of_12 {
  width: 74.6%;
}
.span_8_of_12 {
  width: 66.13%;
}
.span_7_of_12 {
  width: 57.66%;
}
.span_6_of_12 {
  width: 49.2%;
}
.span_5_of_12 {
  width: 40.73%;
}
.span_4_of_12 {
  width: 32.26%;
}
.span_3_of_12 {
  width: 23.8%;
}
.span_2_of_12 {
  width: 15.33%;
}
.span_1_of_12 {
  width: 6.86%;
}
.section {
  padding: 0;
  margin: 0;
}
.group:after,
.group:before {
  content: "";
  display: table;
}
.group {
  zoom: 1;
}
.col {
  display: block;
  float: left;
  margin: 1% 0 1% 1.6%;
}
.col:first-child {
  margin-left: 0;
}
@media only screen and (max-width: 480px) {
  .span_10_of_12,
  .span_11_of_12,
  .span_12_of_12,
  .span_1_of_12,
  .span_2_of_12,
  .span_3_of_12,
  .span_4_of_12,
  .span_5_of_12,
  .span_6_of_12,
  .span_7_of_12,
  .span_8_of_12,
  .span_9_of_12 {
    width: 100%;
  }
  .col {
    margin: 1% 0;
  }
}

/*Menu*/

.blokki {
  height: 67px;
  position: relative;
}

#navit {
}

#navit > a {
  display: none;
}

#navit li {
  position: relative;
  list-style: none;
}

#navit li a {
  color: #fff;
  display: block;
}

#navit span:after {
  width: 0;
  height: 0;
  border: 0.313em solid transparent;
  border-bottom: none;
  border-top-color: #efa585;
  content: "";
  vertical-align: middle;
  display: inline-block;
  position: relative;
  right: -0.313em;
}

#navit > ul,
#navit > ul > li > a {
  height: 3.75em;
  line-height: 3.75em;
}

#navit > ul {
  list-style: none;
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

#navit > ul > li > a {
  height: 100%;
  text-align: center;
  text-decoration: none;
}

#navit > ul > li:hover > a,
#navit > ul:not(:hover) > li.active > a {
  opacity: 0.8;
}

#navit li ul {
  background-color: #c51f35;
  display: none;
  position: absolute;
  top: 100%;
  min-width: 150px;
}

#navit li:hover ul {
  display: block;
  left: 0;
  right: 0;
}

#navit li:not(:first-child):hover ul {
  left: -1px;
}

#navit li ul a {
  border-top: 1px solid #fff;
  padding: 0.75em;
}

#navit li ul li a:hover,
#navit li ul:not(:hover) li.active a {
  opacity: 0.8;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #f00;
}

object,
embed,
video {
  width: 100%;
}

body {
  font-size: 14px;
  background-color: #2a2a2a;
  color: #1b2d4e;
}

#wrapper {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

#siteheader,
#sitefooter,
#content {
  float: left;
  clear: both;
  width: 100%;
}

#siteheader {
  position: absolute;
  color: #fff;
  /*width: 1260px;*/
  /*padding: 70px 90px 0 90px;*/
  background: rgba(0, 0, 0, 0.5);
  background: -moz-linear-gradient(
    top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(235, 235, 235, 0) 100%
  );
  background: -webkit-gradient(
    left top,
    left bottom,
    color-stop(0%, rgba(0, 0, 0, 0.5)),
    color-stop(100%, rgba(235, 235, 235, 0))
  );
  background: -webkit-linear-gradient(
    top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(235, 235, 235, 0) 100%
  );
  background: -o-linear-gradient(
    top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(235, 235, 235, 0) 100%
  );
  background: -ms-linear-gradient(
    top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(235, 235, 235, 0) 100%
  );
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(235, 235, 235, 0) 100%
  );
  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#ebebeb', GradientType=0);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}

#siteheader .logo {
  -webkit-flex-basis: 15%;
  -ms-flex-preferred-size: 15%;
  flex-basis: 15%;
  margin-left: 90px;
  margin-top: 70px;
}

#navit {
  -webkit-flex-basis: 60%;
  -ms-flex-preferred-size: 60%;
  flex-basis: 60%;
  position: relative;
  top: -25px;
  margin-top: 70px;
}

#content {
  background: #fff;
}

#sitefooter {
  background: #1b2d4e;
  color: #fff;
}

#sitefooter {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
  -webkit-justify-content: space-around;
  -ms-flex-pack: distribute;
  justify-content: space-around;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  /*width: 1260px;*/
  /*padding: 70px 90px 50px 90px;*/
  padding: 70px 0px 50px 0px;
}
.innersqueeze {
  margin: 7% auto;
  width: 60%;
}
#sitefooter .logo {
  -webkit-flex-basis: 100%;
  -ms-flex-preferred-size: 100%;
  flex-basis: 100%;
}

#sitefooter .logo img {
  display: block;
  margin: 0 auto 50px auto;
}

#sitefooter .palsta {
  text-align: center;
  -webkit-flex-basis: 33%;
  -ms-flex-preferred-size: 33%;
  flex-basis: 33%;
  margin: 0 auto 50px auto;
}

.top-layer {
  position: absolute;
  top: 0;
  text-align: center;
  color: #fff;
  margin: 13% 15% 0 15%;
  width: 70%;
  font-family: sans-serif;
}

.top-layer h1,
.top-layer p {
  text-shadow: 0 0 30px #000;
}

.top-layer h1 {
  font-size: 3.75rem;
}

.top-layer p {
  font-size: 1.875rem;
}

span.cta {
  border: 3px solid #ec7c7f;
  display: inline-block;
}

span.cta a {
  text-decoration: none;
  color: #ec7c7f;
  text-transform: uppercase;
  text-shadow: none;
  font-size: 1.25rem;
  display: block;
  /* width: 100%; */
  /* height: 100%; */
  padding: 10px 20px;
  /*background: rgba(255, 255, 255, 0.7);*/
}

/*Book calculators
----------------------------*/
table {
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 19px;
  color: #484848;
  margin: 0 0 2% 0;
}
table,
tr,
th,
td {
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
  vertical-align: top;
}
table#tulos {
  font-size: 14px;
}
#laskuri h4,
table#tulos h4 {
  font-size: 14px;
  margin: 15px 0;
  width: 100%;
}
.mitoituskuva #mitoituskuva {
  width: 380px;
  float: left;
}
.mitoituskuva #selite_oikea {
  width: 62px;
  float: left;
}
.mitoituskuva #selite_oikea p.marginaali1 {
  margin: 2px 0 82px 0;
}
.mitoituskuva #selite_oikea p.sivunkorkeus {
  margin: 0 0 77px 0;
}
.mitoituskuva #selite_ala {
  width: 100%;
  clear: both;
}
.mitoituskuva #selite_ala #marginaali1_suojakansi {
  float: left;
  width: 50px;
}
.mitoituskuva #selite_ala #lieve2_suojakansi {
  float: left;
  width: 55px;
}
.mitoituskuva #selite_ala #sivunleveys_suojakansi {
  float: left;
  width: 55px;
  margin: 0 10px 0 0;
}
.mitoituskuva #selite_ala #selanleveys_suojakansi {
  float: left;
  width: 55px;
  margin: 0 20px 0 0;
}
.mitoituskuva #selite_ala #sivunleveys2_suojakansi {
  float: left;
  width: 55px;
}
.mitoituskuva #selite_ala #lieve2_suojakansi {
  float: left;
  width: 55px;
}
.mitoituskuva #selite_ala #marginaali2_suojakansi {
  float: left;
  width: 55px;
}

.mitoituskuva #selite_ala #marginaali1 {
  float: left;
  width: 65px;
}
.mitoituskuva #selite_ala #sivunleveys1 {
  float: left;
  width: 55px;
  margin: 0 40px 0 0;
}
.mitoituskuva #selite_ala #selanleveys {
  float: left;
  width: 55px;
  margin: 0 20px 0 0;
}
.mitoituskuva #selite_ala #sivunleveys2 {
  float: left;
  width: 55px;
  margin: 0 39px 0 0;
}
.mitoituskuva #selite_ala #marginaali2 {
  float: left;
  width: 65px;
}

div#navi_palkki {
  padding-top: 5%;
  padding-bottom: 5%;
  display: block;
  width: 100%;
  float: left;
}
div#navi_palkki ul {
  background-color: #fff;
  list-style: none;
  display: block;
  height: 300px;
}
div#navi_palkki ul li {
  float: left;
  width: 33%;
  margin-top: 5%;
  text-align: center;
}
div#navi_palkki ul li a {
  font-weight: bold;
  text-decoration: none;
  color: #1b2d4e;
  display: block;
  font-size: 1.8em;
  width: 200px;
  text-align: center;
  margin: auto;
  height: 270px;
}
div#navi_palkki ul li span.intro {
  display: block;
  font-size: 1.4em;
  margin-top: 20px;
  height: 60px;
}
div#navi_palkki ul li span.cta {
  margin-top: 30px;
}
div#navi_palkki ul li span.cta a {
  text-decoration: none;
  color: #ec7c7f;
  text-transform: uppercase;
  text-shadow: none;
  font-size: 1rem;
  display: block;
  padding: 10px;
  width: 100px;
  height: 20px;
}
div#navi_palkki ul li a img {
  margin-bottom: 40px;
}

div#tyokalut_palkki {
  background-image: url(https://otavankirjapaino.fi/wp-content/uploads/2016/07/kirjasimet.jpg);
  padding-top: 5%;
  padding-bottom: 5%;
  display: block;
  width: 100%;
  float: left;
}
div#tyokalut_palkki ul {
  background-color: #a8e4e8;
  list-style: none;
  display: block;
  height: 300px;
}
div#tyokalut_palkki ul li {
  float: left;
  width: 33%;
  margin-top: 5%;
}
div#tyokalut_palkki ul li a {
  font-weight: bold;
  text-decoration: none;
  color: #1b2d4e;
  font-size: larger;
  display: block;
  text-align: center;
  margin: auto;
  text-transform: uppercase;
  width: 150px;
}
div#tyokalut_palkki ul li a img {
  margin-bottom: 20px;
}
div#insta {
  text-align: center;
  display: block;
  float: left;
  width: 100%;
  margin: 0 0 40px 0;
  padding: 0;
}
div#insta a {
}
div#insta img {
  margin: 0;
  max-width: 477px;
  padding: 0;
  margin-bottom: 5px;
  width: 100%;
}
div#insta h2 {
  text-transform: uppercase;
  font-size: 3em;
  color: #1b2d4e;
}

#top_img img {
  width: 100%;
  height: 100%;
}

.huomautus {
  color: red !important;
  font-weight: bold !important;
}

@media only screen and (max-width: 960px) {
  #siteheader {
    background: none;
    display: block;
    padding: 0;
    width: 100%;
  }
  #siteheader .logo {
    display: none;
  }
  .menu-item-has-children:before {
    content: "";
    position: absolute;
    right: 6%;
    top: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
  }
  #navit ul {
    margin: 0 0 -1px 0;
  }
  figure.logo,
  .above-header {
    display: none;
  }
  #navit {
    position: relative;
    top: auto;
    left: auto;
    background-color: #1b2d4e;
    z-index: 9999;
    margin-top: 0;
  }
  #navit > a {
    width: 3.125em;
    height: 3.125em;
    text-align: left;
    text-indent: -9999px;
    background-color: #1b2d4e;
    position: relative;
  }
  #navit > a:before,
  #navit > a:after {
    position: absolute;
    border: 2px solid #fff;
    top: 35%;
    left: 25%;
    right: 25%;
    content: "";
  }
  #navit > a:after {
    top: 60%;
  }
  #navit:not(:target) > a:first-of-type,
  #navit:target > a:last-of-type {
    display: block;
  }
  #navit > ul {
    height: auto;
    display: none;
    position: absolute;
    left: 0;
    right: 0;
  }
  #navit:target > ul {
    display: block;
    background-color: #1b2d4e;
  }
  #navit > ul > li {
    width: 100%;
    float: none;
  }
  #navit > ul > li > a {
    height: auto;
    text-align: left;
    padding: 0 0.833em;
  }
  #navit > ul > li:not(:first-child) > a {
    border-right: none;
    border-top: 1px solid #fff;
  }
  #navit li ul {
    position: static;
    padding: 0 0 0 1.25em;
  }
  #navit li ul a {
    border-top: none;
  }
  #navit li ul li {
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
  }
  #sitefooter {
    width: 100%;
    padding: 3% 0 6% 0;
  }
  #sitefooter .logo,
  #sitefooter .palsta {
    -webkit-flex-basis: 100%;
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
  }
  .layers img {
    width: 100%;
    height: 100%;
  }
  .top-layer {
    top: 48px;
    margin: 0 3% 0 3%;
    width: 94%;
  }
  .top-layer h1 {
    font-size: 2rem;
    line-height: 2rem;
  }
  .top-layer p {
    font-size: 1rem;
  }
  .top-layer .cta a {
    font-size: 1rem;
    padding: 3px 6px;
  }
  .innersqueeze {
    margin: 3% auto;
    width: 98%;
  }

  .mitoituskuva #mitoituskuva {
    width: 280px;
    float: left;
  }
  .mitoituskuva #mitoituskuva img {
    width: 100%;
  }
  .mitoituskuva #selite_oikea {
    width: 52px;
    float: left;
  }
  .mitoituskuva #selite_oikea p.marginaali1 {
    margin: 0px 0 47px 0;
  }
  .mitoituskuva #selite_oikea p.sivunkorkeus {
    margin: 0 0 57px 0;
  }
  .mitoituskuva #selite_ala {
    width: 100%;
    clear: both;
  }
  .mitoituskuva #selite_ala #marginaali1_suojakansi {
    float: left;
    width: 50px;
  }
  .mitoituskuva #selite_ala #lieve2_suojakansi {
    float: left;
    width: 55px;
    margin-left: -40px;
    padding-top: 20px;
  }
  .mitoituskuva #selite_ala #sivunleveys_suojakansi {
    float: left;
    width: 55px;
    margin: 0;
    padding-top: 20px;
  }
  .mitoituskuva #selite_ala #selanleveys_suojakansi {
    float: left;
    width: 45px;
    margin: 0;
    padding-top: 20px;
  }
  .mitoituskuva #selite_ala #sivunleveys2_suojakansi {
    float: left;
    width: 55px;
    padding-top: 20px;
    margin-right: 40px;
  }
  .mitoituskuva #selite_ala #marginaali2_suojakansi {
    float: left;
    width: 55px;
    margin-left: -20px;
  }

  .mitoituskuva #selite_ala #marginaali1 {
    float: left;
    width: 45px;
  }
  .mitoituskuva #selite_ala #sivunleveys1 {
    float: left;
    width: 50px;
    margin: 0 20px 0 0;
  }
  .mitoituskuva #selite_ala #selanleveys {
    float: left;
    width: 50px;
    margin: 0 10px 0 0;
  }
  .mitoituskuva #selite_ala #sivunleveys2 {
    float: left;
    width: 50px;
    margin: 0 20px 0 0;
  }
  .mitoituskuva #selite_ala #marginaali2 {
    float: left;
    width: 65px;
  }

  div#tyokalut_palkki ul {
    height: 150px;
    padding-left: 0;
  }
  div#tyokalut_palkki ul li a {
    font-size: small;
    width: 50px;
  }
  div#navi_palkki ul {
    padding-left: 0;
    height: 200px;
  }
  div#navi_palkki ul li {
    margin-top: 0%;
  }
  div#navi_palkki ul li a {
    font-size: 0.7em;
    width: initial;
    height: initial;
  }
  div#navi_palkki ul li a img {
    margin-bottom: 10px;
  }
  div#navi_palkki ul li span.intro {
    font-size: 0.8em;
    margin-top: -10px;
    height: 30px;
    padding: 5px;
  }
  div#navi_palkki ul li span.cta {
    border: 1px solid #ec7c7f;
  }
  div#navi_palkki ul li span.cta a {
    font-size: 0.8rem;
    padding: 5px;
    width: initial;
    height: initial;
  }
}

input[type="submit"] {
  appearance: none;
  padding: 0.5rem 1rem;
  background-color: #1b2d4e;
  color: white;
  border: none;
  transition: background-color 0.2s ease;
}

input[type="submit"]:hover,
input[type="submit"]:focus {
  background-color: #253c66;
}
