/*
 * Default Styling
 */
* {
    box-sizing: border-box;
}

*:not(select) {
    border-radius: 0 !important;
}

/*Webkit likes to make the background white when you fullscreen*/
body, .video-elem {
    background:#434143;
}

body {
    font-family: Arial, sans-serif;
    color:white;
}

footer {
    position: fixed;
    padding-bottom: 15px;
    height: auto;
    bottom: 0;
    /*right: 4%;*/
    right: 0px;
    left: 0px;
    text-align: center;
    background: #202020;
    border-top: 1px solid black;
}

.obs-mode footer  {
    display: none;
}

#footer-main {
    text-align:center;
    display: inline-block;
    margin-bottom: 0px;
    vertical-align: bottom;
}

#sidebar-collapse {
    position: absolute;
}
#footer > img {
    width: 105px;
    vertical-align: bottom;
}

#main {
    position: absolute;
    overflow-y: auto;
    top: 0;
    bottom: 75px;
    left: 0;
    right: 0;
    transition: left 0.2s;
}
.obs-mode #main {
    overflow-y: hidden;
}

/*
 * Common Helpers
 */
.absolute-left {
    position: absolute;
    left: 0;
    height: 100%;
}

.absolute-right {
    position: absolute;
    right: 0;
    height: 100%;
}

.absolute-top {
    position: absolute;
    top: 0;
    width: 100%;
}
.absolute-bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.absolute-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.absolute {position: absolute;}
.relative {position: relative;}
.text-center {text-align: center;}
.max-size {height: 100%;}
.height-bound {height: 100%;}
.width-bound {width: 100%;}
.overflow-y-auto {overflow-y: auto;}


/*.parent-hover {opacity: 1;}*/

@media not (hover: hover) {
    .hover {opacity: 0;}
    .hover:hover {opacity: 1;}
}

input {
    vertical-align: bottom;
}

/*
.badge {
    display: inline-block;
    margin: 1px;
    padding: .1em .4em;
    text-align: center;
    font-size: 0.95em;
}

.primary {
    background: #007bff;
    color: white;
}

.warning {
    background: #dd5600;
    color: white;
}

.danger {
    background: #e12a21;
    color: white;
}

.btn {
    padding: 5px 6px;
    cursor: pointer;
    display: inline-block;
    box-sizing: content-box;
}
.btn:hover {
  filter: brightness(90%);
}
*/

/**
 * PHONES !
 *
 */
.phone-pad, .phone-labels {
    text-align: center;
    margin-top: 15px;
}
.phone-pad {
    font-size: 2em;
}
.phone-labels * {
    font-size: 1em;
}
.phone-number {
    font-size: 2em;
    width: 100%;
    letter-spacing: 0.1em;
    color: white;
    border: none;
    background: none;
    text-align: center;
}
.phone-pad-letters {
    font-size: 0.5em;
    color: #bbb;
    padding-bottom: 5px;
}
.phone-pad table {
    margin: auto; /*Horizontally Center the Table*/
    border-collapse: collapse;
}
.phone-pad td {
    padding: 0 5px;
    vertical-align: top;
    cursor: pointer;
    border: 1px solid #808080;
}
.phone-pad td:hover {
    background: #808080;
    transition: background 0.2s;
}
.phone-pad-action {
    font-size: 1em;
    padding: 5px;
    font-size: 0.8em;
}

.phone-pad table tr:first-child td{
    border-top: none;
}

.phone-pad table tr:last-child td {
    border-bottom: none;
}

.phone-pad table tr td:first-child {
    border-left: none;
}

.phone-pad table tr td:last-child {
    border-right: none;
}


/*
 * PHONES
 */

#kp-panel {
}

