@charset "utf-8";

/*
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
General display definitions
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/

html {
  position: relative;
  min-height: 100%;
  overflow: -moz-scrollbars-vertical;
  overflow-x: hidden;
  overflow-y: scroll;
}

html,
body {
  height: 100%;
  font-family: "Open Sans", sans-serif !important;
  font-size: 15px !important;
}

body {
  font-weight: 400;
  line-height: 1.53333333;
  letter-spacing: .05rem;
  color: var(--custom-black-color);
  background: var(--custom-white-color);
}

.full-width-row {
  width: 100vw;
  margin-left: calc(-50vw + 50%);

}


.bg-custom-gray {
  background: var(--custom-gray-color);
}

.custom-black-color {
  color: var(--custom-black-color);
}

.row-pale {
  background-image: url('../images/bg-aalto-vaaka-pale.png'), url('../images/bg-aalto-vaaka-pale.png');
  background-position: center top, center bottom;
  background-repeat: repeat-x, repeat-x;
  background-size: calc(100vw / 6) 50px;

}


.pale-filler {
  background: var(--custom-pale-color);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: "Open Sans", sans-serif !important;
  font-weight: 700;
  color: var(--custom-red-color);
}

h1,
.h1 {
  margin: 1.03rem 0 calc(1.75 * .67rem);

  font-size: 2rem;
}

h2,
.h2 {
  margin: 1.27rem 0  calc(1.75 * .83rem);

  font-size: 1.5rem;
}

h3,
.h3 {
  margin: 1.53rem 0  calc(1.75 * 1rem);

  font-size: 1.17rem;
}

h4,
.h4 {
  margin: 2.04rem 0  calc(1.75 * 1.33rem);

  font-size: 1rem;
}

h5,
.h5 {
  margin: 2.56rem 0  calc(1.75 * 1.67rem);

  font-size: .83rem;
}

h6,
.h6 {
  margin: 3.57rem 0  calc(1.75 * 2.33rem);

  font-size: .67rem;
}

a {
  color: #0260ed;
  text-underline-offset: .3rem;
}

.custom-black {
  color: var(--custom-black-color);
}

.custom-strong {
  font-weight: 700;
}

.no-wrap {
  white-space: nowrap;
}

.custom-border-grey {
  border-color: var(--bs-border-color) !important;
}

.custom-border-yellow {
  border-color: var(--custom-yellow-color) !important;
}

.div-light-blue {
  height: 50px;
  background: var(--custom-light-blue-color) !important;
}

.btn {
  font-weight: 600;
}

[class*='btn']:not(.btn-search):not(.btn-custom-gray) {
  border-color: transparent !important;
}

[class*='btn-custom'] {
  border-radius: 20rem;
}

.btn-sel {
  width: 150px;
}

.btn-sel:focus,
.btn-sel:hover,
.btn-sel.active {
  color: var(--custom-black-color) !important;
  background: var(--custom-yellow-color) !important;
}

.btn-custom-blue:focus,
.btn-custom-blue:hover,
.btn-custom-blue {
  color: var(--custom-white-color) !important;
  background: var(--custom-blue-color) !important;
}

.btn-custom-light-blue:focus,
.btn-custom-light-blue:hover,
.btn-custom-light-blue {
  color: var(--custom-black-color) !important;
  background: var(--custom-light-blue-color) !important;
}

.btn-custom-yellow:focus,
.btn-custom-yellow:hover,
.btn-custom-yellow {
  color: var(--custom-black-color) !important;
  background: var(--custom-yellow-color) !important;
}

.btn-custom-pale:focus,
.btn-custom-pale:hover,
.btn-custom-pale {
  color: var(--custom-black-color) !important;
  background: var(--custom-pale-color) !important;
}

.btn-custom-white:focus,
.btn-custom-white:hover,
.btn-custom-white {
  color: var(--custom-black-color) !important;
  background: var(--custom-white-color) !important;
}

.btn-custom-black:focus,
.btn-custom-black:hover,
.btn-custom-black {
  color: var(--custom-white-color) !important;
  background: var(--custom-black-color) !important;
}

[class*="custom-pallo-"] [class*="bg-pallo-"] > img {
  max-width: 250px !important;
  max-height: 250px !important;
}

.row-blogit .pallo-holder {
  width: 100% !important;
  margin: 0 auto !important;
}

[class*="bg-pallo-"] {
  display: block;
  max-width: 100%;
  /* overflow: hidden; */

  overflow: visible;
  background-repeat: no-repeat;
  background-size: var(--custom-pallo-s, 100% 100%);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background-clip: padding-box;
}

