﻿@font-face {
    font-family: 'amaticasc-regular';
    src: url('/font/AmaticaSC-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --main-color: #576A8F;
    --No2: #B7BDF7;
    --No3: #FFF8DE;
    --No4: #FF7444;
    --blue-gradient: linear-gradient(90deg, #576A8F 0%, #383636 100%);
    --salmon-pink: #F7A5A5;
    --orange: #FFDBB6;
    --rosy-white: #FFF2EF;
    --color-text-main: #383636;
    --gradient: linear-gradient(90deg, #FF7444 0%, #ACB1D6 100%);
    --gradient1: linear-gradient(90deg, #FFF2EF 0%, #5D688A 100%);
}

* {
    box-sizing: border-box;
    border-radius: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

main, body {
    margin: 0;
    padding: 0;
    height: 100dvh;
    overflow: hidden;
    background-color: #333;
}

body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

    body.modal-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    body::-webkit-scrollbar {
        width: 1px;
    }

    body::-webkit-scrollbar-track {
        border-radius: 4px;
    }

    body::-webkit-scrollbar-thumb {
        background: var(--gradient1);
        border-radius: 4px;
        transition: background 0.3s ease;
    }


@media (max-width: 468px) {
    *::-webkit-scrollbar {
        display: none;
    }
}

._container h1 {
    flex: 0 0 auto;
    margin-top: 1svh;
    color: white;
    font-size: 2rem !important;
}

.page-title {
    position: absolute;
    top: .5rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 7.5svh;
    min-width: 100px;
}

    .page-title h1 {
        position: relative;
        display: inline-block;
        font-family: amaticasc-regular;
        font-size: 1.5rem;
        color: var(--rosy-white);
        opacity: 1;
        width: fit-content;
        transition: opacity 0.4s ease;
        /*border: 1px solid red;*/
    }

        .page-title h1::after {
            content: '';
            position: absolute;
            bottom: -.5rem;
            left: 50%;
            transform: translateX(-50%);
            width: 40%;
            min-width: 30px;
            height: 2%;
            background: var(--gradient1);
        }

p {
    white-space: normal;
}


/*#region COOKIE */

.cookie-banner {
    position: fixed;
    width: 100vw;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 1000;
    padding: 20px;
    font-family: system-ui, -apple-system, sans-serif;
}

/* תוכן הבאנר */
.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    text-align: center;
}

    /* עיצוב הטקסט */
    .cookie-content p {
        margin: 0;
        color: #333;
        font-size: .9em;
        line-height: 1.5;
    }

.cookie-link {
    color: var(--No4);
    text-decoration: none;
    font-weight: 600;
}

    .cookie-link:hover {
        text-decoration: underline;
    }


.cookie-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

    /* עיצוב כללי לכפתורים */
    .cookie-buttons button {
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        border: none;
    }

#confirmCookie {
    background-color: var(--main-color);
    color: white;
}

    #confirmCookie:hover {
        background-color: #262d3d;
    }

/* כפתור סגירה (Outline) */
#closeBannerBtn {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #666;
}

    #closeBannerBtn:hover {
        background-color: #f5f5f5;
        border-color: #999;
    }

/* התאמה למסכים רחבים (Desktop) */
@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: right;
    }

    .cookie-buttons {
        width: auto;
    }

    .cookie-banner {
        /*        bottom: 30px;
        left: 30px;
        right: 30px;*/
    }
}

/*#endregion */


/*#region LAYOUT */

/*#region HEADER */

header {
    position: fixed;
    right: 0;
    top: 0;
    width: 100dvw;
    z-index: 5;
    padding: 0 !important;
    display: flex;
    align-items: center;
    margin: 0;
    justify-content: flex-end;
}

#logo {
    position: fixed;
    top: 1.5svh;
    left: .5svw;
    width: 75px;
    max-width: 100px;
    height: 75px;
    max-height: 150px;
    overflow: hidden;
    z-index: 99;
    background-color: transparent;
    transition: transform 0.3s ease;
    cursor: pointer;
}

    #logo a:focus-visible {
        border: 2px solid black;
        outline-offset: 5px;
        border-radius: 4px;
    }

    #logo:hover {
        transform: scale(1.05);
    }


    #logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        pointer-events: none;
    }

    #logo a {
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        display: block;
    }



header *:nth-child(3) {
    width: 15dvw;
    background-color: transparent;
    pointer-events: none;
}

@media (max-width: 600px) {
    #logo {
        top: 1svh;
        left: 1svw;
        width: 60px;
        height: 60px;
    }
}
/*#endregion */

/*#region Hamburger */
.hamburger {
    transform: none;
    padding: 0.5rem;
    cursor: pointer;
    margin-right: 0;
    border-radius: .25rem;
    background-color: transparent;
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border: none;
}


/*    .hamburger:not(.is-active):hover {
        transform: scale(1.05);
        transition: all 0.2s ease;
    }*/


.hamburger-box {
    width: 1.75vw;
    min-width: 24px;
    height: 2.5dvh;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    width: 100%;
    height: 2px;
    background: var(--gradient);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

    .hamburger-inner::before,
    .hamburger-inner::after {
        content: "";
        width: 100%;
        height: 2px;
        background-color: #333;
        position: absolute;
        right: 0;
        transition: transform 0.2s ease, background-color 0.2s ease;
        background: var(--gradient);
    }

    .hamburger-inner::before {
        top: -8px;
    }

    .hamburger-inner::after {
        bottom: -8px;
    }

.hamburger.is-active .hamburger-inner {
    background: transparent;
}

    .hamburger.is-active .hamburger-inner::before {
        transform: translateY(8px) rotate(45deg);
        background-color: white;
    }

    .hamburger.is-active .hamburger-inner::after {
        transform: translateY(-8px) rotate(-45deg);
        background-color: white;
    }

/*#endregion */



.background-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    z-index: 0;
    overflow-y: auto;
    overscroll-behavior: none;
}

/*#region MENU */
.side-menu {
    padding-top: 5svh;
    height: 100svh;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 15.80svw;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    visibility: hidden;
    background-color: #333;
}

    .side-menu #menu-logo {
        height: 15svh;
        max-height: 150px;
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: none;
        width: 100%;
    }


        .side-menu #menu-logo img {
            width: 12.5dvw;
            height: 12.5dvh;
            object-fit: contain;
            transition: all 0.3s ease;
            padding: 0.15rem;
        }

    .side-menu nav {
        flex-grow: 1;
        /*max-height: 70svh;*/
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

        .side-menu nav ul {
            width: 100%;
            list-style: none;
            padding: 0;
            text-align: center;
        }

        .side-menu nav a {
            position: relative;
            padding: 0;
            color: var(--No3);
            text-decoration: none;
            display: block;
            padding: .5rem 1.1rem;
            text-align: center;
            font-family: amaticasc-regular;
            font-size: 1.3rem;
            width: 75%;
            margin: 0 auto;
        }

.badge {
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 5px;
    vertical-align: top;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

@media (hover: hover) {
    .side-menu nav a:hover {
        color: var(--No4);
        text-decoration: none;
        width: 30%;
        margin: 0 auto;
    }
}

.side-menu nav a::after {
    content: "";
    display: block;
    margin: auto;
    background-color: var(--No4);
    height: 0.15rem;
    width: 0;
    transition: width .3s;
}

@media (hover: hover) {
    .side-menu nav a:hover::after {
        width: 45%;
    }

    .side-menu nav a:hover {
        color: gray;
        text-decoration: none;
        width: 75%;
    }
}

#side-menu-spacer {
    flex: 0 0 10svh;
}

.social-icons-menu {
    flex: 0 0 10svh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5vw;
    width: 100%;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    padding: 0;
}

    .social-icons-menu::before {
        content: "";
        position: absolute;
        top: .5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 50%;
        height: .05rem;
        background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
        box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 0 10px rgba(100,200,255,0.2);
        border-radius: 4px;
    }


.social-link .fa-facebook-f {
    color: #3b5998;
}

.social-link .fa-instagram {
    color: #e4405f;
}

@media (hover: hover) {
    .social-link:hover {
        transform: translateY(-2px);
        opacity: 0.8;
    }
}


.social-icons a:nth-child(3) {
    color: white !important;
}

.social-icons a:nth-child(4) {
    color: #25D366 !important;
}

/*#endregion */

/*#endregion */

/*#region BANNER */
.banner-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25dvw;
    min-width: 300px;
    height: 75svh;
    max-height: 75svh;
    z-index: 99999;
    background: #373737;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    display: none;
    font-family: Arial;
    border-bottom-right-radius: 14px;
}

