/*
Theme Name: PSD w Warszawie
Text Domain: psdwwarszawie
Author: Daniel Grygiewicz
Version: 1.0
*/

/*
FONTY
- podstawowy: 'Open Sans', sans-serif;
- nagłówki: 'Book Antiqua', arial;
*/

/*
KOLORY
- niebieski 1: #004C99;
- niebieski 2: #06C;
- żółty: #F0D8A8;
*/

@font-face {
    font-family: 'Book Antiqua';
    src: url('fonts/book_antiqua.ttf');
}

html {
    background-color: rgb(255, 255, 255);
    color: rgba(5, 5, 5, 0.8);
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}

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

body {
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 1.6em;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.4em;
}

h4 {
    font-size: 1.3em;
}

h5 {
    font-size: 1.2em;
}

h6 {
    font-size: 1.1em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Book Antiqua', arial;
    margin-top: 2em;
    margin-bottom: 1em;
}

img {
    display: block;
    height: auto;
}

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

a:hover {
    color: #F0D8A8;
}

a.nolink,
a.nolink:hover {
    color: inherit;
    text-decoration: none;
}

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

/*#posts,*/
#post,
#search,
#text {
    margin-top: 10em;
}

header.header {
    border-bottom: 1px solid rgba(5, 5, 5, 0.1);
}

.topbar-box {
    background-color: #004C99;
    box-shadow: 0px 5px 10px 0px rgba(5, 5, 5, 0.2);
}

.topbar {
    color: rgb(246, 246, 246);
    font-size: 0.9em;
}

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

.topbar a:hover {
    color: #F0D8A8;
}

#topbar-hamburger-box {}

@media screen and (min-width: 961px) {
    #topbar-hamburger-box {
        display: none;
    }
    #topbar {
        display: block;
    }
}
@media screen and (max-width: 960px) {
    #topbar-hamburger-box {
        display: block;
        padding: 0.75em;
    }
    #topbar {
        display: none;
    }
}

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

#topbar {}

#topbar.show {
    display: block;
}

.topbar-row {
    display: flex;
}

@media screen and (min-width: 961px) {
    .topbar-row {
        flex-direction: row;
        padding: 0.5em 0;
    }
    .topbar-col {
        text-align: center;
    }
    .topbar-col:first-of-type:not(:last-of-type) {
        text-align: left;
    }
    .topbar-col:last-of-type:not(:first-of-type) {
        text-align: right;
    }
    .topbar-col:not(:first-of-type) {}
}
@media screen and (max-width: 960px) {
    .topbar-row {
        flex-direction: column;
        padding: 0 0 0.75em 0;
    }
    .topbar-col {
        text-align: left;
    }
    .topbar-col:first-of-type:not(:last-of-type) {}
    .topbar-col:last-of-type:not(:first-of-type) {}
    .topbar-col:not(:first-of-type) {
        margin-top: 0.25em;
    }
}

.topbar-col {
    flex: 1;
}

.topbar-col:first-of-type:not(:last-of-type) {}

.topbar-col:last-of-type:not(:first-of-type) {}

.topbar-col:not(:first-of-type) {}

.logo-box {}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em 0;
}

.logo-image {}

.logo-image a {}

.logo-image img {}

@media screen and (min-width: 961px) {
    .logo-image img {
        width: 150px;
    }
    .logo-text h1 {
        font-size: 2em;
    }

    .logo-text h2 {
        font-size: 1em;
    }
}
@media screen and (max-width: 960px) {
    .logo-image img {
        width: 100px;
    }
    .logo-text h1 {
        font-size: 2em;
    }

    .logo-text h2 {
        font-size: 1em;
    }
}

.logo-text {
    text-align: center;
}

.logo-text h1 {}

.logo-text h2 {}

.logo-text h1,
.logo-text h2 {
    margin: 0;
}

.wrapper-box {}

.wrapper {
    padding: 2em 0 8em 0;
}

.wrapper-row {
    display: flex;
}

@media screen and (min-width: 961px) {
    .wrapper-row {
        flex-direction: row;
    }
    .sidebar-box {
        order: 1;
        flex: 23;
    }
    .content-box {
        order: 2;
        flex: 77;
        margin-left: 5em;
    }
}
@media screen and (max-width: 960px) {
    .wrapper-row {
        flex-direction: column;
    }
    .sidebar-box {
        order: 1;
        flex: 1;
    }
    .content-box {
        order: 2;
        flex: 1;
        margin-top: 2em;
    }
}

.sidebar-box {}

.sidebar {}

.sidebar-item {}

.sidebar-item:not(:first-of-type) {
    margin-top: 2em;
}

.sidebar-item h6 {
    margin-top: 0;
}

#custom_sidebar_main_desktop {
    font-size: 0.9em;
    margin-top: 3em;
}

@media screen and (min-width: 961px) {
    #custom_sidebar_main_desktop {
        display: block;
    }
    #custom_sidebar_main_mobile {
        display: none;
    }
}
@media screen and (max-width: 960px) {
    #custom_sidebar_main_desktop {
        display: none;
    }
    #custom_sidebar_main_mobile {
        display: block;
    }
}

#custom_sidebar_main_mobile {
    border: 1px solid rgba(5, 5, 5, 0.05);
    border-radius: 3px;
    font-size: 0.9em;
    margin-top: 6em;
    padding: 2em 3em 3em 2em;
}

.searchform {}

.searchform label,
.searchform input[type=submit] {
    display: none;
}

.searchform input[type=text] {
    background-color: transparent;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 3px;
    box-shadow: 3px 3px 6px 0px rgba(5, 5, 5, 0.025);
    color: inherit;
    font-family: inherit;
    font-size: 0.9em;
    outline: none;
    padding: 0.5em 0.75em;
    width: calc(100% - 1.5em - 2px);
}

