:root {
	color-scheme: light;
}

html {
	color-scheme: light;
}

body {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 14px;
	margin: 0;
	overflow: hidden;
}

hr {
	border: 0;
	border-top: 1px solid #ccc;
}

button {
	position: relative;
}

input {
	vertical-align: middle;
}

	input[type="color"]::-webkit-color-swatch-wrapper {
		padding: 0;
	}
	input[type="color"]::-webkit-color-swatch {
		border: none;
	}

textarea {
	tab-size: 4;
	white-space: pre;
	word-wrap: normal;
}

	textarea.success {
		border-color: #8b8 !important;
	}

	textarea.fail {
		border-color: #f00 !important;
		background-color: rgba(255,0,0,0.05);
	}

textarea, input { outline: none; } /* osx */

svg {
	transform-origin: center center;
}

.Panel {
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;

	/* No support for these yet */
	-o-user-select: none;
	user-select: none;
}

.TabbedPanel {
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;

	/* No support for these yet */
	-o-user-select: none;
	user-select: none;
	position: relative;
	display: block;
	width: 100%;
	min-width: 365px;
}

.TabbedPanel .Tabs {
	position: relative;
	display: block;
	width: 100%;
}

	.TabbedPanel .Tabs .Tab {
		padding: 10px 9px;
		text-transform: uppercase;
	}

	.TabbedPanel .Panels {
		position: relative;
		display: block;
		width: 100%;
		height: 95%;
		overflow: auto;
	}

/* Listbox */
.Listbox {
	color: #444;
	background-color: #fff;
	padding: 0;
	width: 100%;
	min-height: 180px;
	font-size: 12px;
	cursor: default;
	overflow: auto;
}

.Listbox .ListboxItem {
	padding: 6px;
	color: #666;
	white-space: nowrap;
}

.Listbox .ListboxItem.active {
	background-color: rgba(0, 0, 0, 0.04);
}

/* CodeMirror */

.CodeMirror {

	position: absolute !important;
	top: 37px;
	width: 100% !important;
	height: calc(100% - 37px) !important;

}

	.CodeMirror .errorLine {

		background: rgba(255,0,0,0.25);

	}

	.CodeMirror .esprima-error {

		color: #f00;
		text-align: right;
		padding: 0 20px;

	}

/* outliner */

#outliner .opener {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin: 0px 4px;
	vertical-align: top;
	text-align: center;
}

	#outliner .opener.open:after {
		content: '−';
	}

	#outliner .opener.closed:after {
		content: '+';
	}

#outliner .option {

	border: 1px solid transparent;

}

#outliner .option.drag {

	border: 1px dashed #999;

}

#outliner .option.dragTop {

	border-top: 1px dashed #999;

}

#outliner .option.dragBottom {

	border-bottom: 1px dashed #999;

}

#outliner .type {
	display: inline-block;
	width: 14px;
	height: 14px;
	color: #ddd;
	text-align: center;
}

#outliner .type:after {
	content: '●';
}

/* */

#outliner .Scene {
	color: #8888dd;
}

#outliner .Camera {
	color: #dd8888;
}

#outliner .Light {
	color: #dddd88;
}

/* */

#outliner .Object3D {
	color: #aaaaee;
}

#outliner .Mesh {
	color: #8888ee;
}

#outliner .Line {
	color: #88ee88;
}

#outliner .LineSegments {
	color: #88ee88;
}

#outliner .Points {
	color: #ee8888;
}

/* */

#outliner .Geometry {
	color: #aaeeaa;
}

#outliner .Material {
	color: #eeaaee;
}

/* */

#outliner .Script:after {
	content: '◎'
}

/*  */

button {
	color: #555;
	background-color: #ddd;
	border: 0px;
	margin: 0px; /* GNOME Web */
	padding: 5px 8px;
	font-size: 12px;
	text-transform: uppercase;
	cursor: pointer;
	outline: none;
}

	button:hover {
		background-color: #fff;
	}

	button.selected {
		background-color: #fff;
	}

input, textarea {
	border: 1px solid transparent;
	color: #444;
}

input.Number {
	color: #08f!important;
	font-size: 12px;
	border: 0px;
	padding: 2px;
}

