﻿@keyframes rotationStation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#MainContent_ThumlistDisplay1 {
    margin-right: 10px;
}

/*.streams, .big-stream, .streams video {
    transition: width 500ms;
    transition: height 500ms;
}*/
html {
    height: 100%;
}

    html body {
        height: 100%;
    }

        html body audio::-webkit-media-controls-timeline,
        html body video::-webkit-media-controls-timeline {
            display: none !important;
        }

        html body audio::-webkit-media-controls,
        html body video::-webkit-media-controls {
            display: none !important;
        }

        html body .page {
            height: 100%;
        }

            html body .page .left {
                left: 0;
            }

            html body .page .LivestreamMenueIcon {
                position: relative;
                display: flex;
                align-items: center;
            }

                html body .page .LivestreamMenueIcon.thumbs-expanded {
                    height: 50px;
                    background: #19af8c;
                    color: white;
                }

            html body .page .main {
                /*padding-top: 50px;*/
                max-width: 100vw;
                overflow: hidden;
                height: calc(100% - 50px);
            }

                html body .page .main .livestreams {
                    height: 100%;
                    display: flex;
                    flex-direction: row;
                }

                    html body .page .main .livestreams .stream-container {
                        box-sizing: border-box;
                        width: 100%;
                        height: 100%;
                        /*padding: 25px;*/
                        display: flex;
                        align-items: center;
                        justify-content: center;
                    }

                    html body .page .main .livestreams #MainContent_BCthumlistUP {
                        overflow-y: scroll;
                        overflow-x: hidden;
                        height: 100%;
                    }

                    html body .page .main .livestreams .top-controls {
                        position: absolute;
                        top: 0;
                        right: 0;
                        color: white;
                        z-index: 2;
                        font-size: 23px;
                        display: flex;
                        flex-direction: row;
                        transition: opacity 500ms;
                        opacity: 0;
                    }

                        html body .page .main .livestreams .top-controls .fullscreen-button {
                            /*padding: 10px 14px;*/
                            opacity: 0;
                            transition: all 500ms;
                            cursor: pointer;
                            color: white;
                            display: inline-flex;
                            align-items: center;
                            justify-content: center;
                            background: rgba(25, 175, 140, 0.75);
                        }

                            html body .page .main .livestreams .top-controls .fullscreen-button:hover {
                                font-size: 25px;
                            }

                        html body .page .main .livestreams .top-controls .closeout {
                            background: rgba(25, 175, 140, 0.75);
                            display: inline-flex;
                            cursor: pointer;
                            /*padding: 10px 14px;*/
                            opacity: 0;
                            transition: all 500ms;
                            /* border-radius: 0 0 0 25%;
                        box-shadow: -5px 5px 15px 5px rgba(0,0,0,0.5); */
                        }

                            html body .page .main .livestreams .top-controls .closeout:hover {
                                font-size: 25px;
                            }

                    html body .page .main .livestreams .thumb-list {
                        height: calc(100% - 50px);
                        overflow: hidden;
                        min-width: 235px;
                        display: flex;
                        flex-direction: row;
                        position: relative;
                        width: 250px;
                        transition: all 500ms;
                        position: absolute;
                        z-index: 5;
                        background-color: rgba(0, 0, 0, 0.7);
                        border-right: 3px solid #19af8c;
                        opacity: 1;
                    }

                        html body .page .main .livestreams .thumb-list.thumbs-hidden {
                            height: 0;
                            opacity: 0;
                        }

                        html body .page .main .livestreams .thumb-list.expanded {
                            /*.stream-thumbnail {
                                padding-right: 0;
                            }*/
                        }

                        html body .page .main .livestreams .thumb-list .thumb-controls {
                            width: 25px;
                            position: absolute;
                            display: flex;
                            flex-direction: column;
                            top: 50%;
                            left: -100%;
                            z-index: 1;
                            transform: translateY(-50%);
                        }

                            html body .page .main .livestreams .thumb-list .thumb-controls .control {
                                height: 25px;
                                font-size: 18px;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                background: #19af8c;
                                color: white;
                                transition: width 500ms, height 500ms;
                                cursor: pointer;
                            }

                                html body .page .main .livestreams .thumb-list .thumb-controls .control:hover {
                                    height: 35px;
                                    width: 35px;
                                }

                        html body .page .main .livestreams .thumb-list .thumbs {
                            width: 100%;
                            display: flex;
                            flex-direction: column;
                            margin-right: 5px;
                        }

                            html body .page .main .livestreams .thumb-list .thumbs #thumbFilterInput {
                                margin: 5px 0 5px 5px;
                                padding: 5px;
                            }

                        html body .page .main .livestreams .thumb-list .stream-thumbnail {
                            transition: width 500ms;
                            width: 100%;
                            position: relative;
                            margin: 3px 6px;
                            cursor: pointer;
                            min-width: 215px;
                        }

                            html body .page .main .livestreams .thumb-list .stream-thumbnail .camera-info {
                                position: absolute;
                                color: white;
                                top: 0;
                                left: 0;
                                right: 0;
                                bottom: 0;
                                padding-left: 3px;
                                background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.5), transparent);
                            }

                                html body .page .main .livestreams .thumb-list .stream-thumbnail .camera-info .project-name {
                                    display: block;
                                }

                                html body .page .main .livestreams .thumb-list .stream-thumbnail .camera-info .camera-name {
                                    display: block;
                                }

                            html body .page .main .livestreams .thumb-list .stream-thumbnail img {
                                max-width: 100%;
                            }

                    html body .page .main .livestreams .streams {
                        width: 100%;
                        overflow: hidden;
                        width: 100%;
                        display: flex;
                        align-items: flex-start;
                        justify-content: flex-start;
                        flex-direction: row;
                        height: 100%;
                        position: absolute;
                        /*this part is for the loading screen behind the videos*/
                    }

                        html body .page .main .livestreams .streams #MainContent_BCstreamsUP {
                            position: absolute;
                            top: 0;
                            left: 0;
                            bottom: 0;
                            right: 0;
                        }

                            html body .page .main .livestreams .streams #MainContent_BCstreamsUP #MainContent_BCstreamsP .videopanel #player {
                                margin: 0 auto;
                            }

                        html body .page .main .livestreams .streams .loadScreen {
                            position: absolute;
                            top: 0;
                            bottom: 0;
                            left: 0;
                            right: 0;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            background: rgba(0, 0, 0, 0.8);
                        }

                        html body .page .main .livestreams .streams .loadText {
                            color: white;
                        }

                        html body .page .main .livestreams .streams #spinner {
                            transform: rotate(45deg);
                            animation: rotationStation 2s ease-in-out 0s infinite;
                            padding: 10px;
                        }

                        html body .page .main .livestreams .streams .big-stream {
                            width: 100%;
                            padding-top: 56.25%;
                            position: relative;
                            height: 0;
                        }

                            html body .page .main .livestreams .streams .big-stream:hover .top-controls {
                                opacity: 1;
                            }

                                html body .page .main .livestreams .streams .big-stream:hover .top-controls .fullscreen-button, html body .page .main .livestreams .streams .big-stream:hover .top-controls .closeout {
                                    opacity: 1;
                                }

                                html body .page .main .livestreams .streams .big-stream:hover .top-controls .top-logo, html body .page .main .livestreams .streams .big-stream:hover .top-controls .top-logo img {
                                    opacity: 1;
                                }

                            html body .page .main .livestreams .streams .big-stream:hover .stream-info {
                                background-color: rgba(25, 175, 140, 0.75);
                            }

                            html body .page .main .livestreams .streams .big-stream .stream-info {
                                position: absolute;
                                top: 0;
                                left: 0;
                                padding: 5px;
                                color: white;
                                z-index: 1;
                            }

                            html body .page .main .livestreams .streams .big-stream .player {
                                position: absolute;
                                top: 0;
                                bottom: 0;
                                left: 0;
                                right: 0;
                            }

                    html body .page .main .livestreams.two-streams {
                        flex-direction: column;
                    }

                        html body .page .main .livestreams.two-streams .thumb-list .stream-thumbnail img {
                            max-width: 100%;
                        }

                        html body .page .main .livestreams.two-streams .streams {
                            /*background: rgba(0,0,0,0.5);
                            width: 100%;
                            display: flex;
                            flex-direction: row;
                            min-height: 540px;
                            height: 100%;
                            align-items: center;
                            transition: height 500ms;*/
                        }

                            html body .page .main .livestreams.two-streams .streams .big-stream {
                                width: 50%;
                                padding-top: 28.125%;
                                height: 0;
                                position: relative;
                            }

                                html body .page .main .livestreams.two-streams .streams .big-stream .vid-background {
                                    position: absolute;
                                    top: 0;
                                    bottom: 0;
                                    left: 0;
                                    right: 0;
                                    background: rgba(0, 0, 0, 0.5);
                                    display: flex;
                                    align-items: center;
                                    justify-content: center;
                                }

                            html body .page .main .livestreams.two-streams .streams.six-streams .streams {
                                height: 100%;
                            }

                    html body .page .main .livestreams.three-streams .streams {
                        display: flex;
                        flex-direction: row;
                        flex-wrap: wrap;
                    }

                        html body .page .main .livestreams.three-streams .streams .big-stream {
                            width: 50%;
                            padding-top: 28.125%;
                            height: 0;
                        }

                    html body .page .main .livestreams.six-streams .streams {
                        display: flex;
                        flex-direction: row;
                        flex-wrap: wrap;
                        overflow: hidden;
                    }

                        html body .page .main .livestreams.six-streams .streams .big-stream {
                            width: 33.333%;
                            padding-top: 18.6%;
                            height: 0;
                        }

                    html body .page .main .livestreams.seven-streams .streams {
                        display: flex;
                        flex-direction: row;
                        flex-wrap: wrap;
                    }

                        html body .page .main .livestreams.seven-streams .streams .big-stream {
                            width: 33.333%;
                            padding-top: 18.6%;
                            height: 0;
                            max-height: 33.333%;
                        }

                html body .page .main .livestream-control-bar, html body .page .main .footer {
                    display: none;
                }

        html body .footer {
            display: none;
        }

