html,
body,p {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  background: rgb(28, 28, 28);
  text-align: center;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
}

.pixelated {
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}

* {
  -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;
}

canvas {
  width: 100%;
  /* height: 100%; */

  /* max-width: 100vw;
  max-height: 100vh; */
  
  margin: 0 auto;
  overflow: hidden;

  /* aspect-ratio: 1; */
}

button {
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

#menu {
  position: absolute;
  right: 0;
  top: 0;
  left: auto;
  bottom: auto;
  padding: 16px;
}

.menu-button {
  border: 0;
  border-radius: 100%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.3);
  color: black;
  font-size: 17px;
  line-height: 31px;
  text-align: center;

  opacity: 0.3;
  user-select: none;
}

.menu-button:hover {
  background: rgba(0, 0, 0, 0.5);
  border: 0;
  opacity: 1;
  color: #fff;
}

.menu-button-container {
  text-align: right;
}

.menu-button-container:hover .menu-label {
  display: inline-block;
}

.menu-wrapper {
  color: rgb(211, 211, 211);
  max-width: 220px;
  width: 220px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 7px;
  margin-top: 8px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 2px 28px 0 rgb(0, 0, 0, 0.25);
}

.menu-wrapper button {
  padding: 4px 8px;
  border-radius: 4px;
  user-select: none;
  background: black;
  border: 0;
  color: #fff;
}

.menu-overline {
  font-size: 13px;
  margin-bottom: 8px;
  user-select: none;
}

.menu-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}

.menu-title-subtitle {
  font-size: 11px;
  color: #777;
  user-select: none;
}

.menu-overline-description {
  font-size: 11px;
  margin-top: -4px;
  margin-bottom: 6px;
  color: #777;
}

.menu-controls-group {
  margin-top: 16px;
  user-select: none;
}

.buttons-group button {
  margin-bottom: 4px;
  user-select: none;
}

#alert {
  position: absolute;
  right: 16px;
  top: 16px;
  bottom: auto;
  left: auto;
}

h1,h2,h3 {
  margin: 0;
  padding: 0;
}

.alert-content {
  background: #fff;
  width: 320px;
  border-radius: 7px;
  padding: 16px 16px;
  text-align: left;
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.5);
}

#alert h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 16px;
}

.alert-buttons {
  margin-top: 16px;
}

.alert-buttons button {
  background: #808080;
  color: #fff;
  border: 0;

  padding: 12px 16px;
  font-size: 16px;
  border-radius: 5px;
}

button.button-warning {
  min-width: 120px;
  background:rgb(255, 132, 0)
}

