/*
csak tesztelés céljából
#submitBtn {
    display: block !important
}
    */
:root {
    --babanaplo_primary_color: #8C4448;
    /*
    --babanaplo_secondary: #fbeaec;
    --babanaplo_accent: #f7cfd3;
    */
    --babanaplo_secondary: #F9F3EE;
    --babanaplo_accent: #d7d1cc;
    --babanaplo_text: #3d2324;
}

body {
    background: #eadfe5 !important;
}

body:not(.no_babanaplo) .page-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 100vh;
}

body:not(.no_babanaplo) div[data-elementor-type="header"],
body:not(.no_babanaplo) div[data-elementor-type="footer"] {
    display: none !important;
}

div[data-elementor-type="wp-page"] {
    width: 80%
}

.w50 {
    width: 50% !important;
}

.w100 {
    width: 100% !important;
}

.flex {
    display: flex;
}

.f-wrap {
    flex-wrap: wrap !important;
}

.jc-c {
    justify-content: center !important;
}

.ai-c {
    align-items: center !important;
}

.p-10px {
    padding: 10px;
}

.p-20px {
    padding: 20px;
}

.mb-5px {
    margin-bottom: 5px;
}

.mb-10px {
    margin-bottom: 10px;
}

.mb-20px {
    margin-bottom: 20px;
}

.ml-20px {
    margin-left: 20px;
}

.ml-40px {
    margin-left: 40px;
}

.mt-20px {
    margin-top: 20px;
}

.fw-700 {
    font-weight: 700 !important;
}

.text-c {
    text-align: center !important;
}

.primary_color {
    color: var(--babanaplo_primary_color) !important;
}

/**
* Loader
*/
body.show-loader {
    overflow: hidden !important;
    position: relative;
}

body.show-loader:before {
    content: '';
    position: fixed;
    left: calc(50% - 30px);
    top: calc(50% - 30px);
    border: 4px solid #FFFFFF;
    border-radius: 50%;
    border-top: 3px solid var(--babanaplo_primary_color);
    border-right: 3px solid var(--babanaplo_primary_color);
    border-bottom: 4px solid var(--babanaplo_primary_color);
    width: 60px;
    height: 60px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    z-index: 100000;
}

