* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
}

body {
	color: #484848;
	background-color: #f6f6f6;
	font: 15px/1.5 'Open Sans', sans-serif;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-flow: row nowrap;
	user-select: none;
	-webkit-user-select: none;
}

a {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: all 0.4s ease;
}

::selection {
	color: #fff;
	background: #1ba1c7;
}

hr {
	border: 0;
	border-bottom: 1px solid #e5e7ec;
}

input[type=range] {
	-webkit-appearance: none;
	height: 5px;
	border-radius: 3px;
	background-color: #5a8be4;
	outline: none;
}

input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	box-shadow: 0 0 3px #666;
	background-color: #fff;
	cursor: pointer;
}

input[type=range]::-moz-range-thumb {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	box-shadow: 0 0 3px #666;
	background-color: #fff;
	cursor: pointer;
}

.toggle input {
	opacity: 0;
	width: 0;
	height: 0;
	float: left;
}

.toggle span {
	position: relative;
	display: block;
	background-color: #e5e7ec;
	width: 42px;
	height: 23px;
	border-radius: 11px;
	transition: all 0.4s ease;
	cursor: pointer;
	margin: 0 auto;
}

.toggle input:checked + span {
	background-color: #5a8be4;
}

.toggle span:before {
	position: absolute;
	content: "";
	width: 15px;
	height: 15px;
	border-radius: 50%;
	box-shadow: 0 0 3px #666;
	background-color: #fff;
	top: 4px;
	left: 4px;
	transition: all 0.2s;
}

.toggle input:checked + span:before {
	transform: translateX(19px);
}


aside {
	background-color: #fdfdfd;
	border-left: 1px solid #e5e7ec;
	width: 380px;
	flex-basis: 380px;
	height: 100%;
	padding-left: 64px;
	position: relative;
}

aside.hidden {
	width: 64px;
	flex-basis: 64px;
}

aside > nav {
	width: 64px;
	height: 100%;
	left: 0;
	position: absolute;
	border-right: 1px solid #e5e7ec;
	background-color: #fff;
	display: flex;
	flex-direction: column;
}

aside > nav .bottom-nav {
	margin-top: auto;
}

aside > nav a {
	display: block;
	color: #aab3bb;
}

aside > nav a.active {
	color: #484848;
}

aside > nav a:hover {
	color: #38435a;
	background-color: #f1f4f7;
}

aside > nav a > .fa {
	padding: 16px;
	font-size: 20px;
	line-height: 32px;
	text-align: center;
	display: block;
}

aside > nav label {
	display: block;
	margin: 12px 0;
}

aside > div {
	height: 100%;
	padding-top: 65px;
	position: relative;
	overflow: hidden;
}

aside > div > #aside-top {
	top: 0;
	width: 100%;
	height: 65px;
	background-color: #fff;
	border-bottom: 1px solid #e5e7ec;
	position: absolute;
}

#zoom-slider-container {
	width: 60%;
	position: absolute;
	padding-left: 8px;
	top: 19px;
}

#progress-slider-container {
	width: 100%;
	position: absolute;
	padding-left: 8px;
	top: 85px;
}

#progress-slider {
	width: 95%;
}

#progress #progress-value {
	width: 40%;
	left: 58%;
	top: 85px;
	position: absolute;
	line-height: 48px;
	padding: 8px;
	text-align: right;
	white-space: nowrap;
	overflow-x: hidden;
}

.progress-play {
	border: none;
	background: #5a8be4;
	color: #ffffff;
	padding: 5px 5px;
	font-size: 16px;
	cursor: pointer;
	position: absolute;
	width: 40px;
	top: 125px;
	left: 75px;
}

.progress-pause {
	border: none;
	background: #5a8be4;
	color: #ffffff;
	padding: 5px 5px;
	font-size: 16px;
	cursor: pointer;
	position: absolute;
	width: 40px;
	top: 125px;
	left: 120px;
}

