/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

html, body {
    margin: 0 0.5rem;
    font-family: "Verdana";
    font-weight: 300;
    height: 100%;
    width: 100%;
    color: #BFBFBF;
    background: #343a40;
    overflow: hidden;
}

form {
    padding-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

    form label {
        font-size: 1.5rem;
        font-weight: bold;
    }

input {
    font-family: "Lato";
}

a {
    color: #0000ff;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

#wrapper,
#loginform {
    margin: 0 auto;
    padding-bottom: 0px;
    background: #222222;
    height: 99%;
    width: 99%;
    max-width: 100%;
    border: 2px solid #222222;
    border-radius: 4px;
}

#loginform {
    padding-top: 18px;
    text-align: center;
}

    #loginform p {
        padding: 15px 25px;
        font-size: 1.4rem;
        font-weight: bold;
    }

.user-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #512DA8;
    font-size: 35px;
    color: #fff;
    text-align: center;
    line-height: 100px;
    margin: 20px 0;
    text-shadow: 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000, -1px 0 0 #000;
}

.user-picture {
    width: 100px;
    height: 100px;
}

img.user-picture-status {
    width: 30px;
    height: 30px;
    margin-right: 5px;
    cursor: pointer;
}

.user-initials-status {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    text-align: center;
    line-height: 30px;
    margin-right: 5px;
    display: inline-block;
    text-shadow: 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000, -1px 0 0 #000;
    cursor: pointer;
}

img.user-picture-chat {
    width: 30px;
    height: 30px;
    margin-right: 5px;
    cursor: pointer;
}

.user-initials-chat {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    text-align: center;
    line-height: 30px;
    margin-right: 5px;
    display: inline-block;
    text-shadow: 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000, -1px 0 0 #000;
    cursor: pointer;
}

.userstatusbox {
    text-align: left;
    color: black;
    background: lightgray;
    height: calc(100vh - 140px);
    overflow: auto;
}

.chatbox {
    text-align: left;
    color: black;
    background: lightgray;
    height: calc(100vh - 110px);
    overflow: hidden;
}
    .chatbox:hover {
        overflow: overlay;
    }

@media only screen and (max-width: 600px) {

    .chatbox {
        height: calc(100vh - 110px);
    }
    .userstatusbox {
        height: calc(100vh - 145px);
    }
}

#usermsg {
    flex: 1;
    border-radius: 4px;
    border: 1px solid black;
    background: lightgray;
}

#name {
    border-radius: 4px;
    border: 1px solid black;
    padding: 2px 8px;
}

#submitmsg,
#enter {
    background: gray;
    border: 2px solid black;
    color: white;
    padding: 4px 10px;
    font-weight: bold;
    border-radius: 4px;
}

.error {
    color: #ff0000;
}

#menu {
    padding: 15px 25px;
    display: flex;
}

    #menu p.welcome {
        flex: 1;
    }

a#exit {
    color: white;
    background: gray;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.msgln {
    margin: 0 0 5px 0;
}

    .msgln span.left-info {
        color: orangered;
    }

    .msgln span.chat-time {
        color: #666;
        font-size: 60%;
        vertical-align: super;
    }

    .msgln b.user-name, .msgln b.user-name-left {
        font-weight: bold;
        background: #546e7a;
        color: white;
        padding: 2px 4px;
        font-size: 90%;
        border-radius: 4px;
        margin: 0 5px 0 0;
    }

    .msgln b.user-name-left {
        background: orangered;
    }

.menu-icon {
    color: #292b2c;
    margin-right: 5px;
}

.tooltip-inner {
    text-align: left;
    display: inline-block;
    min-width: max-content;
}

.nav-link.disabled {
    cursor: not-allowed;
    pointer-events: all !important;
}

.nav-link:not(disabled) {
    cursor: pointer;
}

button:disabled {
    cursor: default;
    color: lightgray;
    background-color: white;
    pointer-events: none;
}

.esri-feature-fields__field-header {
    white-space: nowrap;
}

.esri-feature-fields__field-data {
    white-space: nowrap;
}

.invisible {
    visibility: collapse;
}

.esri-expand .esri-expand__content {
    box-shadow: none;
}

.esri-view-height-xsmall .esri-ui-corner .esri-expand .esri-legend.esri-widget,
.esri-view-height-small .esri-ui-corner .esri-expand .esri-legend.esri-widget {
    max-height: 100%;
}