body.show-loader:after {
    content: 'Dolgozunk...';
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background-color: #ffffffc2;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding-top: 100px;
    color: var(--babanaplo_primary_color);
    font-weight: 500;
    font-size: 18px;
    background: linear-gradient(90deg, var(--babanaplo_primary_color), #550d37, #18020e);
    background-repeat: no-repeat;
    background-size: 80%;
    animation: animatetext 4s linear infinite;
    -webkit-animation: animatetext 4s linear infinite;
    /*
    animation-iteration-count: 1;
    -webkit-animation-iteration-count: 1;
    */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: rgba(255, 255, 255, 0);
}

.loader_bg {
    display: none !important;
}

body.show-loader .loader_bg {
    display: block !important;
}

body.show-loader .loader_bg:after {
    content: '';
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background-color: #ffffffc2;
}

@keyframes animatetext {
    0% {
        background-position: -500%;
    }

    100% {
        background-position: 500%;
    }
}

@-webkit-keyframes animatetext {
    0% {
        background-position: -500%;
    }

    100% {
        background-position: 500%;
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/**
* Egyéb
*/
.babanaplo_page {
    border: 1px solid;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 1px 0px 10px 0px rgba(125, 89, 89, 0.75);
    -webkit-box-shadow: 1px 0px 10px 0px rgba(125, 89, 89, 0.75);
    -moz-box-shadow: 1px 0px 10px 0px rgba(125, 89, 89, 0.75);
    overflow: hidden;
}

.babanaplo_page img {
    max-height: 500px;
}

/*
#babanaplo-container {
    max-width: 1120px
}
*/
.babanaplo_nav {
    margin-top: 40px
}

.babanaplo_nav button {
    padding: .5rem 1rem !important;
    background: var(--babanaplo_primary_color) !important;
    border-color: var(--babanaplo_primary_color) !important;
    color: #fff !important;
}

.babanaplo_nav button:hover {
    background: var(--babanaplo_text) !important;
    border-color: var(--babanaplo_text) !important;
    color: #fff !important;
}

.babanaplo-container {
    width: 100%;
    max-width: 1200px;
    margin: 100px auto 0;
}

/**
*
*/
.babanaplo_page {
    transition: opacity 0.4s, transform 0.4s;
    opacity: 1;
    transform: translateX(0);
}

.babanaplo_page.anim-slide-in {
    opacity: 1;
    transform: translateX(40px);
    animation: slideInPage 0.4s cubic-bezier(.4, 2, .6, 1) forwards;
}

.babanaplo_page.anim-slide-out {
    opacity: 0;
    transform: translateX(-40px);
    animation: slideOutPage 0.4s cubic-bezier(.4, 2, .6, 1) forwards;
}

.babanaplo_page.anim-slide-in-reverse {
    opacity: 1;
    transform: translateX(-40px);
    animation: slideInPageReverse 0.4s cubic-bezier(.4, 2, .6, 1) forwards;
}

.babanaplo_page.anim-slide-out-reverse {
    opacity: 0;
    transform: translateX(40px);
    animation: slideOutPageReverse 0.4s cubic-bezier(.4, 2, .6, 1) forwards;
}

@keyframes slideInPage {
    from {
        opacity: 0;
        transform: translateX(80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutPage {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-80px);
    }
}

@keyframes slideInPageReverse {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutPageReverse {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(80px);
    }
}

.babanaplo_label {
    color: var(--babanaplo_primary_color);
}

input,
textarea,
select {
    border: 1px solid var(--babanaplo_primary_color) !important;
    border-radius: 5px !important;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

/***
*/
/* --- Modern, letisztult babanapló form --- */
.babanaplo-form-group {
    margin-bottom: 22px;
    background: var(--babanaplo_secondary);
    border-radius: 14px;
    padding: 20px 18px 14px 18px;
    box-shadow: 0 2px 12px #8c44481a;
    border: 1.5px solid var(--babanaplo_accent);
    transition: box-shadow 0.2s, border 0.2s;
}

.babanaplo-form-group:focus-within {
    box-shadow: 0 4px 24px #8c444840;
    border-color: var(--babanaplo_primary_color);
    background: #fff6f7;
}

.babanaplo_label {
    font-size: 1.1em;
    color: var(--babanaplo_primary_color);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.babanaplo-form-group input[type="text"],
.babanaplo-form-group input[type="number"],
.babanaplo-form-group input[type="date"],
.babanaplo-form-group input[type="datetime-local"],
.babanaplo-form-group input[type="email"],
.babanaplo-form-group input[type="tel"],
.babanaplo-form-group textarea,
.babanaplo-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e3b6bb;
    border-radius: 7px;
    font-size: 1em;
    background: #fff;
    color: var(--babanaplo_text);
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    margin-bottom: 2px;
    box-sizing: border-box;
}

.babanaplo-form-group input:focus,
.babanaplo-form-group textarea:focus,
.babanaplo-form-group select:focus {
    border-color: var(--babanaplo_primary_color);
    box-shadow: 0 0 0 2px #8c444820;
}

.babanaplo-form-group input[type="file"] {
    margin-top: 8px;
    background: #fbeaec;
    border-radius: 7px;
    padding: 8px 0;
    border: none;
    font-size: 1em;
    color: var(--babanaplo_primary_color);
}

.babanaplo-form-group textarea {
    min-height: 90px;
    resize: vertical;
}

/* --- Navigációs gombok --- */
.babanaplo_nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin: 36px 0 16px 0;
}

.babanaplo_nav button:disabled {
    background: #e3b6bb;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

/**
*
*/
.babanaplo-image-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto 10px auto;
    background: #f8f8fa;
    border-radius: 14px;
    box-shadow: 0 2px 12px 0 rgba(80, 80, 120, 0.07);
    overflow: hidden;
    padding: 10px;
    transition: box-shadow 0.2s;
    margin-top: 20px;
}

.babanaplo-image-preview img {
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 1px 6px 0 rgba(80, 80, 120, 0.10);
    max-width: 400px;
}

.babanaplo-remove-image {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #c44;
    font-size: 1.6em;
    cursor: pointer;
    /*opacity: 0;*/
    transition: opacity 0.2s, background 0.2s;
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px 0 rgba(80, 80, 120, 0.10);
}

.babanaplo-image-preview:hover .babanaplo-remove-image {
    opacity: 1;
}

.babanaplo-remove-image:hover {
    background: #ffeaea;
    color: #a00;
}

#babanaplo_page_counter {
    margin-right: 24px;
    font-weight: 600;
    color: var(--babanaplo_primary_color);
    font-size: 1.1em;
    align-self: center;
}

/**
tinymce
*/
.tox-statusbar,
.tox-promotion {
    display: none !important;
}

/**
*
*/
#babanaplo_need_login {
    margin-top: 100px;
}

#babanaplo_need_login_form {
    max-width: 500px;
    margin: 0 auto;
}

#babanaplo_need_login_form #wp-submit {
    padding: 10px 20px;
}

