/*
Theme Name: Poropeda
Theme URI: http://frostbit.fi/
Author: Juha Petäjäjärvi
Author URI: https://frostbit.fi/
Description: Theme for poropeda website
Version: 0.1
License: proprietary
License URI: http://frostbit.fi/
Text Domain: poropeda
Tags:
 */

@import url('https://fonts.googleapis.com/css2?family=PT+Sans&family=PT+Sans+Narrow:wght@700&display=swap');

figure > img {
    width: auto;
    height: auto;
}

hr {
    border:none;
    height: 2px;
}

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'PT Sans', sans-serif;
    margin: 0;
    padding: 0;
    border: 0;
}

h1, h2, h3, h4, h5 {
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: bold;
}

header {
    height: 160px;
    margin: 0;
    padding: 0;
}

nav {
    height: 105px;
    line-height: 105px;
    background: #FF5032;
}

#burgermenu {
    display:none !important;
}

#topsearch {
    float: right;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-transform: uppercase;
}

nav ul ul {
    display: none;
}

nav ul li:hover > ul {
    display: block;
    background: #FF5032;
}

nav ul li:hover > ul a {
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
    position: relative;
}

nav ul li:hover ul {
    display: block;
    position: absolute;
    left: -20px;
    z-index: 99999;
    width: 180px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
}

nav ul li:hover ul li {
    padding: 0px 20px;
    line-height: 3em;
    height: 3em;
}

nav ul a {
    color: white;
    text-decoration: none;
}

header #headercontent {
    height: 160px;
    line-height: 160px;
    justify-content: space-between;
}

header #headercontent {
    vertical-align: middle;
}

header #headercontent div {
    height: 160px;
    line-height: 160px;
    display: table-cell;
    vertical-align: middle;
}

#headerpic {
    height: 480px;
    background-size: cover;
}

#headerleftcontainer {
}

#headerrightcontainer {
    align-self: flex-end !important;
}

#headerrightcontainer div {
}

#content {
    padding: 75px 0;
}

.pagecontainer {
    max-width: 1200px;
    margin: 0 auto;

}


#content > * {
    max-width: 800px;
    margin: 20px auto;
}

#content > *.alignfull {
    max-width: 100%;
    width: 100%;
    margin: 20px 0;
}

#content > *.alignfull > * {
    max-width: 800px;
    margin:0 auto;
}


#content > *.alignwide {
    max-width: 1400px;
    width: auto;
    margin:20px auto;
}

footer {
    background-color: #878787;
    margin-bottom: 0;
    padding: 110px 0 60px 0;
    text-align: center;
}

footer div {
    margin: 65px 0;
    text-align: center;
}

footer div:first-child {
    margin-top: 0;
}

footer div:last-child {
    margin-bottom: 0;
}

#searchform {
    background: #ff8172;
    border-radius: 10px;
    height: 30px;
    padding: 3px 10px;
    margin-top: 37px;
}

#searchform input {
    color: white !important;
}

#searchform input[type=text], #searchform button {
    background: transparent;
    border: none;
    vertical-align: middle;
    height: 30px;
    color: #ffffff !important;
    line-height: initial;
    outline: none;
}

#searchform input::placeholder {
    color: #efefef;
}

#searchform form {
    line-height: 30px;
}


/* Flex Grid */
.flex-grid {
    display: flex;
}

.col {

}

.hidemobile {

}

.showmobile {
    display:none;
}

.post-featured-image {
    text-align: center;
}
.post-featured-image img {
    max-width: 100%;
}


/* MOBILE VIEW */
@media only screen and (max-width: 991px) {

    nav {
        height: auto;
    }

    #burgermenu {
        font-size:28pt;
        color:white;
        padding:10px;
        display: inline-block !important;
        cursor: pointer;
        margin-left:30px;
    }

    div#topnav > div > ul li {
        display:blocK;
        width: 100%;
        text-align: center;
    }

    #topsearch {
        float:none;
        margin: 0 auto;
        padding: 10px 0;
        width: 220px;
    }

    #searchform {
        background: #ff8172;
        border-radius: 10px;
        height: 30px;
        padding: 3px 10px;
        margin-top: 37px;
        width: 100%;
    }

    #content > * {
        margin: 20px 20px;
    }
}


/* MOBILE VIEW */
@media only screen and (max-width: 720px) {


    header {
        height: 400px;
    }

    .flex-grid {
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    #headerleftcontainer, #headerrightcontainer {
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    #headerleftcontainer > div, #headerrightcontainer > div {
        width: 100%;
        display: block;
    }

    header #headercontent div {
        float: none;
        margin: 20px 0;
        display: block;
        text-align: center;
    }

    .hidemobile {
        display:none;
    }

    .showmobile {
        display:initial;
    }
}



.textcenter {
    text-align:center;
}


/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    /* Above WP toolbar. */
}

.wp-block-columns {
    display: flex;
}

.wp-block-column {
    flex: 1;
}




