:root {
  --primary-color: #3719ed;
}


.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Header */
.modal-header {
  padding: 2px 16px;
  color: black;
  font-family: 'Inter';
  height: 60px;
}

/* Modal Body */
.modal-body {
  padding: 2px 16px;
  height: calc(100vh - 150px);
  box-sizing: border-box;
}

/* Modal Footer */
.modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
  height: 150px;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 60%;
  max-width: 1000px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  animation-name: animatetop;
  animation-duration: 0.4s;
}

/* Add Animation */
@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
#tmpVideo{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.btn{
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  color: white;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  min-height: 42px;
  min-width: 120px;
  border-radius: 27px;
  cursor: pointer;
  padding: 2px 20px;
  font-weight: 500;
  font-family: 'Inter';
}
#upload{
  margin: 20px 11px 10px;
  background-color:var(--primary-color);
}
#endRecording{
  margin: 10px 25px;
  background-color: #FF435A;
}

/* Counter */
#counter-wrapper {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;  
  flex-flow: column nowrap;
  justify-content: center; /* aligns on vertical for column */
  align-items: center; /* aligns on horizontal for column */
  z-index: 99;
  box-sizing: border-box;
  font-size: 5rem;
  font-weight: 700;
  background: rgba(0,0,0,0.5);
  color: #eee;
}
#mediaWrapper{
  display: block;
  bottom: 15px;
  left: 15px;
  z-index: 0;
  position: fixed;
  width: 200px;
  height: 200px;
}
#justScreenShare{
  display: block;
  z-index: -9999;
  position: relative;
}
#mediaWrapper video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#cameraVideoFrameDiv{
  z-index: 99;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0%;
  margin: auto;
  display: none;
  border-radius: 10px;
  height: fit-content;
  width: fit-content;
}
#cameraVideoFrame{
  height: 70vh;
  border-radius: 10px;
  margin: auto;
  width: 100%;
}
#cameraVideoDiv{
  display: none;
  bottom: 5px;
  left: 20px;
  z-index: 999;
  position: fixed;
  width: 190px;
  
}
#cameraVideo,#justWebcam{
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 999;
  height: 180px;
  width: 180px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
  0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 180px;
  cursor: grab;
  border: 1px solid var(--primary-color);
  display: none;
}
#video-feedback {
  position: fixed;
  display: none;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 90%;
  width: 80%;
  max-width: 100px;
  margin: auto;
  background-color: white;
  padding: 40px;
  border-radius: 20px;
}
#video-feedback::before{
  content: '';
  background-color: rgba(0, 0, 0, 0.5);
}
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.5);
}


#video-controller {
  background-color: var(--primary-color);
  width: 200px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  color: white;
  padding: 5px 5px;
  align-items: center;
  justify-content: space-evenly;
  font-family: 'Inter';
  margin: 10px auto;
}
#video-controller span{
  font-size: 16px;
}
#video-controller img.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
#video-controller img {
  height: 22px;
  width: 22px;
  cursor: pointer;
}