@font-face {
	font-family: 'Computer Modern Serif';
	src: url('assets/cmunrm.otf');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'Computer Modern Serif';
	src: url('assets/cmunti.otf');
	font-weight: normal;
	font-style: italic;
}

body {
	margin: 0;
	background-color: #fff;
	color: #000;
	overscroll-behavior: none;
  font-family: Tahoma, Geneva, sans-serif;
}

button {
	cursor: pointer;
}

#controls {
  position: absolute;
  height: 100%;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#controls > button {
  margin: 0.2rem 1rem;
}

canvas {
	display: block;
  margin: 0 auto;
  outline: none;
}

.state {
  font-family: "Computer Modern Serif";
  font-size: 1.3rem;
	position: absolute;
	top: 0;
	width: 100%;
	padding: 5px 0;
  line-height: 1.3;
	box-sizing: border-box;
	text-align: center;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
}

#controls > button {
	display: inline-block;
    width: 1.7rem;
    text-align: center;
    background: #505a62 linear-gradient(0.45turn, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.05));
    color: white;
    padding: 0.1rem;
    font-weight: 600;
    border-radius: 0.2rem;
	border: 0px;
	line-height: 1.5rem;
}

.settings {
  user-select: none;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1rem;
  box-sizing: border-box;
  width: 100%;
}

#reset {
  text-decoration: none;
  font-family: 'SF Pro Text', system-ui, -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  padding: 1rem;
  transition: background-color 0.2s, color 0.2s, text-decoration-color 0.2s;
}
#reset:hover {
  cursor: pointer;
  background-color: black;
  color: white;
}