.banner-img {
    height: 100%;
    width: auto;
    position: relative;
    flex: 0 0 50%;
    height: 50%;
    overflow: hidden;
}

    .banner-img img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
        display: block;
    }

.banner-text-container {
    position: relative;
    flex: 1 1 25%;
    min-height: 25%;
    display: flex;
    flex-direction: column;
    /*padding: 2rem;*/
}

    .banner-text-container .banner-title {
        flex: 0 0 25%;
        height: 25%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
    }

        .banner-text-container .banner-title h1 {
            margin: 0 !important;
            font-size: 1.5rem;
            font-weight: 600;
            line-height: 1;
            color: var(--salmon-pink);
        }

    .banner-text-container .banner-text {
        flex-grow: 1;
        /*height: 65%;*/
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        direction: rtl;
        padding: .25rem 1.25rem;
    }

        .banner-text-container .banner-text p {
            font-size: 1rem;
            margin: 0 !important;
            text-align: center;
            padding-top: 0.25rem;
            color: var(--rosy-white);
            line-height: 1.3;
        }

.banner-link {
    flex: 1;
    min-height: 12.5%;
    display: flex;
    /*    justify-content: center;
    align-items: center;*/
    /*align-items: flex-end;*/
    padding: .25rem;
}

    .banner-link a {
        height: 100%;
        padding: .75rem;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        background-color: var(--main-color);
        text-decoration: none;
        color: white;
        font-size: 1.1rem;
        border-bottom-right-radius: 14px;
        border-top-left-radius: 14px;
    }

.close-banner {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--rosy-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10000;
    transition: background-color 0.3s;
    font-size: 18px;
    line-height: 0;
    padding-bottom: 0;
}

@media (hover: hover) {
    .close-banner:hover {
        background-color: black;
    }
}


.close-banner span {
    margin-bottom: -1px;
}


@media (max-width: 468px) {
    .close-banner span {
        margin-bottom: 0;
    }

    .banner-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -55%);
        width: 27.5svw;
        min-width: 325px;
        height: 65dvh;
        z-index: 9999;
        background: #373737;
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        border: none;
        outline: none;
        display: none;
        font-family: Arial;
    }
}

/*#endregion */



/*#region MAIN-PAGE*/

.page-container {
    height: 100svh;
    width: 100svw;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
    scroll-behavior: smooth;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.1, 1.1), width 0.4s ease-out;
}


    .page-container::-webkit-scrollbar {
        width: .40em;
        height: 1px;
        background-color: #FFF;
    }

    .page-container::-webkit-scrollbar-thumb {
        background-color: #acaaaa;
        background-attachment: fixed;
        border-radius: .5rem;
    }

    .page-container.shrink {
        height: 100svh;
        position: relative;
        transform: scale(0.9) translateX(-5svh) translateY(0);
        width: 91svw;
        /*overflow: auto;*/
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 35px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    }

/*section {
    position: relative;
    min-height: 100lvh;
    width: 100%;
}*/

.home-container {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    margin: 0;
    padding-bottom: .5rem;
}

.vimeo-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

    .vimeo-wrapper iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.1);
        width: 100vw;
        height: 56.25vw;
        min-height: 100vh;
        min-width: 177.77vh;
        transform-origin: center center;
    }

@media (max-width: 1580px) {
    .vimeo-wrapper iframe {
        width: 177.77vh;
        min-height: 100vh;
        transform: translate(-50%, -50%) scale(1.35);
        border-radius: 20px;
    }
}

@media (max-width: 1280px) {
    .vimeo-wrapper iframe {
        left: auto;
        right: -15%;
        transform: translate(0, -50%) scale(1.35);
        transform-origin: right center;
        transition: all 0.4s ease;
    }
}


@media (max-width: 899px) {
    .vimeo-wrapper iframe {
        right: -20%;
    }
}

@media (max-width: 799px) {
    .vimeo-wrapper iframe {
        right: -25%;
    }
}

@media (max-width: 768px) {
    .vimeo-wrapper iframe {
        transform: translate(0, -50%) scale(1.35);
        right: -7.5%;
    }
}

@media (max-width: 668px) {
    .vimeo-wrapper iframe {
        transform: translate(0, -50%) scale(1.35);
        right: -15%;
    }
}

@media (max-width: 668px) {
    .vimeo-wrapper iframe {
        transform: translate(0, -50%) scale(1.35);
        right: -27.5%;
    }
}

/*@media (min-width: 500px) and (max-width: 568px) {
    .vimeo-wrapper iframe {
        right: -25%;
    }
}*/

@media (max-width: 508px) {
    .vimeo-wrapper iframe {
        left: 50%;
        transform-origin: center center;
        transform: translate(-50%, -50%) scale(1);
    }
}

.vimeo-wrapper {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; 
    z-index: -1;
    overflow: hidden;
}
/**/
/*#bg-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left left;
}*/




/**/
/*.mute-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    outline: none;
}

    .mute-btn svg {
        width: 28px;
        height: 28px;
        pointer-events: none;
    }*/

/* הבהוב כשמושתק */
/*.mute-btn.pulsing {
    animation: pulse 1.5s ease-in-out infinite;
}*/

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/*@media (max-aspect-ratio: 1/1) {
    .vimeo-wrapper iframe {
        width: 200vh;
        height: 100vh;
    }
}*/



/*@media (max-width: 768px) {
    .vimeo-wrapper iframe {
        width: 177.77vh;*/ /* יחס 16:9 ביחס לגובה */
/*height: 100vh;
        transform: translate(-50%, -50%) scale(1.35);*/ /* זום חזק יותר במובייל להסתרת שוליים */
/*}
}*/
/*#region MASHA */
.masha-container {
    order: 2;
    flex: 1 1 400px;
    max-width: 500px;
    height: 100svh;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    margin: 0 auto;
    /*margin-left: 2vw;*/
    margin-right: 15vw;
}

.question-container {
    flex: 1 1 500px;
    /*max-width: 500px;*/
    display: flex;
    flex-direction: row;
    /*padding: 20px;*/
    z-index: 2;
    /*margin-left: 15vw;*/
}

.question-wrapper {
    margin: 5%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 40%;
    height: fit-content;
    min-height: 90px;
    max-width: 800px;
    /*min-width: 250px;*/
    /*background-color: transparent;*/
    border-radius: 30px;
    /*padding: 10px 10px;*/
    z-index: 2;
    opacity: 0;
    will-change: transform, opacity;
    animation: fadeInQ 0.8s ease-out forwards;
    animation-delay: 1s;
    pointer-events: none;
    /*border: 1px solid red;*/
}
    /*.question-wrapper {
    background: rgba(30, 30, 30, 0.8);
}*/

    .question-wrapper button,
    .question-wrapper .home-question {
        pointer-events: auto;
    }

