/*
Theme Name: Kokosuomileikkii
Theme URI: http://underscores.me/
Author: Sollertis
Author URI: http://underscores.me/
Description: Description
Version: 1.0
License: GNU General Public License
License URI: license.txt
Text Domain: ksl
Domain Path: /languages/
Tags:

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.

Kokosuomileikkii is based on Underscores http://underscores.me/, (C) 2012-2013 Automattic, Inc.

Resetting and rebuilding styles have been helped along thanks to the fine work of
Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
and Blueprint http://www.blueprintcss.org/
*/

@font-face
{
    font-family: SCoreCoreCircus;
    src: url(inc/SCoreCoreCircus.woff);
    src: url(inc/SCoreCoreCircus.otf);
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;

    src: local('Lato'), local('Lato');
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: bold;
    /*src: local('PT Serif Bold'), local('PTSerif-Bold'), url(inc/sserif_bold.woff) format('woff');*/
}

/* =Reset
-------------------------------------------------------------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    border: 0;
    font-family: inherit;
    font-size: 100%;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}
html {
    font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/348/#c790 */
    overflow-y: scroll; /* Keeps page centered in all browsers regardless of content height */
    -webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
    -ms-text-size-adjust:     100%; /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */
}
*,
*:before,
*:after { /* apply a natural box layout model to all elements; see http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */
    -webkit-box-sizing: border-box; /* Not needed for modern webkit but still used by Blackberry Browser 7.0; see http://caniuse.com/#search=box-sizing */
    -moz-box-sizing:    border-box; /* Still needed for Firefox 28; see http://caniuse.com/#search=box-sizing */
    box-sizing:         border-box;
}
body {
    background: #e6f4f0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section {
    display: block;
}
ol, ul {
    list-style: none;
}
table { /* tables still need 'cellspacing="0"' in the markup */
border-collapse: separate;
border-spacing: 0;
}
caption, th, td {
    font-weight: normal;
    text-align: left;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: "";
}
blockquote, q {
    quotes: "" "";
}
a:focus {
    outline: thin dotted;
}
a:hover,
a:active {
    outline: 0;
}
a img {
    border: 0;
}



/* =Global
----------------------------------------------- */

body,
button,
input,
select,
textarea {
    color: #404040;
    font-family: "Lato", sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    /* clear: both; */
}
hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}

/* Text elements */
p {
    margin-bottom: 1.5em;
}
ul, ol {
    margin: 0 0 1.5em 3em;
}
ul {
    list-style: disc;
}
ol {
    list-style: decimal;
}
li > ul,
li > ol {
    margin-bottom: 0;
    margin-left: 1.5em;
}
dt {
    font-weight: bold;
}
dd {
    margin: 0 1.5em 1.5em;
}
b, strong {
    font-weight: bold;
}
dfn, cite, em, i {
    font-style: italic;
}
blockquote {
    margin: 0 1.5em;
}
address {
    margin: 0 0 1.5em;
}
pre {
    background: #eee;
    font-family: "Courier 10 Pitch", Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}