select {
	color: #666;
	background-color: #ddd;
	border: 0px;
	text-transform: uppercase;
	cursor: pointer;
	outline: none;
}

	select:hover {
		background-color: #fff;
	}

/* UI */

#resizer {
	position: absolute;
	top: 0;
	right: 365px;
	width: 5px;
	bottom: 0px;
	/* background-color: rgba(255,0,0,0.5); */
	cursor: col-resize;
}

#viewport {
	position: absolute;
	top: 0;
	left: 320px;
	right: 365px;
	bottom: 0;
}

	#viewport #info {
		text-shadow: 1px 1px 0 rgba(0,0,0,0.25);
		pointer-events: none;
	}

.measurementmode {
	cursor: url('../images/measure_tool_cursor.png'), auto;
}

#script {
	position: absolute;
	top: 0;
	left: 0;
	right: 350px;
	bottom: 0;
	opacity: 0.9;
}

#player {
	position: absolute;
	top: 0;
	left: 0;
	right: 350px;
	bottom: 0;
}

#menubar {
	position: absolute;
	width: 100%;
	height: 32px;
	background: #eee;
	padding: 0;
	margin: 0;
	right: 0;
	top: 0;
}

	#menubar .menu {
		float: left;
		cursor: pointer;
		padding-right: 8px;
	}

	#menubar .menu.right {
		float: right;
		cursor: auto;
		padding-right: 0;
		text-align: right;
	}

		#menubar .menu .title {
			display: inline-block;
			color: #888;
			margin: 0;
			padding: 8px;
			line-height: 16px;
		}

		#menubar .menu .options {
			position: fixed;
			display: none;
			padding: 5px 0;
			background: #eee;
			width: 150px;
			max-height: calc(100% - 80px);
			overflow: auto;
		}

		#menubar .menu:hover .options {
			display: block;
		}

			#menubar .menu .options hr {
				border-color: #ddd;
			}

			#menubar .menu .options .option {
				color: #666;
				background-color: transparent;
				padding: 5px 10px;
				margin: 0 !important;
			}

				#menubar .menu .options .option:hover {
					color: #fff;
					background-color: #08f;
				}

				#menubar .menu .options .option:active {
					color: #666;
					background: transparent;
				}

		#menubar .menu .options .inactive {
			color: #bbb;
			background-color: transparent;
			padding: 5px 10px;
			margin: 0 !important;
		}

#sidebar {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 300px;
	width: 350px;
	overflow: hidden;
}

	#sidebar .Panel {
		padding: 10px;
		/* border-top: 1px solid #ccc; */
	}

	#sidebar .Panel.collapsed {
		margin-bottom: 0;
	}

	#sidebar .Row {
		display: flex;
		align-items: center;
		min-height: 24px;
		margin-bottom: 10px;
	}

	#sidebar .Row .Label {

		width: 120px;

	}

#edit_lateral_positon_div_container {
	position: absolute;
	width: 200px;
	height: 48px;
	left: 360px;
	top: -50px;
	background-color: rgb(255, 255, 255);
	border-radius: 5px;
}

#adjust_tilt_div_container {
	position: absolute;
	width: 200px;
	height: 48px;
	left: 360px;
	top: -50px;
	background-color: rgb(255, 255, 255);
	border-radius: 5px;
}

#notificationPanel {
	position: absolute;
	left: 0;
	bottom: 100px;
	width: 320px;
}

#leftBottomPanel {
	position: absolute;
	left: 0;
	bottom: 40px;
	width: 320px;
	height: 160px;
}

#rightBottomPanel {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 365px;
	height: 300px;
}

	#rightBottomPanel button {
		position: relative;
		border-radius: 10px;
		width: 250px;
		height: 64px;
		left: 57.5px;
		text-transform: none !important;
		font-size: large;
		color: white;
	}

#designReviewButton {
	top: 64px;
	background-color: #979EA8;
}

#submitButton {
	top: 80px;
	background-color: #54C45E;
}

#newRightPanel {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 300px;
	width: 365px;
	min-width: 365px !important;
	background: #ffffff;
	overflow: auto;
}

.toDeleteHighlight {
	color : #FFF700;
	background : #AAAAAA;
	padding: 0 10px 0 10px;
}