[class*="bg-pallo-"] > img {
  max-width: 90% !important;
}

.bg-pallo-yellow {
  background-image: url('../images/pallo-keltainen-rgb.svg');
}

.bg-pallo-light-red {
  background-image: url('../images/pallo-vaalean-punainen-rgb.svg');
}

.bg-pallo-red {
  background-image: url('../images/pallo-punainen-rgb.svg');
}

.bg-start {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding-right: var(--custom-pallo-p);
  background-position: left center;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}

.bg-end {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding-left: var(--custom-pallo-p);
  background-position: right center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

.bg-start > img {
  margin-left: var(--custom-pallo-m);
}

.bg-end > img {
  margin-right: var(--custom-pallo-m);
}

span[class^='custom-pallo-'] {
  display: inline-block;
}

span[class^='custom-pallo-'] [class*='bg-pallo-'] > img {
  max-width: 190px;
  max-height: 190px;
}

.bg-pale {
  background: var(--custom-pale-color) !important;
}

.active > .page-link,
.bg-blue {
  background: var(--custom-blue-color) !important;
}

.page-link {
  color: var(--custom-black-color) !important;
}

.tax-link {
  text-decoration: none;
}

ol.breadcrumb > li.breadcrumb-item > a {
  color: var(--custom-black-color) !important;
  text-decoration: none;
}

ol.breadcrumb > li.breadcrumb-item > a:focus,
ol.breadcrumb > li.breadcrumb-item > a:hover {
  text-decoration: underline;
}

ol.breadcrumb > li.breadcrumb-item.active {
  font-weight: 700;
  color: var(--custom-black-color) !important;
}

.list-group-item {
  padding: 1rem !important;
  border-radius: 0 !important;
}

.sitemap .list-group {
  padding-left: 0;
  list-style-type: none;
}

.sitemap .list-group ul {
  padding-left: 0;
  margin-left: 3rem;
  list-style-type: none;
}

.sitemap .list-group ul li {
  list-style-type: circle;
}

.sitemap .list-group li time {
  font-size: .85rem !important;
}

.sitemap .list-group li time::before {
  content: '\0028';
}

.sitemap .list-group li time::after {
  content: '\0029';
}

.card {
  overflow-wrap: normal !important;
  text-wrap: pretty !important;
}

.line-height-1 {
  line-height: 1;
}

.custom-width {
  width: 100%;
}

.nice-width {
  max-width: 100%;
}

.home .nice-width {
  max-width: 72%;
}

.nice-width-82 {
  max-width: 100%;
}

.img-300-200 {
  max-height: 200px;
}

/*
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Frontpage area
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/

.home h1,
.home h2,
.home h3,
.home h4,
.home h5,
.home h6,
.home .h1,
.home .h2:not(.footer-h2),
.home .h3,
.home .h4,
.home .h5,
.home .h6 {
  color: var(--custom-black-color) !important;
}

.dynamic-width {
  max-width: 220px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 220px;
      flex: 0 0 220px;
}

/*
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Header area
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/

.searchform .btn-search,
.searchform .form-control {
  border: 1px solid #000;
  border-radius: 0;
}

.searchform .form-control {
  border-right: none !important;
}

.searchform .btn-search {
  border-left: none !important;
}

.navbar-toggler {
  background: var(--custom-yellow-color) !important;
}

.navbar-toggler[aria-expanded="true"] > .navbar-toggler-icon {
  background-image: url('../images/x-lg.svg');
}

ul.navbar-header > li > a.nav-link {
  padding-right: 15px !important;
  padding-left: 15px !important;
  font-weight: 700;
  color: var(--custom-black-color);
  text-align: center;
}

ul.navbar-header > li:hover,
ul.navbar-header > li:focus,
ul.navbar-header > li.active {
  background: var(--custom-white-color);
  border-radius: 20rem;
}

ul.navbar-header > li > a > span {
  display: none;
}

.custom-vr {
  width: 3px;
  color: var(--custom-yellow-color);
}

.custom-ots {
  font-size: 1.17rem;
  font-weight: 700;
  opacity: unset;
}

.navbar-collapse {
  background: var(--custom-white-color);
}

/*
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Sidebar area
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/

.sidebar-custom [class*='row'] {
  border: 1px solid blue;
}

.sidebar-custom [class*='col'] {
  border: 1px solid red;
}

.sidebar-custom .btn-custom-pale {
  padding: .3rem .6rem !important;
  font-weight: 500 !important;
}

.sidebar-custom .btn-custom-pale:hover,
.sidebar-custom .btn-custom-pale:focus,
.sidebar-custom .btn-custom-pale.active {
  border-color: var(--custom-black-color) !important;
}

#sidebar {
  margin: 0;
  background: var(--custom-white-color);
}

#sidebar ul {
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--custom-white-color);
}

#sidebar ul.nav-sidebar ul.children li a.nav-link {
  padding-left: 35px;
}

#sidebar ul.nav-sidebar ul.children li ul.children li a.nav-link {
  padding-left: 70px;
}

#sidebar ul.nav-sidebar a.nav-link {
  font-weight: 400;
  color: var(--custom-black-color);
  text-wrap: balance;
}

#sidebar > span > a {
  color: var(--custom-black-color);
  text-decoration: none;
}

#sidebar ul.nav-sidebar li.active {
  background: var(--custom-pale-color);
}

#sidebar ul.nav-sidebar li.active:has(li.is_child.active) {
  background: var(--custom-white-color);
}

#sidebar ul.nav-sidebar a.nav-link.active {
  font-weight: 700;
}

aside .image-holder {
  padding-top: 5rem !important;
}

/*
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Footer area
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/

.footer {
  color: var(--custom-white-color);
  background: var(--custom-blue-color);
}

.footer .extra-col {
  height: 3rem;
  color: var(--custom-white-color);
  background: var(--custom-light-blue-color);
}

.footer a:not(.btn-custom-yellow):not(.btn-custom-white) {
  color: var(--custom-white-color);
}

.footer a.link-no-dec {
  text-decoration: none;
}

.footer ul.nav li a.nav-link:focus,
.footer ul.nav li a.nav-link:hover,
.footer ul.nav li a.nav-link.active,
.footer a.btn:focus,
.footer a.btn:hover {
  text-decoration: underline;
}

.footer-logo {
  width: 160px;
  height: 40px;
}

.footer-partner-logo {
  display: block;
  height: auto;
  max-width: 100%;
}

.footer-social-icon {
  width: 32px;
  height: 32px;
  -o-object-fit: contain;
     object-fit: contain;
}

.footer-selko-symbol {
  width: 80px;
  height: 65px;
  -o-object-fit: contain;
     object-fit: contain;
}

.footer-selkosanomat {
  width: 200px;
  height: 25px;
  -o-object-fit: contain;
     object-fit: contain;
}

.footer-leija {
  width: 35px;
  height: 32px;
  -o-object-fit: contain;
     object-fit: contain;
}

/*
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Content area
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/

.list-group-flush > .list-group-item:first-child {
  border-top-width: var(--bs-list-group-border-width);
}

.list-group-flush > .list-group-item:last-child {
  border-width: 0 0 var(--bs-list-group-border-width);
}

.custom-item-link {
  font-weight: 600;
  color: var(--custom-black-color);
}

.archive h1,
article h1 {
  margin-top: .03rem !important;
}

div#content .btn-custom-pale:hover,
div#content .btn-custom-pale:focus,
div#content .btn-custom-pale.active {
  border-color: var(--custom-black-color) !important;
}

div#content p {
  /* max-width: 82%; */

  text-wrap: pretty;
}