code, kbd, tt, var {
    font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
abbr, acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}
mark, ins {
    background: #fff9c0;
    text-decoration: none;
}
sup,
sub {
    font-size: 75%;
    height: 0;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sup {
    bottom: 1ex;
}
sub {
    top: .5ex;
}
small {
    font-size: 75%;
}
big {
    font-size: 125%;
}
figure {
    margin: 0;
}
table {
    margin: 0 0 1.5em;
    width: 100%;
}
th {
    font-weight: bold;
}
img {
    height: auto; /* Make sure images are scaled correctly. */
    max-width: 100%; /* Adhere to container width. */
}
button,
input,
select,
textarea {
    font-size: 100%; /* Corrects font size not being inherited in all browsers */
    margin: 0; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */
    vertical-align: baseline; /* Improves appearance and consistency in all browsers */
    *vertical-align: middle; /* Improves appearance and consistency in all browsers */
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border: 1px solid #ccc;
    border-color: #ccc #ccc #bbb #ccc;
    border-radius: 3px;
    background: #e6e6e6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, .8);
    cursor: pointer; /* Improves usability and consistency of cursor style between image-type 'input' and others */
    -webkit-appearance: button; /* Corrects inability to style clickable 'input' types in iOS */
    font-size: 12px;
    font-size: 1.2rem;
    line-height: 1;
    padding: .6em 1em .4em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    border-color: #ccc #bbb #aaa #bbb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 15px 17px rgba(255, 255, 255, 0.8), inset 0 -5px 12px rgba(0, 0, 0, 0.02);
}
button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
    border-color: #aaa #bbb #bbb #bbb;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
}
input[type="checkbox"],
input[type="radio"] {
    padding: 0; /* Addresses excess padding in IE8/9 */
}
input[type="search"] {
    -webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */
    -webkit-box-sizing: content-box; /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */
    -moz-box-sizing:    content-box;
    box-sizing:         content-box;
}
input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */
    -webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */
    border: 0;
    padding: 0;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
    color: #666;
    border: 1px solid #ccc;
    border-radius: 3px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    color: #111;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"] {
    padding: 3px;
}
textarea {
    overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */
    padding-left: 3px;
    vertical-align: top; /* Improves readability and alignment in all browsers */
    width: 98%;
}

/* Links */
a {
    color: #E23B6B;
    text-decoration: none;
}
a:hover,
a:focus,
a:active {
    color: #057780;
}

/* Alignment */
.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin: 0 auto;
}

/* Text meant only for screen readers */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}

.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 15px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar */
}

/* Clearing */
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
    content: '';
    display: table;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
    clear: both;
}


/* =Menu
----------------------------------------------- */
.menu-paanavigointi-container {
    width:235px;
}

.menu-paanavigointi-container ul li {
    margin-bottom:8px;
}

.menu-paanavigointi-container ul li ul li {
    margin-bottom:5px;
}

.main-navigation {
    font-family: SCoreCoreCircus, Verdana, Arial, Serif;
    font-size: 14px;
    clear: both;
    display: block;
    float: left;
    width: 100%;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.main-navigation li {
    float: none;
    position: relative;
}

.main-navigation a {
    color: #057780 !important;
    display: block;
    text-decoration: none;
    font-weight:400;
}

.main-navigation ul ul {
    font-family: Verdana;
    font-weight: bold;
    font-size: 12px;
    display: block;
    float: left;
    position: relative;
    top: 0;
    z-index: 99999;
}

.main-navigation ul ul ul {
    left: 100%;
    top: 0;
}

.main-navigation ul ul a {
    width: 250px;
    font-weight:400;
    font-family: SCoreCoreCircus, Verdana, Arial, Serif;
}

.main-navigation ul ul li {
    padding-left: 25px;
}

.main-navigation li:hover > a {
    color: #ae0036;
}

.main-navigation li:hover > a {
    color: #ae0036;
}

.main-navigation ul ul :hover > a {
    color: #ae0036;
}

.main-navigation ul ul a:hover {
}

.main-navigation ul li:hover > ul {
    display: block;
}

.main-navigation .current_page_item a,
.main-navigation .current-menu-item a {
    color: #e43168;
}

a[aria-current="page"] {
    color: #e43168 !important;
}

.sub-menu li a {
    margin-top: 5px;
}

.sub-menu li a::before {
    content: "\2022 ";
}

/* Small menu */
.menu-toggle {display: none !important;}

@media screen and (max-width: 1px) {
    .menu-toggle,
    .main-navigation.toggled .nav-menu {
        display: block;
    }

    .main-navigation ul {
        display: none;
    }
}


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

.toplink-area {
    font-family: SCoreCoreCircus, Verdana, Arial, Serif;
    font-size: 14px;
    float:right;
    clear:both;
    width:100%;
    text-align:right;
    margin-right:22px;
}

article .entry-content {
    padding-bottom: 7em;
}

.hentry {
    margin: 0 0 1.5em;
}

.byline,
.updated {
    display: none;
}

.single .byline,
.group-blog .byline {
    display: inline;
}

.page-content,
.entry-content,
.entry-summary {
    padding: 1.5em 0px 0 0;
}

.tribe_community_edit .entry-content {
    padding: 1.5em 20px 0 0;

}

.page-links {
    clear: both;
    margin: 0 0 1.5em;
}

.content-area {
    width: 100%;
    min-width:600px;
}

.site-main {
    width:auto;
    margin-right:0px;
    padding:0px 0px 0px 20px;
    margin-bottom:15px;
    overflow: hidden;
}

#secondary.widget-area {
    max-width: 300px;
    padding: 3em;
    background-color: white;
    margin-bottom: 6em;
}

