* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	text-decoration: none;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizelegibility;
	-moz-osx-font-smoothing: grayscale;
	line-height: inherit;
	outline: 0;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

body {
  background: black;
  line-height: 1.2em;
  font-family: sans-serif;
  color: #000;
}
button,
input[type=number],
select {
  all: unset;
  cursor: pointer;
}

body, input, button {
  font-size: 14px;
}

canvas {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  height: 100vh !important;
  width: 100vw !important;
  object-fit: contain;
  image-rendering: pixelated;
}

h3 {
  font-size: 100%;
  margin: 1.3em 0 0.5em;
  &:first-child {
    margin-top: 0;
  }
}

// body, select, input, button {
// 	font: 10px/1em sans-serif;
// 	letter-spacing: 0.5px;
// }

// button, select {
// 	border: 0;
// 	border-radius: 4px;
// 	padding: 4px 2px;
// 	cursor: pointer;
// 	&:hover {
// 		opacity: 0.8;
// 	}
// }
// button {
// 	padding: 6px 2px;
// }
// button, input[type=range], input[type=file], select {
// 	display: block;
// 	margin: 10px 0 20px 0;
// }
// button + input[type=file] {
// 	margin-top: -10px;
// }

// input, textarea {
// 	outline: 0;
// }

body.noMove {
	// nav {
	// 	display: none;
	// }
}

nav {
  position: absolute;
  left: 5vh;
  top: 5vh;
  background: #fff;
  padding: 20px 20px 23px;
  z-index: 2;
  width: 250px;
}

input[type=range] {
  display: block;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #ddd;
  &:hover, &:focus {
    background: #bbb;
  }
  &::-webkit-slider-thumb {
    background: #000;
    -webkit-appearance: none;
    appearance: none;
    width: 6px;
    height: 6px;
    cursor: pointer;
  }
  &::-moz-range-thumb {
    background: #000;
    width: 6px;
    height: 6px;
    cursor: pointer;
  }
}

input[type=range] {
  display: block;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #ddd;
  &:hover, &:focus {
    background: #bbb;
  }
  &::-webkit-slider-thumb {
    background: #000;
    -webkit-appearance: none;
    appearance: none;
    width: 6px;
    height: 6px;
    cursor: pointer;
  }
  &::-moz-range-thumb {
    background: #000;
    width: 6px;
    height: 6px;
    cursor: pointer;
  }
}

button, select {
  display: inline-block;
  background: #ddd;
  padding: 2px 4px;
  margin: 0 2px 2px 0;
  cursor: pointer;
  &:hover {
    background-color: #bbb;
  }
  &[active="true"] {
    background-color: rgb(20,255,0);
  }
}

select {
  background: #ddd;	
}

input[type=number] {
  text-align: center;
  border-bottom: 1px solid #bbb;
}