/****************************************
 App container layout
****************************************/

body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	border: none;
	background-color: rgb(201,220,227);
	display: flex;
	justify-content: stretch;
	align-items: stretch;
}

#common-container {
	position: absolute;
	top: 10000px;
	height: 0;
	display: none;
}

#copy-container {
	position: absolute;
	top: 10000px;
	height: 0;
	display: none;
}

#page-container {
	display: block;
	flex-grow: 1;
	overflow: hidden;
	border-style: none;
}

/****************************************
 Config UI (general)
****************************************/

body,
label,
select,
button {
	font-family: Verdana, helvetica, Arial, Sans-Serif;
	font-size: 17px;
	line-height: 30px;
}

h1 {
	margin-top: 0;
	font-family: helvetica, Verdana, Arial, Sans-Serif;
	font-size: 1.7rem;
}

h2 {
	margin-bottom: 0px;
	font-size: 1rem;
}

label {
	margin-top: 10px;
	font-size: 1remem;
	font-weight: bolder;
}

select {
	padding: 5px 3px;
	border: 4px solid rgb(201,220,227);
	border-radius: 15px;
}

select:hover,
select:focus {
	box-sizing: border-box;
	border: 4px solid rgb(161, 173, 196);
	outline: none;
}

/****************************************
 Config UI (structure)
****************************************/

#config-ui {
	position: absolute;
	z-index: 1000;
	top: 0;
	left: -390px;
	box-sizing: border-box;
	width: 400px;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	background-color: rgb(255,255,255);
	box-shadow: 0 0 20px 0px rgba(0,0,0,0.5);
	transition: left 300ms ease-in-out 300ms;
}

#config-ui:hover {
	left: 0;
}

.config-ui-pin {
	left: 0 !important;
}

.config-ui-header {
	position: sticky;
	z-index: 1001;
	top: 0px;
	padding: 20px 30px 20px 30px;
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: rgb(255,255,255);
	background-clip: padding-box;
	box-shadow: 0 0 15px 0px rgba(0,0,0,0.5);
}

#config-ui > ol {
	margin: 20px;
	padding: 0;
	list-style: none;
	counter-reset: config-outer;
}

#config-ui > ol  > li{
	margin: 25px 0px;
	padding: 15px;
	border: 2px solid black;
	border-radius: 10px;
	background-color: rgb(245,245,245);
}

#config-ui h2 {
	position: relative;
	margin: 0px;
	counter-increment: config-outer;
}

#config-ui h2 + ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: config-inner;
}

.config-ui-item {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

#config-ui label::before {
  counter-increment: config-inner;
  content: counter(config-outer) "." counter(config-inner) " - ";
}