.toReplaceHighlight {
	color : #86E6FE;
	background : #AAAAAA;
	padding: 0 10px 0 10px;
}

#contentLibrary {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 200px;
	width: 320px;
	min-width: 320px !important;
	background: #ffffff;
	overflow: hidden;
}

.groupTitle {
	margin-left: 10px;
	display: flex;
	align-items: center;
	cursor: pointer;
}

.flipY {
	transform: scaleY(-1);
}

#tabs {
	background-color: #ddd;
	border-top: 1px solid #ccc;
}

	#tabs span {
		color: #aaa;
		border-right: 1px solid #ccc;
		padding: 10px;
	}

	#tabs span.selected {
		color: #888;
		background-color: #eee;
	}

#toolbar {
	position: absolute;
	left: 330px;
	top: 42px;
	width: 32px;
	background: #eee;
	text-align: center;
}

	#toolbar button, #toolbar input {
		height: 32px;
	}

		#toolbar button img {
			width: 16px;
			opacity: 0.5;
		}

#tooltip {
	position: absolute;
	left: 360px;
	top: 10px;
	width: 200px;
	height: 40px;
	border-radius: 5px;
	padding: 10px;
	align-content: center;
	color: white;
	background-color: rgba(24, 24, 23, 0.35);
}

#warningDialogContainer {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: #0000004a;
	z-index: 2;
	display: none;
}
#warningDialog {
	position: relative;
	width: 450px;
	height: 200px;
	top: 200px;
	margin: auto;
	border-radius: 8px;
	background: rgb(255, 255, 255);
}
	#warningDialog img {
		content: url('../images/warning_32x32.png');
		width: 24px;
		height: 24px;
		top: 14px;
		left: 20px;
		position: absolute;
	}
	#warningDialog button {
		position: absolute;
		bottom: 12px;
		right: 30px;
		width: 40px;
		background-color: blue;
		color: white;
		font-size: 16px;
		font-weight: bold;
	}
	#HorizontalRuleTitle {
		border-top: 2px solid #E9730C;
	}

#succeesDialog {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: #0000004a;
	z-index: 2;
}

	#card {
		position: relative;
		width: 550px;
		display: block;
		margin: 40px auto;
		text-align: center;
		font-family: 'Source Sans Pro', sans-serif;
	}

	#upper-side {
		padding: 4em;
		background-color: #ffffff;
		display: block;
		color: #fff;
		border-top-right-radius: 8px;
		border-top-left-radius: 8px;
	}

	#checkmark {
		font-weight: lighter;
		fill: #fff;
		margin: -3.5em auto auto 20px;
	}

	#status {
		font-weight: lighter;
		text-transform: uppercase;
		letter-spacing: 2px;
		font-size: 1.5em;
		margin-top: -.2em;
		margin-bottom: 0;
	}

	#lower-side {
		padding: 4em 2em 5em 2em;
		background: #fff;
		display: block;
		border-bottom-right-radius: 8px;
		border-bottom-left-radius: 8px;
	}

	#lower-side2 {
		padding: 4em 2em 5em 2em;
		background: #8BC34A;
		display: block;
		border-radius: 8px;
	}

	#message {
		margin-top: -.5em;
		color: #757575;
		letter-spacing: 1px;
	}

	#message2 {
		margin-top: -.5em;
		color: white;
		letter-spacing: 1px;
	}

#pdfViewerContainer {
	position: absolute;
	left: 360px;
	right: 410px;
	top: 32px;
	bottom: 128px;
}

#pdfViewer {
	position: fixed;
	left: 360px;
	right: 410px;
	top: 32px;
	bottom: 128px;
}

#pdfViewerCloseButton {
	position: absolute;
	transform: scale(1.5);
	width: 25px;
	height: 25px;
	right: 64px;
	top: 96px;
	background-color: white;
	background-image:url("../images/closebutton.svg");
	cursor: pointer;
}

#floatingtoolbar {
	position: absolute;
	bottom: 32px;
	height: 72px;
	width: 460px;
	border-radius: 10px;
	background-color: #3737377d;
}
	#floatingtoolbar #floatingtoolbar_container {
		position: absolute;
		width: max-content;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
	}
	#floatingtoolbar #floatingtoolbar_container button {
		margin-right: 15px;
		border-radius: 12px;
	}
		#floatingtoolbar #floatingtoolbar_container svg {
			fill: rgb(255, 255, 255);
			scale: 0.75;
		}
		#floatingtoolbar #floatingtoolbar_container svg:hover {
			fill: black;
		}
		#floatingtoolbar #floatingtoolbar_container button:hover {
			background-color: white;
		}

