body,
html {
  padding: 0px;
  margin: 0px;
  width: 100%;
  min-height: 100%;
  font-family: "Open Sans", sans-serif;
  font-size: 10pt;
  color: #373737;
  background-color: #d5e8ec;
}

/* html5 elements */
article,
aside,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

figure {
  margin: 10px 0px;
}

img {
  border: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Open Sans", sans-serif;
  text-decoration: none;
  color: #1a1a1a;
  text-transform: uppercase;
  margin: 0px;
  font-weight: 600;
  color: #373737;
}

.year h2 {
  margin: 25px 0px;
}

h1 a,
h2 a,
h3 a,
h4 a {
  color: #373737;
  text-decoration: none;
}

#front-h1 {
  text-indent: -1000px;
  overflow: hidden;
  position: absolute;
}

.container {
  max-width: 1250px;
  width: 100%;
  margin: auto;
}

.row {
  display: flex;
  flex-flow: row;
}

h3 {
  font-size: 10pt;
}

a {
  color: #373737;
}
/*
Header & Navigation
*/
.site-header {
  position: relative;
  padding: 10px 10px 0px 10px;
  margin-bottom: 5px;
}

.site-branding {
  width: 270px;
  margin: 0px 10px;
}

.site-branding img {
  max-width: 100%;
  height: auto;
}

.header-inner {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 999;
  border-bottom: 2px solid #222;
  padding-bottom: 5px;
}

.main-navigation {
  display: flex;
  flex-flow: row;
}

.main-navigation .nav-menu {
  align-items: center;
  margin-left: 10px;
}

.main-navigation ul {
  display: none;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.main-navigation ul ul {
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  float: left;
  position: absolute;
  top: 100%;
  left: -999em;
  z-index: 99999;
}

.main-navigation ul ul ul {
  left: -999em;
  top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
  display: block;
  left: auto;
}

.main-navigation ul ul a {
  width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
  left: auto;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  text-decoration: none;
  color: #222;
  padding: 10px 0px;
}

.main-navigation .menu-item {
  margin: 5px 10px;
}

.main-navigation .current-menu-item a {
  border-bottom: 2px solid #222;
}

/* Location navigation */

#header-navigation {
  display: flex;
  flex-flow: row;
  align-items: center;
}

#header-location,
#location-select {
  display: flex;
  flex-flow: row;
  align-items: center;
}

#location-search,
#location-search-label {
  border-style: solid;
  border-color: #ccc;
  background-color: #fff;
  font-size: 14px;
}

#location-search {
  border-width: 3px 0px 3px 3px;
  width: 170px;
  padding: 8px 0px 8px 8px;
  float: left;
  color: #222;
  /*height: 16px;*/
  box-sizing: border-box;
  height: 38px;
  width: 85%;
}

#location-search:focus {
  outline: none;
}

#location-search-label {
  border-width: 3px 3px 3px 0px;
  padding: 8px 8px 8px 4px;
  float: left;
  color: #ccc;
  /*height: 16px;*/
  box-sizing: border-box;
  height: 38px;
  text-align: right;
  width: 15%;
}

.ui-autocomplete .ui-menu-item {
  padding: 5px;
  max-width: 278px;
  box-sizing: border-box;
}

.ui-autocomplete {
  max-height: 200px;
  overflow-y: auto;
  /* prevent horizontal scrollbar */
  overflow-x: hidden;
}

#get-user-location,
#show-search {
  font-size: 21px;
  display: inline-block;
  max-width: 70px;
  text-decoration: none;
  text-align: center;
  color: #222;
  line-height: 12px;
  margin-left: 10px;
}

#show-search {
  display: none;
}

#get-user-location span,
#show-search span {
  font-size: 8pt;
}

#location-search-wrapper {
  width: 230px;
  position: relative;
  box-sizing: border-box;
  margin-bottom: -5px;
}

