@font-face {
	font-family: 'Roboto-Regular';
	src: url('robotoRegular.ttf') format('truetype');
}

@font-face {
	font-family: 'glyphicons';
	/* src: url('glyphicons.ttf') format('truetype'); */
	src: url('glyphicons-basic-regular.otf');
}

#ieNotifierOverlay {
	display : none;
}

#ieNotifier {
	display : none;
}

/*
 * Dialog, overlays and internet explorer notifier
 *
 * z-indices used to make dialog modal:
 * ieNotifier: z = 7;
 * ieNotifierOberlay: z = 6;
 * dialog: z = 5;
 * overlay: z = 4;
 * tooltips: z = 3;
 * step-list, buttons: z = 2;
 * assembling view: z = 1
 *
 * (Source: https://github.com/ireade/accessible-modal-dialog/blob/gh-pages/dialog.css)
 */

/* Tell IE user that there exist alternatives... */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	#ieNotifierOverlay {
		display : block;

		z-index: 6;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: #000;
		opacity: 0.5;
	}

	#ieNotifier {
		display : block;

		z-index: 7;
		background-color: #fff;
		padding: 20px;
		text-align: left;
		max-width: 80%;
		max-height: 80%;
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
		overflow: auto;
	}
}

* {
	font-family: Roboto-Regular;
}

/* Remove dotted outline in firefox */
button::-moz-focus-inner {
	border: 0;
}

body {
	margin: 0;
	height: 100%;
	width: 100%;
	overflow: hidden;
	touch-action: none;
}

canvas {
	width: 100%;
	height: 100%;
	touch-action: pan-x pan-y;
}

#assemblingViewContainer {
	background: #f0f0f0 url("wsoptics_no_r.svg");
	background-position-x: 1%;
	background-position-y: 99%;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: 20% auto;
}

#menuDialog {
	z-index: 5;
	background-color: #fff;
	padding: 20px;
	text-align: left;
	max-width: 80%;
	max-height: 80%;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	overflow: auto;
}

#dialogOverlay {
	z-index: 4;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	opacity: 0.5;
}

#dialogOverlay[aria-hidden="true"],
#menuDialog[aria-hidden="true"] {
	display: none;
}

#dialogOverlay:not([aria-hidden="true"]),
#menuDialog:not([aria-hidden="true"]) {
	display: block;
}

/*
 * Assembling view
 */

#maindiv {
	z-index: 1;
	background-color: #f0f0f0;
	height: 100%;
	width: 100%;
	position: fixed;
}

#steplistcontainer {
	position: fixed;

	max-height: 95%;
	min-width: 15%;
	max-width: 75%;

	left: 1%;
	top: 1%;
	z-index: 2;
	overflow-y: auto;
	resize: horizontal;
	outline: 1px solid rgba(0, 0, 0, 0.5);
}

@media only screen and (orientation: landscape) {
	#steplistcontainer {
		width: 30vw;
	}
}

@media only screen and (orientation: portrait) {
	#steplistcontainer {
		width: 50vw;
	}
}

#steplist {
	font-size: 1.0rem;
}

.steplistitem {
	display:block;
	/* width: 15rem; */
	border-radius: 1.5rem;
	border: none;
	outline: none;
	color: black;
	margin: 1rem;
	padding: 1rem;
	font-family: 'Roboto-Regular';
	pointer-events: auto;

	/* inactive by default */
	background-color: rgba(111, 111, 111, 0.75);
	opacity: 0.5;
}

.activeitem {
	background-color: rgba(0, 111, 255, 1);
	color: white;
	opacity: 1;
}

#menuButtonContainer {
	z-index: 2;
	position: fixed;
	top: 0px;
	right: 0px;
	margin: 1rem;
	pointer-events: none;
}

#controlButtonsContainer {
	z-index: 2;
	position: fixed;
	bottom: 0px;
	right: 0px;
	width: 9rem;
	height: 9rem;
	margin: 0.5rem;
	resize: none;
	display: grid;
	grid-template-columns: 3rem 3rem 3rem;
	pointer-events: none;
}

.glyphicon {
	font-family: Glyphicons;
}

.transparentButton {
	/* Note: color depends on disabled property */
	font-size: 1.5rem;
	display: block;
	height: 3rem;
	width: 3rem;
	resize: none;
	border: 0;
	margin: 0;
	padding: 0;
	background-color: rgba(0, 0, 0, 0);
	pointer-events: auto;

}

#steptableheaderleft, #steptablecellleft {
	padding: 0.5rem;
	text-align: left;
}

#steptableheaderright, #steptablecellright {
	padding: 0.5rem;
	text-align: right;
	white-space: nowrap;
}

.steplistitem, #menuDialog {
	/* prevent text selection; cf. https://stackoverflow.com/a/4407335 */
	-webkit-touch-callout: none; /* iOS Safari */
          -webkit-user-select: none; /* Safari */
           -khtml-user-select: none; /* Konqueror HTML */
             -moz-user-select: none; /* Firefox */
              -ms-user-select: none; /* Internet Explorer/Edge */
                  user-select: none; /* Non-prefixed version, currently
                                        supported by Chrome and Opera */

}

#assemblingViewContainer {
	z-index: 1;
}
