:root {
    /* color definitions */
    --jami-light-blue: rgba(59, 193, 211, 0.3);
    --jami-dark-blue: #003b4e;
    --jami-green: #1ed0a8;
    --jami-green-hover: #1ed0a8;
    /* main properties */
    --bg-color: #ffffff;
    /* navbar properties */
    --navbar-height: 40px;
    --navbar-padding-top: 8px;
    --navbar-padding-bottom: var(--navbar-padding-top);
    /* message bar properties */
    --textarea-max-height: 150px;
    --placeholder-text-color: #d3d3d3;
    /* button properties */
    --action-icon-color: var(--jami-dark-blue);
    --deactivated-icon-color: #bebebe;
    --action-icon-hover-color: #ededed;
    --action-critical-icon-hover-color: rgba(211, 77, 59, 0.3); /* complementary color of jami light blue */
    --action-critical-icon-press-color: rgba(211, 77, 59, 0.5);
    --action-critical-icon-color: #4E1300;
    --action-icon-press-color: rgba(212, 212, 212, 1.0);
    --invite-hover-color: white;
    --bg-text-input: white;
}

body {
    font-family: sans-serif;
}

#container {
    max-width: 1000px;
    margin: auto;
}

.nav-right {
    float: right;
}
/* classic screens */
@media screen and (max-width: 1920px), screen and (max-height: 1080px) {
    .message_in {
        padding-left: 0px;
    }

    .message_out {
        padding-right: 0px;
    }
}

#invite_contact_name {
    font-weight: 700;
}

.internal_mes_wrapper {
    margin: 0px 0 0 0;
}

.message_wrapper {
    padding: 1em;
}

.sender_image {
    margin: 10px;
}

.message_out + .message_out .message_wrapper {
    border-top-right-radius: 10px;
}

.message_in + .message_in .message_wrapper {
    border-top-left-radius: 10px;
}

.message_in + .message_in .sender_image {
    visibility: hidden;
}

.message_out + .message_out .sender_image {
    visibility: hidden;
}

.message_text {
    hyphens: auto;
    word-break: break-word;
    word-wrap: break-word;
}

.sender_image {
    margin: 0px 10px 0px 10px;
}

.message_in .sender_image,
.message_out .sender_image {
    visibility: hidden;
}

.message_in.last_of_sequence .sender_image,
.message_in.single_message .sender_image {
    visibility: visible;
}

.message_in.last_of_sequence .sender_image {
    margin-top: 2px;
}

.message_in.middle_of_sequence .sender_image {
    margin-top: 0px;
}

.generated_message.message_in .message_wrapper,
.generated_message.message_out .message_wrapper {
    background-color: transparent !important;
    border-radius: 0px !important;
}

.single_message.message_in .message_wrapper,
.single_message.message_out .message_wrapper {
    border-radius: 20px 20px 20px 20px;
}

.last_of_sequence.message_in .message_wrapper {
    border-radius: 4px 20px 20px 20px;
}

.first_of_sequence.message_in .message_wrapper {
    border-radius: 20px 20px 20px 4px;
}

.middle_of_sequence.message_in .message_wrapper {
    border-radius: 4px 20px 20px 5px;
}

.last_of_sequence.message_out .message_wrapper {
    border-radius: 20px 4px 20px 20px;
}

.first_of_sequence.message_out .message_wrapper {
    border-radius: 20px 20px 4px 20px;
}

.middle_of_sequence.message_out .message_wrapper {
    border-radius: 20px 5px 4px 20px;
}

.middle_of_sequence .internal_mes_wrapper,
.last_of_sequence .internal_mes_wrapper,
.last_message .internal_mes_wrapper {
    margin: 0px 0 0 0 !important;
}

.message_out .sender_image {
    margin: 8px;
}

.first_of_sequence.message_out .internal_mes_wrapper,
.single_message.message_out .internal_mes_wrapper {
    margin: 0px 0 0 0 !important;
}

.sender_image_cell {
    vertical-align: bottom;
    min-width: 16px;
}

.message_in .sender_image_cell {
    min-width: 56px;
}

.dummy_cell {
    padding: 0;
}

.timestamp_cell {
    padding: 0;
    max-width: 0px;
    overflow: visible;
    white-space: nowrap;
}

.timestamp_cell_out {
    padding: 0;
    text-align: right;
    direction: rtl;
    max-width: 0px;
    overflow: visible;
    white-space: nowrap;
}

table {
    border-collapse: collapse;
    border-spacing: 0 0px;
    margin: 0;
    padding: 0;
}

.message_text {
    word-break: break-all;
    word-wrap: hyphenate;
}

pre {
    white-space: pre-wrap;
}

.message:hover:not(.message_type_contact) .menu_interaction {
    display: block;
    opacity: 1;
}

.message_type_text .internal_mes_wrapper {
    padding: 0;
}

.first_of_sequence .internal_mes_wrapper {
    padding: 0.1em 0 0 0;
}

.menuoption {
    user-select: none;
    cursor: pointer;
}

.nav-button {
    width: 30px;
    height: 30px;
    margin: 6px;
    padding: 2px;
}

.nav-button.deactivated {
    width: 30px;
    height: 30px;
    margin: 6px;
    padding: 2px;
}

#sendMessage {
    padding: 7px;
}

#nav-contactid-alias {
    font-weight: 500;
    font-size: 1em;
    font-family: 'Segoe UI Emoji';
}

#nav-contactid-bestId {
    font-weight: 100;
    font-size: .7em;
    font-family: Verdana;
    color: #c0c0c0;
}

#typing_indicator_container {
    display: none;
    padding-bottom: 1.5em !important;
    margin-top: 4px;
}
