﻿.Chat__Frame {
    border-bottom: 4px solid #4274bb;
    width: 100%;
    margin: auto;
    padding: 0;
    min-width: 300px;
    min-height: 200px;
    display: flex;
    flex-flow: column;
    min-height:550px;
}


.Chat__Header {
    background-color: #1d3138;
    height:42px;
    box-sizing:border-box;
    padding:11px;
    color:white;
}

.Chat__Box {
    display: flex;
    flex-direction: row;
    flex: 1;
    background-color: #e5e5e5;
    min-height: 508px;
}

.Chat__ChatList {
    background-color: #c9c9c9;
    width: 200px;
    padding-left: 20px;
    padding-top: 10px;
    box-sizing: border-box;
    display: flex;
    flex-flow: column;
    overflow: auto;
    max-height: 508px;
    height: auto;
    transition: visibility 0.5s, width 0.5s linear, padding 0.5s;
    overflow-x: hidden;
}

.Chat__ChatList__Hidden
{
    padding-left:0;
    visibility:hidden;
    width:0px;
}
.Chat__Splitter {
    background-color: #c9c9c9;
    width:15px;
    color: #4375bc;
    cursor: pointer;
    background: url(chat/iSplitter.png) no-repeat center center #c9c9c9;
}

.Chat__Splitter__Closed {
    transform:rotate(180deg);
}

.Chat__Splitter:hover {
    background-color: #b9b9b9;
}

.Chat__Chat {
    display:flex;
    flex-flow:column;
    align-items:stretch;
    flex:1;
    max-height:508px;
    position:relative;
}

.Chat__Blur {
    filter: blur(3px);
    -webkit-filter: blur(3px);
}

.Chat__PlaceHolder {
    position: absolute;
    background-color: rgba(0,0,0,0.6);
    width: 100%;
    height: 100%;
    z-index: 111;
    top: 0;
    left: 0;
    padding: 160px;
    box-sizing: border-box;
    color: white;
    font-size: 14pt;
    background-image:url(chat/longArrow.png);
    background-position: 0px 20px;
    background-repeat:no-repeat;
}

.Chat__Messages {
    height: calc(100% - 80px);
    max-height: calc(100% - 80px);
    padding: 20px;
    overflow: auto;
}

.Chat__Editor {
    height: 80px;
    padding: 0 20px 20px 20px;
    box-sizing: border-box;
    position: relative;
}

.Chat__Frame strong {
    color: #96c320;
}

.Chat__Controls {
    position: absolute;
    z-index: 100;
    position: absolute;
    top: 10px;
    right: 35px
}

.Chat__Button {
    display:inline-block;
    width: 30px;
    height: 30px;
    background: url(ico.png) no-repeat center center;
}

.Chat__Button__Send {
    background-image: url(chat/iSend.png);
}

.Chat__Button__Emo {
    background-image: url(chat/iEmo.png);
}

.Chat__Button__Upload {
    background-image: url(chat/iAttachement.png);
}

.Chat__Emoticons {
    display: block;
    width: 300px;
    min-height: 100px;
    background-color: #c9c9c9;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 10px;
    position: absolute;
    bottom: 35px;
    right: 0;
}


.Chat__Emoticons span {
    cursor: pointer;
    display:inline-block;
}

.Chat__Emoticons .Chat__EmoSubPanel * {
    font-size: 18pt;
}



.Chat__Message__Download {
    background-repeat: no-repeat;
    padding-left: 20px;
}

.Chat__Message__Frame {
    width: 98%;
    padding: 5px;
    margin-bottom: 5px;
    position: relative;
    display:flex;
    flex-flow:column;
    align-items:flex-start;
}


.Chat__Message__Frame.Chat__Message__Owner {
    text-align: right;
    align-items: flex-end;
}

.Chat__Message__Group {
    display: inline-block;
    background-color: #b7d166;
    padding: 10px;
    margin-left: 80px;
    margin-top:5px;
    border-radius: 10px;
    text-align: left;
}


.Chat__Message__Owner .Chat__Message__Group {
    margin-left: 0;
    margin-right: 80px;
    background-color: #ffc073;
}

.Chat__Message__Text {
    display: block;
    width: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

.Chat__Message__Icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #1d3138;
    font-size: 30pt;
    text-transform: capitalize;
    color: #7ea526;
    padding-top: 5px;
    box-sizing: border-box;
    cursor:default;
}


.Chat__Message__Owner .Chat__Message__Icon {
    right: 0;
    left: auto;
    color: #ffc073;
}

.Chat__ImagePriew {
    display:block;
    cursor:pointer;
}

.Image__Backdrop, .Chat__New__Backdrop {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
}



