body,
html {
    -ms-scroll-chaining: none;
    overscroll-behavior: none;
    font-family: system-ui, -apple-system, unset !important;
}

.text-primary {
    color: #007bff;
}

.text-info {
    color: #17a2b8;
}

.chat-input {
    border: 0px;
    height: 45px;
    padding: 0px 20px;
    outline: none;
    border: none;
    font-size: 0.8rem;
}

.chat-button {
    border: 0px;
    padding: 0px 22px;
    font-weight: bold;
    text-transform: uppercase;
    padding-top: 5px;
}

.status-bar {
    font-size: 0.6rem;
    color: #6c757d;
}

[hidden] {
    display: none !important;
}

body[data-bs-theme='dark'] {
    background-color: #171717;
    color: #fff;
}

[data-bs-theme='dark'] .border-top,
[data-bs-theme='dark'] .border-bottom,
[data-bs-theme='dark'] .border-start,
[data-bs-theme='dark'] .border-end {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.bar-bg {
    background-color: #EEE;
    color: #333;
}

[data-bs-theme='dark'] .bar-bg {
    background-color: rgba(0, 0, 0, 0.2);
    color: #EEE;
}

[data-bs-theme='dark'] .text-muted {
    color: rgba(255, 255, 255, 0.5) !important
}

.chat-message {
    font-size: 0.8rem;
}



.loading-screen {
    color: #1e1e1e;
}

[data-bs-theme='dark'] .loading-screen {
    background-color: #000000;
    color: #fff;
}


.spin-2s {
    -webkit-animation-name: animation-spin;
    animation-name: animation-spin;
    -webkit-animation-duration: 2000ms;
    animation-duration: 2000ms;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
}

@-webkit-keyframes animation-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes animation-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.smaller {
    font-size: 0.5rem;
}

.h-100-keyboard {
    height: calc(100% - env(keyboard-inset-height, 0px)) !important;
    transition: 0.2s;
}

.topbar {
    border-bottom: 2px solid #00769e;
    background-color: #f0f0f0;
}

[data-bs-theme='dark'] .topbar {
    border-bottom: 2px solid #00769e;
    background-color: rgba(0, 0, 0, 0.25);
}

.chat-message {
    max-width: 90%;
    margin: 10px 10px 10px 10px;
    padding: 1rem !important;
    padding-bottom: 0px !important;
    font-size: 0.8;
    border-bottom: 3px solid #00769e;
    border-radius: 4px;
}


.self .chat-message {
    border-bottom: 3px solid #8c9fa5;
}

[data-bs-theme='dark'] .chat-message {
    background-color: #282828;
    color: #fff;
}

.chat-message {
    background-color: #fff;
    color: #000;
}


.chat-bar {
    padding: 5px;
    color: #fff;
    background-color: #282828;
}

.chat-input.classic {
    background-color: #fff !important;
    height: 35px;
    color: #000;
    padding: 7px !important;
}

.chat-input.classic::-webkit-input-placeholder {
    color: #9a9a9a;
}

.chat-input.classic::-moz-placeholder {
    color: #9a9a9a;
}

.chat-input.classic:-ms-input-placeholder {
    color: #9a9a9a;
}

.chat-input.classic::-ms-input-placeholder {
    color: #9a9a9a;
}

.chat-input.classic::placeholder {
    color: #9a9a9a;
}


.chat-input.classic:focus,
.chat-input.classic:active {
    box-shadow: inset 0px 0px 0px 3px #0284c4;
}


.chat-message:after {
    content: ' ';
    position: relative;
    width: 0;
    height: 0;
    right: auto;
    top: auto;
    bottom: 0px;
    border: 12px solid;
}

.chat-message:after {
    left: calc(100% - 8px);
    border-color: transparent #FFF transparent transparent;
}

.chat-message.self:after {
    left: -16px !important;
    border-color: transparent transparent transparent #FFF;
}


[data-bs-theme='dark'] .chat-message:not(.self):after {
    border-color: transparent #282828 transparent transparent;
}

[data-bs-theme='dark'] .chat-message:after {
    border-color: transparent transparent transparent #282828;
}


.text-white {
    color: #fff;
}

.chat-area {
    background-color: #dadada;
}

[data-bs-theme='dark'] .chat-area {
    background-color: transparent;
}


.chat-message:not(.self) {
    float: right;
    width: 100%;
}

.message-card {
    width: 100%;
    display: inline-block;
}

.message-card:hover {
    background-color: rgba(0,0,0,0.1)
}

.inner-message+.inner-message {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.inner-message {
    padding: 5px 0px;
}

.inner-message:first-child {
    padding-top: 0px;
}


.top-window-bar {
    height: 50px;
    background: rgb(0, 125, 192);
    background: linear-gradient(180deg, rgba(3, 132, 200, 1) 0%, rgba(14, 137, 196, 1) 50%, rgba(22, 105, 139, 1) 100%);
    color: #fff;
    overflow: hidden;
}

.profile-picture {
    height: 50px;
    width: 50px;
    background-color: #000000;
}

.profile-picture.big {
    height: 75px;
    width: 75px;
    background-color: #000;
}

.profile-picture.small {
    height: 40px;
    width: 40px;
    background-color: #000;
}

.friend-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2)
}

[data-bs-theme='dark'] .friend-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.section-divider {
    padding: 0.2rem 0.7rem;
    border-bottom: 2px solid #00769e;
    font-weight: bold;
    font-size: 0.7rem;
}


