.fullscreen {
    background-color: #8a8989;
    width: 100vw;
    height: 100vh;
}

/*Buttons */
#buttonHolder.inVideoCall {
    background-color: #0008;
    position: absolute;
    bottom: 0;
    height: 70px;
    width: 100vw;
    padding: 10px;
    text-align: center;
    z-index: 50;
}
#btn-toggleGrid {
    background: none;
}
#btn-endCall {
    background-color: #f7392f;
    padding: 8px;
}
#btn-endCall i {
    transform: rotate(134deg);
    position: relative;
    left: -1px;
}
#btn-muteAudio {
    background-color: #337ab7;
    padding: 8px;
}
#btn-recordCall {
    background-color: #337ab7;
}
#btn-startVideo {
    background-color: #337ab7;
    padding: 8px;
}
#btn-shareScreen {
    background-color: #337ab7;
    padding: 8px 5px;
}

.inVideoCall #btn-endCall,
.inVideoCall #btn-muteAudio,
.inVideoCall #btn-shareScreen,
.inVideoCall #btn-recordCall,
.inVideoCall #btn-startVideo {
    display: inline-block;
    float: none;
}
.inVideoCall #btn-toggleGrid {
    display: block;
    float: left;
    margin-right: -40px;
}
.callButton {
    width: 40px;
    height: 40px;
    background-color: #ccc;
    float: left;
    margin: 4px;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    font-size: 25px;
    padding: 9px;
    display: none;
    cursor: pointer;
}
.closeCallWindowButton {
    width: 40px;
    height: 40px;
    background-color: #000;
    margin: 4px;
    border-radius: 50%;
    color: #fff;
    border: 1px solid #fff;
    text-align: center;
    font-size: 25px;
    padding: 7px;
    display: none;
    cursor: pointer;
}
.dialing #btn-dialingIcon {
    display: block;
}
.dialing #btn-endCall {
    display: block;
    margin-top: 30px;
    float: none;
    margin: 30px auto auto auto;
}
.dialing#buttonHolder {
    display: block;
    width: fit-content;
    margin: 50vh 0 0 50vw;
    height: fit-content;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}
.videoCallCancelled #btn-endCall {
    display: none;
}
.videoCallCancelled #btn-videoCallRedial {
    display: inline-block;
    margin: 30px 15px 0px 0px;
}
.videoCallCancelled #btn-close {
    display: inline-block;
    margin: 30px 0px 0px 15px;
}
.videoCallCancelled#buttonHolder {
    display: block;
    width: fit-content;
    margin: 50vh 0 0 50vw;
    height: fit-content;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

#buttonHolder.inVideoCall.fade {
    /* Using opacity to hide the element, since animating from
       'display: none' or 'visibility: hidden' is not possible: */
    opacity: 0;

    /* Setting the transition-delay to five seconds (5s), for
       the non-hovered state of the element: */
    transition: opacity 0.5s linear;
    transition-delay: 3s;
}
#unirtcHolder:hover > #buttonHolder.inVideoCall.fade {
    /* Updating the opacity to 1; to show the element with
       no transparency (adjust to taste): */
    opacity: 1;
    /* setting the property to animate ('opacity'), over
       a period 0.3 seconds with a linear transition: */
    transition: opacity 0.5s linear;
}

.inverted {
    background-color: #fff !important;
    color: #000;
}
.inverted i {
    color: #000;
}

.inVideoCall #btn-shareScreen.sharing {
    animation-name: color;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

@keyframes color {
    0% {
        background-color: #222;
    }
    50% {
        background-color: #ff0000;
    }
    100% {
        background-color: #222;
    }
}

#userDefinedSettings {
    display: none;
}
.callStream {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: inherit;
    border-radius: 4px;
}