.progress-stop {
	border: none;
	background: #5a8be4;
	color: #ffffff;
	padding: 5px 5px;
	font-size: 16px;
	cursor: pointer;
	position: absolute;
	width: 40px;
	top: 125px;
	left: 165px;
}

#aside-top #zoom-slider {
	width: 100%;
}

#aside-top #zoom-value {
	width: 40%;
	left: 60%;
	position: absolute;
	line-height: 48px;
	padding: 8px;
	text-align: center;
	white-space: nowrap;
	overflow-x: hidden;
}

#aside-top #zoom-value.incorrect {
	outline-color: red;
	-webkit-animation: shake .5s linear;
}

aside > div > div.tab {
	display: none;
	height: 100%;
}

aside > div > div.tab.active {
	display: block;
}

aside > div > div.tab .hidden {
	display: none;
}

aside > div .scrollable {
	height: 100%;
	overflow-y: scroll;
	position: relative;
}

.layer {
	position: relative;
	height: 48px;
	line-height: 32px;
	padding: 8px 8px 8px 64px;
}

#scene-graph .layer {
	cursor: pointer;
}

#scene-graph .layer:hover, .line:hover {
	background-color: #f1f4f7;
}

.layer > .caret {
	position: absolute;
	width: 32px;
	line-height: 32px;
	margin-left: -64px;
	top: 8px;
	text-align: center;
}

.layer > .icon {
	position: absolute;
	width: 24px;
	line-height: 32px;
	margin-left: -32px;
	top: 8px;
	text-align: center;
}

.layer > .visibility {
	position: absolute;
	width: 24px;
	line-height: 32px;
	right: 8px;
	top: 8px;
	text-align: center;
	font-size: 20px;
	color: #777;
}

.layer > .depthSpan {
	position: absolute;
	left: 8px;
	line-height: 32px;
	font-size: 11px;
}

.layer.composite::before {
	content: "";
	display: block;
	background: #484848;
	position: absolute;
	margin-left: -20px;
	height: 24px;
	width: 1px;
	top: -12px;
}

#properties .layer {
	padding: 8px 8px 8px 40px;
}

.line {
	display: block;
	padding: 6px 12px;
}

.line-title {
	display: block;
	font-size: 13px;
}

aside > div > div .header {
	padding: 12px 12px 0px;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 14px;
	color: #909090;
}

#files-list .container {
	padding-bottom: 64px;
}

#files-list .line {
	cursor: pointer;
	position: relative;
}

#files-list .trash {
	position: absolute;
	width: 24px;
	line-height: 34px;
	right: 8px;
	top: 8px;
	text-align: center;
	font-size: 20px;
	color: #777;
}

.line-details {
	display: block;
	font-size: 13px;
}

.upload {
	position: absolute;
	bottom: 16px;
	left: 50%;
	margin-left: -110px;
}

.upload > a {
	background-color: #5a8be4;
	color: white;
	display: inline-block;
	line-height: 32px;
	text-align: center;
}

.upload > a:hover,
.popup > div > footer .button:hover {
	background-color: #5071b1;
}

.upload > a > i {
	padding-right: 8px;
}

.upload > a#add-file-local {
	border-radius: 3px 0 0 3px;
	width: 135px;
}

.upload > a#add-file-url {
	border-radius: 0 3px 3px 0;
	border-left: 1px solid #93afe7;
	width: 85px;
}

.placeholder {
	text-align: center;
	position: absolute;
	top: 45%;
	padding: 0 8px;
	margin-top: -32px;
	width: 100%;
}

section {
	flex: 1 1 0;
	display: flex;
	flex-flow: column nowrap;
	position: relative;
	overflow: hidden;
}

section .hidden {
	display: none;
}

section #image-area {
	flex: 1 1 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.dark-mode section #image-area {
	background-color: #1b2124;
	color: #f6f6f6;
}

section #image-area.highlight {
	background-color: #272f34;
	color: #f6f6f6;
}