.kp-insert-full {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid gray;
    background: black;
    opacity: 0;
    bottom: 0;
}
.kp-btn {
    /*
    margin: 5px;
    border: 1px solid gray;
    line-height: 3em;
    */
    
    margin: 5px;
    border: 1px solid gray;
    line-height: 3em;
    margin-right: 0px;
    margin-left: 0px;
    width: 70%;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.kp-insert-full:hover {
    bottom: 0;
    height: 250%;
    opacity: 1;
}
.kp-insert-full .is-talking {
    color: red;
}

.errored .kp-insert {
    background: red;
}

.kp-row-listen .kp-btn {
    background: linear-gradient(0deg, rgb(0, 74, 0) 0%, rgb(5, 121, 5) 25%, rgb(5, 121, 5) 75%, rgb(0, 74, 0) 100%);
}
.is-listening .kp-row-listen .kp-indicator {
    background: lime;
}
.is-listening .kp-row-listen .kp-btn  {
    background: linear-gradient(0deg, rgb(2, 168, 2) 0%, rgb(1, 187, 1) 30%, rgb(1, 187, 1) 66%, rgb(2, 168, 2) 100%);
    border: 1px solid white;
}
.kp-row-talk .kp-btn {
    background: linear-gradient(0deg, rgb(78, 0, 0) 0%, rgb(134, 4, 4) 30%, rgb(136, 2, 2) 66%, rgb(78, 0, 0) 100%);
}
.is-talking .kp-row-talk .kp-indicator {
    background: red;
}
.is-talking .kp-row-talk .kp-btn {
    background: linear-gradient(0deg, rgba(147,0,0,1) 0%, rgba(183,0,0,1) 30%, rgba(183,0,0,1) 66%, rgba(147,0,0,1) 100%);
    animation-name: talkpulse;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    border: 1px solid white;
}
.kp-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1px solid white;
    border-radius: 20px !important;
}
.kp-column {
    width: 90px;
    display: inline-block;
    border: 1px solid gray;
    position: relative;
    background: black;
}
.kp-insert {
    font-family: 'arial', sans-serif;
    color: white;
    font-size: 1.2em;
    background: black;
    line-height: 0.9;
    border-bottom: 1px solid gray;
    padding-top: .2em;
    height: 64px;
    text-transform: uppercase;
    position: relative;
}
.kp-insert > * {
    overflow: hidden;
}
.kp-insert-full > .kp-insert-r1 {
    display: none;
}
.kp-insert > .kp-insert-r1 {
    max-height: 60%;
}
.kp-insert > .kp-insert-r2 {
    max-height: 40%;
}
.kp-insert-r2 {
    font-size: 0.75em;
    padding-top: 0.2em;
}
.kp-row-talk, .kp-row-listen {
    text-align: center;
}
.kp-item:first-child .kp-insert {
    border-left: none;
}


/** Modal **/
/*
.modal-blackout {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: black;
    opacity: 0.8;
}
.modal {
    position: fixed;
    left: 50%; 
    top: 50%;
    min-width: 20%;
    color: black;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid lightgray;
}

.modal-header {
    border-bottom: 1px solid lightgray;
    padding: 20px 20px;
}
.modal-body {
    padding: 20px;
}
.modal-footer {
    border-top: 1px solid lightgray;
    text-align: right;
    padding: 15px 20px;
}
*/

.video {
    display: inline-block;
}
.video-elem {
    width: 100%;
    height: 100%;
    z-index: -1;
}

#title-screen {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
}
#title-screen img {
    width: 100%;
}
#title-screen div {
    padding: 20px;
}

/*
 * Ah yes, the beautiful CSS. 
 * Why do non-text div's have a line height is beyond me,
 * but apparently they do (at least in Firefox).
*/
#main {
    line-height: 0;
}
.volume-ctr {
    line-height: 1em;
    margin-bottom: 10px;
}

#local-video {
    text-align: center;
}


#btns > .btn{
    margin-top: 5px;
}

#sidebar {
    position: fixed;
    left: 0;
    bottom: 52px;
    top: 0;
    width: 0;
    background: #202020;
    overflow-x: hidden;
    color: #888;
    transition: width 0.2s;
    border-right: 1px solid black;
    z-index: 100;
}
#sidebar-collapse {
    position: fixed;
    left: 0;
    bottom: 0;
    background: #202020;
    box-shadow: -10px 0px 10px -10px black inset;
    color: #888;
}

#sidebar > h2 {
    color: #888;
    text-align: center;
}

.mrow {
    padding: 10px;
    box-shadow: 0 0 5px black inset;
    cursor: pointer;
    min-width: 250px; /*Width of sidebar*/
}
.mrow-desc {
    font-size: 0.8em;
    font-style: italic;
    font-size: 0.8em;
    color: #888;
}
.mrow:hover, .mrow-active {
    color: white;
    box-shadow: -5px 0 10px black;
}

#sidebar-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 250px;
    height: 100%;
    text-align: center;
    padding: 5px;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.1s;
}
#sidebar-btn:hover  {
    background: darkgray;
}
#sidebar-btn i {
    font-size: 1.2em;
    vertical-align: middle;
}
.sidebar-hidden #sidebar {
    width: 0;
}
.sidebar-hidden #main {
    width: 100%;
}
.modal {
    color: black;
}

.show-sidebar #sidebar {
    width: 250px;
}
.show-sidebar #main {
    left: 250px;
}