@media screen and (max-width: 1366px) {
    html body .page .main .livestreams.two-streams .streams.expanded {
        /*min-height: 0;
                                    height: 100%;*/
    }

    html body .page .main .livestreams.two-streams .thumb-list.expanded {
        /*.stream-thumbnail {
                                        width: 385px;
                                    }*/
    }
}

/* This is an attempt to correct problems existing only on Firefox: */
/* supposedly targeting internet explorer and safari: */
@supports (-ms-accelerator: true) {
    header {
        flex-direction: row;
        background: red !important;
        height: 50px;
        width: 100%;
        z-index: 3;
    }

        header div.left {
            position: relative;
            align-self: flex-start;
        }

        header .logo {
            padding: 0;
            height: 50px;
            display: flex;
            align-items: center;
            top: 0;
        }

    .header {
        height: unset !important;
    }

    html body .page .main {
        position: relative;
        width: 100%;
        height: 100%;
    }

        html body .page .main .livestreams {
            position: absolute;
            margin: 0 auto;
            width: 100%;
            height: calc(100% - 50px);
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            justify-content: flex-start;
            overflow: hidden;
        }

            html body .page .main .livestreams * {
                /*border: 10px solid teal !important;*/
            }

            html body .page .main .livestreams .stream-container {
                width: 100%;
                height: 100%;
                position: absolute;
                display: flex;
            }

                html body .page .main .livestreams .stream-container .streams {
                    width: 100%;
                    height: 100%;
                    position: relative;
                    display: flex;
                    flex-direction: row;
                    flex-wrap: wrap;
                    align-items: center;
                    justify-content: flex-start;
                }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE10+ CSS styles go here */
    /** {border: 1px solid teal;}*/
    * {
        /*box-sizing: border-box !important;
        border: 1px solid red;*/
    }

    html body .page .main .livestreams .thumb-list {
        height: 100%;
    }

    header, .header {
        flex-direction: row;
        /*background: red !important;*/
        height: 50px;
        width: 100%;
        z-index: 3;
        margin: 0;
        padding: 0;
    }

        header div.left, .header div.left {
            position: relative;
            align-self: flex-start;
            display: flex;
            align-content: center;
            justify-content: center;
            height: 100%;
        }

        header .logo, .header .logo {
            padding: 0;
            /*height: 50px;*/
            display: flex;
            align-items: center;
            top: 0;
        }

    html body .page .main {
        position: relative;
        width: 100%;
        height: 100%;
    }

        html body .page .main .livestreams {
            position: absolute;
            margin: 0 auto;
            width: 100%;
            height: calc(100% - 50px);
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            justify-content: flex-start;
            overflow: hidden;
        }

            html body .page .main .livestreams * {
                /*border: 10px solid teal !important;*/
            }

            html body .page .main .livestreams .stream-container {
                width: 100%;
                height: 100%;
                position: absolute;
                display: flex;
            }

                html body .page .main .livestreams .stream-container .streams {
                    width: 100%;
                    height: 100%;
                    position: relative;
                    display: flex;
                    flex-direction: row;
                    flex-wrap: wrap;
                    align-items: center;
                    justify-content: flex-start;
                }
}