.searchform input[type=text]:focus {
    border-color: #F0D8A8;
}

#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: block;
    }
    #menu {
        display: none;
    }
}

#menu-hamburger-box .hamburger-icon span {
    background-color: #06C;
}

#menu {}

#menu.show {
    display: block;
}

nav.nav {}

@media screen and (min-width: 961px) {
    nav.nav {}
}
@media screen and (max-width: 960px) {
    nav.nav {
        margin-top: 1em;
    }
}

.nav ul {
    background-color: rgba(5, 5, 5, 0.1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav ul li {
    background-color: rgb(255, 255, 255);
}

.nav ul li:not(:first-of-type) {
    margin-top: 1px;
}

.nav ul li a {
    color: rgba(5, 5, 5, 0.6);
    display: block;
    padding: 0.5em 1em;
    text-decoration: none;
    transition: padding 0.2s ease;
}

.nav ul li:not(.current-menu-item, .current-menu-parent) a:hover {
    background-color: rgba(5, 5, 5, 0.05);
    padding-left: 1.5em;
}

.nav ul li.current-menu-item a,
.nav ul li.current-menu-parent a {
    background-color: #06C;
    color: #F0D8A8;
}

.nav ul.sub-menu {
    display: none;
}

.nav ul li.menu-item-has-children.current-menu-item ul.sub-menu,
.nav ul li.menu-item-has-children.current-menu-parent ul.sub-menu {
    display: block;
}

.nav ul.sub-menu li {
    margin-left: 0.5em;
}

.nav ul.sub-menu li a {
    background-color: transparent;
    color: rgba(5, 5, 5, 0.6);
    font-size: 0.9em;
}

.nav ul.sub-menu li.current-menu-item a {
    background-color: rgba(5, 5, 5, 0.05);
}

.content-box {}

.content {}

.breadcrumbs {
    color: rgba(5, 5, 5, 0.4);
    font-size: 0.8em;
    line-height: 1.8em;
    margin-bottom: 2em;
}

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

.breadcrumbs a:hover {
    color: rgba(5, 5, 5, 0.8);
}

.content h1 {
    border-left: 10px solid #F0D8A8;
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 2em;
    padding-left: 0.5em;
}

.content p {}

.content ul {
    list-style: square;
}

.content ol {}

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

.posts-box {}

.post.excerpt {
    display: flex;
}

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

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

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

.post.excerpt .post-image {
    overflow: hidden;
}

.post.excerpt .post-image a {}

.post.excerpt .post-image img {
    transition: transform 0.4s ease;
    width: 100%;
}

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

.post.excerpt .post-content {}

.post.excerpt .post-title {}

.post.excerpt .post-title h2 {
    margin: 0;
}

.post.excerpt .post-title h2 a {
    color: inherit;
    text-decoration: none;
}

.post.excerpt .post-title h2 a:hover {
    color: #F0D8A8;
}

.post.excerpt .post-details {
    margin: 0.5em 0;
}

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

.post.excerpt .post-date {}

.post.excerpt .post-text {}

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

.post.full {
    display: flex;
    flex-direction: row;
}

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

.post.full .post-image {}

.post.full .post-image img {
    width: 100%;
}

.post.full .post-image-author {
    color: rgba(5, 5, 5, 0.4);
    font-size: 0.8em;
    text-align: center;
}

.post.full .post-content {}

.post.full .post-title {}

.post.full .post-title h2 {
    margin: 0;
}

.post.full .post-details {
    margin: 1em 0;
}

.post.full .post-date {}

.post.full .separator {}

.post.full .author {}

.post.full .post-text {}

.post.full .post-text p {}

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

.wp-pagenavi .current {
    font-weight: bold;
}

.wp-pagenavi span,
.wp-pagenavi a {
    margin: 0 0.25em;
}

.wp-pagenavi a {
    color: rgba(5, 5, 5, 0.4);
}

.wp-pagenavi a:hover {
    color: #F0D8A8;
}

.wp-block-quote {
    border-left: 5px solid rgba(5, 5, 5, 0.2);
    margin: 0;
    padding: 1em 2em 2em 2em;
}

.wp-block-quote p {
    margin-top: 0;
}

.wp-block-quote p:first-letter {
    font-size: 1.5em;
}

.wp-block-quote cite {
    color: rgba(5, 5, 5, 0.6);
    font-size: 0.8em;
    font-style: italic;
}

.fa-custom-color {
    color: #06C;
}

footer.footer {
    border-top: 1px solid rgba(5, 5, 5, 0.1);
}

.footer-content-box {}

.footer-content {
    color: rgba(5, 5, 5, 0.6);
    font-size: 0.8em;
    padding: 2em 0 8em 0;
}

.footer-row {
    display: flex;
}

@media screen and (min-width: 961px) {
    .footer-row {
        flex-direction: row;
    }
    .footer-col.copyright {
        text-align: left;
    }
    .footer-col.author {
        text-align: right;
    }
}
@media screen and (max-width: 960px) {
    .footer-row {
        flex-direction: column;
    }
    .footer-col.copyright {
        text-align: center;
    }
    .footer-col.author {
        text-align: center;
    }
}

.footer-col {
    flex: 1;
}

.footer-col.copyright {}

.footer-col.author {}

.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(255, 255, 255);
    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: #06C url('images/top-arrow.svg') no-repeat center 50%;
    border: 1px solid #06C;
    border-radius: 10%;
    display: none;
    position: fixed;
    transition: opacity 0.2s ease;
    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;
}