@keyframes fadeInQ {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.home-question {
    flex: 1;
    outline: none;
    border-radius: 30px;
    width: 100%;
    /*flex: 0 0 80%;*/
    outline: none;
    height: fit-content;
    /*height: 50%;*/
    min-height: 10%;
    padding: .5rem 1rem;
    font-weight: 100;
    outline: none;
    resize: none;
    overflow-y: auto;
    background-color: transparent;
    color: white;
    min-width: 150px;
    margin-right: 0rem;
    font-size: .9rem;
    font-family: Arial;
    z-index: 99999;
    background: rgba(30, 30, 30, 0.8);
}

    .home-question::placeholder {
        color: #c4c7c5;
        opacity: .5;
    }

    .home-question:empty::before {
        content: attr(placeholder);
        color: #c4c7c5;
        font-size: .9rem;
    }



/*.masha {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

    .masha img {*/
/*max-width: 100%;*/
/*max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        flex-shrink: 0;
    }*/




/*.masha-header {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    min-width: 0;
}

    .masha-header > * {
        font-family: amaticasc-regular;
        flex: 0 0 auto;
        margin: 0;
        color: white;
        font-weight: 300;
    }
*/
/*    .masha-header h1,
    .masha-header h2 {
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        display: block;
    }

    .masha-header h1 {
        font-size: var(--space-4xl);
        line-height: 1.05;
        margin-right: -.3rem;
    }*/

/*    .masha-header h2 {
        font-size: 2rem;
        line-height: 1;
        -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5);
        margin-top: -0.7rem;
    }
*/


.open-chat-button-container,
.home-send-button-container {
    flex: 0 0 auto;
    position: relative;
    border: none;
    cursor: pointer;
    width: auto;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    display: flex;
    gap: .25rem;
    /*border: 1px solid red;*/
    width: 100%;
    max-height: 50px;
    /*padding-left: .5rem;*/
}

/*#unmuteIcon,
#muteBtn,*/
#open-chat-button,
#home-send-button {
    /*transform: rotate(180deg);*/
    background-color: transparent;
    outline: none;
    height: 80%;
    border: none;
    background: rgba(30, 30, 30, 0.8);
    /*    margin-bottom: .5rem;
    margin-left: .5rem;*/
    /*border-radius: 50%;*/
    border-radius: 50%;
    width: auto;
    aspect-ratio: 1/1;
    /*margin-left: 1rem;*/
    /*margin-bottom: .5rem;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

#open-chat-button {
    /*background-color: var(--No4);*/
}

#home-send-button {
    /*background-color: var(--No3);*/
}

    /*    #unmuteIcon:hover,
    #muteBtn:hover,*/
    #open-chat-button:hover,
    #home-send-button:hover {
        background-color: #333;
    }

    /*    #unmuteIcon svg,
    #muteBtn svg,*/
    #open-chat-button svg,
    #home-send-button svg {
        fill: #c4c7c5;
        width: 24px;
        height: 24px;
        display: block;
        /*border: 1px solid red;*/
    }

#replayBtn,
#muteBtn {
    position: absolute;
    bottom: .25rem;
    left: .25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
    z-index: 99999;
    isolation: isolate;
}

    #muteBtn:hover {
        background: rgba(0, 0, 0, 0.6);
        border-color: rgba(255, 255, 255, 0.8);
        transform: scale(1.08);
    }

#replayBtn {
    display: none;
    left: calc(.25rem + 50px);
}

    #replayBtn svg {
        /*        fill: white;
        display: block;*/
    }

/*#endregion */
/*#region BackgroundVideo */
section.video-section {
    position: relative;
    width: 100%;
    display: flex;
    /*box-shadow: 0px -20px 50px rgba(0, 0, 0, 0.7);*/
    /*border-t: 5px solid white;*/
    /*justify-content: center;*/
    background-color: #FFF;
    z-index: 99998;
}

.background-video-container {
    width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    justify-content: center;
    align-items: center;
}


.background-video {
    width: 75%;
    height: 75%;
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.8);
    background-color: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: fadeInUp 2.5s ease-out forwards;
    transform: perspective(1000px) translateZ(0);
    transition: transform 0.3s ease;
}

@keyframes fadeInUp {
    from {
        filter: blur(20px);
    }

    to {
        filter: blur(0px);
    }
}

.wave-container {
    position: absolute;
    bottom: 99.5%;
    left: 0;
    width: 100%;
    height: 50px;
    line-height: 0;
    z-index: 20;
    pointer-events: none;
}

    .wave-container svg {
        width: 100%;
        height: 100%;
        display: block;
    }

        .wave-container svg path {
            fill: white;
            z-index: -1;
        }


@media (max-width: 600px) {
    .background-video-container {
        /*aspect-ratio: 16 / 9;*/
    }

    .background-video {
        width: 100%; /* מגדיל את הרוחב כדי שיראו משהו בטלפון */
        height: 100%;
        border: none; /* מעדן מעט את המסגרת למסך קטן */
        box-shadow: none /* צל עדין יותר */
    }
}
/*#endregion */


/*#region ANSWER */
.answer-bubble,
.question-bubble {
    direction: rtl;
    font-family: Arial;
    font-size: .8rem;
    text-align: justify;
    line-height: 1;
}


.answer-bubble {
    background-color: transparent;
    color: black;
    margin: 0;
    padding-right: 1rem;
    padding-left: 1.2rem;
    scroll-margin-top: 100px;
}

    .answer-bubble table {
        width: 95%;
        border-collapse: collapse;
        font-size: 0.95em;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
        border-radius: 8px;
        overflow: hidden;
        line-height: 1.2;
        text-align: justify;
        margin: 5% auto;
    }

    .answer-bubble th {
        background-color: #e0e0e0;
        color: #333;
        font-weight: bold;
        text-align: right;
        padding: 12px 15px;
        border-bottom: 2px solid #ccc;
    }

    .answer-bubble td {
        padding: 10px 15px;
        border-bottom: 1px solid #e0e0e0;
        text-align: right;
    }

    .answer-bubble tr:last-child td {
        border-bottom: none;
    }

    .answer-bubble tr:nth-child(even) {
        background-color: #f8f8f8;
    }

@media (hover: hover) {
    .answer-bubble tr:hover {
        background-color: #f0f0f0;
    }
}


.answer-bubble ul, .answer-bubble ol {
    padding-right: 20px;
    margin: .75rem 0;
}

.answer-bubble ul, .answer-bubble ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .answer-bubble ul li::before, .answer-bubble ol li::before {
        content: "– ";
        margin-right: 10px;
        padding-left: 5px;
    }

.answer-bubble p {
    line-height: 1.3;
    margin-bottom: .75rem;
}

.answer-bubble li {
    margin-bottom: .5rem;
}

.answer-bubble h1,
.answer-bubble h2,
.answer-bubble h3 {
    margin: 1rem 0 .75rem 0;
    color: #333;
}

.answer-bubble h1 {
    font-size: 1.5em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: .25rem;
}

.answer-bubble h2 {
    font-size: 1.3em;
}

.answer-bubble h3 {
    font-size: 1.1em;
}

.answer-bubble:not(:first-child)::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 15px 0 10px 0;
}

@media (hover: hover) {
    .answer-bubble:hover {
        opacity: 1;
    }
}

.answer-bubble.complete .answer-actions,
.answer-actions {
    opacity: 1;
}

    .answer-actions i {
        font-size: 1rem;
        color: #999;
        cursor: pointer;
        background-color: transparent;
        transition: color 0.2s, transform 0.2s;
    }