@media only screen and (min-width: 1024px) {
    body {
        overflow: hidden;
    }

    .fullscreen {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
        overflow: hidden;
        /*display: block !important;*/
    }

    #vidHolder {
        display: none;
    }

    #voiceHolder {
        width: 100%;
        padding: 10px;
        position: absolute;
        z-index: 50;
        background: #0008;
        text-align: center;
        color: #fff;
        font-weight: bold;
    }

    /*<editor-fold desc="Buttons">*/
    /*</editor-fold>*/

    /*<editor-fold desc="Profile Badge">*/
    .dialing #profileBadgeHolder .profileBadge {
        height: 60px !important;
        width: 60px !important;
        margin-bottom: 10px !important;
    }

    .dialing #profileBadgeHolder .profileBadgeAcronym {
        font-size: 2.4em !important;
    }

    .videoCallCancelled #profileBadgeHolder .profileBadge {
        height: 60px !important;
        width: 60px !important;
        margin-bottom: 10px !important;
    }

    .videoCallCancelled #profileBadgeHolder .profileBadgeAcronym {
        font-size: 2.4em !important;
    }

    .inVideoCall #profileBadgeHolder {
        float: left;
        position: absolute;
        color: #bbbb;
        padding-top: 10px;
    }

    #remoteUserBadge {
        display: block;
        width: 100%;
        height: auto;
        transform: translate(-50%, -6vh);
        text-align: center;
        color: #fff;
        z-index: 0;
        position: absolute;
        top: 50vh;
        left: 50vw;
    }

    /*</editor-fold>*/
    /*<editor-fold desc="Video">*/
    #userDefinedSettings {
        display: initial;
    }

    #streamsDisplay {
        align-items: center;
        display: flex;
        flex-direction: column;
        height: calc(100vh - 200px);
        width: 100vw;
        margin: 100px 0;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
    }

    #videoHolderGrid {
        align-content: center;
        align-items: center;
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        margin-top: auto;
        margin-bottom: auto;
        justify-content: center;
        height: calc(100vh - 200px);
        width: calc(calc(calc(100vh - 200px) / 9) * 16);
    }

    #videoHolderGrid.screenSharingActive {
        width: 50%;
        float: left;
    }

    .remoteVideoGridder {
        height: fit-content;
        background-color: #fff;
        margin: 5px;
        border-radius: 5px;
        position: relative;
    }

    #localVideo {
        width: 100%;
        -webkit-transform: scaleX(-1);
        transform: scaleX(-1);
    }

    .badgeHolder {
        margin: 10px;
        font-weight: bold;
        text-shadow: 0px 0px 6px #000;
        top: initial !important;
        left: initial !important;
    }
    .StatusBAD {
        color: red;
    }
}

/* 2 Video */
.vid-2 .remoteVideoGridder {
    width: calc(calc(calc(calc(calc(100vh - 200px) / 9) * 16) / 2) - 10px);
    height: calc(calc(calc(calc(calc(calc(calc(100vh - 200px) / 9) * 16) / 2) - 10px) / 16) * 9);
}

/* 3 Video */
.vid-3 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 220px) / 9) * 16) / 2) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 2);
}

#streamsDisplay.screenSharingActive .vid-3 .remoteVideoGridder {
    width: calc(calc(calc(calc(calc(100vh - 200px) / 9) * 16) / 4) - 10px);
    height: calc(calc(calc(calc(calc(calc(calc(100vh - 200px) / 9) * 16) / 4) - 10px) / 16) * 9);
}

/* 4 Video */
.vid-4 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 220px) / 9) * 16) / 2) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 2);
}

#streamsDisplay.screenSharingActive .vid-4 .remoteVideoGridder {
    width: calc(calc(calc(calc(calc(100vh - 200px) / 9) * 16) / 4) - 10px);
    height: calc(calc(calc(calc(calc(calc(calc(100vh - 200px) / 9) * 16) / 4) - 10px) / 16) * 9);
}

/* 5 Video */
.vid-5 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 3) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 3);
}

#streamsDisplay.screenSharingActive .vid-5 .remoteVideoGridder {
    width: calc(calc(calc(calc(calc(100vh - 200px) / 9) * 16) / 4) - 10px);
    height: calc(calc(calc(calc(calc(calc(calc(100vh - 200px) / 9) * 16) / 4) - 10px) / 16) * 9);
}

.vid-6 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 3) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 3);
}

.vid-7 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 3) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 3);
}

.vid-8 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 3) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 3);
}

.vid-9 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 3) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 3);
}

.vid-10 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 240px) / 9) * 16) / 4) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 4);
}

.vid-11 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 240px) / 9) * 16) / 4) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 4);
}

.vid-12 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 240px) / 9) * 16) / 4) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 4);
}

.vid-13 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 250px) / 9) * 16) / 5) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 5);
}

.vid-14 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 250px) / 9) * 16) / 5) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 5);
}

.vid-15 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 250px) / 9) * 16) / 5) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 5);
}

.vid-16 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 250px) / 9) * 16) / 5) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 5);
}

.vid-17 .remoteVideoGridder,
.vid-18 .remoteVideoGridder,
.vid-19 .remoteVideoGridder,
.vid-20 .remoteVideoGridder,
.vid-21 .remoteVideoGridder,
.vid-22 .remoteVideoGridder,
.vid-23 .remoteVideoGridder,
.vid-24 .remoteVideoGridder,
.vid-25 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 250px) / 9) * 16) / 6) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 6);
}

.vid-26 .remoteVideoGridder,
.vid-27 .remoteVideoGridder,
.vid-28 .remoteVideoGridder,
.vid-29 .remoteVideoGridder,
.vid-30 .remoteVideoGridder,
.vid-31 .remoteVideoGridder,
.vid-32 .remoteVideoGridder,
.vid-33 .remoteVideoGridder,
.vid-34 .remoteVideoGridder,
.vid-35 .remoteVideoGridder,
.vid-36 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 250px) / 9) * 16) / 7) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 7);
}

