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

#left {
	float: left;
    width: 200px;
    height: calc(100% - 28px);
    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% - 27px);
	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% - 28px);
	max-height: 100%;
	font-size: 0;
	overflow: hidden;
}

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

.viewerwrap {
	display: inline-block;
	margin: 10px 0 0 10px;
	border: 2px solid rgb(32, 32, 32);
	background: #000;
	width: 214px;
	height: 134px;
}

.canvaswrap {
	position: relative;
	width: 214px;
	height: 120px;
}

.previewheader {
	position: relative;
	height: 14px;
	line-height: 14px;
}

.previewheader img.warning {
	float: right;
	width: 13px;
	height: 13px;
}

.previewheader .sourceselect {
	width: 95px;
	height: 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 {
	position: absolute;
	top: 0;
	right: 0;
	width: 95px;
	color: #FFF;
	font-size: 11px;
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.destinationsPopOver {
	position: absolute;
	visibility: hidden;
	top: 0;
	right: 0;
	z-index: 50;
	padding: 5px;
	border: 1px solid rgb(6, 6, 6);
	border-radius: 5px;
	background: rgb(43, 43, 43);
	text-align: right;
}

.viewerwrap.selected {
	border-color: rgb(24, 89, 251);
	box-shadow: 0 0 10px rgb(24, 89, 251);
}

.viewerwrap.recording {
	border-color: red;
}

.timecode {
	position: absolute;
	top: 2px;
	left: 4px;
	font-size: 12px;
	color: white;
	width: 100px;
	height: 14px;
	cursor: default;
	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;
}

.vuMeter {
	position: absolute;
	width: 4px;
	height: 100px;
	top: 18px;
	left: 4px;
	background: linear-gradient(to bottom, red, rgb(255, 153, 0) 11%, rgb(0, 230, 0) 20%);
}

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

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

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

.vuMeterOverlay {
	width: 4px;
	height: 100px;
	background: rgba(77, 77, 77, 0.7);
}

#bottom {
	box-sizing: content-box;
	width: 100%;
	height: 27px;
	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;
}

#gangRecording {
	line-height: 26px;
	padding-top: 1px;
}

#gangRecording * {
	vertical-align: top;
	line-height: normal;
}

#gangRecording input {
	margin: 3px 11px 0 0;
}

#gangRecording button {
	margin: 3px 7px 0 0;
}

.stopButton, .recordButton, .pauseButton, .timerButton {
	position: relative;
	margin: 3px 4px 0 4px;
	border: 2px solid rgb(174, 174, 174);
	border-radius: 50%;
	width: 16px;
	height: 16px;
	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: 4px;
	right: 4px;
	width: 8px;
	height: 8px;
	background: rgb(13, 56, 228);
}

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

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

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

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

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

.pauseButton::before, .pauseButton::after {
	bottom: 4px;
	width: 2px;
	height: 8px;
	background: rgb(253, 126, 52);
}

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

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

.timerButton::after {
	bottom: 5px;
	right: 5px;
	width: 6px;
	height: 6px;
	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;
	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 {
	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);
}