.entry-content {
    max-width: 1000px;
    margin-left: 2em;
    margin-right: auto;
}

@media(max-width: 480px) {
    .entry-content {
        margin-left: 1em;
    }
}

.more-link, .more-link a {
    text-decoration:none;
    text-transform:uppercase;
    color: #EA3E67;
    white-space:nowrap;
}

.site-content .widget-area {
    width: 35%;
    max-width:266px;
    min-width:183px;
    overflow: show;
    float:left;
}

.site-content {
    width:100%;
}

.widget-area iframe {
    margin-top:20px;
    margin-bottom:40px;
}

.site-footer {
    clear: both;
    width: 100%;
}

#body_wrapper {
    width:100%;
    min-width:600px;
    margin-left: auto;
    margin-right: auto;
}

#site-navigation {
    padding-top: 30px;
    padding-bottom: 30px;
}

#secondary {
    margin-left: 30px;
    margin-right: 20px;
    padding-right: 0px;
    padding-bottom: 25px;
}

/* =Content typography
----------------------------------------------- */

.site-main h2, .entry-title {
    font-family: 'Lato', Sans-Serif;
    font-weight: bold;
    font-size: 22px;
    line-height: 30px;
    padding-bottom: 20px;
    color: #00666E;
    width:auto;
}

.site-main h3 {
    font-family: 'Lato', Sans-Serif;
    font-weight: bold;
    font-size: 18pt;
    line-height: 22pt;
    padding-bottom: 20pt;
    color: #00666e;
}

.site-main p {
    font-family: 'Lato', Sans-Serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 25px;
    color: #000;
    margin-right: 30px;
}

.site-main p strong{
    color: #00666e;
}

.artikkeli_vartalo p {
    font-size: 16px;
    margin-right: 0px;
    margin-bottom: 0px;
}

.head_post p {
    padding-bottom: 40px;
    font-size: 16px;
    line-height: 24px;
}

.wp-caption-text {
    padding-left: 5px;
    font-size: 10px !important;
}



/* =Customizing WP Gutenberg blocks
----------------------------------------------- */

.wp-block-columns {
    flex-wrap: wrap;
}

.wp-block-column:not(:first-child) {
    margin-left: 0!important;
}

.wp-block-column {
    min-width: 400px;
    flex-grow: 1;
}


/* =Asides
----------------------------------------------- */

.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
    display: none;
}

#secondary aside {
    width:100%;
}


/* =Media
----------------------------------------------- */

.page-content img.wp-smiley,
.entry-content img.wp-smiley,
.comment-content img.wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin: 1.2% auto 0;
    max-width: 98%;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

.site-main .gallery {
    margin-bottom: 1.5em;
}

.gallery-caption {
}

.site-main .gallery a img {
    border: none;
    height: auto;
    max-width: 90%;
}

.site-main .gallery dd {
    margin: 0;
}

.site-main .gallery-columns-4 .gallery-item {
}

