/*--------------------------------------------------------------
# Video grid
--------------------------------------------------------------*/

#videoMediaContainer {
    z-index: 1;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    position: absolute;
    left: 0px;
    bottom: 0px;
    top: 0px;
    right: 0px;
}

.Camera {
    position: relative;
    vertical-align: middle;
    align-self: center;
    border-radius: 5px;
    overflow: hidden;
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 1px 2px rgb(0 0 0 / 40%);
}

.CameraProducer {
    position: absolute;
    z-index: 199;
    border-radius: 5px;
    overflow: hidden;
    display: inline-block;
    bottom: 5px;
    left: 5px;
    width: 25%;
    height: 25%;
    max-height: 280px;
    max-width: 350px;
    min-height: 120px;
    min-width: 180px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 1px 2px rgb(0 0 0 / 40%);
}

#backgroundCanvas {
    position: relative;
    vertical-align: middle;
    align-self: center;
    border-radius: 5px;
    overflow: hidden;
    display: inline-block;
}


.userMenuBar {
    z-index: 2;
    position: absolute;
    padding: 3px;
    background: rgba(72, 77, 117, 0.4);
    font-size: small;
    font-weight: bold;
    text-align: center;
    border-radius: 2px;
    cursor: default;
    /* center */
    top: 5px;
    left: 5px;
    overflow: hidden;
}

.userMenuBar button {
    float: right;
    color: rgb(0, 255, 71);
    background: transparent;
    border-radius: 5px;
    display: none;
    border: none;
}

.userMenuBar span {
    float: right;
    margin-right: 5px;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 5px;
    display: inline;
    border: none;
}

/* 
.audio {
    position: absolute;
    right: 0;
    color: white;
    margin: 5px;
    width: auto;
    height: 25px;
    border-radius: 2px;
    background: rgba(72, 77, 117, 0.4);
}


#videoMediaContainer i {
    position: absolute;	
    display: none;	
    top: 0;	
    color: rgb(0, 255, 71);	
    font-size: 14px;	
    align-items: center;	
    margin: 5px;
    padding-left: 5px;	
    padding-right: 5px;	
    width: auto;	
    height: 25px;	
    border-radius: 2px;
    background: rgba(72, 77, 117, 0.5);
    cursor: pointer;
}

.username {
    position: absolute;
    top: 0;
    left: 25px;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    padding: 5px;
    margin: 5px;
    width: auto;
    height: 25px;
    border-radius: 2px;
    background: rgba(72, 77, 117, 0.4);
} */

.fscreen {
    position: absolute;
    right: 0;
    bottom: 0px;
    color: white;
    margin: 5px;
    width: auto;
    height: 25px;
    border-radius: 2px;
    background: rgba(72, 77, 117, 0.4);
}

#videoMediaContainer img {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    width: 250px;
    display: none;
}

.videoMenuBar {
    z-index: 2;
    position: absolute;
    padding: 3px;
    background: rgba(72, 77, 117, 0.4);
    font-size: small;
    font-weight: bold;
    text-align: center;
    border-radius: 2px;
    cursor: default;
    /* center */
    top: 5px;
    right: 10px;
    overflow: hidden;
}

.videoMenuBar input,
.videoMenuBar button {
    float: right;
    margin-right: 1px;
    color: white;
    background: transparent;
    border-radius: 5px;
    display: inline;
    border: none;
}

.videoMenuBar button:hover {
    color: #f5f6f7
}

#videoMediaContainer video {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
}

video {
    width: 100%;
    height: 100%;
    object-fit: var(--videoObjFit);
    box-shadow: var(--box-shadow);
    cursor: pointer;
}

video:hover {
    opacity: 0.9;
}

video:fullscreen {
    object-fit: contain;
    opacity: 1;
}

canvas {
    width: 100%;
    height: 100%;
    object-fit: var(--videoObjFit);
    box-shadow: var(--box-shadow);
    cursor: pointer;
}

canvas:hover {
    opacity: 0.9;
}

canvas:fullscreen {
    object-fit: contain;
    opacity: 1;
}

.mirror {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.blur {
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
}

input[type=range]{
    -webkit-appearance: none;
    width: 50px;
}

input[type=range]::-webkit-slider-runnable-track {
    height: 10px;
    background: #ddd;
    border: none;
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #484d75;
    margin-top: -3px;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #ccc;
}

@keyframes show {
    0% {
        opacity: 0;
        transform: scale(0.4) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
