body {
    font-family: 'Ubuntu', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

p {
    margin-bottom: 0px;
    margin-top: 0px;
}

.content-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
}

.left-side {
    background-color: #ffe0de;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
}

.text-and-image-container {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-height: 100%;
    height: fit-content;
}

.main-title {
    font-size: 3vw;
    color: black;
    font-weight: 700;
    font-family: "Inter";
    text-align: center;
    margin-bottom: 2vh;
    line-height: 1.2;
    margin-top: 6vh;
    max-height: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.image-container {
    text-align: center;
    max-width: 50vw;
    max-height: 50vw;
}

.image-container img {
    width: 30vw;
    height: auto;
    display: block;
    max-height: 100%;
    object-fit: contain;
}

.right-side {
    background-color: #ffffff;
    width: 50%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#chat-wrapper {
    max-width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-top: 0px;
    padding-left: 5em;
    overflow: hidden;
}

#chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    width: 100%;
    overflow: hidden;
}

#chat-header {
    background-color: #fff;
    color: #000;
    padding: 3vh;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    font-size: 1.1em;
}

#reset-chat {
    display: flex;
    align-items: center;
    background: none;
    border: 1px solid black;
    border-radius: 25px;
    padding-top: 1.5vh;
    padding-bottom: 1.5vh;
    padding-left: 3vh;
    padding-right: 3vh;
    cursor: pointer;
    font-family: 'Inter';
    font-size: 2vh;
}

#reset-chat:hover {
    background-color: #e2e3e5;
    color: black
    border-color: #394849;
}


#chat-messages::-webkit-scrollbar {
    width: 8px; /* Szerokość paska */
}

#chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1; /* Kolor tła szyny paska */
}

#chat-messages::-webkit-scrollbar-thumb {
    background: #888; /* Kolor uchwytu paska */
    border-radius: 4px; /* Zaokrąglenie rogów uchwytu */
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555; /* Kolor uchwytu po najechaniu myszą */
}

/* Dla Firefoxa */
#chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

#chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 70vh;
    padding: 1.25em;
    display: flex;
    flex-direction: column;
    min-height: 15.625em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

.message-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    width: 100%;
}

.message-avatar {
    width: 2.25em;
    height: 2.25em;
    border-radius: 50%;
    margin-right: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #404a4c;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#reset{
	display:none;
}

.message {
    padding: 10px 15px;
    border-radius: 14px;
    max-width: 80%;
    word-wrap: break-word;
    display: inline-block;
    font-size: 2.2vh;
}

#ikona {
	width:1.4em!important;
}

@media (min-width: 1441px) {
    .message {
        font-size: 1.4vh; /* Wielkość czcionki dla ekranów powyżej 1200px szerokości */
    }

    .main-title {
        font-size: 5vh;
    }

    .image-container img {
        margin-top: 4vh;
    }

    #reset-chat {
        padding-top: 1vh;
        padding-bottom: 1vh;
        font-size: 1.5vh;
    }
    
	#chat-input-frame input{
	height: 3vw!important;
	}
	
    #chat-header {
        padding-bottom: 2vh;
        padding-top: 2vh;
        padding-left: 3vh;
        padding-right: 3vh;
    }
    #send-button {
	top: 1.5vw!important;
	height: 2.5vw!important;
    }
}

.user-message {
    background-color: #ffe0de;
    color: black;
    align-self: flex-end;
    margin-bottom: 0px;
    margin-top: 10px;
}

.user-message-container {
    justify-content: flex-end;
    align-self: flex-end;
}

.assistant-message {
    background-color: #e2e3e5;
    color: black;
    align-self: flex-start;
    margin-top: 10px;
}

#chat-input-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 2vh;
    width: 100%;
    padding-top: 2vw;
}

#chat-input-frame {
    width: 100%;
    height: 70px;
    border-radius: 28px;
    background-color: white;
    position: relative;
}

#chat-input-frame input {
    width: 100%;
    height: 4vw;
    border-radius: 28px;
    background-color: white;
    border: 1.5px solid #767676;
    padding-left: 2em;
    box-sizing: border-box;
}

    #chat-wrapper {
        padding-left: 3vh;
        max-width: 100%;
        display: none;
    }