.vid-37 .remoteVideoGridder,
.vid-38 .remoteVideoGridder,
.vid-39 .remoteVideoGridder,
.vid-40 .remoteVideoGridder,
.vid-41 .remoteVideoGridder,
.vid-42 .remoteVideoGridder,
.vid-43 .remoteVideoGridder,
.vid-44 .remoteVideoGridder,
.vid-45 .remoteVideoGridder,
.vid-46 .remoteVideoGridder,
.vid-47 .remoteVideoGridder,
.vid-48 .remoteVideoGridder,
.vid-49 .remoteVideoGridder {
    height: calc(calc(calc(calc(calc(calc(100vh - 250px) / 9) * 16) / 8) / 16) * 9);
    width: calc(calc(calc(calc(100vh - 230px) / 9) * 16) / 8);
}

.screenSharingActive {
    flex-direction: initial !important;
}

.screenSharingActive #videoHolderGrid.vid-2.tileView {
    width: 40vw !important;
}

.screenSharingActive > .vid-2.tileView .remoteVideoGridder {
    height: 25vh;
    width: calc(calc(calc(25vh - 20px) / 9) * 16);
}

#videoHolderGrid.pinnedView .remoteScreenShareGridder {
    width: 180px;
    height: calc(calc(180px / 16) * 9);
    position: relative;
    z-index: 999999;
    background-color: #fff;
    margin: 5px;
    border-radius: 5px;
}

#videoHolderGrid.pinnedView {
    width: 180px;
    position: absolute;
    bottom: 75px;
    right: 5px;
    height: autos;
    overflow-y: scroll;
    overflow-x: hidden;
    display: initial;
}

.pinnedView .remoteVideoGridder {
    width: 180px;
    height: calc(calc(180px / 16) * 9);
    position: relative;
    z-index: 999999;
}

.pinned {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0px !important;
    border-radius: 0;
    z-index: 0 !important;
    align-items: center !important;
    align-content: center !important;
    text-align: center !important;
}

.pinned .remoteScreenVideo {
    height: 100% !important;
    width: auto !important;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent; /* make scrollbar transparent */
}

.remoteScreenVideo {
    width: 100%;
}


#localVideoHolder,
.remoteVideoHolder {
    background-color: #000;
    align-items: center;
    height: 100%;
    width: 100%;
    align-content: center;
    text-align: center;
    border-radius: 4px;
    overflow: hidden;
}
.pinnedView #localVideoHolder {
    float: right;
}
@media only screen and (max-width: 1023px) {
    .pinnedView .remoteVideoHolder {
        height: 80vh;
        margin: 10px;
        width: calc(100% - 20px);
    }

    .pinnedView .remoteVideo {
        max-width: initial;
        transform: translate(-30%);
    }
}
.badgeHolder {
    float: left;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(99, 99, 99, 0.9);
    color: #fff;
    padding: 2px;
    border-radius: 100px;
}
.badgeHolder div div {
    float: left;
    position: relative;
    top: 0px;
    /* left: 25px; */
    color: #f00;
    padding: 5px;
}

.hoverOver {
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    background-color: #0009;
    position: absolute;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    z-index: 1;
    margin-right: 30px;
    border-radius: 4px;
}

.videoHidden {
    display: none !important;
}

#localVideoHolder .hoverOver {
    /* Using opacity to hide the element, since animating from
       'display: none' or 'visibility: hidden' is not possible: */
    opacity: 0;

    /* Setting the transition-delay to five seconds (5s), for
       the non-hovered state of the element: */
    transition: opacity 0.2s linear;
}

#localVideoHolder:hover .hoverOver {
    /* Updating the opacity to 1; to show the element with
       no transparency (adjust to taste): */
    opacity: 1;
    /* setting the property to animate ('opacity'), over
       a period 0.3 seconds with a linear transition: */
    transition: opacity 0.2s linear;
}

/*</editor-fold>*/

#ANSWER {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00aa00;
    font-size: 50px;
}

@-webkit-keyframes spaceboots {
    0% {
        -webkit-transform: translate(2px, 1px) rotate(0deg);
    }
    10% {
        -webkit-transform: translate(-1px, -2px) rotate(-1deg);
    }
    20% {
        -webkit-transform: translate(-3px, 0px) rotate(1deg);
    }
    30% {
        -webkit-transform: translate(0px, 2px) rotate(0deg);
    }
    40% {
        -webkit-transform: translate(1px, -1px) rotate(1deg);
    }
    50% {
        -webkit-transform: translate(-1px, 2px) rotate(-1deg);
    }
    60% {
        -webkit-transform: translate(-3px, 1px) rotate(0deg);
    }
    70% {
        -webkit-transform: translate(2px, 1px) rotate(-1deg);
    }
    80% {
        -webkit-transform: translate(-1px, -1px) rotate(1deg);
    }
    90% {
        -webkit-transform: translate(2px, 2px) rotate(0deg);
    }
    100% {
        -webkit-transform: translate(1px, -2px) rotate(-1deg);
    }
}