.message-icon {
    background-position: center;
    background-size: 15px 15px !important;
    width: 15px;
    height: 15px;
    display: inline-block;
    margin-right: 3px;
}

.message-icon.sent {
    background: url("../images/message-status/delivered.png") no-repeat;
}

.message-icon.read {
    background: url("../images/message-status/readed.png") no-repeat;
}

.message-icon.pending {
    background: url("../images/message-status/undelivered.png") no-repeat;
}

.message-icon.recieved {
    background: url("../images/message-status/recieved.png") no-repeat;
}

.message-icon.unseen {
    background: url("../images/message-status/unseen.png") no-repeat;
}

.message-icon.notsent {
    background: url("../images/message-status/notsent.png") no-repeat;
}

.profile-picture {
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-picture img {
    width: 100%;
}

.profile-picture .after {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding-left: 5px;
    background-color: rgba(0, 0, 0, 0.3);
}


.page {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.top-window-bar {
    z-index: 9999;
}

.profile-picture.focused {
    outline: 2px solid #00769e;
}

.message-text {
    width: 100%;
    word-wrap: break-word;
}

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre;
    width: 0px;
}

.message-body .content {
    border-radius: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    -ms-border-radius: 0px;
    -o-border-radius: 0px;
}

/* .message-body .content:active,
.message-body .content:hover,
.message-body .content:focus 
{
    background-color: rgba(0, 0, 0, 0.1);
} */

.message-image {
    -o-object-fit: contain;
    object-fit: contain;
    width: 94%;
    border-radius: 5px;
}

.text-light {
    color: #dee2e6;
}

.h-100-keyboard {
    height: calc(100% - env(keyboard-inset-height, 0px)) !important;
    transition: 0.2s;
}

.bg-black-50 {
    background-color: rgba(0, 0, 0, 0.50);
}

.bg-fadedarken {
    background: rgb(0, 0, 0);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.btn-transparent {
    border: 2px solid rgb(0 0 0 / 20%);
    background-color: rgba(0, 0, 0, 0.2);
}


.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:not([disabled]):hover {
    opacity: 0.8;
}

.text-success-highlight {
    color: #36c98e;
}

.bg-success {
    background-color: #36c98e;
}

.bg-danger {
    background-color: #ff5c75;
}

.message-card audio {
    width: 100%;
    height: 40px;
}


.performance-mode .profile-picture img {
    display: none !important;
}

.message-reply {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 8px;
    background-color: rgba(210, 210, 210, 0.3)
}

[data-bs-theme='dark'] .message-reply {
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
}

textarea {
    resize: none;
}

.row>* {
    padding-right: 12px;
    padding-left: 12px;
}

.row {
    margin-right: -12px;
    margin-left: -12px;
}

.message-body video {
    width: 100%
}

.top-window-bar.matrix {
    background: linear-gradient(180deg, rgb(22 22 22) 0%, rgb(0 0 0) 100%);
}

[data-bs-theme='dark'] .bridges-container {
    background-color: rgba(0, 0, 0, 0.3);
}

.list-item {
    cursor: pointer;
}



.bridge-tab {
    border-radius: 0px;
    font-weight: bold;
    white-space: pre;
    transition: 0.2s;
    cursor: pointer;
}

.bridge-tab:not(.active):hover,
.bridge-tab:not(.active):focus {
    box-shadow: inset 0px -3px 0px #00769e;
}

.bridge-tab.active {
    background-color: #00769e !important;
    color: #fff !important;
    transition: 0.2s;
}

.bridge-tab.active {
    background: rgba(0, 0, 0, 0.03);
}

[data-bs-theme='dark'] .bridge-tab.active {
    background: rgba(255, 255, 255, 0.1);
}

.profile-picture.list-item:hover .after,
.profile-picture.list-item:focus .after {
    background-color: #00769e;
    color: #fff;
}

* {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
    -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important;
    outline: none !important;
}

.top-window-bar:hover,
.top-window-bar:focus {
    opacity: 0.7;
}

.list-item:hover,
.list-item:focus,
.list-item:active,
.list-item.focused {
    background-color: #00769e;
    color: #fff !important;
}

.form-control:focus {
    box-shadow: inset 0 0 0 1px #00769e;
}

.bottom-bar .bar-option.active:focus {
    opacity: 0.65
}

.user-name {
    text-overflow: ellipsis;
    white-space: pre;
    overflow: hidden;
}

.backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.list-group .list-group-item, .builder-container {
    background-color: #ebebeb !important;
    color: #333333;
    border-color: rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid;
    padding: 12px
}

[data-bs-theme="dark"] .list-group .list-group-item,  [data-bs-theme="dark"] .builder-container {
    background-color: #282828 !important;
    color: #fff;
    border-color: #333333 !important;
}


img.emoji {
    height: 1em;
    width: 1em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.1em;
 }


 .progress {
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5)
}

.progress-bar {
    background-color: #ffffff;
    color: #555;
    border-radius: 15px !important;
    font-weight: normal;
}

.message-space {
    width: 100%;
}



.type-option {
    width: 75px;
    text-align: center;
    border-left: 1px solid;
    border-right: 1px solid;
    border-color: rgba(255, 255, 255, 0.05);
}

.type-option:first-child {
    border-left: 0px solid;
}

.type-option:last-child {
    border-right: 0px solid;
}


select option {
    color: black;
}