img, svg {
    vertical-align: middle;
}

#record-container {
  display:none!important;
}

#creator {    
	position: absolute;
	bottom: 63px;
	left: 20px;
	z-index: 10000;
	width: 75px;
	height: 75px;
	overflow: hidden;
	box-shadow: -1px -1px 9px 0px black;
	border-radius: 100px;
	background-color:black
}

#creator img {
	height: 100%;
    margin: auto;
    display: block;
}

.top {
    z-index: 1;
    /*height: 300px;
    width: 180px;*/
    height: 100%;
    width: 100%;
}

.bottom {
    z-index: 0;
    min-height: 20px;
    min-width: 20px;
}



.camera::after {
    content: attr(data-view);
    position: absolute;
    top: 2px;
    right: 0;
    width: 20px;
    height: 32px;
    z-index: 1;
    color: white;
    align-content: center;
}

.mini .camera-tools {
  display:flex;
}

.camera-tools {
  /*display:none;*/
  position:absolute;
  z-index:1;
      right: 19px;
    /*top: -7px;*/
}

.camera-tools > button {
  position:relative;
  height:32px;
}

.camera.no-feed {
  background: rgb(47 48 53) url(/images/no-feed.jpg) center center / contain no-repeat;
}

.camera.no-feed video {
  opacity: 0;
}

.camera {
    overflow: hidden;   
}

.main .camera {
    height:100%;
}


.camera video {
  display: block;
  max-width: 100%;
}
.mini {
  display: flex;
  flex-wrap: nowrap; /* 👈 Prevent wrapping to new lines */
  overflow-x: auto;   /* 👈 Allow horizontal scrolling if needed */
  gap: 10px;          /* Optional spacing between cameras */
  padding: 5px;       /* Optional visual spacing */
  box-sizing: border-box;
}

.mini .camera {
  flex: 0 0 auto;
  border: 2px solid #24c988;
  max-width: calc(20% - 10px);
  border: 2px solid #24c988;
  max-height: min-content;
  height: 100%;
  position:relative;
}






.mini video {
  object-fit: contain;
	max-height:100%;
}

/*.mini .camera:last-of-type video {
    height:20vh;
}*/

    /* Make the video container fullscreen without causing scrolling */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	/*height: 100dvh;*/ /* if supported, use dynamic viewport height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

/* Main area fills the fullscreen minus the height of the mini overlay */
.video-container .main {
    /*flex-grow: 1;*/
    background-color: #000;
    /* Background color for the main area */
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    text-align: center;

    /*display: flex;
    justify-content: center;
    align-items: end;*/
}

.video-container .main.no-feed::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    rgba(0,0,0,0.6) 
    url("/images/no-feed.jpg") center / contain no-repeat;
}

/* Mini area is an overlay at the bottom of the main content */
.video-container .mini {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    z-index: 3;
    transition: opacity 0.3s ease-out;
    justify-content: flex-end;
    display:none;
    height: 35%;
    align-items: flex-end;
}

