.marvel-device .screen {
    text-align: left;
}

.screen-container {
    height: 100%;
    width: 98%;
}

.chat {
    height: calc(100% - 14px);
}

.chat-messages {
    height: calc(100% - 69px);
    display: none;
    width: 98%;
    position: absolute;
    left: 0;
}

.chat-container {
    height: 100%;
    margin-right: -5px;
}

.user-bar {
    height: 55px;
    background: #535353;
    color: #fff;
    padding: 0 8px;
    font-size: 24px;
    position: relative;
    z-index: 1;
}

    .user-bar:after {
        content: "";
        display: table;
        clear: both;
    }

    .user-bar div {
        float: left;
        transform: translateY(-50%);
        position: relative;
        top: 50%;
    }

    .user-bar .actions {
        float: right;
        margin: 0px;
    }

        .user-bar .actions.more {
            margin: 0px 12px 0 22px;
        }

        .user-bar .actions.attachment {
            margin: 0 0 0 20px;
        }

            .user-bar .actions.attachment i {
                display: block;
                transform: rotate(-45deg);
            }

    .user-bar .avatar {
        margin: 0 0 0 5px;
        width: 36px;
        height: 36px;
    }

        .user-bar .avatar img {
            border-radius: 50%;
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
            display: block;
            width: 36px;
            height: 36px;
        }

    .user-bar .name {
        font-size: 15px;
        font-weight: 600;
        text-overflow: ellipsis;
        letter-spacing: 0.3px;
        margin: 0 0 0 5px;
        overflow: hidden;
        white-space: nowrap;
        width: 65%;
    }

    .user-bar .status {
        display: block;
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 0;
    }

.conversation { /*height: calc(100% - 12px);*/
    position: relative;
    background-color: #F2F2F2;
    repeat;
    z-index: 0;
    height: auto;
}

    .conversation ::-webkit-scrollbar {
        transition: all .5s;
        width: 5px;
        height: 1px;
        z-index: 10;
    }

    .conversation ::-webkit-scrollbar-track {
        background: transparent;
    }

    .conversation ::-webkit-scrollbar-thumb {
        background: #b3ada7;
    }

    .conversation .conversation-container { /*height: calc(100% - 68px);*/
        box-shadow: inset 0 10px 10px -10px #000000;
        overflow-x: hidden;
        padding: 0 16px;
        margin-bottom: 5px; /*min-height:350px;*/
        height: 300px;
        overflow: scroll;
        width: 99%;
    }

        .conversation .conversation-container:after {
            content: "";
            display: table;
            clear: both;
        }

.message {
    color: #000;
    clear: both;
    line-height: 18px;
    font-size: 15px;
    padding: 8px;
    position: relative;
    margin: 8px 0;
    max-width: 85%;
    word-wrap: break-word;
    z-index: -1;
}

.messag:after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
}

.metadata {
    display: inline-block;
    float: right;
    padding: 0 0 0 7px;
    position: relative;
    bottom: -4px;
}

    .metadata .time {
        color: rgba(0, 0, 0, .45);
        font-size: 11px;
        display: inline-block;
    }

    .metadata .tick {
        display: inline-block;
        margin-left: 2px;
        position: relative;
        top: 4px;
        height: 16px;
        width: 16px;
    }

        .metadata .tick svg {
            position: absolute;
            transition: .5s ease-in-out;
        }

            .metadata .tick svg:first-child {
                -webkit-backface-visibility: hidden;
                backface-visibility: hidden;
                -webkit-transform: perspective(800px) rotateY(180deg);
                transform: perspective(800px) rotateY(180deg);
            }

            .metadata .tick svg:last-child {
                -webkit-backface-visibility: hidden;
                backface-visibility: hidden;
                -webkit-transform: perspective(800px) rotateY(0deg);
                transform: perspective(800px) rotateY(0deg);
            }

    .metadata .tick-animation svg:first-child {
        -webkit-transform: perspective(800px) rotateY(0);
        transform: perspective(800px) rotateY(0);
    }

    .metadata .tick-animation svg:last-child {
        -webkit-transform: perspective(800px) rotateY(-179.9deg);
        transform: perspective(800px) rotateY(-179.9deg);
    }

.message:first-child {
    margin: 16px 0 8px;
}

.message.received {
    background: #fff;
    border-radius: 0px 5px 5px 5px;
    float: left;
}

    .message.received .metadata {
        padding: 0 0 0 16px;
    }

    .message.received:after {
        border-width: 0px 10px 10px 0;
        border-color: transparent #fff transparent transparent;
        top: 0;
        left: -10px;
    }

.message.sent {
    background: #e1ffc7;
    border-radius: 5px 0px 5px 5px;
    float: right;
}

    .message.sent:after {
        border-width: 0px 0 10px 10px;
        border-color: transparent transparent transparent #e1ffc7;
        top: 0;
        right: -10px;
    }