#rememberme {
    width: auto;
}

.babanaplo_lost_password_link {
    margin: 10px auto 40px !important;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
}

.babanaplo_header {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    color: #18020e;
    font-family: "Josefin Sans"
}

.babanaplo_header p {
    padding: 5px;
    width: 100%;
    text-align: center;
}

/**
* Tartalomjegyzék
*/
.babanaplo_toc_item.active {
    font-weight: bold;
    border-radius: 4px;
    color: var(--babanaplo_primary_color)
}

.babanaplo_toc_item {
    cursor: pointer;
    padding: 6px 12px;
    margin-bottom: 4px;
}

/** 1 éves, 2éves
*/
.babanaplo_toc_item[data-page="46"],
.babanaplo_toc_item[data-page="68"] {
    font-weight: bold;
}

.babanaplo_tartalomjegyzek_accordion {
    margin-top: 50px;
    margin-bottom: 50px;
    border: 1px solid;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 1px 0px 10px 0px rgba(125, 89, 89, 0.75);
    -webkit-box-shadow: 1px 0px 10px 0px rgba(125, 89, 89, 0.75);
    -moz-box-shadow: 1px 0px 10px 0px rgba(125, 89, 89, 0.75);
    overflow: hidden;
}

.babanaplo_toc_header {
    cursor: pointer;
    user-select: none;
    padding: 8px 12px;
    background: #f7f7f7;
    border-radius: 4px 4px 0 0;
    font-weight: bold;
}

.babanaplo_toc_content {
    border-right: 1px solid rgb(238, 238, 238);
    border-bottom: 1px solid rgb(238, 238, 238);
    border-left: 1px solid rgb(238, 238, 238);
    border-image: initial;
    border-top: none;
    border-radius: 0px 0px 4px 4px;
    background: #FFF;
}

#babanaplo_next_title,
#babanaplo_prev_title {
    font-size: 12px;
    color: #FFFFFF;
    margin-left: 16px;
    font-weight: normal !important
}

.babanaplo_button:not([style="display: none;"]) {
    display: flex !important;
    align-items: center;
    font-weight: 700 !important;
}

.babanaplo-form-error {
    color: #fff;
    background: #dc3232;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0 0 0;
    font-size: 15px;
    width: 100%;
    border-radius: 20px;
}

.babanaplo-form-error-continue {
    background: #fff;
    color: #dc3232;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
}

.babanaplo-image-uploader {
    margin-bottom: 10px;
}

.babanaplo-dropzone {
    border: 2px dashed #bbb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.2s;
    min-height: 100px;
    position: relative;
}

.babanaplo-dropzone.dragover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.babanaplo-dropzone-text {
    color: #888;
    font-size: 1em;
    width: 100%;
    display: block;
}

.babanaplo-preview img {
    max-width: 150px;
    max-height: 150px;
    margin-top: 10px;
    border-radius: 6px;
}

.dropzone-info {
    margin-bottom: 6px;
    color: #888;
    font-size: 13px
}

