/*
Copyright 2015, 2016 OpenMarket Ltd

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

.mx_RoomView {
    word-wrap: break-word;
    position: relative;

    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    width: 100%;

    flex-direction: column;
    -webkit-flex-direction: column;
}

.mx_RoomView .mx_RoomHeader {
    -webkit-box-ordinal-group: 1;
    -moz-box-ordinal-group: 1;
    -ms-flex-order: 1;
    -webkit-order: 1;
    order: 1;

    -webkit-flex: 0 0 83px;
    flex: 0 0 83px;
}

.mx_RoomView_fileDropTarget {
    min-width: 0px;
    max-width: 960px;
    width: 100%;
    font-size: 20px;
    text-align: center;

    pointer-events: none;

    padding-left: 12px;
    padding-right: 12px;
    margin-left: -12px;

    -webkit-border-top-left-radius: 10px;
    -webkit-border-top-right-radius: 10px;
    -moz-border-radius-topleft: 10px;
    -moz-border-radius-topright: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;

    background-color: rgba(255, 255, 255, 0.9);
    border: 2px #e1dddd solid;
    border-bottom: none;
    position: absolute;
    top: 83px;
    bottom: 0px;
    z-index: 3000;
}

.mx_RoomView_fileDropTargetLabel {
    top: 50%;
    width: 100%;
    margin-top: -50px;
    position: absolute;
}

.mx_RoomView_auxPanel {
    -webkit-box-ordinal-group: 2;
    -moz-box-ordinal-group: 2;
    -ms-flex-order: 2;
    -webkit-order: 2;
    order: 2;

    min-width: 0px;
    max-width: 960px;
    width: 100%;
    margin: auto;

    overflow: auto;
    border-bottom: 1px solid #eee;

    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
}

.mx_RoomView_messagePanel {
    -webkit-box-ordinal-group: 3;
    -moz-box-ordinal-group: 3;
    -ms-flex-order: 3;
    -webkit-order: 3;
    order: 3;

    -webkit-flex: 1 1 0;
    flex: 1 1 0;

    width: 100%;

    overflow-y: auto;
}

.mx_RoomView_messageListWrapper {
    max-width: 960px;
    margin: auto;
    
    min-height: 100%;

    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    flex-direction: column;
    -webkit-flex-direction: column;

    justify-content: flex-end;
    -webkit-justify-content: flex-end;
}

.mx_RoomView_MessageList {
    width: 100%;
    list-style-type: none;
    padding: 0px;
}

.mx_RoomView_MessageList li {
    clear: both;
}

.mx_RoomView_MessageList h2 {
    clear: both;
    margin-top: 32px;
    margin-bottom: 8px;
    margin-left: 63px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.mx_RoomView_invitePrompt {
    -webkit-box-ordinal-group: 2;
    -moz-box-ordinal-group: 2;
    -ms-flex-order: 2;
    -webkit-order: 2;
    order: 2;

    min-width: 0px;
    max-width: 960px;
    width: 100%;
    margin: auto;

    margin-top: 12px;
    margin-bottom: 12px;
}

hr.mx_RoomView_myReadMarker {
    border-top: solid 1px #76cfa6;
    border-bottom: none;
}

.mx_RoomView_statusArea {
    -webkit-box-ordinal-group: 4;
    -moz-box-ordinal-group: 4;
    -ms-flex-order: 4;
    -webkit-order: 4;
    order: 4;

    width: 100%;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
}

.mx_RoomView_statusAreaBox {
    max-width: 960px;
    margin: auto;
    min-height: 36px;
}

.mx_RoomView_statusAreaBox_line {
    border-top: 1px solid #eee;
    height: 1px;
}

.mx_RoomView_inCall .mx_RoomView_statusAreaBox_line {
    border-top: 1px hidden;
}

.mx_RoomView_inCall .mx_MessageComposer_wrapper {
    border-top: 2px hidden;
}

.mx_RoomView_inCall .mx_RoomView_statusAreaBox {
    background-color: #76CFA6;
    color: #fff;
    position: relative;
}

.mx_RoomView_voipChevron {
    position: absolute;
    bottom: -11px;
    right: 11px;
}

.mx_RoomView_voipButton {
    float: right;
    margin-right: 13px;
    cursor: pointer;
}

.mx_RoomView_voipButton object {
    pointer-events: none;
}

.mx_RoomView_unreadMessagesBar {
    color: #ff0064;
    cursor: pointer;
    margin-top: 5px;
}

.mx_RoomView_unreadMessagesBar img {
    padding-left: 10px;
    padding-right: 22px;
    vertical-align: middle;
}

.mx_RoomView_callBar {
    margin-top: 5px;
}

.mx_RoomView_callBar img {
    padding-left: 13px;
    padding-right: 30px;
    vertical-align: middle;
}

.mx_RoomView_connectionLostBar {
    margin-top: 19px;
    height: 58px;
}

.mx_RoomView_connectionLostBar img {
    padding-left: 10px;
    padding-right: 22px;
    vertical-align: middle;
    float: left;
}

.mx_RoomView_connectionLostBar_title {
    color: #ff0064;
}

.mx_RoomView_connectionLostBar_desc {
    color: #454545;
    font-size: 13px;
    opacity: 0.5;
}

.mx_RoomView_resend_link {
    color: #454545 ! important;
    text-decoration: underline ! important;
    cursor: pointer;
}

.mx_RoomView_tabCompleteBar {
    margin-top: 5px;
    margin-left: 65px;
    color: #4a4a4a;
}

.mx_RoomView_typingBar {
    margin-top: 6px;
    margin-left: 65px;
    color: #4a4a4a;
    opacity: 0.5;
}

.mx_RoomView_tabCompleteImage,
.mx_RoomView_typingImage {
    display: inline;
    margin-left: -50px;
    margin-top: -4px;
    float: left;
}

.mx_RoomView_tabCompleteImage {
    opacity: 0.5;    
}

.mx_RoomView_typingText {
    overflow-y: hidden;
    display: block;
}

.mx_RoomView_tabCompleteWrapper {
    display: flex;
    display: -webkit-flex;
    height: 24px;
}

.mx_RoomView_tabCompleteWrapper .mx_TabCompleteBar {
    flex: 1 1 auto;
    -webkit-flex: 1 1 auto;
}

.mx_RoomView_tabCompleteEol {
    flex: 0 0 auto;
    -webkit-flex: 0 0 auto;
    color: #76CFA6;
}

.mx_RoomView_tabCompleteEol object {
    vertical-align: middle;
    margin-right: 8px;
    margin-top: -2px;
}

.mx_RoomView .mx_MessageComposer {
    -webkit-box-ordinal-group: 5;
    -moz-box-ordinal-group: 5;
    -ms-flex-order: 5;
    -webkit-order: 5;
    order: 5;

    width: 100%;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-right: 2px;
}

.mx_RoomView_ongoingConfCallNotification {
    width: 100%;
    text-align: center;
    background-color: #ff0064;
    color: #fff;
    font-weight: bold;
    padding: 6px 0;
}