.conversation-compose {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    overflow: hidden;
    height: 50px;
    width: 100%;
    z-index: 2;
    margin: 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

    .conversation-compose div, .conversation-compose input {
        background: #fff;
        height: 100%;
    }

    .conversation-compose .emoji {
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 5px 0 0 5px;
        flex: 0 0 auto;
        margin-left: 8px;
        width: 48px;
    }

    .conversation-compose .input-msg {
        border: 0;
        flex: 1 1 auto;
        font-size: 16px;
        margin: 0;
        outline: none;
        min-width: 50px;
    }

    .conversation-compose .photo {
        flex: 0 0 auto;
        border-radius: 0 0 5px 0;
        text-align: center;
        position: relative;
        width: 48px;
    }

        .conversation-compose .photo:after {
            border-width: 0px 0 10px 10px;
            border-color: transparent transparent transparent #fff;
            border-style: solid;
            position: absolute;
            width: 0;
            height: 0;
            content: "";
            top: 0;
            right: -10px;
        }

        .conversation-compose .photo i {
            display: block;
            color: #7d8488;
            font-size: 24px;
            transform: translate(-50%, -50%);
            position: relative;
            top: 50%;
            left: 50%;
        }

    .conversation-compose .send {
        background: transparent;
        border: 0;
        cursor: pointer;
        flex: 0 0 auto;
        margin-left: 8px;
        margin-right: 8px;
        padding: 0;
        position: relative;
        outline: none;
    }

        .conversation-compose .send .circle {
            background: #535353;
            border-radius: 50%;
            color: #fff;
            position: relative;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 5px;
        }

            .conversation-compose .send .circle i {
                font-size: 16px;
            }

@media (max-width: 332px) {
    .marvel-device.nexus5 {
        border-radius: 0;
        flex: none;
        padding: 0;
        max-width: none;
        overflow: hidden;
        height: 100%;
        width: 100%;
    }

    .marvel-device > .screen .chat {
        visibility: visible;
    }

    .marvel-device {
        visibility: hidden;
    }

        .marvel-device .status-bar {
            display: none;
        }

    .screen-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 98%;
    }

    .conversation {
        height: calc(100vh - 55px);
    }

        .conversation .conversation-container {
            height: calc(100vh - 120px);
        }
}

.screen {
    width: 100%;
    height: 100%;
    display: block;
}
/*.chat-head {box-shadow: 0px 2px 5px #aaa;}*/
/*i {color: white;cursor: pointer;}*/
.fa-users {
    zoom: 110%;
}

#chats-title {
    background-color: #f29902;
    color: #fff;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: bold;
    z-index: 9999;
}

.mainbody {
    height: 80%;
    overflow-x: hidden;
    background: #fff;
    color: #000;
}

    .mainbody::-webkit-scrollbar {
        width: 0.4em;
    }

    .mainbody::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    }

    .mainbody::-webkit-scrollbar-thumb {
        background-color: darkgrey;
        outline: 1px solid slategrey;
    }

.people {
    border-bottom: 1px solid #eee;
    cursor: pointer;
    background: #fff;
    margin: 0;
    height: 63px;
    font-family: "Roboto", sans-serif;
    font-size: 90%;
    padding: 5px;
}

.peoplea {
    width: 50px;
    color: #000;
    border-radius: 40px;
    display: inline;
    float: left;
    clear: right;
    margin: 0px;
    margin-right: 8px;
    height: 50px;
    border: 1px solid #ccc;
    margin-left: 10px;
}

.peoplen {
    font-weight: 600;
    margin-bottom: -10px;
    color: #000;
    margin-top: 3px;
    font-size: 15px;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
    overflow: hidden;
    white-space: nowrap;
    width: 65%;
}

.peoplem {
    padding-bottom: 10px;
    margin-bottom: 0px;
    margin-left: 75px;
    font-size: 13px;
    color: #454545;
    margin-top: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    white-space: normal;
    height: 20px;
}

.gorulduIkon {
    position: relative;
    margin-top: 12px;
    float: left;
    color: skyblue;
    margin-right: 5px;
}

.dates {
    display: inline;
    float: right;
    margin-top: 0px;
    color: rgba(0,0,0,.4);
    font-size: 12px;
}

.chat-date {
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    margin: 10px;
}

    .chat-date p {
        font-size: 12px;
        background-color: #E3E3E3;
        border-radius: 10px;
        color: #999;
        padding: 2px 20px;
        width: auto;
        margin: 0;
        display: inline-block !important;
    }

.chat-redpoint {
    display: inline-block;
    padding: 2px;
    line-height: 16px;
    text-align: center;
    font-size: 0.1em;
    border-radius: 16px;
    color: #fff;
    background: #F00;
    position: absolute;
    top: 0px;
    right: 5px;
    margin-right: -15px;
}