/*
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Media queries area
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
*/

@media (max-width: 480px) {
  .d-pic img {
    display: block;
    width: 100%;
    height: auto;
    -o-object-fit: contain;
       object-fit: contain;
  }

  .row-blogit .pallo-holder {
    max-width: 180px;
  }

  .sidebar-pallo-holder [class*='bg-pallo-'] {
    max-width: 250px;
  }

  [class*='bg-pallo-'] {
    max-width: 166px;
  }

  [class*='bg-pallo-'] > img {
    width: 100%;
    height: auto;
    max-width: 128px;
    -o-object-fit: contain;
       object-fit: contain;
  }

  .nice-width-72 {
    max-width: 72%;
  }
}


@media (min-width: 576px) {
  .row-blogit .pallo-holder {
    max-width: 220px;
  }

  .align-left-md {
    -webkit-box-align: center;
    -webkit-box-pack: start;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: start;
    justify-content: start;
  }

  .align-right-md {
    -webkit-box-align: center;
    -webkit-box-pack: end;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: end;
  }
}


@media (max-width: 767.98px) {
  .row-blogit .pallo-holder {
    max-width: 200px;
  }
}


@media (min-width: 768px) {
  .row-blogit .pallo-holder {
    max-width: 250px;
  }

  body.home {
    background-image: none;
  }
}