@media (hover: hover) {
    .answer-actions i:hover {
        color: #000;
        transform: scale(1.1);
    }
}


.answer-actions i.selected {
    color: #007bff;
}

.answer-actions i.selected-bad {
    color: #dc3545;
}

/*#endregion */


/*#region FOOTER */
.site-footer {
    background: var(--blue-gradient);
    color: #ffffff;
    /*padding: 30px 20px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    direction: rtl;
    font-family: Arial;
    min-height: 50%;
    width: 100%;
}



.ftr-main-title {
    font-size: 2.1rem;
    color: #FFF2EF;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 2px;
}

.page-container.shrink .ftr-main-title {
    font-size: 1.5em;
}

.ftr-social-icons {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 1rem;
    /*margin-bottom: 60px;*/
}

.ftr-social-item {
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #FFF2EF;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (hover: hover) {
    .ftr-social-item:hover {
        background: #FFF2EF;
        color: #1a1a1a;
        transform: translateY(-10px) rotate(8deg);
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    }
}

.ftr-about-us {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}



fieldset {
    width: 50%;
    border-top: .005rem solid #FFF8DE;
    border-bottom: .005rem solid #FFF8DE;
    padding: 1rem 3rem;
    /*border-radius: 8px;*/
    margin-bottom: 1rem;
}

legend {
    float: none;
    padding: 0 10px;
    /*font-weight: bold;*/
    width: fit-content !important;
    margin-bottom: 0;
}

fieldset p {
    text-align: center;
    font-size: .9rem;
    font-weight: 100;
}


.ftr-contacts-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding-bottom: 1rem;
}

.ftr-contact-box {
    text-align: center;
    min-width: 250px;
}

.ftr-person-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 200;
    color: #fff;
    position: relative;
    padding-bottom: .5rem;
}


.ftr-link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:root {
}

.ftr-contact-link {
    color: #aaa;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* רקע חדש לבלוטות */
    /*padding: 12px 24px;*/
    border-radius: 50px;
    /*background-color: rgba(0, 0, 0, 0.05);*/ /* רקע אפור עדין */
}

    .ftr-contact-link i {
        color: #FFF2EF;
        font-size: 1rem;
    }



@media (hover: hover) {
    .ftr-contact-link:hover {
        color: #fff;
        letter-spacing: 0.5px;
    }
}

.ftr-copyright {
    display: flex;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    /*max-width: 1200px;*/
    /*text-align: left;*/
    /*justify-content: flex-end;*/
    align-items: center;
    color: #666;
    font-size: 0.8rem;
}



#openCookieSettings,
#openAccessibility {
    flex: 1;
    display: flex;
    /*justify-content: center;*/
}

#openCookieSettings {
    justify-content: flex-end;
    /*align-items: flex-end;*/
}

#openAccessibility {
    justify-content: flex-start;
}

.ftr-copyright button {
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: .8rem;
    padding: .5rem .15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    /*border: 1px solid red;*/
    /*min-width: 150px;*/
    /*background-color: rgba(0, 0, 0, 0.05);*/
    width: fit-content;
}

/*.ftr-copyright button:nth-child(2) {
        justify-content: flex-end;*/
/*max-width: 100px;*/
/*}
    .ftr-copyright button:nth-child(1) {
        justify-content: flex-start;*/
/*max-width: 100px;*/
/*}*/


/*.page-container.shrink .ftr-copyright button {
    font-size: .6rem;
}*/

.separator {
    margin: auto .25rem;
    color: white;
    font-weight: 100;
    font-size: 1rem;
}

@media (hover: hover) {
    .ftr-copyright button:hover {
        color: white;
        background-color: rgba(0, 0, 0, 0.05);
    }
}

.ftr-copyright button:active {
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .site-footer {
        /*        min-height: 300px;
        padding: 20px 10px;*/
    }

    .ftr-main-title {
        font-size: 1.5rem;
        /*margin-bottom: 25px;*/
        letter-spacing: 1px;
    }

    .ftr-social-icons {
        gap: 12px;
        /*        margin-bottom: 30px;*/
    }

    .ftr-social-item {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .ftr-contacts-grid {
        /*gap: 0;*/
        /*justify-content: space-around;*/
    }

    fieldset {
        width: 90%;
    }

    .ftr-contact-box {
        /*        min-width: 0;
        flex: 1;
        padding: 0 5px;*/
    }

    .ftr-person-name {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .ftr-contact-link {
        font-size: 0.8rem;
        gap: 6px;
        word-break: break-all;
    }

        .ftr-contact-link i {
            display: none;
        }

    /*    .page-container.shrink .ftr-contact-link {
        font-size: 0.5rem;
    }*/

    .ftr-link-group {
        gap: 8px;
    }

    .ftr-copyright {
        /*margin-top: 30px;*/
        font-size: 0.75rem;
    }
}


@media (max-width: 600px) {

    .page-container.shrink .site-footer {
        height: 100dvh;
    }

    .page-container.shrink .ftr-copyright {
        padding: .25rem 0;
    }

    fieldset {
        width: 95%;
        padding: 1rem 0.5rem;
    }


        fieldset p {
            font-size: .8rem;
        }

    .page-container.shrink fieldset p {
        font-size: .7rem;
    }

    .ftr-contacts-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        width: 100%;
        padding-bottom: 1rem;
        /*max-width: 1000px;*/
        /*flex-wrap: wrap;*/
    }

    .ftr-contact-box {
        /*border: 1px solid red;*/
        text-align: center;
        min-width: 125px;
    }

    .page-container.shrink .ftr-contacts-grid {
        gap: 0;
        padding: 0;
    }

    .page-container.shrink fieldset {
        padding: .5rem 0;
    }

    .ftr-person-name {
        /*padding: .5rem;*/
        margin: 0;
    }

    .page-container.shrink .ftr-person-name {
        font-size: 1rem;
    }

    .ftr-link-group {
        gap: 0;
    }

    .ftr-copyright button {
        font-size: .7rem;
    }

    .ftr-contact-link {
        padding: .25rem;
        font-size: .7rem;
    }

    .page-container.shrink .ftr-contact-link {
        font-size: .6rem;
    }
}

/*#endregion */


/*#region CHAT-MODAL */
.chat-modal-container {
    position: fixed; 
    top: 100px;
    bottom: 55px; 
    left: 2.5rem; 

    width: 500px; 
    height: auto; 
    max-height: 80vh; 
    max-width: 100dvw; 

    border-radius: 12px;
    display: none;
    flex-direction: column;
    z-index: 99;
    background-color: white;
    transition: transform 0.3s ease;
}
body:has(.chat-modal-container.active) .masha-header,
body:has(.chat-modal-container.active) .question-wrapper {
    display: none !important;
}


.chat-modal-container.active {
    display: flex;
}

.page-container.shrink ~ .chat-modal-container {
    transform: scale(.8);
}

#empty-state-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Assistant', sans-serif;
    direction: rtl;
    pointer-events: none;
    /*border: 1px solid red;*/
    width: 100%;
}

#typing-text {
    display: block;
    font-size: 1.2rem;
    font-weight: 100;
    color: #333;
}




.close-chat-btn {
    position: relative;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    width: auto;
    height: 100%;
    aspect-ratio: 1/1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: .25rem;
}

    .close-chat-btn svg {
        fill: #333;
    }

.chat-history-header {
    border-radius: 12px;
    flex: 0 0 10%;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /*border: 1px solid red;*/
}

.logo-chat {
    display: none;
}

.chat-history-header > div:first-child {
    flex: 0 0 auto;
    display: flex;
    border-radius: 50%;
    background-color: white;
}