.site-main .gallery-columns-4 .gallery-item img {
}

.site-main hr {
    padding:0;
    margin:0;
    margin-right:28px;
    margin-bottom:20px;
    border:none;
    border-bottom:2px solid #C9E3E4;
}

/* Make sure embeds and iframes fit their containers */
embed,
iframe,
object {
    max-width: 100%;
}


/* =Navigation
----------------------------------------------- */

.site-main [class*="navigation"] {
    margin: 0 0 1.5em;
    overflow: show;
}
[class*="navigation"] .nav-previous {
    float: left;
    margin-bottom:10px;
}
[class*="navigation"] .nav-next {
    float: right;
    text-align: right;
    margin-right:25px;
    margin-bottom:10px;
}


/* =Comments
----------------------------------------------- */

#comments {

}

.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
}


/* =Widgets
----------------------------------------------- */
.sidebar-logo {
    padding-top:21px;
    padding-bottom:40px;
    padding-left:20px;
}

#secondary .widget {
    border-top:2px solid #C9E3E4;
    display:block;
    overflow:hidden;
}

.textwidget {
    margin:0;
    padding:0;
}

.widget {
    padding: 1.5em 0 0 0;
}

/* Make sure select elements fit in widgets */
.widget select {
    max-width: 100%;
}

/* Search widget */
.widget_search .search-submit {
    display: none;
}


/* =Infinite Scroll
----------------------------------------------- */

/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .paging-navigation, /* Older / Newer Posts Navigation (always hidden) */
.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
    display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before */
.infinity-end.neverending .site-footer {
    display: block;
}

.artikkeli_otsikko {
    text-decoration: none;
}

a.artikkeli_otsikko {
    font-style: normal;
    color: #00666e;
}

a.artikkeli_otsikko:visited {
    color: #00666e;
}

.artikkeli_viesti a.artikkeli_otsikko {
    font-style: normal;
    color: #00666e;
    font-family: Lato, sans-serif;
    font-weight: normal;
}

.artikkeli_viesti h2 {
    padding-bottom: 0;
}

.post-headline .artikkeli_otsikko {
    font-family: SCoreCoreCircus, Verdana, Arial, Serif;
}

body.home .artikkeli_viesti {
    height: unset !important;
    min-height: 420px !important;
    float: left;
    margin-right: 21px;
    min-width: 250px !important;
    width: 46% !important;
}

@media(min-width: 1600px) {
    body.home .artikkeli_viesti {
        width: 31% !important;
    }
}

.artikkeli_vartalo strong, .artikkeli_vartalo em {
    font-weight: 300;
    font-style: normal;
    color: black !important;
    text-decoration: none;
}

.bib_page_nav {
    font-size: 16px;
    padding-top: 3em;
}

.post-headline .post_thumbnail img {
    width:690px;
    margin-bottom:10px;
}

.artikkeli_viesti .post_thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.head_post .artikkeli_vartalo {
    padding-right:25%;
}

.bib_page_nav {
    clear:both;
}

/* other */
#ohjaajan {
    background-image: url('img/tero.png');
    background-repeat:no-repeat;
    background-position: right center;
    line-height:40px;
    text-transform:uppercase;
}

#ohjaajan a, #ohjaajan a:link {
    padding: 13px 40px 10px 10px;
    color: #e23b6b;
    font-family: SCoreCoreCircus, Verdana, Arial, Serif;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}

.mll-link , .punainen-risti-link, .kultuurirahasto-link {
    border:none;
}

.mll-link img {
    max-width:180px;
}

.jaa-linkit {
    padding:10px;
    padding-right:38px;
    padding-top:5px;
    float:right;
    margin-top:0px;
}

.jaa-linkit, .jaa-linkit a {
    font-family:PTSerif;
    font-size:13px;
    line-height:18px;
    color: #e23b6b;
    font-weight:normal;
    text-decoration:none;
}