#attentionIcon {
	position: absolute;
	top: 46px;
	left: 338px;
	width: 64px;
	height: 64px;
	cursor: pointer;
}

#statusbar {
	position: relative;
	font-size: large;
	left: 550px;
	top: 64px;
	height: 64px;
	width: 650px;
	cursor: pointer;
	border-radius: 15px;
	background-color: #edf196;
}
	#statusbar #messageArea {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
		color: #ff0000;
	}
	#statusbar #messageDetailsArea {
		position: absolute;
		top: 70px;
		left: 0;
		width: 610px;
		height: 180px;
		padding: 20px;
		border-radius: 15px;
		background-color: #edf196;
		color: #000;
	}
	#statusbar img {
		position: absolute;
		width: 20px;
		height: 20px;
		right: 15px;
		top: 22px;
		cursor: pointer;
	}

#statusbar2 {
	position: sticky;
	left: 550px;
	top: 64px;
	height: 36px;
	width: 300px;
	cursor: pointer;
	border-radius: 15px;
	background-color: #edf196;
}
	#statusbar2 #messageArea {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
		width: max-content;
		height: 24px;
		color: #ff0000;
	}
	#statusbar2 #messageDetailsArea {
		position: absolute;
		top: 80px;
		left: 0;
		height: 70px;
		padding: 20px;
		border-radius: 15px;
		background-color: #a8ab66;
		color: #000;
	}
	#statusbar2 img {
		position: absolute;
		width: 20px;
		height: 20px;
		right: 10px;
		top: 14px;
		cursor: pointer;
	}

#designInfoIcon {
	position: absolute;
	top: 120px;
	left: 338px;
	width: 64px;
	height: 64px;
	cursor: pointer;
}

#designInformation {
	position: relative;
	left: 327px;
	top: 120px;
	height: 500px;
	min-width: 164px !important;
	border-radius: 15px;
	background-color: white;
	cursor: pointer;
	color: rgb(0, 12, 182);
}
	#designInformation img {
		position: absolute;
		right: 0;
		top: 0;
		height: 100%;
	}
	#designInformation #designSummaryPanelDetails {
		height: 450px;
		overflow: auto;
	}
	#designInformation #designSummaryPanelDetails li {
		margin-left: 15px;
	}

#designCheckResponsePanel {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: #0000004a;
	z-index: 2;
}
	#designCheckResponseContent {
		position: relative;
		top: 128px;
		margin-left: auto;
		margin-right: auto;
		width: 512px;
		padding: 4em 2em 5em 2em;
		background: #C9C7C8;
		border-radius: 8px;
	}
	.DesignChecksRowContent {
		font-size: large;
		padding: 10px 0;
	}
	.CheckStatus {
		position: absolute;
		right: 60px;
		width: 50px;
		text-align: center;
		background-color: #70AC4C;
		border: solid 1px;
		border-radius: 5px;
		border-color: black;
		color: white;
		padding: 2px 20px;
	}

#submitConfirmationPanel {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: #0000004a;
	z-index: 2;
}
	#submitConfirmationPanelContent {
		position: relative;
		top: 128px;
		margin-left: auto;
		margin-right: auto;
		width: 512px;
		padding: 4em 2em 5em 2em;
		background: #C9C7C8;
		border-radius: 8px;
	}
	.SubmitConfirmButton {
		position: absolute;
		bottom: 30px;
		left: 144px;
		width: 80px;
		font-size: 16px;
	}

#compassContainer {
	position: absolute;
	width: 200px;
	height: 200px;
	top: 20px;
	right: 20px;
	background-image: url('../images/circle_with_label_512x512.png');
	background-size: 280px;
	background-position: 50% 50%;
}

#azimuthDiv {
	position: absolute;
	top: 0;
	left: -20px;
	width: 150px;
	height: 50px;
	color: white;
}

