/*
Theme Name: Dev-2022
Theme URI: https://frontendtanfolyam.hu/
Author: the WordPress team
Author URI: https://designstreet.hu/
Description: Basic Theme by Emese Pocsik
Tags: one-column, custom-colors, custom-menu
Version: 1.1
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dev-2022

*/

.alignright,
.align-right {
    text-align: right;
}

.alignleft,
.align-left {
    text-align: left;
}

.aligncenter,
.align-center {
    text-align: center;
}

.auto-padding {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.single-post main {
    padding-top: 3rem;
}


/* === RESET === */

*,
*:before,
*:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

img {
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 0;
    vertical-align: top;
    max-width: 100%;
    height: auto;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

code,
pre,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

iframe {
    display: block;
    max-width: 100%;
}

header li,
#main-menu li {
    list-style-type: none;
}


/* === RESPONSIVE TYPO === */

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

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

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

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


/* === STYLE === */

:root {
    --main-color: #E0A39F;
    --black: #33100D;
    --white: #FDFAF7;
}

.ease {
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    color: #69504C;
    font-family: "Work Sans", sans-serif;
}

ul,
ol {
    padding: 0;
}

ul ul,
ul ul ul,
ol ol,
ol ol ol {
    margin: 0.5rem 0;
}

ol ol,
ol ol ol {
    padding-left: 1rem;
}

ul li {
    list-style-type: none;
    margin-bottom: 0.25rem;
    padding-left: 2rem;
    position: relative;
}

ul li:before {
    position: absolute;
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18" fill="none"><path d="M9 0.76709C4.51992 0.76709 0.875 4.41201 0.875 8.89209C0.875 13.3722 4.51992 17.0171 9 17.0171C13.4801 17.0171 17.125 13.3722 17.125 8.89209C17.125 4.41201 13.4801 0.76709 9 0.76709ZM7.51562 12.9694L4.36719 9.47061L5.29648 8.63428L7.48398 11.0647L12.6719 4.88662L13.6305 5.68896L7.51562 12.9694Z" fill="%23E0A39F"/></svg>');
    left: 0;
    top: 1px;
}

ol {
    list-style: none;
    counter-reset: my-counter;
}

ol li {
    counter-increment: my-counter;
    margin-bottom: 0.25rem;
}

ol li::before {
    content: counter(my-counter) '.';
    background: var(--main-color);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: inline-block;
    line-height: 1.5rem;
    color: white;
    text-align: center;
    margin-right: 0.5rem;
}

p,
ul li,
ol li {
    line-height: 1.5;
    font-size: 1.3125rem;
}

a {
    color: var(--black);
    text-decoration: underline;
    font-weight: 400;
}

#main-menu a,
footer a,
#copyright a,
.category-post a,
.post-tags-list a,
.post-meta a,
h1 a,
.custom-post-card a,
.nav-links a {
    text-decoration: none;
}



h1 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(22px, 1.8vw, 2rem);
    font-weight: bold;
    margin-top: 0;
    line-height: 150%;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--black);
}

h1.blog-title {
    font-family: "Manrope", sans-serif;
    font-size: clamp(36px, 3vw, 3rem);
    font-weight: bold;
    margin-top: 0;
    line-height: 120%;
    text-transform: none;
    color: var(--black);
}

h1.about-title {
    font-family: "Manrope", sans-serif;
    font-size: clamp(36px, 3vw, 2.25rem);
    font-weight: bold;
    margin-top: 0;
    line-height: 120%;
    text-transform: none;
    color: var(--black);
}

.home-blog h1,
.category h1,
.single h1 {
    margin-bottom: 0;
}

h2,
h3.ingredients-title {
    font-family: "Manrope", sans-serif;
    font-size: clamp(20px, 1.8vw, 1.375rem);
    font-weight: bold;
    margin-top: 0;
    line-height: 150%;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--black);
}

h3 {
    font-size: clamp(20px, 1.1vw, 1.3125rem);
    font-weight: 400;
    line-height: 150%;
    color: var(--black);
}

h1 a,
h2 a,
h3 a,
h4 a {
    color: inherit;
}

blockquote {
    background: #eee;
    margin-left: 0;
    margin-right: 0;
    padding: 0.5rem 1.5rem;
    overflow: hidden;
    border-left: solid 5px var(--main-color);
}

hr {
    border: none !important;
    height: 1px;
    background: #E0A39F;
}

table {
    border-spacing: 0;
    border: solid 1px #ddd;
}

td,
th {
    padding: 0.5rem 1rem;
    border: solid 1px #ddd;
}