.jaa-linkki-suuri {
    font-size: 20px;
    line-height: 40px;
}

.fb_iframe_widget {
    display: inline-block;
    position: relative;
    padding-bottom: 9em;
}

.jaa-linkit a:hover {
    text-decoration:underline;
}

.entry-header .attachment-large {
    width: 100%;
}

header.entry-header {
    position: relative;
    height: 0;
    padding-bottom: 37.5%;
    overflow: hidden;
}

.entry-header img {
    max-width: 2000px;
    position: absolute;
    left: 0;
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}


.atrikkeli-entry-title {
    font-family: 'PTSerif', Serif bold;
    font-weight:bold;
    font-size:22px;
    line-height:30pt;
    color: #00666E;
    padding-bottom:20px;
}

.artikkeli-jaa-linkit {
    float: right;
    padding:10px;
    margin-left: 15px;
    margin-top: 0px;
    padding-left: 50px;
}

.artikkeli-jaa-linkit-page {
    /*float: right;*/
    padding:10px;
    padding-left: 0;
    padding-top: 0px;
    padding-right: 40px;
}

.atrikkeli-entry-content {
    text-align: left;
    padding-bottom: 6em;
}

.atrikkeli-entry-content .alignright {
    margin-right:30px;
}

.atrikkeli-entry-content p .alignright { /* no margin if aligned in paragraph */
    margin-right:0px;
}

.atrikkeli-entry-content p:first{
    max-width: 530px;
}

.artikkeli-jaa-linkit, .artikkeli-jaa-linkit a {
    font-family:PTSerif;
    font-size:13px;
    line-height:18px;
    color: #e23b6b;
    font-weight:normal;
    text-decoration:none;
}

.artikkeli-jaa-linkit-page, .artikkeli-jaa-linkit-page a {
    /*font-family:PTSerif;*/
    font-size:13px;
    line-height:18px;
    color: #e23b6b;
    font-weight:normal;
    text-decoration:none;
    padding-top: 10px;
}

.artikkeli-jaa-linkit a:hover {
    text-decoration:underline;
}

.form-allowed-tags{
    display:none;
}

.comment-metadata a {
    color: #00666E;
}

/* terhokerho rules */

#terhokerho {
    background-image: url('img/terhokerho-bg1.png') !important;
    background-repeat: repeat !important;
    background-position: left top !important;
    background-attachment: fixed !important;
}

.terhokerho-navigation a {
    color:#E23B6B;
}

.terhokerho-navigation a:hover, .terhokerho-navigation a:active {
    color: pink;
}

#terhokerho a.artikkeli_otsikko, #terhokerho .atrikkeli-entry-title {
    font-style: normal;
    color: #E23B6B;
}

#terhokerho .more-link, #terhokerho .more-link a {
    color: #00666E;
}

#terhokerho .main-navigation .current_page_item a,
#terhokerho .main-navigation .current-menu-item a {
    color: pink;
}

/* Responsiivisuuden lisätoiminnot */