/* copied css for video player */
.controls {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    /*height: 40px;*/
    background-color: rgba(0,
            0,
            0,
            0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1% 2% 2% 2%;
    opacity: 0;
    /*transition: opacity 0.3s ease-out;*/
    z-index: 3;
}

.controls button {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    outline: none;
}

/*.left {
    position: relative;
    top: 1%;
    width: 70px;
    display: flex;
    justify-content: space-between;
}*/

.video-timer {
    position: relative;
    top: 5.2px;
    right: 6px;
    display: flex;
    flex-direction: row;
    color: #efefef;
    margin-left: 5px;
    font-size: 12px;
}

.separator {
    margin: 0 5px;
    font-size: 16px;
    font-family: "Open sans";
}

.right {
    position: relative;
	  margin: -10px 0px -10px 10px;
    top: 1.5px;
    /*opacity:0;*/
}

.d-none {
	display: none!important;
}

button,
input {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

.volume-container {
    display: flex;
    align-items: center;
}

.volume {
    position: relative;
    left: 5px;
    width: 50px;
    height: 3px;
}

.playback-line {
    position: relative;
    top: 2.7px;
    height: 12px;
    background-color: #ddd;
    /*width: 40%;*/
    flex:1;
    cursor: pointer;
    padding: 3px 0;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #24c988;
    transition: width 0.1s linear;
}


.central-controls {
    opacity: 0;
    /*transition: opacity 0.3s ease-out;*/
}
/* play button */
.play {
    border: 0;
    background: transparent;
    box-sizing: border-box;
    width: 0;
    height: 74px;

    transition: 100ms all ease;
    cursor: pointer;
    border-width: 37px 0 37px 60px;
    z-index: 4;
    position: absolute;
    top: calc(50% - 4px);
	  left: calc(50% - 50px); 
    transform: translateY(-50%); 
}
  .play.paused {
    /*border-style: double;
    border-width: 0px 0 0px 60px;*/
     
  }

  .play .play-svg {
    display: block;
  }

  .play.paused .play-svg {
    display: none;
  }

  .play .pause-svg {
    display: none;
  }
  .play.paused .pause-svg {
    display: block;
  }


  .play:hover {
    border-color: transparent transparent transparent #fff;
  }

  .overlay {
    position:absolute;
    z-index: 2;
    margin:10px 10px;
    /*width: 100%;*/
    text-align: left;
  }

/* Webkit version for Chrome, Safari, Edge */
.playback-line {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    background: #fff; /* Background track color */
    border-radius: 5px;
    outline: none;
}

/* Webkit Slider Thumb */
.playback-line::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
	  margin-top: -2px; /* Align the thumb vertically */
    background-color: #24c988; /* Thumb color */
    border-radius: 50%;
    cursor: pointer;

    position: relative;
    z-index: 1;
}

/* Webkit Track (this styles the entire track) */
.playback-line::-webkit-slider-runnable-track {
    height: 12px;
    background-color: #fff; /* Background track color */
}

/* Webkit Active Track (the progress color) */
.playback-line::-webkit-slider-runnable-track:before {
    content: '';
    background-color: #24c988; /* Active track color */
    height: 6px;
    display: block;
}

/* Webkit Active Track (the progress color, to match the Mozilla progress) */
.playback-line::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #24c988 0%, #24c988 var(--progress, 50%), #fff var(--progress, 50%));
}

/* Set the initial value of the progress */
.playback-line {
    --progress: 0%;
}


/* Firefox */
.playback-line::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background-color: #24c988; /* Thumb color */
    border-radius: 50%;
    cursor: pointer;
}

.playback-line::-moz-range-track {
    background-color: #fff; /* Background track color */
}

.playback-line::-moz-range-progress {
    background-color: #24c988; /* Active track color */
}


.control-btn {
	z-index: 4;
    position: absolute;
    top: 50%;
    left: calc(50% - 100px);
    transform: translate(-50%, -50%);
    /*transition: opacity 0.3s ease-out;*/
    height: min(10%, 75px);
    width: min(10%, 75px);
    min-height: 40px;
}

.control-btn.forward {
	left: calc(50% + 100px);
} 


  /* spinner */
  .lds-spinner {
    /* change color here */
    color: #1c4c5b;
    margin: auto;
  }
  .lds-spinner,
  .lds-spinner div,
  .lds-spinner div:after {
    box-sizing: border-box;
  }
  .lds-spinner {
    color: currentColor;
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;

  }
  .lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
  }
  .lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3.2px;
    left: 36.8px;
    width: 6.4px;
    height: 17.6px;
    border-radius: 20%;
    background: currentColor;
  }
  .lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
  }
  .lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
  }
  .lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
  }
  .lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
  }
  .lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
  }
  .lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
  }
  .lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
  }
  .lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
  }
  .lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
  }
  .lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
  }
  .lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
  }
  .lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
  }
  @keyframes lds-spinner {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }

  .loading {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background-color: #0000007d;
    /*opacity: 0.5;*/
  }

  .loading img {
	border: 2px solid #111113;
	width: 100px;
    margin: auto;
    border-radius: 300px;
    margin-top: 40px;
  }

.animate-border {
	animation: borderPulse 5s linear forwards;
}

@keyframes borderPulse {
	0% {
		border-color: darkgrey darkgrey darkgrey darkgrey;
	}
	25% {
		border-color: #24c988 #24c988 #24c988 #24c988;
	}
	35% {
		border-color: darkgrey darkgrey darkgrey darkgrey;
	}
	50% {
		border-color: #24c988 #24c988 #24c988 #24c988;
	}
	60% {
		border-color: darkgrey darkgrey darkgrey darkgrey;
	}
	75% {
		border-color: #24c988 #24c988 #24c988 #24c988;
	}
	85% {
		border-color: grey grey grey grey;
	}
	100% {
		border-color: #24c988 #24c988 #24c988 #24c988;
	}
}