html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

a {
    color: #00a9e7;
}

video {
    padding-left:1px;
    padding-top:1px;
}

.deviceon {
    background-color:green;
}

.deviceoff {
    background-color: #8e8e8e;
}

.circle {
    background: red;
    border-radius: 50%;
    color: #fff;
    height: 1em;
    position: relative;
    width: 1em;
    display: inline-block;
}

.mainheader {
    /*background-color: #231f20;*/
    background-color: #2b5475; /* 43 84 117 */
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
}

.mainheader2 {
    /*background-color: #231f20;*/
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
}

#leavebutton {
    background-color: #9d0808;
}

.header {
    /*background-color: #231f20;*/
    background-color: #2b5475; /* 43 84 117 */
}

    .header .logo {
        background-color: #cfd0d1;
        padding: 10px;
        padding-left: 30px;
    }

    .header .x-logo {
        background-color: #cfd0d1;
        padding-left: 2px;
    }

    .header .x-text {
        color: #cfd0d1;
        line-height: 20px;
        font-size: 10px;
    }

.navbar {
    line-height: 50px;
}

#content {
    /*margin-top: 10px;*/
    overflow: hidden;
}

h2 {
    color: #00aae7;
    font: 20px 'Varela Round', Arial, verdana, sans-serif;
}

#video-chat {
    display: inline-block;
    height: 100%;
    width: 100%;
}

.fixed-height {
    height: 100%;
}

.footer {
    width: 100%;
    height: 60px;
    background-color: #f5f5f5;
}

#footer-content {
    font-size: 12px;
    margin-top: 10px;
}

#header-text, #agencyname {
    padding-left: 15px;
    font: 14px 'Varela Round', Arial, verdana, sans-serif;
    color: white;
    line-height: 44px;
}

#fullscreen2 {
    /* This is for the `a` element that toggles fullscreen mode */
    position: absolute;
    display: block;
    right: 45px;
    top: 10px;
    z-index: 9;
    color: rgba(178, 229, 247, 0.4);
    border-color: rgba(178, 229, 247, 0.4);
    background-color: rgba(178, 229, 247, 0.4);
    padding: 6px;
    border: 3px solid rgba(178, 229, 247, 0.4);
    text-align: center;
    outline: none;
    text-decoration: none;
    cursor: pointer;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s linear, color 0.3s ease-in, border-color 0.3s ease-in;
}

#fullscreen:hover,
#fullscreen:active {
    color: #00a9ec;
    border-color: #00a9ec;
}

#fullscreen-icon {
    font-size: 16px;
    margin-left: 15px;
}

#video.visible-controls #fullscreen {
    opacity: 1;
}

#video.fs-fallback {
    /*
        This class provides styles for full screen fallback for browsers that do not support it natively.

        This is not quite working yet because of the header/footer and column layout of the chat page.
        We have plans to redo that UI getting rid of header/footer and having the video container occupy
        100% of the page space. This fallback should work at that point (but will need to be tested).
    */
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* Media Queries */

/* Hid footer on screens smaller than 500 px */
@media only screen and (min-width: 500px) {
    footer {
        /* Should match footer height */
        margin-top: -90px;
    }

    .well {
        min-height: 350px;
        max-height: 350px;
    }
}

@media only screen and (max-width: 500px) {
    #img-logo {
        content: url("/images/fm-logo-xs.png");
    }

    .well {
        min-height: 200px;
        max-height: 200px;
    }
    .mainheader2 {
        padding-bottom: 0px;
        padding-top: 0px;
    }
}