@media screen and (max-width: 616px) {

    .content-area article:first-of-type {
        padding-top: 0px;
    }
    .menu-paanavigointi-container {
        max-width: 100%;
    }
    .menu-paanavigointi-container ul li {
        margin-bottom: 0px;
    }
    .menu-terhkerho-linkit-container {
        max-width: 300px;
    }
    .main-navigation ul ul a {
        max-width: 100%;
    }
    .content-area {
        min-width: 100%;
        display: block;
        clear: both;
        padding-bottom: 420px;
    }
    #secondary.widget-area {
        padding: 2em;
    }
    .site-main {
        padding: 0px 20px 0px 20px;
        border-left: none;
    }
    .site-main hr {
        margin-right: 0px;
    }
    .site-content .widget-area {
        width: auto;
        max-width: 100%;
        min-width: 0;
        float: none;
    }
    #body_wrapper {
        position: relative;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    #logo-area {
        max-width: 150px;
    }

    #site-navigation {
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .artikkeli_viesti {
        max-width: 100%;
    }
    .post-headline .post_thumbnail img {
        max-width: 100%;
    }
    .artikkeli_viesti .post_thumbnail img {
        max-width: 100%;
    }
    .entry-header .attachment-large {
        max-width: 100%;
    }

    #some_valikko {
        font-size: 9px;
        margin-bottom: -25px;
        margin-right: 1em;
    }

    #secondary {
        margin-left: 20px;
    }
    #secondary #text-8.widget {
        display: none;
    }
    #secondary #text-3.widget,
    #secondary #text-5.widget {
        position: absolute;
        left: 0px;
        bottom: 285px;
    }
    #secondary #text-3.widget .sidebar-logo,
    #secondary #text-5.widget .sidebar-logo {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    #secondary #fdxprofile-2.widget {
        display: none;
    }
    #secondary #text-4.widget,
    #secondary #text-7.widget {
        position: absolute;
        left: 0px;
        bottom: 20px;
    }
    #secondary #text-4.widget .textwidget,
    #secondary #text-7.widget .textwidget {
        margin-left: 20px;
        max-width: 300px;
    }

}

@media screen and (max-width: 336px) {

    #page {
        padding-top: 10px;
    }
    .site-content {
        padding-top: 35px;
    }

}

/* Tapahtumien haku | Sininen meteoriitti */

/* yleisiä tyylejä */

.tribe-theme-ksl h1 {
    font-size: 24px;
    font-weight: bold;
    color: #00666e;
}

.tribe-events-widget-link {text-align: center;}


/* napit */

.tribe-theme-ksl .isonappi, .tribe-theme-ksl .nappi, .tribe-events-widget-link a, .tribe-events-back a, .tribe_map_paged, .register a, .tribe-events #add-new a{
    color: white !important;
    text-decoration: none;
    display: inline-block;
    background-color: #E23B6B;
}

.tribe-theme-ksl .isonappi {
    padding: 18px;
    border-radius: 26px;
    margin-top: 22px;
    margin-bottom: 22px;
}

.tribe-theme-ksl .nappi, .tribe-events-widget-link a, .tribe-events-back a, .tribe_map_paged, .register a, .tribe-events #add-new a{
    padding: 10px 14px;
    border-radius: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.tribe-theme-ksl .isonappi:hover, .tribe-theme-ksl .nappi:hover, .tribe-events-widget-link a:hover, .tribe-events-back a:hover, .tribe_map_paged:hover, .register a:hover, .tribe-events #add-new a:hover {background-color: #057780;}

.tribe-theme-ksl .isonappi:visited, .tribe-theme-ksl .nappi:visited, .tribe-events-widget-link a:visited, .tribe-events-back a, .tribe-events-back a:visited, .tribe_map_paged:visited, .register a:visited, .tribe-events #add-new a:visited {color: white;}

/* tapahtuman syöttöalue 100% leveäksi */
.tribe_community_edit .entry-content {width: 100% !important;}

/* piilota sivuston somejaot muilta kuin tapahtuma-sivuilta */
article.type-page .artikkeli-jaa-linkit-page {display: none;}

/* hide unused elements */
.event-dynamic-helper-text,
.cleanlogin-preview,
.tribe-events-ical,
.tribe-events-cal-links,
.tribe-events-sub-nav,
.tribe-events-loop .tribe-events-event-image {
    display: none !important;
}

/* fix umlauts */
#tribe-bar-form label {
    font-family: sans-serif;
    text-transform: initial;
}

.event-help {
    display: block;
    float: left;
    font-size: 1.5em;
}

.register-text {
    margin-top: 20px;
}

.tribe-community-events,
#loginform {
    background: #fefefe !important;
    padding: 20px;
    border: 1px solid #eaeaea;
}