th {
    background: #eee;
    text-align: left;
}

#logo {
    text-align: center;
}

#logo a {
    display: inline-block;
    margin: 10px 0 0 0;
}

#logo svg {
    max-width: 120px;
    height: auto;
}

.post-meta ul {
    overflow: hidden;
    display: inline-block;
    margin: 0 auto;
    font-size: smaller;
}

.post-meta ul li {
    display: inline-block;
    float: left;
    margin-right: 20px;
    margin-left: 0;
}

.post-tags a,
.tagcloud a {
    display: block;
    float: left;
    padding: 0.15rem 0.25rem;
    border: solid 2px transparent;
    font-size: small !important;
    text-transform: uppercase;
    display: inline-block;
    margin: 0 5px 5px 0;
    cursor: pointer;
    background: var(--main-color);
    color: #fff;
}

.post-tags a:hover,
.tagcloud a:hover {
    background: #000;
}

.pagination {
    clear: both;
    text-align: center;
    margin-top: 2rem;
}

.nav-links {
    display: inline-block;
}

.nav-links a,
.nav-links span {
    display: block;
    float: left;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    color: inherit;
    margin: 3px;
}

.prev.page-numbers,
.next.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links a:hover,
.nav-links .current {
    background: #9FBFE0;
    font-weight: 600;
}

#searchform {
    position: relative;
    width: 100%;
}

#searchform input[type="text"] {
    width: 100%;
    margin: 0;
    height: 43px;
    border: 1px solid #9FBFE0;
}

#searchform button {
    border: none;
    height: 110%;
    width: 30px;
    position: absolute;
    right: 10px;
    background: none;
    padding: 0;
    border-radius: 0;
}

#searchform svg {
    border: none;
    height: 25px;
    width: 30px;
}

#gotop {
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    background: var(--main-color);
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
}

#gotop svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

#gotop svg path {
    fill: #fff;
}


/* == Home == */

.archive-category {
    color: var(--main-color);
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.archive-date {
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-button {
    background: #9FBFE0;
    padding: 8px 12px;
    font-weight: 500;
    color: var(--black);
    transition: all 0.4s ease;
    display: inline-block;
    font-size: 18px;
}

.hero-button:hover {
    background: var(--main-color);
}

.home-hero-text {
    background: var(--white);
    padding: 2rem;
    margin: auto 8rem;
}

.custom-post-card p,
.sidebar-me p,
.top-picks-widget a,
.post-tags-list a {
    font-size: 18px;
}

.home-hero-text {
    width: 45%;
}

.home-hero img {
    height: 710px !important;
    width: 100% !important;
}

.home-hero .slide-txt {
    padding-top: 6rem;
}

body div.my_carousel .prev {
    left: 100px;
    background: rgba(255, 255, 255, 0.42);
}

body div.my_carousel .next {
    right: 100px;
    background: rgba(255, 255, 255, 0.42);
}

body div.my_carousel .nav {
    position: absolute;
    bottom: 3rem;
}

body div.my_carousel .nav div {
    width: 12px;
    height: 12px;
    background-color: rgba(253, 250, 247, 0.6);
    margin: 0 10px;
}

body div.my_carousel .nav .active {
    width: 12px;
    height: 12px;
    background-color: var(--white);
}

.flex {
    margin-bottom: 2rem;
}

.flex .wp-block-group__inner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/**/

.home-blog .home-cats {
    margin-bottom: 3rem;
}

.home-blog .home-cats:last-of-type {
    margin-bottom: 0;
}


/* Konténer: vízszintesen lapozható */

.category-posts {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.category-posts::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}


/* Slide kártyák */

.category-post {
    /*   display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    clear: both;*/
    width: 33.333%;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .category-posts {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding: 1rem 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .category-posts::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari */
    }

    .category-post {
        flex: 0 0 auto;
        width: 85%;
        max-width: 320px;
        scroll-snap-align: start;
    }

    .slider-dots {
        display: flex !important;
    }

    .single .col-1-4 {
        margin-bottom: 3rem;
    }
}


/* == Slide pöttyök == */

.slider-dots {
    display: flex;
    margin-top: 1rem;
    gap: 8px;
    display: none;
}

.dot {
    width: 10px;
    height: 10px;
    background: #dce3ed;
    border-radius: 50%;
    transition: background 0.3s;
}

.dot.active {
    background: #9fbfe0;
}


/* == Side bar == */

.sidebar-search,
.sidebar-me,
.top-picks-widget {
    background: var(--white);
    padding: 1rem;
}

.sidebar-me {
    margin-top: 2rem;
}

.sidebar-me img {
    width: 100%;
}

ul.post-tags-list li {
    list-style-type: none;
    display: inline-block;
    margin-left: 0;
    margin-right: 10px;
    margin-top: 15px;
}

.post-tags-list a {
    background-color: rgba(224, 163, 159, 0.15);
    padding: 5px;
    font-weight: 500;
    transition: background 0.3s;
}

.post-tags-list a:hover {
    background: #DFEAF5;
}

.top-picks-widget a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.sidebar-tags {
    margin: 2rem 0 0 0;
    padding: 1rem;
}

.sidebar-tags h2 {
    margin-bottom: 0;
}

.sidebar-tags h2+p {
    display: none;
}

.sidebar-tags .post-tags-list {
    margin-top: 0;
}

.page-template-page-about .sidebar-tags {
    margin: 0;
}

/* == Footer == */

footer {
    background: #CA938F;
    padding: 3rem 0 0 0;
    text-align: center;
}

.footer-nav {
    width: 30%;
    margin: 0 auto;
}

footer ul li {
    list-style-type: none;
    text-transform: uppercase;
    margin: 0;
    margin-bottom: 15px;
}

footer p,
footer a,
#copyright p,
#copyright a {
    color: #FAF0E7;
    font-size: 18px;
}

footer hr {
    background: #FAF0E7;
    margin: 0;
}

.footer-social {
    padding: 2rem 0;
    gap: 2rem;
}

#copyright {
    background: #CA938F;
}