@media all and (max-width: 659px) {
  #show-search {
    display: inline-block;
  }
  .hide-on-mobile {
    display: none;
  }

  .search-visible {
    margin-top: 60px;
  }

  #location-search-wrapper {
    position: absolute;
    top: 75px;
    left: 0px;
    width: 100%;
    padding: 0px 10px;
  }
}

/* Small menu. */
@media screen and (max-width: 800px) {
  .menu-toggle,
  .main-navigation.toggled ul {
    display: block;
  }

  .main-navigation.toggled a {
    color: #222;
    display: inline-block;
  }

  .main-navigation.toggled li {
    text-align: center;
  }

  .hamburger {
    padding: 0px 10px;
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
  }

  .hamburger.is-active .hamburger-inner,
  .hamburger.is-active .hamburger-inner::before,
  .hamburger.is-active .hamburger-inner::after {
    background-color: #222;
  }

  .hamburger-box {
    width: 40px;
    height: 24px;
    display: inline-block;
    position: relative;
  }

  .hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
  }
  .hamburger-inner,
  .hamburger-inner::before,
  .hamburger-inner::after {
    width: 40px;
    height: 4px;
    background-color: #222;
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
  }
  .hamburger-inner::before,
  .hamburger-inner::after {
    content: "";
    display: block;
  }
  .hamburger-inner::before {
    top: -10px;
  }
  .hamburger-inner::after {
    bottom: -10px;
  }

  .hamburger--elastic .hamburger-inner {
    top: 2px;
    transition-duration: 0.275s;
    transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  .hamburger--elastic .hamburger-inner::before {
    top: 10px;
    transition: opacity 0.125s 0.275s ease;
  }
  .hamburger--elastic .hamburger-inner::after {
    top: 20px;
    transition: transform 0.275s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  .toggled .hamburger--elastic .hamburger-inner {
    transform: translate3d(0, 10px, 0) rotate(135deg);
    transition-delay: 0.075s;
  }
  .toggled .hamburger--elastic .hamburger-inner::before {
    transition-delay: 0s;
    opacity: 0;
  }
  .toggled .hamburger--elastic .hamburger-inner::after {
    transform: translate3d(0, -20px, 0) rotate(-270deg);
    transition-delay: 0.075s;
  }

  .main-navigation.toggled {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    display: flex;
    flex-flow: column;
    z-index: 999999;
    padding: 20px 10px;
    box-sizing: border-box;
  }

  .menu-toggle {
    text-align: right;
  }

  .main-navigation .menu-item {
    text-align: center;
  }
}

@media screen and (min-width: 801px) {
  .menu-toggle {
    display: none;
  }

  .main-navigation ul {
    display: flex;
  }
}

#main {
  background-color: #b9e4ec;
  background: -webkit-linear-gradient(
    #b9e4ec,
    #d5e8ec
  ); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(#b9e4ec, #d5e8ec); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(
    #b9e4ec,
    #d5e8ec
  ); /* For Firefox 3.6 to 15 */
  background: linear-gradient(#b9e4ec, #d5e8ec); /* Standard syntax */
  min-height: 100%;
  padding: 0px;
  margin: 0px;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  min-height: 100%;
}

#content {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.syontilaatikko-iso {
  width: 100%;
  display: inline-block;
  background-position: center center;
  height: 150px;
  background-repeat: no-repeat;
}

.syontilaatikko {
  width: 50%;
  display: inline-block;
  background-position: center center;
  height: 60px;
  margin-left: auto;
  margin-right: auto;
  background-repeat: no-repeat;
}

.syontilaatikko img {
  opacity: 0.8;
  filter: alpha(opacity=90); /* For IE8 and earlier */
}