#loginform label {
    max-width: 400px;
    width: 100%;
    display: block;
}

#loginform .input {
    max-width: 400px;
    width: 100%;
    display: block;
}

/* etusivun listaus  */

.tribe-events-title, .tribe-events-map-event-title {-webkit-margin-after: 0 !important; -webkit-margin-before: 0 !important; padding-bottom: 5px !important; padding-top: 5px !important;}

.list-date {margin-right: 20px !important;}

/*karttasivu */

h2.tribe-events-page-title {margin-bottom: 0; padding-bottom: 10px; font-size: 26px;}

.tribe-events-loop {line-height: 1 !important;}

.tribe-events-venue-details a, .tribe-events-venue-details a:visited {color: black !important;}

.tribe-events-read-more {
    font-weight: bold;
    font-size: 16px;
}

.entry-summary .more-link {display: none;}

/*
.tribe-events-map-event-title {display: inline-block}
.tribe-events-event-meta {display: inline-block}
.tribe-events-event-meta {margin: 0 !important;}
.tribe-events-map-event-title {margin: 0 !important}
.tribe-events-event-meta .time-details {display: inline-block}
.tribe-events-event-meta .tribe-address {display: inline-block}
.tribe-events-event-meta .tribe-events-venue-details {display: inline-block}
*/

.tribe-events-event-meta .tribe-delimiter, .tribe-events-event-meta .tribe-country-name {display: none;}

.tribe-events-event-meta .tribe-street-address {display: none;}

.tribe-events-list .tribe-events-event-meta, .tribe-events-map-event-description p {margin-bottom: 2px !important;}

.tribe-events-list .type-tribe_events {padding-bottom: 20px; padding-top: 20px;}

.tribe-events-distance {display: none;}

#tribe-events-footer .tribe-events-sub-nav {display: block !important;} /* prev ja next takaisin näkyviin */

/* tapahtumailmoitus */

.single-tribe_events h1.tribe-events-single-event-title {text-align: left; padding-top: 20px; font-size: 26px;}
.tribe-events-schedule {margin: 5px 0 0;}
.tribe-events-schedule h2 {padding: 0;}
.tribe-events-meta-group .tribe-events-single-section-title {margin: 20px 0 0px; padding-bottom: 10pt;}
.tribe-events-single-section, .tribe-events-schedule {width: 97%;}
@media screen and (max-width: 616px) {.tribe-events-single-section, .tribe-events-schedule {width: 98%;}}

tr.linked-post.venue:nth-child(5),
tr.linked-post.venue:nth-child(6) {
    display: none !important;
}

.eventForm .tribe-datetime-block .tribe-field-end_date {
    float: left;
}

/*kirjautumissivu*/

.entry-content {}
.tml .tml-rememberme-wrap label {
    display: inline !important;
}
/* /Tapahtumien haku | Sininen meteoriitti */

.recurrence-row {
    display: none;
}

/**
 * From https://gist.github.com/cliffordp/cc30fba3242c495a26bd/
 *
 * Hide past events on The Events Calendar's Month View
 *
 * Without this snippet: http://cl.ly/3x2o3N2K3z1r
 * With this snippet: http://cl.ly/0H431E2L0i17
 *
 */

 .tribe-events-calendar td.tribe-events-past .tribe-events-month-event-title a,
 .tribe-events-calendar td.tribe-events-past .tribe-events-viewmore a,
 .tribe-events-calendar td.tribe-events-past .tribe-events-viewmore {
    display: none;
}

.events-archive.events-gridview #tribe-events-content table.tribe-events-calendar td.tribe-events-past .type-tribe_events {
    border: none;
    box-shadow: none;
}

.organizer-email > p { white-space: normal; display: none !important; }

.home .type-tribe_events +.tribe-events-widget-link,
.saved-linked-post {
    display: none;
}

.linked-post.venue td, .linked-post.organizer td {
    white-space: nowrap;
}