.shake {
    -webkit-animation-name: spaceboots;
    -webkit-animation-duration: 0.8s;
    -webkit-transform-origin: 50% 50%;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
}


.statsHolder {
    display: none;
    position: absolute;
    right: 0px;
    padding: 5px;
}

/* App */
#unirtcAppHolder {
    background-color: #fff !important;
}

#appChatList {
    width: 320px;
    height: 100vh;
    background: #e6e6e6;
    border-right: 1px solid #ccc;
    position: absolute;
    left: 0px;
    top: 0px;
}

#appChatView {
    width: calc(100vw - 320px);
    height: 100vh;
    position: absolute;
    right: 0px;
    top: 0px;
}


#appChatViewUserDetails {
    width: 100%;
    height: 80px;
    border-bottom: 1px solid #ccc;
    padding: 15px;
}

#appChatViewUserDetails-name {
    font-weight: bold;
    font-size: 25px;
    display: inline-block;
    float: left;
}

#appChatViewUserDetails-buttonBank {
    display: inline-flex;
    padding: 5px;
    float: right;
}

#appChatViewUserDetails-buttonBank-videoCallBtn {

}

#appChatViewUserDetails-buttonBank .roundButton {
    background: #e2e2e2;
    border-radius: 50%;
    padding: 10px;
    margin-left: 10px;
    width: 40px;
    height: 40px;
    font-size: 20px;
}

#appChatViewUserDetails-buttonBank .roundButton:hover {
    background: #a3a3a3;
    cursor: pointer;
}

#appChatViewUserDetails-buttonBank-voiceCallBtn {
    padding: 11px !important;
}


#appChatViewChatDialog {
    height: calc(100vh - 80px);
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

#appChatViewChatDialog-history {
    width: 100%;
    height: calc(100vh - 160px);
    overflow-x: hidden;
    overflow-y: scroll;
    padding-top: 10px;
}

#appChatViewChatDialog-history ul li {
    width: 80%;
    margin-bottom: 10px;
}

#appChatViewChatDialog-history ul li.fromUser {
    float: right;
}

#appChatViewChatDialog-history ul li.toUser {
    float: left;
}

#appChatViewChatDialog-history ul li .chatDiv {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    font-size: 12px;
    padding: 10px;
    width: fit-content;
}

#appChatViewChatDialog-history ul li.toUser .chatDiv {
    text-align: left;
    background-color: lightskyblue;
    float: left;
}

#appChatViewChatDialog-history ul li.fromUser .chatDiv {
    text-align: right;
    background-color: lightgrey;
    float: right;
}

#appChatViewChatDialog-history .divName {
    font-size: 10px;
    color: #686868;
}

#appChatViewChatDialog-history ul li.toUser .divName {
    text-align: left;
}

#appChatViewChatDialog-history ul li.fromUser .divName {
    text-align: right;
}


#appChatViewChatDialog-userInput {
    height: 80px;
    position: sticky;
    padding: 15px;
}

#appChatViewChatDialog-userInput #messageBox {
    width: 100%;
    resize: none;
    background-color: #efefef;
    border-radius: 30px;
    border: 0px;
    padding: 11px;
    font-size: 12px !important;
    height: auto;
    color: #545454;
}

#appChatViewChatDialog-userInput #messageBox:focus {
    outline: none;
}

/* Logged In Entity Information */
#appChatListLoggedInEntity {
    width: 100%;
    height: 50px;
    padding: 10px;
}

#appChatListLoggedInEntity-badge {
    display: inline-block;
    float: left;
    margin-right: 10px;
}

#appChatListLoggedInEntity-badge .profileBadge {
    width: 40px !important;
    height: 40px !important;
}

#appChatListLoggedInEntity-name {
    display: inline-block;
    float: left;
}


.appChatUser {
    padding: 5px;
    color: #1e1e1e;
}

.appChatUser:hover {
    background: #ccc;
}


/* Entity Profile Badge */
.profileBadge {
    border-radius: 50%;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
}

.profileBadgeAcronym {
    background: #ebebeb;
    width: 100%;
    height: 100%;
    color: #666;
    vertical-align: middle;
    text-align: center;
    font-size: 15px;
    font-family: Century Gothic;
    padding: 4px 0px 0px 0px;
}
#enableRtcDebug {
    margin: 5px;
    font-size: 14px;
}