.chat-history-header > div:nth-child(4) {
    flex: 0 0 auto;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 30px;
    padding: 0 .25rem;
    background-color: #F9F9F9;
    margin-top: .25rem;
    margin-left: .5rem;
}

.chat-history-header > div:last-child {
}

/*.feedback-btn {
    margin-right: auto;
    padding: 0;
    margin-bottom: -.5rem;
    background-color: transparent;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .feedback-btn svg {
        height: 24px;
        fill: var(--salmon-pink);
        height: 24px;
        width: 24px;
        margin: 0;
        display: block;
    }*/
.feedback-btn,
.start-new-chat,
.menu-toggle-btn {
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.new-chat-menu {
    cursor: pointer;
}

.left-btn > div svg {
    display: block;
    fill: #333;
}


.chat-masha-header {
    flex: 0 0 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1dvh;
    padding: 0;
    margin: 0;
}

    .chat-masha-header .masha-chat-img {
        display: none;
        position: relative;
        width: auto;
        height: 75px;
        aspect-ratio: 1/1;
        margin-top: 5dvh;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        position: relative;
        background: #f0f0f0;
    }


        .chat-masha-header .masha-chat-img img {
            width: 100%;
            height: 200%;
            object-fit: cover;
            object-position: center top;
            display: block;
            position: relative;
        }

.typing {
    font-family: Arial;
    font-size: .8rem;
    padding-right: .75rem;
    flex: 1;
    direction: rtl;
    display: flex;
    align-items: center;
}

    .typing.with-dots {
        position: relative;
        display: inline-flex;
        align-items: baseline;
        opacity: 0;
    }

        .typing.with-dots span {
            display: inline-block;
            position: relative;
        }

            .typing.with-dots span::after {
                content: '...';
                position: absolute;
                animation: dots 1.5s infinite;
            }

@keyframes dots {
    0%, 20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%, 100% {
        content: '...';
    }
}



.user-message {
    position: relative;
    color: white;
    direction: rtl;
    align-self: flex-end;
    background-color: var(--main-color);
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    max-width: 100%;
    width: fit-content;
    font-family: Arial;
    padding: .25rem .75rem;
    transition: all 0.2s ease-in-out;
    margin: 1rem 0;
    overflow: visible;
    margin-right: .5rem;
    font-size: .8rem;
}

.chat-menu {
    position: absolute;
    left: 0;
    /*flex: 0 0 0;*/
    width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    height: 100%;
    background-color: white;
    z-index: 1;
    transition: all 0.3s ease-in-out;
    direction: rtl;
    overflow: hidden;
    /*border-right: 1px solid rgba(0,0,0,0.3);*/
    pointer-events: none;
    /*min-width: 400px;*/
}


.open {
    flex: 0 0 auto;
    width: 300px;
    pointer-events: auto;
    border-right: 1px solid rgba(0,0,0,0.3);
}

.chat-menu-btn {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

    .chat-menu-btn > div svg {
        fill: var(--main-color);
        cursor: pointer;
    }

    .chat-menu-btn > div:first-child {
        margin-top: 2dvh;
    }

    .chat-menu-btn > div:last-child {
        width: 90%;
        align-self: center;
        border-radius: 20px;
        border: 1.5px solid var(--No3);
        padding: .25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        margin: 1.5dvh 0;
    }

        .chat-menu-btn > div:last-child span {
            font-size: 0.8rem;
            font-weight: bold;
            font-family: 'Segoe UI';
            color: #333;
        }

.chat-menu h3 {
    width: 100%;
    flex: 0 0 auto;
    color: #333;
    margin-bottom: 1rem;
    font-size: .85rem;
    padding: 0.5rem 0.5rem 0 0;
    /*margin: 0.25rem;*/
}

#historyMenu {
    width: 100%;
    flex: 1;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: 0;
    overflow-y: auto;
}

    #historyMenu::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    #historyMenu::-webkit-scrollbar-thumb {
        background-color: var(--main-color);
        border-radius: 4px;
    }

.history-item {
    position: relative;
    width: 95%;
    display: flex;
    flex-direction: row;
    list-style: none;
    border-radius: 20px;
    cursor: pointer;
    padding: .25rem;
    font-size: .7em;
    z-index: 9999;
}

    .history-item:hover {
        border: 1px solid rgba(0,0,0,0.3);
    }

        .history-item:hover > *:last-child svg {
            fill: var(--main-color);
        }

    .history-item > *:first-child {
        padding-right: 0.5rem;
        flex: 1;
    }

    .history-item > *:last-child {
        background-color: transparent;
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        color: var(--main-color);
    }

        .history-item > *:last-child svg {
            fill: #f7fafa;
        }

    .history-item > *:nth-child(3) {
        background-color: red;
    }

.chat-modal {
    flex: 1;
    width: auto;
    max-width: 100svw;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    padding-top: 7.5dvh;
    transition: all 0.3s ease;
}


.chat-history-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    min-width: 100%;
    min-height: 0;
    overflow-y: auto;
}

    .chat-history-container::-webkit-scrollbar {
        width: 6px;
        height: 4px;
    }

    .chat-history-container::-webkit-scrollbar-thumb {
        background-color: var(--main-color);
        border-radius: 4px;
    }




.chat-history {
    direction: rtl;
    overflow-y: auto;
    /*padding: 0 1rem 0 0.25rem;*/
    width: 100%;
}

    .chat-history::-webkit-scrollbar {
        display: none;
    }


.ask-masha {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    flex: 0 0 auto;
    justify-content: center;
    /*min-height: 32px;*/
    /*max-height: 150px;*/
    width: 100%;
    min-width: 100%;
    max-width: 100dvw;
    padding: .12rem .25rem .12rem .25rem;
    border: none;
    /*margin-bottom: .25rem;*/
    /*gap: .15rem;*/
    outline: none;
    box-shadow: none;
    /*background-color: var(--rosy-white);*/
}

.textarea-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0 0 0 .50rem;
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-right: 0;
    /*border: 1px solid red;*/
}

.rich-text-area {
    font-family: Arial;
    color: white;
    font-size: .8rem;
    background-color: white;
    border: none;
    outline: none;
    resize: none;
    overflow-y: hidden;
    line-height: 1.2;
    min-height: 10px;
    width: 100%;
    border-radius: 20px;
    padding: .40rem 1rem;
    background-color: #333;
    /*border: .5px solid rgba(0,0,0,0.3);*/
}


    .rich-text-area:empty:before {
        content: attr(placeholder);
        color: white;
        font-size: .8rem;
        pointer-events: none;
        font-family: Arial;
    }

.page-container.shrink .rich-text-area {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    max-width: 150px;
    overflow-y: hidden;
}


.buttons-area {
    flex: 0 0 auto;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spacer {
    flex-grow: 1;
}


#send-button {
    flex: 0 0 auto;
    height: 38px;
    max-height: 38px;
    max-height: 32px;
    width: auto;
    aspect-ratio: 1/1;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    flex-shrink: 0;
    border: none;
    padding: 0;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}


.buttons-area {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: .25rem;
    /*border: 1px solid red;*/
}

#send-button svg {
    fill: var(--main-color);
}

#castahContainer {
    direction: rtl;
    padding: 0 .5rem .25rem .5rem;
    /*flex: 0 0 2.5%;*/
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: justify;
    /*border: 1px solid red;*/
}

    #castahContainer p {
        font-size: 8px;
        margin: 0;
        padding: 0;
    }

#send-button {
}

#send-button {
}






/*.buttons-area {
    min-width: 0;
    flex: 0 0 auto;*/
/*display: flex;*/
/*padding: 0;
    margin: 0;*/
