/*
Copyright 2020 Bruno Windels <bruno@windels.cloud>
Copyright 2020 The Matrix.org Foundation C.I.C.

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.
*/

html {
    height: 100%;
}


@media screen and (min-width: 600px) {
    .PreSessionScreen {
        width: 600px;
        box-sizing: border-box;
        margin: 0 auto;
        margin-top: 50px;
    }
}

.SessionView {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.SessionView > .main {
    flex: 1;
    display: flex;
    min-height: 0;
    min-width: 0;
    width: 100vw;
}

/* mobile layout */
@media screen and (max-width: 800px) {
    .RoomHeader button.back { display: block; }
    div.RoomView, div.RoomPlaceholderView { display: none; }
    div.LeftPanel {flex-grow: 1;}
    div.room-shown div.RoomView { display: flex; }
    div.room-shown div.LeftPanel { display: none; }
    div.right-shown div.TimelinePanel { display: none; }
}

.LeftPanel {
    flex: 0 0 300px;
    min-width: 0;
}

.RoomPlaceholderView, .RoomView {
    flex: 1 0 0;
    min-width: 0;
}

.RoomView {
    min-width: 0;
    display: flex;
}


.TimelinePanel {
    flex: 3;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.TimelinePanel .Timeline, .TimelinePanel .TimelineLoadingView {
    flex: 1 0 0;
}

.RoomHeader {
    display: flex;
}