.esri-view-width-less-than-small .esri-zoom .esri-widget--button {
    display: none;
}

.ms-n5 {
    margin-left: 5px;
}

.search-spinner-textbox {
    margin-left: -35px;
}

.search-spinner {
    margin-top: 4px;
    z-index: 1000;
}

/* Start by setting display:none to make this hidden.
   Then we position it in relation to the viewport window
   with position:fixed. Width, height, top and left speak
   for themselves. Background we set to 80% white with
   our animation centered, and no-repeating */
.modal-waiting {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba( 255, 255, 255, .8 ) url('http://i.stack.imgur.com/FhHRx.gif') 50% 50% no-repeat;
}

/* When the body has the loading class, we turn
   the scrollbar off with overflow:hidden */
body.loading .modal-waiting {
    overflow: hidden;
}

/* Anytime the body has the loading class, our
   modal element will be visible */
body.loading .modal-waiting {
    display: block;
}

.esri-widget__table tr th {
    width: auto !important;
}

.esri-widget__table tr td {
    width: auto !important;
}

.esri-layer-list__item-container {
    color: #FFFFFF !important;
    font-size: 14px !important;
    text-shadow: -1px -1px 0 #000,0 -1px 0 #000,1px -1px 0 #000,1px 0 0 #000,1px 1px 0 #000,0 1px 0 #000,-1px 1px 0 #000,-1px 0 0 #000;
    -webkit-font-smoothing: antialiased;
}

.esri-icon-non-visible,
.esri-icon-visible,
.esri-icon-handle-horizontal {
    color: #FFFFFF !important;
    font-size: 14px !important;
}

.esri-popup__actions-menu-button > *,
.esri-popup__icon {
    text-shadow: none !important;
    color: initial !important;
}

.esri-layer-list__item-action-icon,
.esri-layer-list__item-action {
    text-shadow: none !important;
    color: #000000 !important;
    font-size: 14px;
}

.esri-disabled-element {
    opacity: .4 !important;
    cursor: not-allowed !important;
}

.mainbox {
    background-color: #95c2de;
    margin: 40px;
    max-height: 100vh;
    overflow: auto;
}

.err-header {
    color: #ffffff;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 4rem;
}

.err-msg {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.6rem;
    margin: 40px;
}

.err-footer {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    margin: 40px;
}

.err-copy-intro {
    color: #ffffff;
    font-style: italic;
    font-weight: bolder;
    font-family: 'Nunito Sans', sans-serif;
    font-size: .8rem;
    margin: 40px 40px 10px 40px;
}

.err-details {
    font-family: 'Nunito Sans', sans-serif;
    font-size: .5rem;
    margin: 0px 40px 40px 40px;
}

