html, body {
	width: 100%;
	height: 100%;
  margin: 0;
  padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

html {	
	flex-direction: column;
}

body {
	flex-direction: row;
	overflow: hidden;
  touch-action: none;
	background: black;
  --bodymargin : 10px;
  --min: min(100vh, 100vw);
  --hContent: var(--min);
  --wContent: var(--min);
  height:100vh;
}

canvas#sketch {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
  max-width: var(--wContent);
  max-height:var(--hContent);
  display: block;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
