:root {
    --sharp-corner: 4px;
    --round-corner: 20px;
}

/* Ensure full height of the page */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
            /*rgba(243, 244, 246, var(1));*/
}

/* Container with flexbox to center content */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 10px; /* Padding for small screens */
}

.scroll-view {
    width: 100%;
    max-width: 440px;
    height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
    /*background-color: #f8f8f8;*/
}

/*.scroll-view-content {*/
/*    display: flex;*/
/*    flex-direction: column;  !* Reverse the order of flex items *!*/
/*    justify-content: flex-start;     !* Ensure items are aligned at the bottom *!*/
/*    align-items: flex-end;           !* Align items to the right (for chat bubbles) *!*/
/*    overflow-y: auto;                !* Enable scrolling *!*/
/*    max-height: 100%;                !* Prevent content from overflowing *!*/
/*    padding: 20px;*/
/*}*/


/* For smaller screens */
@media (max-width: 768px) {
    .container {
        padding: 0; /* No padding on smaller screens */
        justify-content: flex-start; /* Align to the start on small screens for better readability */
    }

    /* Remove shadow on mobile screens */
    .scroll-view {
        box-shadow: none; /* Remove shadow */
    }
}

.button {
    display: block;
    width: fit-content;
    margin-top: 16px;
    padding: 12px 18px 12px 18px;
    text-align: center;
    border-radius: 50px;
    /*background-color: #FFDD00;*/
    /*color: white;*/
    font-size: 16px;
}

.float-right {
    float: right;
}

.button.secondary {
    background-color: #00BCD4;
}

.button:disabled,
.button[disabled]{
    opacity: 0.5;
}


/* Scroll view padding */
.scroll-view-content {
    padding: 20px;
}

/* Message bubble style */
.message-bubble {
    background-color: #E0E0E0;
    padding: 12px 16px 12px 16px;
    border-radius: 20px;
    margin-bottom: 4px;
    max-width: 90%;
    align-self: flex-start;
    font-family: ui-sans-serif, system-ui, -apple-system, "system-ui", "Segoe UI";
    color: #242424;
}

.avatar-bubble {
    background-color: #FFCC00;
    /*padding: 12px 12px 12px 12px;*/
    width: 40px;
    height: 40px;
    border-radius: 20px;
    margin-bottom: 4px;
    align-self: flex-start;
    font-family: ui-sans-serif, system-ui, -apple-system, "system-ui", "Segoe UI";
    color: #242424;
    display: grid;
    align-items: center;
    text-align: center;
}


.scroll-view-content > .message-bubble {
    align-self: flex-end; /* Align each bubble to the right */
}

.message-bubble.outcoming, .avatar-bubble.outcoming {
    float: right;
}

.message-bubble.outcoming {
    background-color: #007AFF;
    color: white;
}

.message-bubble.incoming, .avatar-bubble.incoming {
    float: left;
}

.br-topleft-sharp {
    border-top-left-radius: var(--sharp-corner) !important;
}
.br-topright-sharp {
    border-top-right-radius: var(--sharp-corner) !important;
}
.br-bottomleft-sharp {
    border-bottom-left-radius: var(--sharp-corner) !important;
}
.br-bottomright-sharp {
    border-bottom-right-radius: var(--sharp-corner) !important;
}

.br-topleft-round {
    border-top-left-radius: var(--round-corner) !important;
}
.br-topright-round {
    border-top-right-radius: var(--round-corner) !important;
}
.br-bottomleft-round {
    border-bottom-left-radius: var(--round-corner) !important;
}
.br-bottomright-round {
    border-bottom-right-radius: var(--round-corner) !important;
}

/* Mr. Brain label style */
.brain-label {
    font-weight: bold;
    color: #141414;
}

/* Text Styling */
.message-text {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: unset;
}

/* Customize label */
.label {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
}

.blue-button {
    background-color: #007AFF;
    border: unset;
}

.cyan-button {
    background-color: #32ADE6;
    border: unset;
}

.black-button {
    background-color: #242424;
    border: unset;
}

.messages {
    /*color: white;*/
    /*margin: 40px;*/
    /*margin-top: 13px;*/
    padding-top: 20px;
    padding-bottom: 12px;
    border-radius: 12px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    font-family: 'Montserrat', serif;
    font-size: 18px;
    font-weight: 500;
}

.ios-imessage {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 400;
    /*color: #000000;*/
}

.avatar-container.outcoming .avatar-name {
    float: right;
    margin-top: 10px;
    margin-bottom: 0px;
    margin-right: 10px;
}

.avatar-container.incoming .avatar-name {
    float: left;
    margin-top: 10px;
    margin-bottom: 0px;
    margin-left: 10px;
}
.avatar-container {
    display: flow-root;
    width: 100%;
}

.message-bubble-container {
    width: 100%;
    float: right;
}