#copyright .content-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* == Kategóriák == */

.cat-hero {
    background-size: cover;
    background-position: center center;
    padding: 7rem 0;
    text-align: center;
}

.cat-hero-box {
    background: var(--white);
    width: 45%;
    margin: 0 auto;
    padding: 3rem;
}

.cat-hero-box p {
    font-size: 18px;
}

.cat-hero .breadcrumb {
    margin-bottom: 1rem;
}

.cat-hero .breadcrumb a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.archive .row {
    padding: 3rem 0;
}

.explore-link,
.explore-link:hover {
    text-decoration: underline;
    background-color: rgba(159, 191, 224, 0.19);
    padding: 10px 15px;
    font-size: 1.125em;
    font-weight: 500;
}

.archive .child-category-block {
    margin-bottom: 3rem;
}

.archive .child-category-block:last-of-type {
    margin-bottom: 0;
}

.tag .cat-hero {
    background-color: rgba(224, 163, 159, 0.33);
}




/* == Search == */

.search main {
    padding: 3rem 0;
}


/* == Single == */

.social-share-buttons {
    gap: 1rem;
    display: flex;
}

.single-content img {
    width: 100%;
}


/* == Recipe == */

body .wp-block-wpzoom-recipe-card-block-recipe-card.is-style-default {
    padding: 20px 25px 30px;
    margin-top: 50px;
    margin-bottom: 50px;
    background: #FDFAF7;
    border: none;
    -webkit-box-shadow: 0 0px 15px rgba(0, 0, 0, 0.1);
    box-shadow: none;
    border-radius: 5px 5px 0 0;
}

body .wp-block-wpzoom-recipe-card-block-recipe-card {
    max-width: 100%;
}

body .wp-block-wpzoom-recipe-card-block-recipe-card.is-style-default .recipe-card-ingredients,
body .wp-block-wpzoom-recipe-card-block-recipe-card.is-style-default .recipe-card-notes .recipe-card-notes-list>li,
body .wp-block-wpzoom-recipe-card-block-recipe-card.is-style-default .recipe-card-notes ul>li {
    color: #69504C;
    background-color: #FAF0E7;
}

body .wp-block-wpzoom-recipe-card-block-recipe-card.is-style-default .details-items .detail-item {
    border-bottom: none;
    border-left: 1px solid rgba(51, 16, 13, 0.62);
}

.detail-item-3 {
    border-right: 1px solid rgba(51, 16, 13, 0.62) !important;
}

body .wp-block-wpzoom-recipe-card-block-recipe-card.is-style-default .details-items .detail-item .detail-item-icon {
    opacity: 1;
    color: #33100D !important;
}

body .wp-block-wpzoom-recipe-card-block-recipe-card.is-style-default .details-items .detail-item .detail-item-label,
body .wp-block-wpzoom-recipe-card-block-recipe-card.is-style-default .details-items .detail-item .detail-item-value,
body .wp-block-wpzoom-recipe-card-block-recipe-card.is-style-default .details-items .detail-item .detail-item-unit {
    font-size: 14px;
    font-size: clamp(16px, 1.3vw, 1.325rem);
    font-weight: 400;
    letter-spacing: 1.1px;
    color: rgba(51, 16, 13, 0.62);
}