.navbar-brand {
    width: 170px;
    height: auto
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

br.responsive-sm {
    display: inline;
}

.esri-account-picker {
    text-align: left;
}

.popover {
    max-width: 100%; /* Max Width of the popover (depending on the container!) */
    margin-right: 10px;
}

.user-id {
    border: 1px solid black;
    margin: 5px;
    border-radius: 5px
}
    .user-id.other-device {
        background-color: lightcoral;
    }

.system-message {
    color: firebrick;
    font-style: italic;
}

.btn.disabled,
input[type="button"].disabled,
input[type="text"].disabled
{
    cursor: not-allowed;
}

.alert-fixed {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 9999;
    border-radius: 0px
}

.message-status {
    width: 16px;
    height: 16px;
}

.other-device-message {
    padding: 0;
    margin: 0;
    color: firebrick;
    font-size: 10px;
    font-style: italic;
    font-weight: bold;
    align-self: end;
}

.current-user-mention {
    background-color: #FFFF00;
}

.chatbox-typing-indicator,
.chatbox-message {
    padding: 10px 0px 10px 0px;
}

.user-org {
    font-weight: bold;
    font-size: 16px;
}

.settings-icon {
    cursor: pointer;
}
    .settings-icon.setting-disabled {
        cursor: crosshair;
        pointer-events: none;
    }

.need-to-join-group-message {
    font-size: 16px;
    color: firebrick;
    font-weight: bold;
    font-style: italic;
}

.istatus {
    background-color: lightgray;
    border: 1px solid #e5e5ea;
    border-radius: 0.25rem;
    display: flex;
    flex-direction: column;
    font-size: .8rem;
    white-space: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
    text-overflow: ellipsis;
    padding: 10px 5px 10px 5px;
}
    .istatus:hover {
        overflow-y: overlay;
    }

    .istatus p {
        border-radius: 1.15rem;
        line-height: 1.25;
        max-width: 95%;
        padding: 0.2rem;
        position: relative;
        word-wrap: break-word;
    }

        .istatus p::before,
        .istatus p::after {
            bottom: -0.1rem;
            content: "";
            height: 1rem;
            position: absolute;
        }

.imessage {
    background-color: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 0.25rem;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
}

    .imessage p {
        border-radius: 1.15rem;
        line-height: 1.25;
        max-width: -webkit-fill-available;
        padding: 0.5rem .875rem;
        position: relative;
        word-wrap: break-word;
    }

        .imessage p::before,
        .imessage p::after {
            bottom: -0.1rem;
            content: "";
            height: 1rem;
            position: absolute;
        }

@-moz-document url-prefix() {
    .imessage p {
        max-width: 75%;
    }
}

.imessage-form {
    width: 100%;
}  

.main-area {
    max-height: 90vh;
}

span.timestamp {
    font-size: 10px;
}

span.original-text {
    font-size: 14px;
}

p.user-status {
    white-space: nowrap;
}

    p.user-status > span.chat-user-id {
        display: grid;
        float: left;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 18px;
        max-width: 100%;
        word-wrap: break-word;
    }

p.from-me {
    align-self: flex-end;
    align-content: flex-end;
    background-color: #248bf5;
    color: #fff;
    min-width: 280px;
    max-width: 45vw;
}

    p.from-me::before {
        border-bottom-left-radius: 0.8rem 0.7rem;
        border-right: 1rem solid #248bf5;
        right: -0.35rem;
        transform: translate(0, -0.1rem);
    }

    p.from-me::after {
        background-color: #fff;
        border-bottom-left-radius: 0.5rem;
        right: -40px;
        transform: translate(-30px, -2px);
        width: 10px;
    }

    p.from-me > span.chat-user-id {
        display: none;
    }

    p.from-me > span.timestamp {
        display: block;
        padding: 0px 0px 5px 0px;
        color: lightsteelblue;
        text-align: right;
        white-space: nowrap;
    }

    p.from-me > span.original-text {
        display: block;
        float: right;
        padding: 0px 18px 5px 0px;
        color: lightsteelblue;
        text-align: right;
        max-width: -webkit-fill-available;
        word-wrap: break-word;
        font-style: italic;
        clear: both;
    }

@-moz-document url-prefix() {
    p.from-me > span.original-text {
        max-width: 100vh;
        width: 100%;
    }
}

    p.from-me > span.chat-message {
        display: block;
        float: right;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 18px;
        max-width: -webkit-fill-available;
        word-wrap: break-word;
        margin-right: 18px;
        text-align: right;
    }

@-moz-document url-prefix() {
    p.from-me > span.chat-message:not(.user-initials-chat) {
        max-width: 100vh;
        width: 96%;
    }
}

    p.from-me > span.message-status {
        position: absolute;
        top: 23px;
        right: 12px;
    }

    p.from-me > span.user-picture-chat {
        display: none;
    }
    p.from-me > span.user-initials-chat {
        display: none;
    }

    p[class^="from-"] {
        margin: 0.5rem 0;
        width: fit-content;
    }

p.from-me ~ p.from-me {
    margin: 0.25rem 0 0;
}

    p.from-me ~ p.from-me:not(:last-child) {
        margin: 0.25rem 0 0;
    }

    p.from-me ~ p.from-me:last-child {
        margin-bottom: 0.5rem;
    }

p.from-them {
    align-items: flex-start;
    background-color: #e5e5ea;
    color: #000;
    width: fit-content;
    min-width: 280px;
    max-width: 45vw;
}

    p.from-them:before {
        border-bottom-right-radius: 0.8rem 0.7rem;
        border-left: 1rem solid #e5e5ea;
        left: -0.35rem;
        transform: translate(0, -0.1rem);
    }

    p.from-them::after {
        background-color: #fff;
        border-bottom-right-radius: 0.5rem;
        left: 20px;
        transform: translate(-30px, -2px);
        width: 10px;
    }

    p.from-them > span.chat-user-id {
        display: block;
        color: #0275d8;
        font-size: 14px;
    }

    p.from-them > span.timestamp {
        display: block;
        padding: 0px 0px 5px 0px;
        color: darkgray;
        white-space: nowrap;
    }

    p.from-them > span.original-text {
        display: inline-block;
        padding: 0px 0px 5px 0px;
        color: darkgray;
        max-width: -webkit-fill-available;
        width: 100%;
        word-wrap: break-word;
        font-style: italic;
    }

@-moz-document url-prefix() {
    p.from-them > span.original-text {
        max-width: 100vh;
    }
}

    p.from-them > span.chat-message {
        display: block;
        float: left;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 18px;
        max-width: -webkit-fill-available;
        word-wrap: break-word;
    }

@-moz-document url-prefix() {
    p.from-them > span.chat-message:not(.user-initials-chat, .user-picture-chat) {
        max-width: 100vh;
        width: 100%;
    }
}

    p.from-them > span.message-status {
        display: none;
    }

    .spinner-border {
        animation-duration: 1s;
    }
    .spinner-border.from-me {
        color: white;
    }
    .spinner-border.from-them {
        color: #0275d8;
    }
    .spinner-border.spinner-border-1 {
        animation-delay: -.8s;
    }
    .spinner-border.spinner-border-2 {
        animation-delay: -.6s;
    }
    .spinner-border.spinner-border-3 {
        animation-delay: -.4s;
    }

p[class^="from-"].emoji {
    background: none;
    font-size: 2.5rem;
}

    p[class^="from-"].emoji::before {
        content: none;
    }

.no-tail::before {
    display: none;
}

.margin-b_none {
    margin-bottom: 0 !important;
}

.margin-b_one {
    margin-bottom: 1rem !important;
}

.margin-t_one {
    margin-top: 1rem !important;
}

/* general styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: normal;
    margin: 0;
}

.container {
    margin: 0 auto;
    max-width: 600px;
    padding: 1rem;
}

h1 {
    font-weight: normal;
    margin-bottom: 0.5rem;
}

h2 {
    border-bottom: 1px solid #e5e5ea;
    color: #666;
    font-weight: normal;
    margin-top: 0;
    padding-bottom: 1.5rem;
}

.comment {
    color: #222;
    font-size: 10px;
    align-content: center;
    min-width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.chatbox.imessage {
    padding-bottom: 20px;
}

.image-stack {
    display: grid;
    grid-template-columns: 38px auto;
    grid-auto-rows: 45px;
    position: relative;
    border: solid;
    border-width: 1px;
    border-color: #0275d8;
    border-radius: 15px;
    margin-bottom: 4px;
    padding: 10px 5px 0px 5px;
    min-width: inherit;
    background-color: #e5e5ea;
}
.image-stack__item--top {
    grid-column: 1 / span 1;
    grid-row: 1;
    padding-top: 0px;
}
.image-stack__item--bottom {
    grid-column: 1 / span 1;
    grid-row: 1;
    padding-top: 12px;
    padding-left: 22px;
    z-index: 1;
}
.image-stack__item--text {
    grid-column: 2 / span 1;
    grid-row: 1;
    padding-top: 3px;
    padding-left: 3px;
    z-index: 1;
    min-width: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-status-tooltip {
    cursor: default;
}
.user-status-tooltip-online {
    color: green;
    font-style: italic;
}
.user-status-tooltip-offline {
    color: red;
    font-style: italic;
}

.spinner-border-send-status {
    margin-top: 7px;
}

.img-chatting {
    width: 140%;
    height: auto;
    background-color: transparent;
}

.user-status-tooltip-bold,
.user-info-tooltip-bold {
    font-weight: bold;
}

.no-esri-accounts,
.single-esri-account {
    font-size: 16px;
    font-weight: bold;
}

.resizer {
    width: 3px;
    background-color: darkgray;
    margin: 0px 2px 0px 2px;
    border-radius: 0.25rem;
}

.resizer:hover {
    background-color: lightgray;
    cursor: col-resize;
}

.resizer-left {
    padding: 0px;
    margin: 0px;
    width: 60px;
}

.resizer-right {
    padding: 0px;
    margin: 0px;
    width: auto;
}

.user-status-deviding-line {
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 10px;
    border-bottom: 3px dashed darkred;
    margin-bottom: 10px;
}

.message-send-status-error {
    max-width: 300px;
}

.message-send-status-error-text {
    color: red;
    font-weight: bold;
}

.version {
    text-align: center;
    padding-top: 30px;
}
.version-label, 
.version-value {
    font-size: 10px;
}
.version-label {
    font-weight: bold;
}

nav.navbar.navbar-expand-lg.navbar-dark.bg-dark {
    padding-left: 0px;
}

#fileDropArea {
    border: 2px dashed #FFF;
    border-radius: 10px;
    max-width: 100%;
    height: 71px;
    max-height: 100%;
    font-family: sans-serif;
    font-size: 8px;
    margin-top: 6px;
}

    #fileDropArea.highlight {
        border-color: green;
    }
    #fileDropArea.disabled {
        border: 2px dashed darkgrey;
        cursor: not-allowed;
    }

#fileDropIcon.disabled {
    cursor: not-allowed;
}

.fileDropForm {
    margin-bottom: 10px;
    min-height: 50px;
}

#fileElem {
    display: none;
}

.action-pointer {
    cursor: pointer;
}
.action-pointer.disabled {
    cursor: not-allowed;
}

.file-info-header-text-bubble {
    font-size: 14px;
    font-weight: bold;
    text-decoration: underline;
    margin-bottom: 10px;
}
.file-info-name-text-bubble {
    font-size: 12px;
    display: inline-block;
}
.file-info-text-bubble {
    font-size: 10px;
    margin-left: 10px;
    display: inline-block;
    margin-bottom: 5px;
}

[class*=" icofont-"].icofont-duotone.icofont-add-style:after, [class^=icofont-].icofont-duotone.icofont-add-style:after {
    color: white;
    opacity: 1;
}
[class*=" icofont-"].icofont-duotone.icofont-remove-style:after, [class^=icofont-].icofont-duotone.icofont-remove-style:after {
    color: white;
    opacity: 1;
}
[class*=" icofont-"].icofont-duotone.icofont-file-style:after, [class^=icofont-].icofont-duotone.icofont-file-style:after {
    color: white;
    opacity: 1;
}
[class*=" icofont-"].icofont-duotone.icofont-file-from-me-style:after, [class^=icofont-].icofont-duotone.icofont-file-from-me-style:after {
    color: white;
    opacity: 1;
}
[class*=" icofont-"].icofont-duotone.icofont-file-from-them-style:after, [class^=icofont-].icofont-duotone.icofont-file-from-them-style:after {
    color: cornflowerblue;
    opacity: 1;
}
[class*=" icofont-"].icofont-duotone.icofont-remove-style.icofont-dark:after, [class^=icofont-].icofont-duotone.icofont-remove-style.icofont-dark:after {
    color: black;
    opacity: 1;
}

/*disabled*/
[class*=" icofont-"].icofont-duotone.icofont-add-style.disabled:after, [class^=icofont-].icofont-duotone.icofont-add-style.disabled:after {
    opacity: .5;
}
[class*=" icofont-"].icofont-duotone.icofont-remove-style.disabled:after, [class^=icofont-].icofont-duotone.icofont-remove-style.disabled:after {
    opacity: .5;
}
[class*=" icofont-"].icofont-duotone.icofont-file-style.disabled:after, [class^=icofont-].icofont-duotone.icofont-file-style.disabled:after {
    opacity: .5;
}
[class*=" icofont-"].icofont-duotone.icofont-file-from-me-style.disabled:after, [class^=icofont-].icofont-duotone.icofont-file-from-me-style.disabled:after {
    opacity: .5;
}
[class*=" icofont-"].icofont-duotone.icofont-remove-style.icofont-dark.disabled:after, [class^=icofont-].icofont-duotone.icofont-remove-style.icofont-dark.disabled:after {
    opacity: .5;
}

[class*=" icofont-"].icofont-duotone.icofont-add-style:before, [class^=icofont-].icofont-duotone.icofont-add-style:before {
    color: green;
}
[class*=" icofont-"].icofont-duotone.icofont-remove-style:before, [class^=icofont-].icofont-duotone.icofont-remove-style:before {
    color: red;
}
[class*=" icofont-"].icofont-duotone.icofont-file-style:before, [class^=icofont-].icofont-duotone.icofont-file-style:before {
    color: #0275d8;
}
[class*=" icofont-"].icofont-duotone.icofont-file-from-me-style:before, [class^=icofont-].icofont-duotone.icofont-file-from-me-style:before {
    color: darkorange;
}
[class*=" icofont-"].icofont-duotone.icofont-file-from-them-style:before, [class^=icofont-].icofont-duotone.icofont-file-from-them-style:before {
    color: darkorange;
}