.babanaplo-image-info {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

.char-counter {
    right: 8px;
    bottom: 8px;
    font-size: 12px;
    color: #888;
    background: transparent;
    padding: 2px 6px;
}

.border-bottom-solid {
    border-bottom: 1px solid #eee;
}

.fejlodes-cim {
    color: var(--babanaplo_primary_color);
    font-size: 25px;
}

.babanaplo_download_button {
    border-color: var(--babanaplo_primary_color) !important;
}

.babanaplo_download_button a {
    color: #FFF !important;
    text-decoration: none !important;
}

/**
*
*/
.babanaplo-modal-overlay {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.babanaplo-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 24px 20px 18px 20px;
    animation: babanaplo-modal-in 0.2s;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes babanaplo-modal-in {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.babanaplo-modal-content ul {
    margin-bottom: 0;
}

.babanaplo-modal-content button {
    margin-right: 8px;
}

.babanaplo-form-error-continue,
.babanaplo-modal-close {
    margin-top: 10px;
    padding: 5px 10px !important;
    border-color: var(--babanaplo_primary_color) !important;
}

.babanaplo_share_button {
    border-color: inherit !important
}

.babanaplo_separator {
    width: 100%;
    height: 1px;
    background: var(--babanaplo_primary_color);
    margin: 40px 0 !important;
}

/*
.babanaplo_demo_user_message {
    color: red;
}
*/
.elementor-element svg {
    width: auto !important
}

/**
csaladfa teszt
*/
.csaladfa-container {
    padding: 24px;
    background: #fff8f0;
    border-radius: 16px;
    box-shadow: 0 2px 16px #0001;
    font-family: inherit;
}

.csaladfa-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 18px;
    gap: 12px;
}

.csaladfa-row.nagy input {
    width: 160px;
}

.csaladfa-row.oldal textarea {
    width: 220px;
    min-height: 40px;
    resize: vertical;
}

.csaladfa-row.szulok input {
    width: 180px;
}

.csaladfa-row.en input {
    width: 200px;
    font-weight: bold;
    text-align: center;
    background: #ffe;
    border: 2px solid #f7c873;
}

.csaladfa-row.testverek textarea {
    width: 300px;
    min-height: 40px;
    resize: vertical;
    margin-top: 8px;
}

/* Vizuális vonalak (egyszerűsített, tovább fejleszthető SVG-vel is) */
.csaladfa-row:not(:last-child) {
    position: relative;
}

.csaladfa-row:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 18px;
    background: #e0b97d;
    transform: translateX(-50%);
    z-index: 1;
}

.csaladfa-row.en::after,
.csaladfa-row.testverek::after {
    display: none;
}

.csaladfa-row.ded {
    display: flex;
    justify-content: center;
}

.ded-col {
    align-items: center;
    gap: 6px;
    min-width: 180px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ded-col-title {
    font-weight: bold;
    margin-bottom: 4px;
    width: 100%;
    text-align: center;
}

.dedszulo_container {
    width: calc(50% - 6px) !important
}

.csaladfa-form-group .babanaplo_label {
    font-size: 0.9em !important;
    margin-bottom: 0 !important
}

.babanaplo-edit-disabled .babanaplo-remove-image {
    display: none !important;
}

.font-selector-container {
    width: 40%;
    margin: auto;
}

.font-selector-container label {
    color: #000;
    text-align: center;
    display: block;
    width: 100%;
    font-family: "Josefin Sans";
}

/**
*
*/
.babanaplo_header_close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 24px;
    height: 24px;
    display: none;
    /* alapból rejtett */
    cursor: pointer;
    font-weight: normal;
    line-height: 1;
    transition: all 0.2s ease;
}

.babanaplo_header_close:hover {
    color: #333;
    transform: scale(1.1);
}

.babanaplo_header_close:before {
    content: "×";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: red;
}

.babanaplo_header:hover .babanaplo_header_close {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.babanaplo_header {
    position: relative;
}

@media screen and (max-width: 1025px) {
    .font-selector-container {
        width: 100% !important;
    }

    div[data-elementor-type="wp-page"] {
        width: 100% !important
    }

    #babanaplo-form {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .fd-col-m {
        flex-direction: column !important;
    }

    .navigation_buttons a {
        margin-left: 0 !important;
        margin-top: 20px
    }

    .babanaplo-form-group.w50 {
        width: 100% !important;
    }

    .csaladfa-row {
        width: 100% !important;
    }

    .csaladfa-container {
        overflow-x: auto;
    }

    .csaladfa-inner {
        width: max-content;
    }

    .ded-col {
        width: 50%;
    }

    .dedszulo_container {
        width: auto !important
    }

    .page_fields,
    .page_image_container {
        width: 100% !important;
    }
}

.babanaplo_toc_col {
    width: 50%;
}