#send-button {
    position: absolute;
    top: 2vw;
    right: 3px;
    transform: translateY(-50%);
    width: auto;
    min-width: 7em;
    height: 3.5vw;
    border-radius: 28px;
    background-color: #ffe0de;
    font-size: 1.1em;
    color: black;
    font-weight: 600;
    font-family: "Inter";
    cursor: pointer;
    padding: 0 15px;
	border: 1.5px solid #767676;

}

#send-button:hover {
    background-color: #e2e3e5;
}

.typing-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-left: 0.5em;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #aaa; /* Kolor kropek */
    border-radius: 50%;
    margin-right: 4px;
    animation: typing 1.4s infinite ease-in-out;
}

.image-container {
    text-align: center;
    max-width: 100vh;
    max-height: 100vh;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% {
        transform: translateY(0);
        background-color: #aaa;
    }

    50% {
        transform: translateY(-4px);
        background-color: #888;
    }

    100% {
        transform: translateY(0);
        background-color: #aaa;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    body {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .content-wrapper {
        flex-direction: column;
        height: 100vh;
        position: fixed;
        width: 100%;
        overflow: hidden;
    }

    .left-side {
        display: none;
        width: 100%;
        height: auto;
    }

#tekst {
font-size:2.2vh!important;
}
	
    .right-side {
        width: 100%;
        height: 100vh;
        padding: 0px;
        align-items: center;
        justify-content: center;
        position: fixed;
        overflow: hidden;
    }

    #chat-wrapper {
        padding-top: 0;
	padding-right:0;
        box-sizing: border-box;
        height: 100vh;
        width: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        padding-left: 0;
        position: fixed;
    }

    #chat-container {
        height: 100vh;
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
    }

    #chat-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background-color: #ffe0de;
        padding: 2vh 5vw;
        box-sizing: border-box;
        font-size: 2vh;
        align-items: center;
        width: 100%;
        margin: 0;
        box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
        height: 55px;
    }

    #chat-messages {
        position: absolute;
        top: 8vh;
        bottom: 14vh;
	max-height:80vh;
        left: 0;
        right: 0;
        padding: 0.5em;
	padding-left:5vw!important;
	padding-right:5vw!important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    #chat-input-container {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 2vh 0;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        box-sizing: border-box;
        z-index: 100;
        height: 10vw;
    }

    #chat-input-frame {
        width: 100%;
        padding: 0 5vw;
        box-sizing: border-box;
    }

    #chat-input-frame input {
        padding-left: 1.5em;
        height: 10vw;
        box-sizing: border-box;
    }

    .mobile-welcome-screen {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #ffe0de;
        color: #ffffff;
        overflow: hidden;
    }

    /* Pozostałe style pozostają bez zmian */
    #reset-chat {
        display: none;
    }

    #reset {
        display: contents;
        font-size: 5vh;
    }

    #back-button {
        display: flex !important;
        align-items: center;
        background: none;
        border: none;
        cursor: pointer;
        font-family: 'Inter';
        padding-left: 0px;
        margin-right: 0px;
    }

    .message {
        font-size: 2vh;
    }

    #cofnij {
        width: 33px !important;
    }

    #napis {
        display: none;
    }
	
	#reset img {
        width: 33px !important;
    }

    #send-button {
        font-size: 2.4vh;
        min-width: 6em;
        top: 2.5vh;
        height: 4.2vh;
	margin-right:2.6vh;
	border: none;
	
    }

    .mobile-welcome-screen .image-container {
        width: 50vh;
        height: 50vh;
        overflow: hidden;
        margin-bottom: 10vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mobile-welcome-screen .image-container img {
        width: 100vh !important;
        height: 100vh !important;
        object-fit: cover;
    }

    .mobile-welcome-screen .main-title {
        margin-top: 0;
        margin-bottom: 7vh;
        font-size: 4.5vh;
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        text-align: center;
        line-height: 1.2;
    }

    #start-chat-button {
        background-color: #ffffff;
        color: #090c11;
        font-size: 2.5vh;
        font-weight: 600;
        font-family: "Inter", sans-serif;
        cursor: pointer;
        padding: 1.5vh 3vh;
        border-radius: 28px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #start-chat-button:hover {
        background-color: #f0f0f0;
        border: none;
    }
}
/* Style dla desktop - ukryj ekran powitalny domyślnie */
@media (min-width: 769px) {
    .mobile-welcome-screen {
        display: none;
    }

    #chat-wrapper {
        display: flex; /* Pokaż wrapper czatu na desktopie */
    }
}
