/*
Theme Name: Cerkiew Kuźnica
Text Domain: cerkiewkuznica
Version: 1.0
Author: Daniel Grygiewicz
*/

/*
FONTY
- podstawowy: 'Rubik', sans-serif
- nagłówki i menu: 'Literata', serif
*/

/*
KOLORY
- główny: rgb(189, 72, 60)
*/

html {
    background-color: rgba(166, 166, 155, 0.1);
    background-image: url('images/bg-pattern-bright-squares.png');
    color: rgba(5, 5, 5, 0.8);
    font-family: 'Rubik', sans-serif;
    margin: 0;
    padding: 0;
}

@media screen and (min-width: 961px) {
    html {
        font-size: 18px;
    }
}

@media screen and (max-width: 960px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.8em;
}

h3 {
    font-size: 1.6em;
}

h4 {
    font-size: 1.4em;
}

h5 {
    font-size: 1.2em;
}

h6 {
    font-size: 1em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Literata', serif;
}

a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.2s linear;
}

a:hover {
    color: rgb(189, 72, 60);
}

a.nolink:not(:hover),
a[href*='tel:']:not(:hover),
a[href*='mailto:']:not(:hover) {
    text-decoration: none;
}

img {
    display: block;
    height: auto;
}

.page-width {
    margin: 0 auto;
    width: 90%;
    max-width: 1000px;
}

header.header {}

.logo-box {}

.logo {
    margin-top: 1.5em;
}

.logo-text {}

.logo-text h1 {
    font-size: 1.2em;
    margin: 0;
}

.logo-text h1 a {
    color: inherit;
    text-decoration: none;
}

.logo-image {
    margin-top: 1em;
}

.logo-image a {}

.logo-image img {
    border-radius: 10px;
    width: 100%;
}

.main-menu-box {}

.main-menu {
    background-color: rgb(189, 72, 60);
    border-radius: 10px;
    font-family: 'Literata', serif;
    margin-top: 1em;
}

#menu-hamburger-box {}

@media screen and (min-width: 961px) {
    #menu-hamburger-box {
        display: none;
    }
    #menu {
        display: block;
    }
}

@media screen and (max-width: 960px) {
    #menu-hamburger-box {
        display: flex;
        padding: 1em;
    }
    #menu {
        display: none;
    }
}

#menu-hamburger-box .hamburger-icon {}

#menu-hamburger-box .hamburger-icon span {
    background-color: rgb(255, 255, 255);
}

#menu {}

#menu.show {
    display: block;
}

nav.nav {}

@media screen and (min-width: 961px) {
    nav.nav {
        font-size: 0.9em;
        padding: 1em 2em;
    }
    .nav ul li {
        display: inline-block;
    }
    .nav ul li:not(:first-of-type) {
        margin-left: 1.5em;
    }
}