.paiva {
  text-align: center;
  position: relative;
  width: 300px;
  display: inline-block;
  margin: 5px;
  padding: 10px;
  background-color: #fff;
  /*border: 4px solid #6C6C6C;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;*/
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.mini-ikoni {
  width: 68px;
  border: 1px solid #6c6c6c;
  /*margin-right: 4px;*/
  margin: 3px 3px;
  padding: 2px;
  position: relative;
  display: inline-block;
  text-align: center;
  background-color: #fff;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  text-decoration: none;
  color: #373737;
}

.mini-ikoni .otsikkorivi,
.calendar-table .otsikkorivi {
  font-weight: bold;
  line-height: 1;
  font-size: 12pt;
  text-transform: uppercase;
  display: inline-block;
  width: 100%;
  padding-bottom: 2px;
}

a.mini-ikoni.pariton {
  margin-bottom: 4px;
}

a.mini-ikoni.parillinen {
  margin-bottom: 4px;
  background-color: #c8d3d5;
}

.syontilaatikko-pieni {
  width: 100%;
  display: inline-block;
  background-position: center center;
  height: 35px;
  margin-left: auto;
  margin-right: auto;
  background-repeat: no-repeat;
}

a.paivalinkki {
  text-decoration: none;
  color: #373737;
}

.syonti-tyhja {
  background-image: url("/static/img/koukku.png");
  background-size: auto 75%;
}
.syonti-kala1 {
  background-image: url("/static/img/kala1_new.png");
  background-size: auto 75%;
}
.syonti-kala2 {
  background-image: url("/static/img/kala2_new.png");
  background-size: auto 75%;
}
.syonti-kala3 {
  background-image: url("/static/img/kala3_new.png");
  background-size: auto 75%;
}
.syonti-kala4 {
  background-image: url("/static/img/kala4_new.png");
  background-size: auto 77%;
}

.syonti-0 {
  background-color: #fff;
}
.syonti-1 {
  background-color: #e9f0e0;
}
.syonti-2 {
  background-color: #e4f7cd;
}
.syonti-3 {
  background-color: #caf298;
}
.syonti-4 {
  background-color: #b7f06f;
}

.sanaselite {
  display: inline-block;
  width: 100%;
  margin: 3px 0px;
  font-size: 13px;
}

.ottiaika {
  display: inline-block;
  padding: 10px;
  line-height: 1;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.valoisa {
  background-color: #ffd83f;
}

.pimea {
  background-color: #908da0;
  color: #fff;
}

.hamara {
  background-color: #ff8f41;
  font-weight: bold;
}

.kuu-ja-aurinko {
  display: flex;
  width: 100%;
  margin-top: -20px;
  flex-flow: row;
  justify-content: space-between;
}

.kuu-ja-aurinko .left {
  display: flex;
  flex-direction: row;
}

.kuu-ja-aurinko .right {
  display: flex;
  flex-direction: row-reverse;
}

.kuu-ja-aurinko .right img {
  margin: 3px 0px 0px 2px;
}

.kuu-ja-aurinko .left img {
  margin: 3px 2px 0px 0px;
}

.nuolisymbolit {
  margin: -1px 6px 0px 6px;
}

/*
 <img src="img/koukku.png" height="100px" width="auto" /><br/>
	<img src="img/kala1.png" height="100px" width="auto" /><br/>
	<img src="img/kala2.png" height="100px" width="auto" /><br/>
	<img src="img/kala3.png" height="100px" width="auto" /><br/>
	<img src="img/kala4.png" height="115px" width="auto" />
*/

#mobile-nav {
  display: inline-block;
  text-align: center;
  width: 100%;
}

#desktop-nav {
  display: inline-block;
  text-align: right;
}

#mobile-nav a,
#desktop-nav a {
  display: inline-block;
  text-align: center;
  padding: 3px 10px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: bold;
  /*margin: 2px 4px;*/
  color: #222;
  font-size: 11pt;
}

.vuosi1 {
  background-color: #fff;
}

.vuosi2 {
  background-color: #cecece;
}

#location-settings {
  width: 100%;
  display: inline-block;
  padding: 0px 10px 10px 10px;
  box-sizing: border-box;
  position: relative;
  color: #222;
}