@media (max-width: 768px) {
  .d-pic {
    width: 100%;
  }

  #sidebar {
    margin-bottom: 2rem;
  }

  .card-custom {
    width: 220px;
  }

  .row-blogit > div {
    -webkit-transform: none;
        -ms-transform: none;
            transform: none;
  }
}


@media (max-width: 991.98px) {
  .w-100 .navbar-nav {
    width: 50%;
  }

  .navbar-collapse {
    background: var(--custom-yellow-color);
    border: 1px solid #a9a9a9;
  }

  body:not(.ios-device):not(.mac-device) .row-blogit > div:nth-child(2n + 1) {
    -webkit-transform: translateX(calc(-1 * var(--custom-pallo-m) + 8px));

    -ms-transform: translateX(calc(-1 * var(--custom-pallo-m) + 8px));

    transform: translateX(calc(-1 * var(--custom-pallo-m) + 8px));

  }

  body:not(.ios-device):not(.mac-device) .row-blogit > div:nth-child(2n) {
    -webkit-transform: translateX(calc(var(--custom-pallo-m) - 8px));

    -ms-transform: translateX(calc(var(--custom-pallo-m) - 8px));

    transform: translateX(calc(var(--custom-pallo-m) - 8px));

  }

  .nice-width-72 p {
    max-width: initial;
  }
}


@media (min-width: 992px) {
  .row-blogit .pallo-holder {
    max-width: 250px;
  }

  .page-template-page-osiosivu-kirjeenvaihto .btn-sel {
    min-width: 140px;
    letter-spacing: -0.5px;
  }

  ul.navbar-header > li:hover,
  ul.navbar-header > li:focus,
  ul.navbar-header > li.active {
    background: var(--custom-yellow-color);
  }

  .custom-width {
    width: 85%;
  }

  .nice-width {
    max-width: 72%;
  }

  .nice-width-82 {
    max-width: 82%;
  }

  .dynamic-width {
    max-width: 300px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 300px;
        flex: 0 0 300px;
  }

  .card-custom {
    width: 300px;
  }

  .row-blogit > div:nth-child(3n + 1) {
    -webkit-transform: translateX(calc(-1 * var(--custom-pallo-m) + 10px));

    -ms-transform: translateX(calc(-1 * var(--custom-pallo-m) + 10px));

    transform: translateX(calc(-1 * var(--custom-pallo-m) + 10px));

  }

  .row-blogit > div:nth-child(3n) {
    -webkit-transform: translateX(calc(var(--custom-pallo-m) + 10px));

    -ms-transform: translateX(calc(var(--custom-pallo-m) + 10px));

    transform: translateX(calc(var(--custom-pallo-m) + 10px));

  }

  .col-cat .img-svg {
    display: inline-block;
    -o-object-fit: contain;
       object-fit: contain;
  }
}


@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .row-blogit .pallo-holder {
    max-width: 250px;
  }
}
