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

#videoMediaContainer {
    /* z-index: 2;
    position: absolute;
    display: flex;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    align-content: center;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    overflow: hidden; */
    top: 0;
    border-radius: 5px;
    position: fixed;
    width: 100%;
    height: 100%;
    margin: 0px;
    bottom: 15%;
    left: 0;
    z-index: 1;
}

#videoPinMediaContainer {
    z-index: 1;
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    /* border: 3px solid lime; */
}

.Camera {
    position: relative;
    vertical-align: middle;
    align-self: center;
    border-radius: 10px;
    overflow: hidden;
    display: inline-block;
    background: var(--body-bg);
    border: var(--elem-border-color);
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    animation: show 0.4s ease;
}

/*--------------------------------------------------------------
# Video nav Bar
--------------------------------------------------------------*/

.navbar {
    z-index: 8;
    position: absolute;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    text-align: right;
}

.navbar button {
    display: inline;
    padding: 10px;
    font-size: small;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #fff;
}

.navbar div {
    display: inline;
}

.navbar button:hover {
    color: var(--hover-color);
    cursor: pointer;
}

/*--------------------------------------------------------------
# Expand buttons 
--------------------------------------------------------------*/

.expand-video-content {
    position: relative;
    display: none;
    float: right;
    width: auto;
}

.expand-video-content button {
    display: none;
}

.expand-video:hover .expand-video-content {
    display: inline;
}

.expand-video:hover .expand-video-content button {
    display: inline;
}

/*--------------------------------------------------------------
# Peer name 
--------------------------------------------------------------*/

.videoPeerName {
    z-index: -1;
    width: max-content;
    position: absolute;
    padding: 4px 10px;
    margin: 8px 0;
    bottom: 0; /* Move to the bottom */
    left: 50%; /* Keep it on the right */
    color: #fff;
    transform: translateX(-50%);
    font-size: 12px;
    display: none;
    align-items: center;
    border-radius: 5px;
    background: #303030;
}

.btnHideVideo {
    z-index: 8;
    width: max-content;
    position: absolute;
    padding: 4px 10px;
    left: 0;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    background: #000000;
    cursor: pointer;
}

.btnHideVideo:after {
    content: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMCAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgN0w1IDExTDkgNyIgc3Ryb2tlPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMSAxTDUgNUw5IDEiIHN0cm9rZT0id2hpdGUiLz4KPC9zdmc+Cg==');
    display: inline-block;
    width: 16px;
    height: 16px;
    padding: 1px 7px;
    transition: transform 300ms ease-in-out, padding 300ms ease-in-out;
}

.btnHideVideo.active:after {
    transform: rotate(180deg) translateX(-2px);
    padding: 2px 0px;
}

.videoSessionTimer {
    z-index: 7;
    position: absolute;
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: center;      /* Center vertically */
    width: 90px;  /* Make the height equal to the width to form a circle */
    height: 90px;  /* Make the height equal to the width to form a circle */
    border-radius: 50%;  /* Make the background a circle */
    color: #fff;
    font-size: 1.5rem;

    /* Center the entire element */
    top: 0;
    right: 0;
    /* transform: translate(-50%, -50%); */
    background: rgba(0, 0, 0, 0.5);
    margin: 0 0 0 0;
}

.videoSessionTimerBorder {
    position: relative;
    width:60%;
    z-index:1;
    background: linear-gradient(grey, grey) content-box no-repeat, conic-gradient(blue var(--inner_percent_deg,0%), 0, green ) border-box;
    display:flex;
    justify-content: center;
}



@keyframes animate-circular{
    from{
      transform:rotate(0deg);
    }
    to{
      transform:rotate(90deg);
    }
  }

/* When time is less than or equal to 10 seconds */
.videoSessionTimer.warning {
    color: red;
}

/*--------------------------------------------------------------
# Video Avatar image
--------------------------------------------------------------*/

.videoAvatarImage {
    z-index: 1;
    position: absolute;
    display: none;
    border-radius: 50%;
    /*center*/
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: box-shadow 0.2s ease;
    width: calc(1.0 * (9 / 16) * 100vh);
}

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

.videoCircle {
    position: absolute;
    width: var(--vmi-wh);
    height: var(--vmi-wh);
    border-radius: 50%;
    /* center */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    transition: box-shadow 0.2s ease;
}

.videoDefault {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: box-shadow 0.2s ease;
}

video {
    width: 100%;
    height: 100%;
    object-fit: var(--video-object-fit);
    border-radius: 10px;
    cursor: pointer;
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
}

video:hover {
    filter: contrast(105%);
}

video:fullscreen {
    object-fit: cover;
}

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

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

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