
:root{
	--clr-bdr: #ddd;

	--clr-prime: #336699;
}

html {
	height: 100%;
}

body {
	margin: 0;
	padding: 0;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: row;
	font-family: Roboto;
}

.test-output {
	border-right: solid 1px #ddd;
	width: 300px;
	margin-right: 8px;

}

.test-output h1{
		font-size: 24px;
	}

.test-output li {
		font-family: courier;
		font-size: 13px;
		margin-bottom: .5rem;
	}

.test-output.fail{
		color: red;
	}

/* #region    spec-main-view */

spec-main-view {
	flex: 1;
	display: grid;
	grid-template-rows: 4rem 1fr;
	grid-template-columns: 10rem 1fr;
}

spec-main-view header{
		grid-column: span 2;
		background: #777;
		color: #fff;
		display: grid;
		grid-template-columns: 12rem 2rem 15rem 15rem 15rem 1fr;
		align-items: stretch;
		grid-gap: 1rem;
		
	}

spec-main-view header > *{
			display: flex;
			align-items: center;
			justify-content: center;

		}

spec-main-view header H1{
			font-size: 1.5rem;
			font-weight: 200;
			margin: 0;
			padding: 0;
		}

spec-main-view header a.item{
			text-decoration: none;
			color: #ddd;
			font-size: 1.25rem;
			font-weight: 200;	
			letter-spacing: 0.01em;
		}

spec-main-view header a.item.sel{
				color: #333;
				background: rgba(255,255,255,1);
				font-weight: 500;
				color: var(--clr-prime);
			}

spec-main-view nav {
		padding-top: 2rem;
		background: #f0f0f0;
		display: grid;
		grid-auto-rows: min-content;
		grid-row-gap: .5rem;
	}

spec-main-view nav > * {
			padding: 1rem;
			border-left: solid 4px rgba(255,255,255,0);
		}

spec-main-view nav > *.sel{
				background: #fff;
				border-left: solid 4px var(--clr-prime);
				
			}

spec-main-view main{
		display: flex;
		padding: 1rem;
	}

spec-main-view main pre{
			font-size: 14px;
			font-weight: 500;
			letter-spacing: .01em;
			background: #f0f0f0;
			padding: 1rem;
			overflow: auto;
		}

spec-main-view main pre code{
				color: #777;
			}

spec-main-view main pre code span.tag {
					color: #336699;
				}

spec-main-view main pre code span.attr{
					color: #22863a;
				}

spec-main-view main .spec-view{
			flex: 1;
			display: flex;
			flex-direction: column;
		}

spec-main-view main .spec-view h1{
				font-size: 1.5rem;
			}

spec-main-view main .spec-view > section {
				flex: 1;
				display: grid;
				grid-auto-flow: column;
				grid-gap: 1rem;
			}

spec-main-view main .spec-view > section > div.panel{
					max-width: 50rem;
				}

spec-main-view main .spec-view > section > div.panel.w-med{
						width: 30rem;
					}

spec-main-view main .spec-view > section > div.panel .item.tall .result{
								height: 10rem;
								display: grid;
								grid-template-rows: 1fr;
							}

spec-main-view aside#console{
		display: none; /* DEBUG: for now, hide it, useful for quick mobile debugging */
		white-space: pre;
		overflow: scroll;
		position: absolute;
		right: 8px;
		top: 8px;
		width: 20rem;
		height: 15rem;
		border: solid 1px #ddd;
		background: #fefefe;
		font-family: 'Courier New', Courier, monospace;
		font-size: 11px
	}

/* #endregion spec-main-view */

.card{
	box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2),
		0px 3px 4px 0px rgba(0, 0, 0, 0.14),
		0px 1px 8px 0px rgba(0, 0, 0, 0.12);
	background: #fff;	
	-webkit-user-select: none;	
	   -moz-user-select: none;	
	    -ms-user-select: none;	
	        user-select: none;
	width: 10rem;
	height: 10rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));
}

.drag-me, slide-me{
	touch-action: none; 
	cursor: pointer;
}

.box {
	background: #fff;
	min-height: 3rem;
	border: solid 1px var(--clr-bdr);
	cursor: pointer;
	-webkit-user-select: none;
	   -moz-user-select: none;
	    -ms-user-select: none;
	        user-select: none;
	width: 3rem;
	height: 3rem;
	color: #777;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-size: 14px;
}

.zone{
	min-height: 3rem;
	border: solid 1px var(--clr-bdr);
	display: flex;
	grid-gap: 1rem;
}

.slider{
	position: relative;
	touch-action: none; 	
	min-height: .5rem;
	width: 10rem;
	background: #ddd;
	border-radius: 1rem;
}

.slider-zone{
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;

	touch-action: none; 	
	background: red;
	border-radius: 1rem;	
}

.slider-handle{
	touch-action: none; 	
	position: absolute;
	top: -4px;
	bottom: -4px;
	width: 4px;
	background: red;
}

.slider-handle.left{
		left: 0;
	}

.slider-handle.right{
		right: 0;
	}

.slider-handle:hover{
		background: blue;
	}

.container{
	position: relative;
	touch-action: none; 	
	min-height: .5rem;
	width: 10rem;
	background: #ddd;
	height: 10rem;
}

.thumb, .dot{
	opacity: .8;
	touch-action: none; 
	position: absolute;
	top: -.75rem;
	left: 0;
	height: 2rem;
	width: 2rem;
	border-radius: 1rem;
	background: var(--clr-prime);
}

/*#region    demo */

.box {
	background: #fff;
	min-height: 3rem;
	border: solid 1px var(--clr-bdr);
	height: 3rem;
	color: #777;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-size: 14px;
}

.clickable{
	display: inline-block;
	padding: 1rem;
	margin: 1rem;
	cursor: pointer;
	border: solid 1px var(--clr-bdr);
}

.container{
	position: relative;
	touch-action: none; 	
	min-height: .5rem;
	width: 30rem;
	background: #ddd;
	height: 20rem;
}

/*#endregion demo */

/*#region    flip */

c-col{
	border: solid 1px #aaa;

	display: grid;
	grid-template-columns: 10rem 10rem;
	grid-gap: 2rem;
	align-items: stretch;
}

c-panel{
	height: 10rem;
	background: #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #323232;
	-moz-user-select: none;
	 -ms-user-select: none;
	     user-select: none;
	-webkit-user-select: none;
	touch-action: none;
}

c-panel.full{
		grid-column: span 2;
		height: auto;
	}

c-panel.drag-source{
		background: #336699;
		color: #fff;
	}

/*#endregion flip */