/*
    align-items: center;
    justify-content: center;*/
/*width: 40px;*/
/*height: 100%;
}*/



.typing-indicator {
    background-color: transparent;
    width: fit-content;
    padding: 10px 15px;
    border-radius: 15px;
    margin: 5px 0;
    display: flex;
    gap: 4px;
}

    .typing-indicator span {
        width: 8px;
        height: 8px;
        background-color: #999;
        border-radius: 50%;
        display: inline-block;
        animation: bounce 1.3s infinite ease-in-out;
    }

        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }
}


/*custom-popup*/
.rect-popup {
    width: 40vw;
    min-width: 350px;
    border-radius: 12px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    direction: rtl !important;
}

.rect-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    text-align: right !important;
    width: 100%;
    color: white;
}


.rect-content {
    font-size: 0.8rem !important;
    color: #bbb !important; /* אפור בהיר יותר מהכותרת */
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    width: 100%;
}

.rect-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important; /* ב-RTL זה יוצא צד שמאל */
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 1rem !important;
}

.rect-btn {
    background: transparent !important;
    border: none !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    padding: 8px 15px !important;
    margin-right: 5px !important;
    text-transform: uppercase;
}

.rect-cancel,
.rect-confirm {
    border-radius: 20px;
    color: var(--orange) !important;
}

.rect-btn:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}
/*#endregion */
/*#region accessibility */
#accessibilityModal {
    direction: rtl;
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100svw;
    width: 100svw;
    max-height: 100dvh;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
    width: 65%;
}

    #accessibilityModal > * {
    }

.accessibility-contact h1 {
    flex: 1;
    width: 100%;
    font-size: 1.8rem;
    text-align: center;
    margin: .5rem;
    margin: 0;
    padding: .15em;
}

#accessibilityModal section,
#accessibilityModal p,
#accessibilityModal li {
    font-size: 0.85rem;
}

#accessibilityModal section {
    flex: 1;
    text-align: justify;
    min-height: 10% !important;
}


.WCAG {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: .5rem;
}

    .WCAG li {
        font-size: 0.9rem;
        line-height: 1.2;
        background: #f4f4f4;
        padding: 3px 5px;
        border-radius: 4px;
    }

        .WCAG li strong {
            color: #000;
            display: inline-block;
            margin-left: 3px;
        }

.accessibility-contact-list {
    padding-right: 2rem;
}

#closeAccessibility {
    width: 100%;
    flex: 1;
    align-self: flex-end;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

#accessibilityModal h2 {
    font-size: 1.5rem;
    margin-top: 1rem;
}

#closeAccessibility button {
    position: absolute;
    bottom: .5rem;
    width: 65%;
    min-height: 7svh;
    max-height: 9svh;
    margin: .25svh auto .5svh auto;
    padding: 1.5svh 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: var(--main-color);
    color: white;
    font-size: clamp(1rem, 2svh, 1.5rem);
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-close {
    width: 10%;
    height: auto;
    padding: .5rem;
}

.modal button:focus-visible {
    outline: 3px solid #007bff;
    outline-offset: 3px;
}

@media (max-width: 468px) {

    #accessibilityModal {
        padding: .5rem;
        width: 90%;
    }

        #accessibilityModal > * {
        }

    .accessibility-contact {
        padding: .5rem;
    }

        .accessibility-contact h1 {
            padding: 4px 0;
            font-size: 1.3rem;
            margin: .5rem auto;
        }

    #accessibilityModal section {
        font-size: 0.80rem;
    }

    #accessibilityModal h2 {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }

    #accessibilityModal p,
    #accessibilityModal li {
        font-size: 0.75rem;
        margin: .10rem;
    }

    #closeAccessibility button {
        width: 96%;
        padding: 0 2%;
        /*padding: .5rem;*/
    }
}

/*#endregion */


/*#region privacy */

.privacy-container {
    position: relative;
    width: 100%;
    height: 100svh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.1, 1.1), width 0.4s ease-out;
    transform-origin: left center;
    will-change: transform;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    align-items: center;
    gap: 0;
    background-color: transparent;
}

    .privacy-container.shrink {
        height: 100svh;
        position: relative;
        transform: scale(0.9) translateX(2.5svw) translateY(0);
        width: 91svw;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 35px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    }

    .privacy-container::-webkit-scrollbar {
        width: 6px;
        height: 4px;
    }

..privacy-container::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 4px;
}

.privacy-card {
    background: white;
    width: 100%;
    /*box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);*/
    padding: 2rem;
    box-sizing: border-box;
}

    .privacy-card section {
        min-height: auto !important;
        margin-bottom: 2.5rem;
    }

    .privacy-card p {
        padding-right: 2.5rem;
    }

.privacy-title {
    color: var(--main-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.last-update {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

hr {
    border: 0;
    border-top: 1px solid #dee2e6;
    margin: 2rem 0;
}

section {
}

.privacy-section-title {
    /*border-right: 4px solid #0d6efd;*/
    padding-right: 1rem;
    margin-top: 1px;
    margin-bottom: 1rem;
    color: var(--main-color1);
    font-weight: 600;
    font-size: 1.5rem;
}

.highlight-box {
    background-color: #f0f7ff;
    padding: .5rem;
    border-radius: 8px 0 0 8px;
    margin-bottom: 1rem;
}


ul {
    padding-right: 3.5rem;
    line-height: 1.6;
}

li {
    margin-bottom: 0.5rem;
}

.text-primary {
    color: #0d6efd;
}

.fw-bold {
    font-weight: bold;
}

@media (max-width:1000px) {
    .privacy-container.shrink {
        height: 100vh;
        position: relative;
        transform: scale(1) translateX(0) translateY(0);
        width: 70vw;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 35px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    }

    .side-menu {
        width: 30vw;
        padding: 0;
    }
}

@media (max-width: 600px) {
    .privacy-container.shrink {
        width: 65vw;
    }

    .side-menu {
        width: 35vw;
    }

    .privacy-container.shrink .privacy-card {
        padding: .25rem;
    }
}

/*#endregion */


/*#region Important */

.important-container {
    position: relative;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 3svh;
    width: 100%;
    min-height: 100svh;
    height: 100svh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f8f9fa;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.1, 1.1), width 0.4s ease-out;
    transform-origin: left center;
    will-change: transform;
    backface-visibility: hidden;
    background: linear-gradient(to bottom, #FFF2EF 20%, #F7A5A5 80%);
    background: linear-gradient(to right, #E5E0D8, #F8F8F8);
    background: linear-gradient(145deg, #444, #222);
}

    .important-container .page-title h1 {
        font-family: Calibri, Roboto, 'Assistant', sans-serif;
        color: black;
        display: none;
    }

    .important-container.shrink {
        height: 100svh;
        position: relative;
        transform: scale(0.9) translateX(2.5svw) translateY(0);
        width: 91svw;
    }


#important-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.important-item {
    font-family: Arial;
    position: relative;
    width: 60vw;
    min-width: 450px;
    aspect-ratio: 1000 / 183;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    z-index: -1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.1, 1.1), width 0.4s ease-out;
}


    .important-item:hover {
        transform: translateY(-4px);
    }



.important-item-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.important-item-text {
    position: relative;
    font-family: Calibri, Roboto, 'Assistant', sans-serif;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: .25rem 1rem;
}

.important-item h2 {
    color: #FAB95B;
    position: relative;
    /*z-index: 1;*/
    font-size: 1.5em;
    padding: 0;
    margin: 0;
}

.important-item p {
    color: #FAB95B;
    position: relative;
    font-size: 1.1em;
    padding: 0;
    margin: 0;
}


/*.important-item-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block;
}*/


/*    .important-item h2 {
        font-size: 1.8em;
        font-weight: bold;
        z-index: 99999;
    }

    .important-item p {
        margin: 0;
        font-size: 1.1em;
        max-width: 80%;
        line-height: 1;
    }*/

#guide p {
    text-align: justify;
}

@media (max-width: 600px) {
    #important-container {
        padding: 0;
    }

    .important-container.shrink {
        height: 100%;
    }

    .important-item {
        min-width: 350px;
        height: 80px;
    }

        .important-item h2 {
            font-size: 1.3em;
            line-height: 1;
            font-weight: bold;
            /*margin: .25rem auto;*/
        }

        .important-item p {
            font-size: 0.8em;
            line-height: 1;
        }
}
/*#endregion */

/*#region FEEDBACK */


.feedback-modal {
    direction: rtl;
    display: none;
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
    height: 100dvh;
    transition: height 0.1s ease-out;
    /*padding-top: 20px;*/ /* הופך את שינוי הגובה לחלק יותר */
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    margin-top: 20px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h3 {
        margin: 0;
        color: #333;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-btn:hover {
        color: #333;
    }

.modal-body {
    padding: 20px;
}

.rating-section {
    text-align: center;
    margin-bottom: 25px;
}

.stars-container {
    font-size: 40px;
    cursor: pointer;
    margin-bottom: 10px;
    direction: rtl;
}

.star {
    padding: 0 5px;
    transition: color 0.2s;
    color: #ccc;
}

/*.rating-text {
    font-size: 14px;
    color: #666;
    min-height: 20px;
}*/

.text-feedback-section label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

#feedbackText {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

    #feedbackText:focus {
        outline: none;
        border-color: #007bff;
    }

.modal-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.cancel-btn, .submit-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.cancel-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
}