/* supposedly targeting edge only */
@supports (-ms-ime-align: auto) {
    html body .page .main .livestreams .thumb-list {
        height: 100%;
    }

    html body .page .main .livestreams {
        position: relative;
        max-height: 100vh;
    }

        html body .page .main .livestreams .streams {
            display: flex;
        }

            html body .page .main .livestreams .streams .big-stream {
                height: 100%;
                display: inline-flex;
            }

                html body .page .main .livestreams .streams .big-stream .top-controls {
                    display: flex;
                }

                    html body .page .main .livestreams .streams .big-stream .top-controls .top-logo, html body .page .main .livestreams .streams .big-stream .top-controls .fullscreen-button, html body .page .main .livestreams .streams .big-stream .top-controls .closeout {
                        display: inline;
                    }

        html body .page .main .livestreams.two-streams {
            /*display: block;*/
        }

            html body .page .main .livestreams.two-streams .streams {
                display: flex;
                /*height: 75%;*/
            }

                html body .page .main .livestreams.two-streams .streams .big-stream {
                    padding: 0;
                    position: relative;
                    /*height: 50%;*/
                }

                    html body .page .main .livestreams.two-streams .streams .big-stream .loadScreen {
                        position: absolute;
                    }

            html body .page .main .livestreams.two-streams .thumbs-list {
                position: absolute;
                /*bottom: 0;
                                height: 25%;*/
            }

            html body .page .main .livestreams.two-streams.six-streams {
                height: 100%;
                transition: height 500ms;
            }

                html body .page .main .livestreams.two-streams.six-streams.minimized {
                    height: 95%;
                }

                html body .page .main .livestreams.two-streams.six-streams .streams {
                    /*display: block;*/
                }

                    html body .page .main .livestreams.two-streams.six-streams .streams .big-stream {
                        padding: 0;
                        position: relative;
                        height: 50%;
                    }

                        html body .page .main .livestreams.two-streams.six-streams .streams .big-stream .loadScreen {
                            position: absolute;
                        }

            html body .page .main .livestreams.two-streams.minimized .streams {
                /*height: 95%;*/
            }

        html body .page .main .livestreams.three-streams .streams {
            /*display: block;*/
        }

            html body .page .main .livestreams.three-streams .streams .big-stream {
                padding: 0;
                position: relative;
                max-height: 50%;
            }
}