#image-placeholder {
	text-align: center;
}

#image-file-selector {
	display: none;
}

section #console-area {
	background-color: #fdfdfd;
	border-top: 1px solid #e5e7ec;
	height: 150px;
	overflow-y: scroll;
}

section #console-area > span {
	display: block;
	font-family: 'Noto Mono', 'DejaVu Sans Mono', monospace;
	user-select: text;
	-webkit-user-select: text;
	padding-left: 24px;
	line-height:  23px;
	border-bottom: 1px solid #f8f8f8;
}

section #console-area > span.console-type-inner {
	color: #2969b3;
	background-color: #f2f9fd;
	border-bottom-color: #d5e8f8;
}

section #console-area > span.console-type-error {
	color: #b32936;
	background-color: #fdf2f5;
	border-bottom-color: #f8d5db;
}

section #console-area > span.console-type-warning {
	color: #b38a29;
	background-color: #fdf8f2;
	border-bottom-color: #f8ebd5;
}

#console-bottom-scroll {
	position: absolute;
	right: 16px;
	bottom: 16px;
	border-radius: 50%;
	border: 1px solid #e5e7ec;
	background: #fdfdfd;
	color: #e5e7ec;
	width: 32px;
	line-height: 32px;
	text-align: center;
}

#console-bottom-scroll:hover {
	border-color: #aab3bb;
	color: #aab3bb;
}

.popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 9999;
	background-color: #0003;
}

.popup > div {
	max-width: 600px;
	margin: 48px auto;
	background-color: white;
	border-radius: 5px;
	box-shadow: 0px 8px 24px 0px #666;
	display: flex;
	flex-direction: column;
	transition: transform .4s ease;
	transform: translateY(-48px);
}

.popup > div.faded {
	transform: none;
}

.popup > div > header {
	padding: 8px 16px;
	font-size: 18px;
}

.popup > div > .input-group {
	position: relative;
	margin: 8px 16px;
	display: flex;
}

.popup > div > .input-group > * {
	line-height: 24px;
	padding: 8px 16px;
	border: 1px solid #cdd9ed;
	transition: all 0.3s ease;
	white-space: nowrap;
	display: block;
}

.popup > div > .input-group > span {
	border-radius: 3px 0 0 3px;
	border-right: none;
	color: #99a3ba;
	background: #eef4ff;
}

.popup > div > .input-group > input {
	border-radius: 0 3px 3px 0;
	color: #99a3ba;
	background: #fff;
	-webkit-appearance: none;
	flex: 1 1 auto;
	font-size: 15px;
	font-weight: 500;
}

.popup > div > .input-group > input::placeholder {
	color: #CBD1DC;
}

.popup > div > .input-group > input:focus {
	outline: none;
	border-color: #5a8be4;
}

.popup > div > .input-group:focus-within > span {
	color: #fff;
	background: #5a8be4;
	border-color: #5a8be4;
}

.popup > div > .posttext {
	padding: 8px 16px;
	text-align: justify;
	font-size: 14px;
	color: #777;
}

.popup > div > .posttext a {
	color: #5a8be4;
	word-break: break-all;
}

.popup > div > .posttext a:hover {
	text-decoration: underline;
}

.popup > div > footer {
	padding: 8px 16px;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

.popup > div > footer .button {
	background-color: #5a8be4;
	color: white;
	border-radius: 3px;
	line-height: 32px;
	padding: 0 12px;
	display: inline-block;
}

@-webkit-keyframes shake {
	8%, 41% { -webkit-transform: translateX(-10px); }
	25%, 58% { -webkit-transform: translateX(10px); }
	75% { -webkit-transform: translateX(-5px); }
	92% { -webkit-transform: translateX(5px); }
	0%, 100% { -webkit-transform: translateX(0); }
}

span.line-name {
	margin-right: 28px;
	overflow: hidden;
	display: flex;
	word-break: break-word;
}