#current-city {
  font-weight: bold;
  font-size: 12pt;
  display: inline-block;
  text-align: left;
  width: 100%;
  position: relative;
}

#current-city h1 {
  font-size: inherit;
  text-transform: inherit;
  font-weight: inherit;
}

#current-location-details {
  display: inline-block;
  width: 100%;
  text-align: left;
  font-size: 10pt;
  font-weight: normal;
}

#mobile-nav {
  display: none !important;
}

.ui-autocomplete .ui-menu-item {
  padding: 5px;
  max-width: 278px;
  box-sizing: border-box;
}

.ui-autocomplete {
  max-height: 200px;
  overflow-y: auto;
  /* prevent horizontal scrollbar */
  overflow-x: hidden;
}

#get-user-location,
#show-search {
  font-size: 21px;
  display: inline-block;
  max-width: 70px;
  text-decoration: none;
  text-align: center;
  color: #222;
  line-height: 12px;
  margin-left: 0px;
  padding: 10px;
}

#show-search {
  display: none;
}

#get-user-location span,
#show-search span {
  font-size: 8pt;
}

.article-content {
  text-align: left;
  margin-top: 20px;
}

.youtube-embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 20px;
}
.youtube-embed-container iframe,
.youtube-embed-container object,
.youtube-embed-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.breadcrumbs {
  text-align: left;
  font-size: 11px;
  margin-bottom: 10px;
  margin-left: 10px;
}

.breadcrumbs a {
  color: #000;
}

.article-list-wrapper {
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
}
.article-list-wrapper .article {
  box-sizing: border-box;
  padding: 10px;
  margin: 5px;
  background-color: #fff;
  color: #373737;
  text-decoration: none;
  width: calc(25% - 10px);
}
.article-list-wrapper .article h2 {
  text-transform: none;
  text-align: center;
}

.article-list-wrapper .article h2,
.article-list-wrapper .article p {
  margin: 10px 0px 0px 0px;
}

.article-list-wrapper .article p {
  text-align: justify;
}

.article-list-wrapper .article-image {
  overflow: hidden;
  height: 0;
  padding-top: 56.25%;
  background-position: center center;
  background-size: cover;
}

.article-content-wrapper {
  display: flex;
  flex-flow: row;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 100%;
}
.article-content-wrapper .article-content h1,
.article-content-wrapper .article-content h2,
.article-content-wrapper .article-content h3 {
  text-transform: none;
  margin-bottom: 10px;
}
.article-content-wrapper .article-content h1 {
  font-size: 2.5em;
}
.article-content-wrapper .article-content h2 {
  font-size: 2em;
}
.article-content-wrapper .article-content h3 {
  font-size: 1.5em;
}
.article-content-wrapper .article-content {
  box-sizing: border-box;
  padding: 20px;
  background-color: #fff;
  margin: 5px 0px;
}
.article-content-wrapper .article-content img {
  width: 100%;
  height: auto;
  margin: auto;
}

.article-content-wrapper aside .adsbygoogle {
  margin: 5px 0px;
}

.article-content-wrapper .article-content .adsbygoogle {
  margin: 10px 0px;
}

.article-content-wrapper aside {
  width: 360px;
  max-width: 100%;
}
.article-content-wrapper aside .paiva {
  margin: 5px 0px;
}

.article-content-wrapper aside .article-list-wrapper {
  flex-flow: column;
}

.article-content-wrapper aside .article-list-wrapper .article {
  width: 100%;
  margin: 5px 0px;
}

@media all and (max-width: 659px) {
  .article-content-wrapper {
    flex-flow: column;
  }
  .article-content-wrapper .article-content,
  .article-content-wrapper aside {
    width: 100%;
  }

  .article-content-wrapper .article-content {
    padding: 20px 10px;
    position: relative;
  }
}

@media all and (min-width: 1390px) {
  #content {
    width: 1250px;
  }
  #mobile-nav {
    display: none !important;
  }
}
@media all and (max-width: 1389px) {
  #content {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0px 10px;
  }
}

