/*
Theme Name: Plieni-D
Author: Ansis Spruģevics
Text Domain: plienid
Version: 1
*/
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,700;1,400;1,700&display=swap');
/* === GLOBAL === */

body,
html {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    background-color: #ffffff;
    line-height: 1.5;
    text-align: justify;
    height: 100%;
}

h1,
h2,
h3,
h4 {
    margin: 0.5em;
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 1.75em;
}

h3 {
    font-size: 1.5em;
}

h4 {
    font-size: 1.3em;
}

p {
    margin: 1em 2em;
}

a {
    color: #000000;
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

ul {
    list-style: disc;
    margin-left: 3em;
}

li>ul {
    margin-left: 1em;
    list-style: circle;
}

img {
    height: auto;
}

/* === HEADER === */

header {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 30px 0 20px;
}

/* Navigation */
#menu {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* Header height depends on .custom-logo-link height! */
.custom-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: all .25s;
}

.custom-logo {
    display: inline-block;
    width: auto;
    max-width: 16vw;
    height: auto;
    max-height: 100%;
    margin: 10px;
}

.hamburger {
    display: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background-color: #ffffff;
    border-radius: 4px;
    padding: 4px;
    box-sizing: content-box;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 4px;
    margin: 3px 0;
    position: relative;

    background: #333030;
    border-radius: 3px;

    z-index: 1;
}

#menu-navigation,
#menu-languages {
    list-style: none;
    display: inline-flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    margin: 0;
}

#menu-contact,
#menu-languages {
    list-style: none;
    margin: 0;
}

#menu-navigation>li {
    display: block;
}

#menu-navigation>li>a,
#menu-contact>li>a,
#menu-languages>li>a {
    display: block;
    padding: 0 10px;
    color: #363333;
    text-decoration: none;
    font-size: 1.5em;
    text-transform: uppercase;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    position: relative;
    transition: all .25s;
}

#menu-contact>li>a {
    color: #999999;
    font-size: 1.3em;
}

#menu-languages {
    position: absolute;
    top: 5px;
    right: 5px;
    flex-flow: column;
}

#menu-languages>li:not(:first-child) {
    display: none;
}

#menu-languages:hover>li {
    display: initial;
}

#menu-languages>li>a {
    color: #999999;
    font-size: 1.2em;
    padding: 0 5px;
    text-align: end;
}

#menu-navigation>li>a:after {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    margin: auto;
    width: 0%;
    content: '.';
    color: transparent;
    background: #363333;
    height: 2px;
    transition: all .25s;
}

#menu-navigation>li>a:hover:after {
    width: 100%;
}

/* Hover effects */
.img-hover-grow img {
    transition: all 300ms;
    height: 200px;
    width: auto;
}

.img-hover-grow img:hover {
    height: 220px;
}

.text-hover-grow>* {
    transition: font-size 300ms;
}

.text-hover-grow:hover>* {
    font-size: 110%;
}

/* === BLOCKS === */

/* Cover */

.wp-block-cover.alignwide {
    width: 65%;
    margin: 0 auto;
}

.wp-block-cover__inner-container {
    width: 100% !important;
}

.wp-block-cover p {
    max-width: 50%;
    margin: 10px auto;
}

.wp-block-cover ul:not([class]) {
    margin: 0 15%;
}

.wp-block-cover li {
    list-style: disc;
    margin: 10px 0;
}

/* Cover zoom on hover */
.shadow {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.4);
}

/* Columns */
.wp-block-columns {
    margin: 0 auto;
    width: 50%;
}

.wp-block-columns.alignwide {
    width: 65%;
    margin: 0 auto;
}

.wp-block-columns.alignfull {
    width: 100%;
}

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

/* Latest Posts */
.wp-block-latest-posts {
    max-width: 50%;
    margin: 0 auto;
}

.wp-block-latest-posts li {
    transition: all 300ms;
    padding: 10px 0;
}

.wp-block-latest-posts li time {
    font-family: 'Roboto', sans-serif;
}

.wp-block-latest-posts li:not(:last-child) {
    border-bottom: solid 1px #ffffff;
}

.wp-block-latest-posts li a {
    color: #ffffff;
    text-decoration: none;
    transition: all 300ms;
    font-size: 1.2em;
}

.wp-block-latest-posts a:hover {
    color: #f4c209;
}

/* Media & Text */
.wp-block-media-text {
    width: 50%;
    margin: 0 auto;
}

.wp-block-media-text.alignwide {
    width: 65%;
}

/* Gutenslider */
.slick-slider {
    margin-bottom: 0 !important;
}

.wp-block-eedee-block-gutenslider.alignwide {
    max-width: 50%;
    margin: 0 auto;
}

/* Iframe */
iframe {
    display: block;
    margin: 0 auto;
}

/* Maps Iframe */
.maps-iframe {
    display: block;
    margin: 0 auto;
    width: 100%;
}

/* Other */
.wp-block-image {
    margin: 0;
}

.wp-block-social-links {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === FOOTER === */

#footer {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25%;
    margin-top: 50px;
    background-color: #3b3b3b;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.4);
}

#copyright {
    display: inline-block;
    text-align: center;
    color: #aaaaaa;
    font-size: 1.5em;
}

#menu-footer-contact {
    list-style: none;
    margin: 0;
}

#menu-footer-contact>li>a {
    color: #ffffff;
    text-decoration: none;
}

/* === MOBILE === */
@media (max-width: 767.98px) {

    /* === GLOBAL === */
    body,
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.35em;
    }

    h4 {
        font-size: 1.1em;
    }

    .mobile-hide {
        display: none;
    }

    /* === HEADER === */

    #wrapper {
        padding-top: 70px;
    }

    header {
        background-color: #ffffff;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: fixed;
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.4);
        z-index: 2;
        padding: 0 10px 0 10px;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-flow: column;
    }

    .custom-logo-link {
        height: 70px;
    }

    #menu {
        width: 100%;
        display: flex;
        align-content: center;
        z-index: 0;
        display: none;
        flex-flow: column;
    }

    #menu-navigation {
        width: 100%;
        flex-flow: column;
        text-align: center;
    }

    #menu-languages {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        justify-content: center;
        flex-flow: row;
    }

    #menu-languages>li:not(:first-child) {
        display: initial;
    }

    #menu-languages>li>a {
        text-align: center;
    }

    #menu-navigation>li>a:hover:after {
        width: 0;
    }

    #menu-contact {
        flex-flow: row;
        display: none;
    }

    .custom-logo-link {
        margin-left: 0;
    }

    .custom-logo {
        max-width: 50vw;
    }

    /* 
    header {
        display: flex;
        flex-flow: column;
        justify-content: space-between;
        align-items: center;
    }

    #menu-navigation {
        position: relative;
        top: -38px;
        display: none;
        flex-flow: column;
        text-align: center;
    }

    #menu-contact {
        display: none;
    }

    .custom-logo {
        max-width: 80vw;
    }

    .hamburger {
        margin-left: auto;
        margin-right: 5px;
        float: right;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-flow: column;
    } */

    /* === FOOTER === */

    #footer {
        padding: 0 5%;
    }

    /* === BLOCKS === */
    .wp-block-columns,
    .wp-block-columns.alignwide,
    .wp-block-cover.alignwide,
    .wp-block-media-text,
    .wp-block-media-text.alignwide {
        width: 90%;
    }

    .wp-block-media-text>figure {
        display: block;
        width: 40%;
        margin: 0 auto !important;
    }

    .wp-block-cover p {
        max-width: 90%;
        margin: 10px auto;
    }

}