body .wp-block-wpzoom-recipe-card-block-recipe-card.is-style-default .details-items {
    border-left: none;
    border-top: none;
    margin-bottom: 2rem;
}

body .recipe-card-course {
    display: none;
}

body .wp-block-wpzoom-recipe-card-block-recipe-card.is-style-default .ingredients-list>li .tick-circle {
    border: 1px solid var(--black);
    background: #fff;
}

body .wp-block-wpzoom-recipe-card-block-recipe-card.is-style-default .recipe-card-heading .recipe-card-author {
    color: #69504C;
    font-size: 1.3125rem;
    border-bottom: none;
}

body .wp-block-wpzoom-recipe-card-block-recipe-card.is-style-default .recipe-card-heading .recipe-card-title {
    text-transform: none;
}

.single-content .post-tags-list {
    text-align: center;
}

.single-content .post-tags-list li {
    margin-right: 20px;
}

.single-post #main-menu,
.page-template-page-about #main-menu,
.error404 #main-menu,
.page-template-page-contact #main-menu {
    background-color: rgba(224, 163, 159, 0.33);
}

/* == About == */

.page-template-page-about main,
.error404 main,
.page-template-page-contact main {
    background: var(--white);
    padding: 3rem 0;
}

.about,
.error-box {
    padding: 2rem;
    background: #fff;
}

.error-box {
    width: 70%;
    margin: 0 auto;
}

/* == Contact == */

.contact-form {
    background: var(--white);
    padding: 1rem;
}

.contact-form p {
    margin: 0;
}

@media only screen and (max-width: 769px) {
    .error-box {
        width: 100%;
    }

    .home-hero-text {
        margin: 0;
        width: 100%;
    }

    .home-hero .slide-txt {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .home-hero img {
        height: 500px !important;
    }

    body div.my_carousel .next {
        right: 10px;
        background-color: rgba(51, 16, 13, 0.62);
    }

    body div.my_carousel .prev {
        left: 10px;
        background-color: rgba(51, 16, 13, 0.62);
    }

    body div.my_carousel .prev svg path,
    body div.my_carousel .next svg path {
        fill: #fff;
    }

    .home-blog .flex .wp-block-buttons span, .child-category-block .flex span {
        display: none;
    }

    .cat-hero-box {
        width: 100%;
    }

    .cat-hero {
        padding: 3rem 0;
    }

    .page-template-page-about main,
    .error404 main,
    .page-template-page-contact main {
        background: #fff;
        padding: 0 0 2rem 0;
    }

    .about,
    .error-box {
        padding: 2rem 0;
    }

}

.mobile-share-buttons {
    display: none;
}

@media only screen and (max-width: 540px) {
    .home-hero img {
        height: 700px !important;
    }

    .thumbnail-box {
        position: relative;
    }

    .mobile-share-buttons {
        display: flex;
        position: absolute;
        bottom: 10px;
        right: 1rem;
    }

    .desktop-share-buttons,
    .related-posts .explore-link {
        display: none;
    }

    .footer-nav {
        width: 100%;
    }

    #copyright .content-box {
        display: inline-block;
    }

            .subcategory .category-post, .tag .category-post, .search .category-post{
        width: 100%;
        max-width: 100%;
    }

            .subcategory .category-post img, .tag .category-post img, .search .category-post img{
        width: 100%;
    }

    .archive-category, .archive-date{
        font-size: 0.85rem;
    }

}


@media only screen and (max-width: 331px) {
.post-meta span:nth-of-type(2),.post-meta span:last-of-type{
    display: none;
}
}

.none{
    display: none!important;
}

.cky-revisit-bottom-left {
    display: none!important;
}

/* Szövegszín */
.has-vilagos-hatter-color { color: #FDFAF7; }
.has-kek-arnyalat-color   { color: #9FBFE0; }
.has-barna-arnyalat-color { color: #E0A39F; }
.has-rozsaszin-arnyalat-color { color: #F5E1DF; }

/* Háttérszín */
.has-vilagos-hatter-background-color { background-color: #FDFAF7; }
.has-kek-arnyalat-background-color   { background-color: #9FBFE0; }
.has-barna-arnyalat-background-color { background-color: #E0A39F; }
.has-rozsaszin-arnyalat-background-color { background-color: #F5E1DF; }