.Outliner {
	color: #444;
	background-color: #fff;
	padding: 0;
	width: 100%;
	height: 180px;
	font-size: 12px;
	cursor: default;
	overflow: auto;
	resize: vertical;
	outline: none !important;
}

	.Outliner .option {
		padding: 4px;
		color: #666;
		white-space: nowrap;
	}

	.Outliner .option:hover {
		background-color: rgba(0,255,0,0.1);
	}

	.Outliner .option.active {
		background-color: rgba(0,255,0,0.1);
	}


.TabbedPanel .Tabs {
	background-color: #ddd;
	border-top: 1px solid #ccc;
}

	.TabbedPanel .Tab {
		color: #aaa;
		border-right: 1px solid #ccc;
	}

	.TabbedPanel .Tab.selected {
		color: #888;
		background-color: #eee;
	}

.Listbox {
	color: #444;
	background-color: #fff;
}

.nudgeUp {
	padding: 1px 1px !important;
	top: -8px;
	left: 2px;
}

.nudgeDown {
	padding: 1px 1px !important;
	top: 8px;
	left: -8px;
}

.equipmentInstanceCounter {
	display: inline-block;
	align-content: end;
	position: absolute;
	left: 260px;
	width: 32px;
	height: 32px;
}

/* */

@media all and ( max-width: 600px ) {

	#resizer {
		display: none;
	}

	#menubar .menu .options {
		max-height: calc(100% - 372px);
	}

	#menubar .menu.right {
		display: none;
	}

	#viewport {
		left: 0;
		right: 0;
		top: 0;
		height: calc(100% - 352px);
	}

	#script {
		left: 0;
		right: 0;
		top: 0;
		height: calc(100% - 352px);
	}

	#player {
		left: 0;
		right: 0;
		top: 0;
		height: calc(100% - 352px);
	}

	#sidebar {
		left: 0;
		width: 100%;
		top: calc(100% - 320px);
		bottom: 0;
	}

}

/* DARK MODE */

@media ( prefers-color-scheme: dark ) {

	button {
		color: #aaa;
		background-color: #222;
	}

		button:hover {
			color: #ccc;
			background-color: #444;
		}

		button.selected {
			color: #fff;
			background-color: #08f;
		}

	input, textarea {
		background-color: #222;
		border: 1px solid transparent;
		color: #888;
	}

	select {
		color: #aaa;
		background-color: #222;
	}

		select:hover {
			color: #ccc;
			background-color: #444;
		}

	/* UI */

	#menubar {
		background: #111;
	}

			#menubar .menu .options {
				background: #111;
			}

				#menubar .menu .options hr {
					border-color: #222;
				}

				#menubar .menu .options .option {
					color: #888;
				}

			#menubar .menu .options .inactive {
				color: #444;
			}

	#sidebar {
		background-color: #111;
	}

		#sidebar .Panel {
			border-top: 1px solid #222;
		}

		#sidebar .Panel.Material canvas {
			border: solid 1px #5A5A5A;
		}

	#tabs {
		background-color: #1b1b1b;
		border-top: 1px solid #222;
	}

		#tabs span {
			color: #555;
			border-right: 1px solid #222;
		}

		#tabs span.selected {
			background-color: #111;
		}

	#toolbar {
		background-color: #111;
	}

		#toolbar img {
			filter: invert(1);
		}

	.Outliner {
		color: #888;
		background: #222;
	}

		.Outliner .option:hover {
			background-color: rgba(21,60,94,0.5);
		}

		.Outliner .option.active {
			background-color: rgba(21,60,94,1);
		}

	.TabbedPanel .Tabs {
		background-color: #1b1b1b;
		border-top: 1px solid #222;
	}

		.TabbedPanel .Tab {
			color: #555;
			border-right: 1px solid #222;
		}

		.TabbedPanel .Tab.selected {
			color: #888;
			background-color: #111;
		}

	.Listbox {
		color: #888;
		background: #222;
	}

	.Listbox .ListboxItem:hover {
		background-color: rgba(21,60,94,0.5);
	}

	.Listbox .ListboxItem.active {
		background-color: rgba(21,60,94,1);
	}

}

/* Temporary Chrome fix (#24794) */

[draggable="true"] {
	transform: translate(0, 0);
	z-index: 0;
}
