html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	background-color: rgb(32, 32, 32);
	font-family: "Lucida Grande";
	font-size: 13px;
}

#container {
	min-width: 925px;
	margin: 0 auto; /* centers the container on larger screens */
}

#left {
	float: left;
	width: 200px;
	height: calc(100% - 56px);
	border-right: 1px solid rgb(27, 27, 27);
	background-color: rgb(44, 44, 44);
	overflow: hidden;
}

#topmenu {
	height: 26px;
	background: linear-gradient(to bottom, rgb(51, 51, 51), rgb(25, 25, 25));
	color: white;
	border-bottom: 1px solid rgb(95, 95, 95);
}

#topmenu div {
	display: inline-block;
	width: 50%;
	height: 26px;
	line-height: 26px;
	text-align: center;
	cursor: pointer;
}

#topmenu .selected {
	background: rgb(52, 84, 122);
}

#sourcelist, #destinationlist {
	height: calc(100% - 54px);
	overflow-y: auto;
}

.source, .destination {
	vertical-align: middle;
	box-sizing: border-box;
	height: 44px;
	padding: 4px 8px;
	line-height: 18px;
	border-bottom: 1px solid rgb(95, 95, 95);
	color: white;
}

.source.selected {
	background-color: rgb(36, 64, 100);
}

.source div, .destination div {
	height: 18px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gray {
	color: rgb(153, 153, 153);
	font-size: 12px;
}

#main {
	box-sizing: border-box;
	width: calc(100% - 201px);
	margin-left: 201px;
	height: calc(100% - 56px);
	font-size: 0;
	overflow: hidden;
}

#viewers {
	flex-flow: row wrap;
	overflow: hidden;
	width: 100%;
}

#preview {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
}

/* Make the header a flex container */
.previewheader {
	display: flex;
	align-items: center;
	justify-content: space-between;  /* Distribute space between elements */
	position: relative;
	height: 14px;
	font-size: 14px;
	line-height: 14px;
	padding: 0 5px;  /* Optional: Add some horizontal padding if needed */
}

/* Keep the warning icon at its natural size */
.warning {
	flex: 0 0 auto;
}

/* Fix the select element width */
.previewheader .sourceselect {
	max-width: 50%;
	margin-bottom: 10px;
	height: 14px;
	font-size: 14px;
	border: none;
	color: white;
	background: transparent;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	outline: none;
}

.previewheader .sourceselect:-moz-focusring {
	color: transparent;
	text-shadow: 0 0 0 #FFF;
}

.previewheader .sourceselect:-moz-focusring option {
	border: 0;
	outline: 0;
}

.destinationsLabel {
	flex: 1;
	max-width: 50%;
	margin-left: 10px;  /* Optional: add a little gap between the select and the label */
	margin-bottom: 10px;
	color: #FFF;
	font-size: 14px;
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.destinationsPopOver {
	position: absolute;
	visibility: hidden;
	top: 0;
	right: 0;
	z-index: 50;
	padding: 10px;         /* Increased from 5px for more room */
	border: 1px solid rgb(6, 6, 6);
	border-radius: 5px;
	background: rgb(43, 43, 43);
	text-align: right;
	font-size: 14px;       /* Set the text size to 14px */
}

/* Adjust the select element inside the popover */
.destinationsPopOver select {
	width: 220px;          /* Increase width to accommodate larger text */
	font-size: 14px;       /* Ensure the select uses a consistent font size */
}

/* Optionally, also adjust the button */
.destinationsPopOver button {
	font-size: 14px;
	padding: 5px 10px;     /* Adjust as needed */
	margin-top: 15px;  /* Moves the button */
	line-height: 5px;
}

.canvaswrap.recording {
	outline: 2px solid red;
}

.timecode {
	position: absolute;
	top: 2px;
	left: 4px;
	font-size: 24px;
	color: white;
	width: 100px;
	height: 14px;
	cursor: default;
	margin-top: 2px;
	text-shadow: 1px 1px 1px #909090;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
	z-index: +1;
}

.vuMeter {
	position: absolute;
	width: 8px;
	top: 36px;
	bottom: 36px;
	left: 4px;
	background: linear-gradient(to bottom, red, rgba(255, 153, 0, 0.5) 11%, rgba(0, 230, 0, 0.5) 20%);
	z-index: +1;
}

.vuMeter:nth-of-type(2) {
	left: 16px;
}

.vuMeter:nth-of-type(3) {
	left: 28px;
}

.vuMeter:nth-of-type(4) {
	left: 40px;
}

.vuMeter:nth-of-type(5) {
	left: auto;
	right: 48px;
}

.vuMeter:nth-of-type(6) {
	left: auto;
	right: 36px;
}

.vuMeter:nth-of-type(7) {
	left: auto;
	right: 24px;
}

.vuMeter:nth-of-type(8) {
	left: auto;
	right: 12px;
}

.vuMeterOverlay {
	width: 8px;
	background: rgba(77, 77, 77, 0.7);
}

#bottom {
	box-sizing: content-box;
	width: 100%;
	height: 54px;
	border-top: 1px solid rgb(20, 20, 20);
	background: linear-gradient(to bottom, rgb(53, 53, 53), rgb(36, 36, 36));
	box-shadow: inset 0 1px 0 0 rgb(67, 67, 67);
	text-align: center;
}

#bottom div {
	display: inline-block;
}

/* Make the #gangRecording container span the full width and anchor it at the bottom */
#gangRecording {
	line-height: 54px;
	padding-top: 4px;
	bottom: 11px;
	vertical-align: top;
	line-height: normal;
}