.Image__Image, .Chat__New__Frame {
    max-width: 100%;
    max-height: 100%;
    bottom: 0;
    left: 0;
    margin: auto;
    overflow: auto;
    position: fixed;
    right: 0;
    top: 0;
}

.Chat__New__Frame {
    max-width: 800px;
    max-height: 500px;
    bottom: 0;
    left: 0;
    margin: auto;
    overflow: auto;
    position: fixed;
    right: 0;
    top: 0;
    background-color:white;
    border:3px solid gray;
    border-radius:10px;
    padding:40px;
    z-index:1001;
}

.Chat__New__Button {
    min-width: 200px;
    display: block;
    margin: auto;
    margin-top: auto;
    max-width: 300px;
    font-weight:bold;
    background-color: #c9c9c9;
    padding: 11px;
    text-align: center;
    border-radius: 20px;
    margin-top: 90px;
    color:black;
}

.Chat__New__Button:hover {
    background-color: #b9b9b9;
    text-decoration: none;
}

.Image__Backdrop__Hidden, .Chat__New__Backdrop__Hidden {
    display: none;
}

.Chat__TypeNotification {
    min-height: 20px;
    padding-left: 30px;
    color: #1d3138;
    font-style:italic;
   
}

.Chat__TypeNotification span {
    font-size: 10pt;
}

.Chat__TypeNotification div {
    display: inline-block;
    width: 6px;
    height: 7px;
    border-radius: 50%;
    margin-right: 3px;
    background: #303131;
    animation: wave 1.3s linear infinite;
}

.Chat__TypeNotification div:nth-child(2) {
    animation-delay: -1.1s;
}

.Chat__TypeNotification div:nth-child(3) {
    animation-delay: -0.9s;
}


@keyframes wave {
    0%, 60%, 100% {
        transform: initial;
    }

    30% {
        transform: translateY(-15px);
    }
}


.Chat__ChatList__Item {
    border-bottom: 1px solid #a9a9a9;
    background: url(chat/iHistory.png) no-repeat left top;
    padding: 6px 0 10px 35px;
    color: #1b1b1b;
    font-size:11pt;
    white-space:nowrap;
    min-height:13px;
}

.Chat__ChatList__Item:hover {
    background-color: #b9b9b9;
    text-decoration:none;
}

.Chat__ChatList__NewItem {
    background: url(chat/iadd.png) no-repeat left top;
}

.Chat__Timeout {
    margin-left: 30px;
    padding-left: 30px;
    background: url(ikony/ms/cervena/zaznam_akci.png) no-repeat left center;
    color: red;
}

.Chat__Timelow {
    margin-left: 30px;
    padding-left: 30px;
    background: url(ikony/ms/zluta/zaznam_akci.png) no-repeat left center;
}

.Chat__Time {
    margin-left: 30px;
    padding-left: 30px;
    background: url(ikony/ms/zelena/zaznam_akci.png) no-repeat left center;
}

.Chat__Queue {
    margin-left: 30px;
    padding-left: 30px;
    background: url(ikony/v/cabot/detail_uzivatele.png) no-repeat left center;
    color: red;
}

.Chat__Message__System {
    background-color: gray;
    min-width: 200px;
    margin: 5px auto;
    padding: 6px;
    text-align: center;
    border-radius: 10px;
    max-width: 50%;
    color: white;
    min-height: 20px;
}

.Chat__Close {
    cursor: pointer;
    color: white;
    background: url(chat/iLock.png) no-repeat left top;
    padding-left: 30px;
    height: 22px;
    padding-top: 6px;
    margin-top: -5px;
}

@media (max-width:500px) {
    .Chat__Close {
        max-width: 0px;
        white-space: nowrap;
        text-indent: -9999px;
    }
    .Chat__ImagePriew {
        width:50%;
        height:50%;
    }
}

@media (max-width:400px) {
    .Chat__Timeout, .Chat__Queue, .Chat__Time {
        display: inline-block;
        max-width: 0px;
        white-space: nowrap;
        text-indent: -9999px;
    }
}


.loader {
    max-width:30%;
    max-height:30%;
    color: #6496c8;
    font-size: 20px;
    margin: auto;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    text-indent: -9999em;
    -webkit-animation: load4 1.3s infinite linear;
    animation: load4 1.3s infinite linear;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

@-webkit-keyframes load4 {
    0%, 100% {
        box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0;
    }

    12.5% {
        box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
    }

    25% {
        box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
    }

    37.5% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }

    50% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }

    62.5% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
    }

    75% {
        box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
    }

    87.5% {
        box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
    }
}

@keyframes load4 {
    0%, 100% {
        box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0;
    }

    12.5% {
        box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
    }

    25% {
        box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
    }

    37.5% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }

    50% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }

    62.5% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
    }

    75% {
        box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
    }

    87.5% {
        box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
    }
}