.submit-btn {
    background: #007bff;
    border: 1px solid #007bff;
    color: white;
}

.cancel-btn:hover {
    background: #e8e8e8;
}

.submit-btn:hover {
    background: #0056b3;
}


.feedback-modal {
    direction: rtl;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
    height: 100dvh;
    padding: 12px;
    box-sizing: border-box;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 350px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    margin-top: auto;
    margin-bottom: auto;
}

.modal-header {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h3 {
        margin: 0;
        color: #333;
        font-size: 16px;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .close-btn:hover {
        color: #333;
    }

.modal-body {
    padding: 16px;
}

.rating-section {
    text-align: center;
    margin-bottom: 18px;
}

.stars-container {
    font-size: 32px;
    cursor: pointer;
    margin-bottom: 6px;
    direction: rtl;
    display: flex;
    justify-content: center;
    gap: 3px;
}

.star {
    padding: 0 1px;
    transition: color 0.2s;
    color: #ccc;
    flex-shrink: 0;
}
/*
.rating-text {
    font-size: 13px;
    color: #666;
    min-height: 18px;
}*/

.text-feedback-section label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

#feedbackText {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    font-size: 15px;
    min-height: 90px;
    max-height: 180px;
}

    #feedbackText:focus {
        outline: none;
        border-color: #007bff;
    }

.modal-footer {
    padding: 14px 16px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cancel-btn, .submit-btn {
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    min-height: 40px;
}

.cancel-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
}

.submit-btn {
    background: #007bff;
    border: 1px solid #007bff;
    color: white;
}

.cancel-btn:hover {
    background: #e8e8e8;
}

.submit-btn:hover {
    background: #0056b3;
}

@media (max-width: 480px) {
    .feedback-modal {
        padding: 8px;
        align-items: center;
    }

    .modal-content {
        max-height: 88vh;
        border-radius: 8px;
    }

    .modal-header {
        padding: 12px 14px;
    }

        .modal-header h3 {
            font-size: 15px;
        }

    .modal-body {
        padding: 14px;
    }

    .stars-container {
        font-size: 28px;
        gap: 2px;
    }

    /*    .rating-text {
        font-size: 12px;
    }*/

    .cancel-btn, .submit-btn {
        padding: 7px 14px;
        font-size: 13px;
        min-height: 38px;
    }

    .modal-footer {
        padding: 12px 14px;
        gap: 8px;
    }
}


/*#endregion */



@media (max-width: 1000px) {
    .page-container {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        transition: width 0.4s ease-out, transform 0.4s ease-out;
        width: 100vw;
        /*height: 100lvh;*/
        scrollbar-width: none;
        /*overflow: auto;*/
    }

        .important-container.shrink,
        .page-container.shrink {
            height: 100vh;
            position: relative;
            transform: scale(1) translateX(0) translateY(0);
            width: 75vw;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 35px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
        }

    .side-menu {
        width: 25vw;
        padding: 0;
    }

        .side-menu #menu-logo {
            margin-top: 5svh;
        }

    .masha-container {
        margin-right: 0;
    }

    .masha {
        padding: 0;
        margin: 0;
        padding-right: 0;
        flex: 0 0 50dvw;
        /*border: 1px solid red;*/
    }

    .page-container.shrink .masha-container {
        max-width: 1000px;
        justify-content: center;
        margin-right: 0;
    }

    .page-container.shrink .masha img {
        /*margin: 0;*/
    }

    .page-container.shrink .question-container {
        display: none;
        flex: 0 0 0;
    }

    .social-icons-menu {
        gap: 1rem;
    }

    .chat-modal-container {
        width: 300px;
        /*left: 12.5vh;*/
    }

    body:has(.chat-modal-container.active) .masha-container {
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .chat-modal-container {
        /*width: 25vw;*/
        /*left: 10vh;*/
        min-width: 300px;
        border-radius: unset;
        /*width: 35vw;*/
    }


    .page-container.shrink ~ .chat-modal-container {
        transform: none;
    }

    .page-container.shrink .masha-container {
        justify-content: center;
        max-width: 600px;
    }


    .masha img {
    }

    .page-container.shrink .masha img {
    }

    .masha-header {
    }

    .home-question {
    }
}