.browser-warning {
    height: 50px;
    position: fixed;
    bottom: 30px;
    text-align: center;
    background: #ffff94;
    border-top: 1px solid orange;
    border-bottom: 1px solid orange;
    width: 100%;
    box-sizing: border-box;
    color: sienna;
    transition: bottom 500ms;
    cursor: pointer;
}

*::-webkit-media-controls {
    display: none !important;
}
.side-nav.hidden {
    display: inherit !important;
}

body .main {
    overflow: hidden;
}

.browser-warning {
    height: 50px;
    position: fixed;
    bottom: 0;
    text-align: center;
    background: #ffff94;
    border-top: 1px solid orange;
    border-bottom: 1px solid orange;
    width: 100%;
    box-sizing: border-box;
    color: sienna;
    transition: bottom 500ms;
    cursor: pointer;
}

#filter-list {
    display: flex;
    flex-wrap: wrap;
    min-height: 0px;
    /*padding: 0px 10px 10px;*/
}

#filter-controls {
    width: 100%;
    position: relative;
    margin: 3px 9px;
    min-width: 215px;
}

#filterField {
    width: 130px;
    margin: 0px 3px;
    padding-right: 10px;
}

.chip {
    padding: 3px;
}

.mdl-chip {
    color: white;
}

.material-icons {
    color: white;
    opacity: .54;
}

    .material-icons:hover {
        color: white;
        opacity: 1 !important;
    }

#input-controls {
    display: flex;
    align-items: center;
    padding: 0px 10px;
}

#submitFilterBtn {
    bottom: 3px;
    padding: 0px 5px;
    height: 32px;
    line-height: 32px;
    font-size: 12px;
}

#filterField > label {
    color: white;
}

#filterInput {
    color: white;
    border-bottom: 1px solid white;
}

.chip > .mdl-chip__text {
    font-size: 12px
}

.chip > .mdl-chip {
    height: 25px;
    line-height: 25px;
    padding-left: 8px;
    padding-right: 4px;
}

.chip i {
    font-size: 21px;
}

.chip button {
    height: 21px;
}


.chip-stream {
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.chip-tag {
    position: absolute;
    top: 0;
    right: 0;
    text-align: center;
    z-index: 2;
    padding: 5px;
    line-height: 12px;
    background-color: red;
}

    .chip-tag > .mdl-chip__text {
        font-size: 12px
    }

    .chip-tag > .mdl-chip {
        height: 25px;
        line-height: 25px;
        padding-left: 8px;
        padding-right: 8px;
        color: white;
    }

.live {
    background-color: rgb(0,150,136) !important;
}

.type-text {
    font-size: 12px;
    color: white;
}