@media only screen and (min-width: 768px) {
    .row.is-flex {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

        .row.is-flex > [class*='col-'] {
            display: -webkit-box;
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -webkit-flex-direction: column;
            -ms-flex-direction: column;
            flex-direction: column;
        }

}
.height100prc {
    height: 100%;
}



/* For 100% Div Height
@media only screen and (min-width: 768px) {
    .row.table-row {
        display: table;
        width:100%;
    }

        .row.table-row > [class*="col-"] {
            float:none;
            display: table-cell;
            vertical-align: top;
        }
}
*/
.header-smalltext {
    font: 14px 'Varela Round', Arial, verdana, sans-serif;
    color: white;
    /*line-height: 44px;*/
}

.header-line1 {
    font: 16px 'Varela Round', Arial, verdana, sans-serif;
    color: white;
    /*line-height: 44px;*/
}

.topbuttondiv {
    padding-left:0px;
    padding-right:0px;    
}

.topbutton {
    margin: 0px 5px 0px 5px;
    padding: 5px;
    color: white;
    font-size: 14px;
    border: none;
}

.refreshbutton {
    margin: 0px 5px 0px 5px;
    padding: 5px;
    color: white;
    font-size: 14px;
    background-color: dodgerblue;
    border: none;
}

.imgflip {
    display: inline;
    margin-top: -5px;
    height: 42px;
    margin-left: 8px;
}

#recordingtext {
    color: red;
}

.showinlarge {
    display: inline;
}

.showinxs {
    display: none;
}
.iphonecompressclass {
    position: fixed;
    top: 0;
    right: 0;
    background: #336600;
    padding: 6px;
    color: #fff;
    font-size: 1.4em;
}
@media only screen and (max-width: 425px) {
    .showinlarge {
        display: none;
    }

    .showinxs {
        display: inline;
        padding-left: 8px;
        padding-right: 8px;
    }
    .videopadding {
        padding-bottom: 120%;
    }

    .topbutton {
        font-size: 12px !important;
        margin: 0px 0px 0px 1px;
    }

}

@media only screen and (min-width: 426px) {
    .videopadding {
        padding-bottom: 0;
    }
}

@media only screen and (min-width: 1370px) {
    .bigmargin {
        margin-left: 200px;
        margin-right: 200px;
    }
}

    @media only screen and (max-width: 375px) {
        .header-line1 {
            font: 14px 'Varela Round', Arial, verdana, sans-serif;
            color: white;
            /*line-height: 44px;*/
        }

        .header-smalltext {
            font: 12px 'Varela Round', Arial, verdana, sans-serif;
            color: white;
            /*line-height: 44px;*/
        }

        .circle {
            font-size: 12px;
        }

        #recordingtext {
            font-size: 12px !important;
        }

        #agencyName {
            font-size: 12px !important;
        }

        #copyright {
            font-size: 12px !important;
        }

        .topbutton {
            font-size: 12px !important;
            margin: 0px 0px 0px 1px;
            
        }

        #flipVideo {
            font-size: 12px !important;
        }

        #recordingcol {
            margin-left: 5px !important;
            margin-right: 5px !important;
        }
    }

    @media only screen and (min-width: 992px) {

        .showindesktop {
            display: inline;
        }

        .showinmobile {
            display: none;
        }

        .header .logo {
            padding-left: 15px;
            padding-top: 34px;
            height: 138px;
        }

        .header .text {
            padding-top: 55px;
            height: 138px;
        }

        .well {
            min-height: 350px;
            max-height: 350px;
        }

        #agencyname {
            padding-left: 30px;
            /* font: 34px 'Varela Round',Arial,verdana,sans-serif; */
            font: 400 50px/1.3em 'Varela Round', Arial, verdana, sans-serif;
            color: white;
            /* line-height: 138px; */
        }

        #header-text {
            padding-left: 30px;
            /* font: 34px 'Varela Round',Arial,verdana,sans-serif; */
            font: 34px 'Varela Round', Arial, verdana, sans-serif;
            color: white;
            /* line-height: 138px; */
        }
    }

@media only screen and (max-width: 992px) {
    .showindesktop {
        display: none;
    }

    .showinmobile {
        display: inline;
        z-index: 1999;
        position:relative;
        top:50%;
    }
}

    /*CSS for display name overlay*/
    .displayName {
        position: absolute;
        font-size: medium;
        font-weight: bold;
        color: black;
        background: white;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding-left: 2.5px;
        padding-right: 2.5px;
    }

    a,
    div {
        pointer-events: auto !important;
    }

#joinButton {
    padding-left: 30px;
    padding-right: 30px;
    font: 20px 'Varela Round', Arial, verdana, sans-serif;
    color: white;
    background-color: green;
    line-height: 44px;
}