@media(max-width: 900px) {
    #sidebar-btn {
        width: 100px;
    }
}
@media(max-width: 700px) {
    footer {
        left: 0% !important;
        right: 0%;
        text-align: center;
        /*height: 90px;*/
        bottom: 30px;
    }
    #footer > img {
        display: none;
    }
    #sidebar-btn {
        width: 100%;
    }
    .show-sidebar #sidebar {
        width: 100%;
    }
    .show-sidebar #main {
        left: 0;
    }
    footer {
        bottom: 0;
        padding: 0;
    }
    #sidebar-btn {
        position: unset;
    }
    #sidebar {
        bottom: 47px;
    }
}
@media(max-width: 800px) {
    footer {
        text-align: center;
    }
} 

.kp-slider {
    position: absolute;
    bottom: 0;
    left: 20px;
}

.flip-orientation video {
    transform: scaleX(-1);
}

.local-video .volume-slider {
    display: none !important;
}

.btn-xs {
    line-height: 0.8;
}

.dropdown {
    border-radius: 0;
padding: 8px;
border: none;
min-width: 100px;
text-align: center;
}

@keyframes flash {
    0%, 10%{
        opacity: 0;
    }
    75%, 100% {
        opacity: 1;
    }
}

.video-overlay {
    position: absolute; top: 0; bottom: 0; right: 0; left: 0;
    padding-left: 0 28.125%;
}

.video-bug {
    z-index: 2;
    display: block;
    line-height: initial;
    position: absolute;
    right: 0;
    user-select: none;
    background: #fffefe;
    color: black;
    border-radius: 0px 0 0px 5px !important;
    box-shadow: 0 0px 5px 1px #262626;
    width: 0;
    transition: all 0.2s;
    text-align: left;
    overflow: hidden;
    padding-right: 0;
    white-space: nowrap;
    color: white;
    background: #202020;
    top:0;
    min-height: 0px;
    max-width: 500px;
    padding: 0px 20px;
    opacity: 0.6;
}
.video-bug-open, .video-bug:hover {
    padding: 10px 20px;
    opacity: 1;
}

.video-bug-name {
    transition: font-size 0.2s;
}

.video-bug:hover .video-bug-name, .video-bug-open .video-bug-naame {
    font-size: 1em;
}

.volume-slider input {
    width: 85%;
    margin-top: 10px;
}
.video-bug .volume-slider {display: none;white-space: nowrap;}
.video-bug-open .volume-slider {display: block;max-width:90%}

.video-bug-exposed {
    display: inline-block;
    width: auto;
    /*border-right: 1px solid #d0cdcd;*/
    padding-right: 10px;
}

.video-bug-more {
    display: inline-block;
    width: auto;
}
.video-bug-more i {
    vertical-align: middle;
}

.video-bug-exposed > i {
    vertical-align: middle;
    font-size: 1.3em;
    color: var(--red);
}

.video-bug .btn {
    color: white;
}
.video-bug .btn:hover:not(.btn-danger), .video-bug .btn-active {
    background: gray;
    border-radius: 3px !important;
    background: #4a4949; /*White: #c4c1c1;*/
}

.video-bug .btn:focus {
    outline: unset;
    box-shadow: unset;
}
.video-bug-more span, .video-bug-dropdown span {
    color: #c4c3c3; /*White: #1c1c1c;*/
    font-size: 0.8em;
}

.video-bug-dropdown input, .video-bug-dropdown select {
    /*width: 95%;*/
}
.video-bug-dropdown select {
    border-radius: 0;
}
.video-bug-dropdown > .row {
    margin-right: 5px;
}

.video-bug-dropdown .btn {
    border: 1px solid #464545;
    margin-top: 5px;
    float:right;
    /*margin-right: 5%;*/
}

.video-bug-dropdown .more-actions .btn {
    float: unset;
    border: unset;
}
.video-bug-dropdown {
    overflow: hidden;
    transition: all 0.3s;
    max-height: 0;
}

.video-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
}
.obs-mode .video-bug {
    display: none !important;
}

.video-confirm-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10;
    line-height: normal;
    transition: opacity 0.2s;
    opacity: 0;
    overflow: hidden;
}
.video-confirm-overlay .btn {
    box-sizing: border-box;
}
.video-confirm-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader {
    border: 0.3em solid rgba(211, 23, 23, 0.9);
    border-radius: 50% 0px 50% 0 !important;
    border-top: 0.3em solid #f3f3f3;
    border-bottom: 0.3em solid #f3f3f3;
    width: 3em;
    height: 3em;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% { transform: rotate(360deg); }
}