@media screen and (max-width: 960px) {
    nav.nav {
        font-size: 1em;
        padding: 0.5em 1.5em 1.5em 1.5em;
    }
    .nav ul li {
        display: block;
    }
    .nav ul li:not(:first-of-type) {
        margin-top: 0.5em;
    }
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav ul li {}

.nav ul li:not(:first-of-type) {}

.nav ul li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.nav ul li a:hover {}

.nav ul li a:hover,
.nav ul li.current-menu-item a {
    color: rgba(255, 255, 255, 1);
}

.nav ul li.current-menu-item a {}

.wrapper-box {}

.wrapper {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin-top: 1.5em;
}

.content-box {}

@media screen and (min-width: 961px) {
    .content-box {
        padding: 4em 5em 5em 4em;
    }
}

@media screen and (max-width: 960px) {
    .content-box {
        padding: 1.5em 2.5em 2.5em 1.5em;
    }
}

.content {}

.content h2 {
    border-left: 10px solid rgb(189, 72, 60);
    font-size: 1.8em;
    margin: 0;
    margin-bottom: 2em;
    padding-left: 0.5em;
}

.content p {}

.content ul {}

.content ol {}

.content p,
.content ul,
.content ol {
    line-height: 1.6em;
}

.post.excerpt {
    display: flex;
}

@media screen and (min-width: 961px) {
    .post.excerpt {
        flex-direction: row;
    }
    .post.excerpt .post-content {
        order: 1;
        flex: 3;
    }
    .post.excerpt .post-image-box {
        order: 2;
        flex: 2;
        margin-left: 1em;
    }
}

@media screen and (max-width: 960px) {
    .post.excerpt {
        flex-direction: column;
    }
    .post.excerpt .post-content {
        order: 2;
        flex: 1;
    }
    .post.excerpt .post-image-box {
        order: 1;
        flex: 1;
        margin-bottom: 0.5em;
    }
}

.post.excerpt:not(:first-of-type) {
    border-top: 1px solid rgba(5, 5, 5, 0.1);
    margin-top: 3em;
    padding-top: 3em;
}

.post.excerpt .post-content {}

.post.excerpt .post-title {}

.post.excerpt .post-title h3 {}

.post.excerpt .post-title h3,
.post.full .post-title h3 {
    font-size: 1.5em;
    margin: 0;
}

.post.excerpt .post-title h3 a {
    color: rgb(189, 72, 60);
    text-decoration: none;
}

.post.excerpt .post-title h3 a:hover {
    text-decoration: underline;
}

.post.excerpt .post-image-box {}

.post.excerpt .post-image {}

.post.excerpt .post-image,
.post.full .post-image {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    padding-bottom: 62.5%;
}

.post.excerpt .post-image a {}

.post.excerpt .post-image img {}

.post.excerpt .post-image img,
.post.full .post-image img {
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s linear;
}

.post.excerpt .post-image img:hover {
    transform: scale(1.1);
}

.post.excerpt .post-text {
    margin-top: 1em;
}

.post.excerpt .post-text p {
    margin: 0;
}

.post.excerpt .post-details {
    margin-top: 2em;
}

.post.excerpt .post-details,
.post.full .post-details {
    color: rgba(5, 5, 5, 0.4);
    font-size: 0.8em;
}

.post.excerpt .post-date {}

.post.full {}

.post.full .post-content {}

.post.full .post-title {}

.post.full .post-title h3 {}

.post.full .post-image-box {
    margin-top: 2em;
    margin-bottom: 2em;
}

.post.full .post-image {}

.post.full .post-image img {}

.post.full .post-text {}

.post.full .post-text p {}

.post.full .post-details {
    margin-top: 6em;
}

.post.full .post-date {}

.post.full .post-author {}

.wp-pagenavi {
    margin-top: 4em;
    text-align: center;
}

footer.footer {
    margin-top: 1.5em;
    margin-bottom: 4em;
}

.footer-content-box {}

.footer-content {
    background-color: rgba(5, 5, 5, 0.05);
    border-radius: 10px;
}

.footer-row.last {
    color: rgba(5, 5, 5, 0.4);
    display: flex;
    flex-direction: column;
    font-size: 0.8em;
    padding: 1em 2em;
    text-align: center;
}

.footer-row.last .footer-col {
    flex: 1;
}

.footer-row.last .footer-col:not(:first-of-type) {
    margin-top: 0.5em;
}

.copyright {}

.author {}

.author a {
    color: inherit;
    text-decoration: none;
}

.hamburger-box {}

.hamburger-icon {
    margin: 0 auto;
    width: 24px;
    height: 17px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: rgb(0, 0, 0);
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.25s ease-in-out;
    -moz-transition: 0.25s ease-in-out;
    -o-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2),
.hamburger-icon span:nth-child(3) {
    top: 7px;
}

.hamburger-icon span:nth-child(4) {
    top: 14px;
}

.hamburger-icon.open span:nth-child(1) {
    top: 7px;
    width: 0%;
    left: 50%;
}

.hamburger-icon.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.hamburger-icon.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.hamburger-icon.open span:nth-child(4) {
    top: 7px;
    width: 0%;
    left: 50%;
}

#scroll-to-top {
    background: rgb(189, 72, 60) url('images/top-arrow.svg') no-repeat center 50%;
    border: 1px solid rgb(189, 72, 60);
    border-radius: 10%;
    display: none;
    position: fixed;
    transition: opacity 0.2s linear;
    z-index: 9999;
}

@media screen and (min-width: 961px) {
    #scroll-to-top {
        bottom: 15px;
        right: calc(50% - 15px);
        width: 30px;
        height: 30px;
    }
}

@media screen and (max-width: 960px) {
    #scroll-to-top {
        bottom: 15px;
        right: calc(50% - 15px);
        width: 30px;
        height: 30px;
    }
}

#scroll-to-top.show {
    display: block;
    opacity: 0.5;
}

#scroll-to-top.show:hover {
    opacity: 1;
}