@media all and (min-width: 1000px) and (max-width: 1389px) {
  /*#content {
		width: 940px;
	}*/
  #mobile-nav {
    display: none !important;
  }
}

@media all and (min-width: 660px) and (max-width: 999px) {
  /*#content {
		width: 630px;
	}*/
  #desktop-nav {
    display: none !important;
  }

  .article-list-wrapper .article {
    width: calc(50% - 10px);
  }
}

@media all and (max-width: 659px) {
  /*#content {
		max-width: 400px;
		width: 100%;
		box-sizing: border-box;
		padding: 0px 10px;
	}*/

  .paiva {
    width: 100%;
    margin: 5px 0px;
  }

  #desktop-nav {
    display: none !important;
  }

  header#main-header h1 img,
  header#main-header h2 img {
    width: 200px;
  }

  #show-search {
    display: inline-block;
  }
  .hide-on-mobile {
    display: none !important;
  }

  .article-list-wrapper {
    flex-flow: column;
  }

  .article-list-wrapper .article {
    width: 100%;
    margin: 5px 0px;
  }
}

@media all and (max-width: 370px) {
  header#main-header img.site-logo {
    width: 200px;
    margin-top: 5px;
  }
}

.calendar-table {
  margin: 10px 0px 30px 0px;
  width: 100%;
  border-collapse: collapse;
}

.calendar-table td {
  border: 1px solid #6c6c6c;
  border-collapse: collapse;
  width: 40px;
  height: 60px;
  text-align: center;
  vertical-align: middle;
  position: relative;
}

.calendar-table td a {
  font-size: 10px;
  color: #373737;
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 2px;
  box-sizing: border-box;
  background-color: #fff;
}

.calendar-table .syontilaatikko {
  display: inline-block;
}

@media screen and (max-width: 690px) {
  .calendar-table td a {
    /*padding: 20px 5px 20px 5px;*/
    font-size: 9px;
  }
}

@media screen and (max-width: 450px) {
  .year .syonti-kala1 {
    background-size: 100% auto;
  }
  .year .syonti-kala2 {
    background-size: 100% auto;
  }
  .year .syonti-kala3 {
    background-size: 100% auto;
  }
  .year .syonti-kala4 {
    background-size: 100% auto;
  }
}

.footer-inner {
  padding: 10px 0px 10px 0px;
}

.footer-inner div,
.footer-inner article {
  width: 100%;
  text-align: center;
}

.calendar-links {
  text-align: center;
  padding: 20px 0px 25px 0px;
  font-size: 12px;
  color: #373737;
}

.site-footer a {
  font-size: 12px;
  color: #373737;
  white-space: nowrap;
}

.calendar-links a {
  font-size: 14px;
  color: #373737;
  white-space: nowrap;
}

@media (max-width: 425px) {
  #top-ad-placement {
    min-height: 85vw;
    height: 85vw;
  }
}
@media (min-width: 426px) {
  #top-ad-placement {
    min-height: 280px;
    height: 280px;
  }
}

@media (min-width: 965px) {
  .keskimainos-1 {
    display: none !important;
  }
}

@media (min-width: 1279px) {
  .keskimainos-2 {
    display: none !important;
  }
}
@media (max-width: 964px) {
  .keskimainos-2 {
    display: none !important;
  }
}
@media (min-width: 965px) and (max-width: 1278px) {
  .keskimainos-mobile-desktop {
    display: none !important;
  }
}
.keskimainos-mobile-desktop {
  text-align: center;
  display: block;
}

@media (min-width: 660px) {
  .amazon-mobile {
    display: none;
  }
}

@media (max-width: 1278px) {
  .amazon-desktop {
    display: none !important;
  }
}

@media (max-width: 824px) {
  .amazon-tablet {
    display: none !important;
  }
}

.amazon {
  text-align: center;
}
.amazon iframe {
  margin: 5px;
}