/* Center the buttons group horizontally */
.gangRecording-buttons {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
}

/* Position the input group at the right */
.gangRecording-input {
	position: absolute;
	right: 10px; /* Adjust as needed for spacing from the right edge */
	display: flex;
	align-items: center;
}

/* Style the input and apply button to match the height of your circular action buttons (42px) */
.gangRecording-input input,
.gangRecording-input button {
	height: 30px;
	font-size: 14px;
	line-height: 14px;
	box-sizing: border-box;
	/* Add some spacing between the two elements */
	margin-left: 10px;
	margin-top: 10px;
}

.gangRecording-input input {
	width: 300px; /* Adjust the value as needed */
}

.stopButton, .recordButton, .pauseButton, .timerButton {
	position: relative;
	margin: 3px 4px 0 4px;
	border: 2px solid rgb(174, 174, 174);
	border-radius: 50%;
	width: 42px;
	height: 42px;
	background: transparent;
}

.stopButton.inactive, .recordButton.inactive, .pauseButton.inactive, .timerButton.inactive {
	border: 2px solid rgb(75, 75, 75);
}

.stopButton::after, .recordButton::after, .pauseButton::after, .pauseButton::after, .pauseButton::before, .timerButton::after, .timerButton::before {
	position: absolute;
	content: "";
}

.stopButton::after {
	bottom: 12px;
	right: 12px;
	width: 18px;
	height: 18px;
	background: rgb(13, 56, 228);
}

.inactive.stopButton::after {
	background: rgb(3, 25, 119);
}

.recordButton::after {
	bottom: 11px;
	right: 11px;
	width: 20px;
	height: 20px;
	background: rgb(232, 37, 25);
	border-radius: 50%;
}

.inactive.recordButton::after {
	background: rgb(121, 13, 7);
}

.pauseButton::before {
	left: 11px;
}

.pauseButton::after {
	right: 11px;
}

.pauseButton::before, .pauseButton::after {
	bottom: 11px;
	width: 6px;
	height: 20px;
	background: rgb(253, 126, 52);
}

.inactive.pauseButton::before, .inactive.pauseButton::after {
	background: rgb(146, 70, 25);
}

.timerButton::before {
	top: 1px;
	left: 19px;
	width: 4px;
	height: 18px;
	background: rgb(24, 168, 27);
	border-radius: 1px;
}

.timerButton::after {
	bottom: 11px;
	right: 11px;
	width: 20px;
	height: 20px;
	background: rgb(24, 168, 27);
	border-radius: 50%;
}

.inactive.timerButton::before, .inactive.timerButton::after {
	background: rgb(75, 75, 75);
}

.timerButton.hasTimerSet {
	border-color: rgb(24, 168, 27);
}

.pauseButton.allPaused {
	border-color: rgb(253, 126, 52);
}

#timerPopOver {
	display: none;
	background: rgb(43, 43, 43);
	border: 1px solid rgb(10, 10, 10);
	border-radius: 5px;
	color: rgb(159, 159, 159);
	position: absolute;
	text-align: right;
	padding: 5px;
	box-shadow: inset 0 0 0 1px rgb(70, 70, 70);
}

#timerPopOver::after {
	position: absolute;
	content: "";
	width: 17px;
	height: 17px;
	background: rgb(43, 43, 43);
	border-right: 1px solid rgb(10, 10, 10);
	border-bottom: 1px solid rgb(10, 10, 10);
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
	left: calc(50% - 11px);
	bottom: -10px;
	box-shadow: inset -1px -1px 0 0 rgb(70, 70, 70);
}

#timerPopOver input[type=text], #timerPopOver input[type=datetime-local] {
	margin: 5px 0;
}

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	text-align: left;
}

input {
	height: 16px;
	padding: 1px;
	padding-left: 5px;
	padding-right: 5px;
	border-width: 0px;
	border-top: 1px solid rgb(18, 18, 18);
	border-bottom: 1px solid rgb(70, 70, 70);
	box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, 0.4);
	background: rgb(49, 49, 49);
	color: rgb(234, 234, 234);
}

button {
	padding-left: 10px;
	padding-right: 10px;
	height: 20px;
	border: 1px solid rgb(77, 77, 77);
	border-radius: 3px;
	box-shadow: 0 0 0px 1px rgb(24, 24, 24);
	background: linear-gradient(to bottom, rgb(53, 53, 53), rgb(36, 36, 36));
	color: rgb(234, 234, 234);
}

#toggleLeft {
	width: 40px;
	height: 35px;
	background-image: url(ToggleLeft.png);
	background-repeat: no-repeat;
	background-size: 40px 33px;
	cursor: pointer !important;
	position: absolute;
	left: 10px;
	bottom: 11px;
}

.on {
	background-image: url(ToggleLeft_on.png) !important;
}

.viewerwrap {
	display: flex;
	flex-direction: column;
	position: relative;
	align-items: center;
	margin: 10px; /* applies 10px on all sides */
	border: 2px solid rgb(32, 32, 32);
	width: calc(100% - 20px);  /* subtract left and right margins */
	height: 70vh;
	box-sizing: border-box;  /* ensure borders are included in the width calculation */
}

  .canvaswrap {
	position: relative;
	padding-top:calc(100% / (16 / 9));
	margin: 0;
  }
  
  .box {
	  position:relative;
	  margin: 0;
	  padding: 0;
  }
  .box-content {
	  position: absolute;
	  top: 0;
	  left: 0;
	  bottom: 0;
	  right: 0;
  }
  #outer {
	  display: flex;
	  flex-direction: column;
	  position: relative;
	  width: 100%;
	  align-items: center;
  }