@media (max-width: 568px) {
    html, body {
        height: 100svh !important;
        max-height: 100svh !important;
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }

    .important-container.shrink,
    .page-container.shrink {
        width: 65vw;
    }

        .important-container.shrink .important-item {
            min-width: 200px;
        }

    .side-menu {
        width: 35vw;
    }

        .side-menu nav a {
            width: 85%;
        }

    #historyMenu::-webkit-scrollbar,
    .chat-history-container::-webkit-scrollbar {
        display: none;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .background-menu {
        position: fixed;
        overflow: hidden;
        height: 100px !important;
    }

    body {
        /*height: 600px !important;*/
        /*background-color: blue;*/
    }

    .page-container {
        overflow: auto !important;
        height: 100dvh; /* d = Dynamic, משתנה עם המקלדת */
        width: 100%;
        position: relative;
    }

    body.chatmodal-open .page-container {
        display: none;
        height: 100px;
    }

    body.chatmodal-open {
        max-height: 500px;
    }

    .home-container {
        height: 100dvh;
        flex-direction: column;
        justify-content: flex-end;
        /*padding-top: 8svh;*/
    }

    /*    .page-container.shrink .home-container{
        height: 90%;
        max-height: 100dvh;
        border: 1px solid red;
    }
*/
    .masha-container {
        position: relative;
        flex: 1 1 60%;
        max-width: 60%;
        width: 60%;
        height: 100svh;
        display: flex;
        /*border: 2px solid green;*/
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        /*margin: 0 auto;*/
    }

    .page-container.shrink .masha-container {
        margin: 0;
        margin-right: 0;
        min-width: 400px;
    }

    #replayBtn,
    #muteBtn {
        /*        width: 32px;
        height: 32px;*/
        /*        left: unset;
        right: .25rem;*/
        top: 5rem;
        left: 1rem;
        width: 38px;
        height: 38px;
    }

    #replayBtn {
        /*        left: unset;
        right: calc(.25rem + 37px);*/
        left: 1rem;
        top: calc(5rem + 40px);
        ;
    }

    .masha {
        padding-right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 100%;
        width: 100%;
        /*border: 2px solid green;*/
    }

        .masha img {
            width: 350px;
            min-width: 350px;
            flex-shrink: 0;
            -webkit-flex-shrink: 0;
            height: auto;
            display: block;
            margin-top: -16rem;
            transform: scale(0.6);
            object-fit: contain;
            -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 71%);
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 71%);
            /*border: 1px solid red;*/
        }



    .page-container.shrink .masha {
        padding: 5rem;
    }

    .page-container.shrink .home-container {
        /*padding: 0;*/
    }

    .page-container.shrink .masha img {
        margin: 0;
        width: 450px;
        -webkit-clip-path: unset;
        clip-path: unset;
    }

    .question-container {
        position: relative;
        flex: 1 1 40%;
        max-width: 40%;
        width: 40%;
        gap: 0;
        /*border: 2px solid blue;*/
    }

        .question-container > * {
            padding: .25rem;
        }

    .question-wrapper {
        justify-content: center;
        width: 90%;
        min-width: 300px;
    }

    .page-container.shrink .question-wrapper {
        min-width: 150px;
    }

    .home-send-button-container {
        /*        justify-content: center;
        align-items: center;*/
    }

    .masha-header {
        margin-top: .5rem;
        margin-right: -3.5rem;
        flex: 0 0 55%;
    }

        .masha-header h1 {
            font-size: 4rem;
            margin-right: 0;
        }

        .masha-header h2 {
            /*margin-right: -2.9rem;*/
        }

    .home-question {
        /*flex: 0 0 100%;*/
        /*min-width: 350px;*/
        /*max-width: 250px;*/
        /*margin-right: -13rem;*/
        /*z-index: 1;*/
        /*border-radius: 7.5%;*/
        /*padding-top: 1rem;*/
        /*background-color: white;*/
        /*        color: black;*/
        /*border: .25px solid black;*/
        /*border-radius: 17.5px;*/
        font-size: .9rem;
        padding: .75rem 1rem;
    }


    #home-send-button {
        /*height: fit-content;*/
    }

        #home-send-button svg {
            /*height: 28px;*/
        }


    /*CHAT-MODAL*/
    .chat-masha-header .masha-chat-img {
        display: block;
    }

    .chat-modal-container {
        position: fixed !important;
        min-height: 0;
        left: unset;
        top: 0 !important;
        padding: 0;
        height: 100vh;
        max-height: 100svh;
        width: 100%;
        overflow: hidden !important;
        will-change: transform, height;
        transition: none !important;
        overscroll-behavior: contain;
        background-color: white;
    }

    .chatmodal-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
        /* מונע מ-Safari להזיז את הדף כשהמקלדת נפתחת */
        touch-action: none;
    }


    .chat-history-header {
        padding: .5rem .5rem;
    }

    .chat-masha-header .masha-chat-img {
        max-width: 50px;
        max-height: 40px;
        margin-top: 0;
        margin-right: 0;
    }

    .chat-history-header > div:nth-child(4) {
        gap: .25rem;
    }
    /*LOGO*/
    .chat-history-header > div:last-child {
        flex: 0 0 10%;
        max-width: 40px;
        height: 40px;
        display: block;
    }

    /*    .logo-chat {
        flex: 0 0 auto;
        max-width: 35px;
        max-height: 25px;
        
    }
*/
    .logo-chat img {
        max-width: 100%; /* התמונה לא תתרחב מעבר ללוגו */
        max-height: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        /*display: none;*/
    }





    /*.chat-modal-container.active .page-container {
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;*/ /* מבטל את הגלילה של ה-body */
    /*position: fixed;*/ /* נועל את ה-body למקום */
    /*width: 100%;
        background-color: red;
    }*/
    /*    html:has(.chat-modal-container.active),
    body:has(.chat-modal-container.active),
    .home-container:has(.chat-modal-container.active),
    .page-container:has(.chat-modal-container.active) {
        height: 100dvh;

        overflow: hidden;
        position: fixed;
        width: 100%;
    }*/
    /*    html, body {
        height: 100%;
        overflow: hidden;
        position: fixed;
        width: 100%;
    }*/
    /*    .page-container {
        height: 100%;
        overflow: hidden;
        position: fixed;
        width: 100%;
    }*/
    /*
    .chat-modal-container {
      
        display: none;
        flex-direction: column;
        z-index: 99999;
        background-color: white;
        justify-content: flex-end;
        align-items: flex-end;
        padding: 0;
        margin: 0;
        border-radius: 0;
    }*/
    .history-item {
        position: relative;
        width: 95%;
        display: flex;
        flex-direction: row;
        list-style: none;
        border-radius: 20px;
        cursor: pointer;
        padding: .25rem;
        font-size: .8rem;
        gap: 1rem;
    }

        .history-item:hover {
            border: none;
        }

        .history-item > *:last-child svg {
            fill: var(--main-color);
        }


    .chat-modal {
        width: 100%;
    }

    .chat-history-container {
        width: 100%;
        min-width: 100svw;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }


    .chat-history {
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
        height: 100%;
        padding: 0 1rem;
        background-color: white;
        background-color: transparent;
    }


    .ask-masha {
        flex-direction: row;
        flex: 0 0 auto;
        min-height: 32px;
        max-height: 150px;
        width: 100%;
        min-width: 100%;
        max-width: 100dvw;
        padding: .35rem .5rem .35rem .5rem;
        border: none;
        /*margin-bottom: .5rem;*/
        /*gap: .55rem;*/
        outline: none;
        box-shadow: none;
        background-color: white;
        /*border: 2px solid red;*/
    }

    .buttons-area {
        flex: 0 0 auto;
        margin-top: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .spacer {
        flex: 1;
    }


    #send-button {
        flex: 0 0 auto;
        height: 40px;
        max-height: 40px;
        margin-bottom: -.007rem;
    }

    .textarea-wrapper {
        flex: 1 1 auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        padding-right: 0;
        padding: 0;
    }

    .rich-text-area {
        max-height: 150px;
        overflow-y: auto;
        border-radius: 20px;
        border: 1px solid rgba(0,0,0,0.3);
        line-height: 2;
        width: 100%;
        min-height: 40px;
        resize: none;
        overflow: hidden;
        outline: none;
        padding: .25rem 1rem;
        font-size: 1rem;
        background-color: #333;
        color: white;
    }

        .rich-text-area:empty:before {
            content: attr(placeholder);
            color: #FFF2EF;
            font-size: 1rem;
            pointer-events: none;
            line-height: 2;
        }

    .page-container.shrink .rich-text-area {
        height: 40px;
        min-height: 40px;
        max-height: 40px;
        max-width: 150px;
        overflow-y: hidden;
    }

    .user-message {
        padding: 0.25rem .75rem;
        margin-right: 0;
        border-radius: 14px;
    }

    .answer-bubble {
        padding: 0 .5rem;
        margin: 0;
        /*padding-left: 5%;*/
    }

        .answer-bubble table {
            /*width: 95%;*/
        }

    .open {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .chat-history-container {
        min-width: 50%;
    }
}

@media (max-width: 500) {

    body::-webkit-scrollbar {
        display: none;
    }

    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden; /* מבטל את הגלילה של ה-body */
        position: fixed; /* נועל את ה-body למקום */
        width: 100%;
    }
}