.tribe-community-events .tribe-section table.tribe-section-content .tribe-section-content-label, .tribe-community-events .tribe-section table.tribe-section-content td:first-child {
    padding-right: 10px;
}

.my-events-header a,.my-events-header a:visited,
.my-events-header .tribe-button.tribe-button-secondary:visited {
    color: #fff !important;
}

.footer-container {
    display:flex;
    padding: 2em;
    flex-wrap: wrap;
    min-height: 350px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.footer-item {
    padding: 3em;
    flex: 1;
    min-width: 250px;
}

@media(max-width: 600px) {
    .footer-item {
        width: 100%;
        text-align: center;
    }

    #some_valikko {
        justify-content: center;
    }

    .footer-container {
        padding: 0;
        width: 100%;
    }
}

/* Sivun uusi rakenne */

div#page{
    position: relative;
    padding-bottom: 350px;
    background-color: #e6f4f0;
}

footer.site-footer {
    position: absolute;
    bottom: 0;
    background-color: #00666e;
}

.error-404.not-found {
    margin-bottom: 10em;
}

@media(min-width: 800px) {
    footer.site-footer {
        background-image: url('img/ksl_footer.png');
        background-repeat: no-repeat;
        background-position: right bottom;
        background-size: 40vw;
    }
}

@media(min-width: 1400px) {
    footer.site-footer {
        background-size: 25vw;
    }
}

#content.site-content{
    min-height: calc(100vh - 380px);
}


/* Etusivun artikkelilistaus */

.artikkeli_viesti .more-link {
    font-family: SCoreCoreCircus, Verdana, Arial, Serif;
    display: block;
    margin-top: 5px;
}

.head_post .artikkeli_vartalo {
    padding-right: unset;
    margin-right: 5em;
}

.pt-cv-readmore.btn.btn-success {
    font-family: SCoreCoreCircus, Verdana, Arial, Serif;
    background-color: #00666e;
    color: white !important;
    border: none;
    border-radius: 0px;
}

.pt-cv-thumbnail {
    height: 300px !important;
    width: 100% !important;
    object-fit: cover !important;
}

.pt-cv-wrapper {
    padding-right: 2em;
}

@media(max-width: 440px) {
    .pt-cv-thumbnail {
        height: unset !important;
    }
}

#follow-us-link {
    font-family: SCoreCoreCircus, Verdana, Arial, Serif;
    margin-bottom: 1.5em;
    margin-top: 0.5em;
    color: #e23b6b;
}

.facebook-link {
    line-height: 0px;
    margin-right: 0.5em;
}

.wp-block-image .alignright {
    margin-left: 0 !important;
    margin-bottom: 1em;
}

#some_valikko {
    display: flex;
    top: 10px;
    right: 10px;
}

.footer-item h3 {
    font-family: SCoreCoreCircus, Verdana, Arial, Serif;
    color: #fff;
    font-size: 20px;
}

footer .textwidget {
    margin-top: 2em;
    color: white;
    font-size: 17px;
    font-weight: 300;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 3em;
    margin-right: 2em;
}

.container {
    flex: 1 1 0%;
    min-width: 250px;
}

.site-main h2, .entry-title {
    font-family: SCoreCoreCircus, Verdana, Arial, Serif;
    font-weight: lighter;
}

.post-title {
    padding-top: 1em;
    padding-bottom: 1em;
}

body.single .entry-header img {
    /*max-height: 500px;
    object-fit: cover;
    object-position: center;*/
}

#content_bg_wrapper {
    margin-left: auto;
    margin-right: auto;
    background-color: white;
}

@media only screen and (min-width: 616px) {
    #secondary.widget-area {
        padding: 0em;
    }
}

@media only screen and (min-width: 750px) {
    #secondary.widget-area {
        padding: 3em;
    }
}

@media only screen and (min-width: 1200px) {
    #content_bg_wrapper {
        width: 80%;
    }
}