:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: rgb(200, 200, 200);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#canvas {
  width: 100%;
  position: relative;
  /* box-sizing: border-box; */
  opacity: 0;
  background-color: black;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.2);

  &.loaded {
    opacity: 1;
    transition: opacity 1s, box-shadow 0.3s;
    cursor: default;
  }

  &:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2),
      0 3px 3px rgba(0, 0, 0, 0.1);
  }

  &:active {
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5),
      0 1px 2px rgba(0, 0, 0, 0.3);
  }
}

canvas {
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 12px;
  position: absolute;
  z-index: 1;
}

.container {
  max-width: 512px;
  margin: auto;
}

.overlay {
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  // height: 100%;
  pointer-events: none;
  z-index: 2;
}


svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow( 0px 2px 1px rgba(0, 0, 0, 0.1));
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  margin: 0 0 10px;
  color: #333;
}

p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  margin: 5px 0 7px;
  color: #666;
  line-height: 1.6;
}

a {
  color: #262626;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}



#toggleButton {
  border: none;
  padding: 3px 6px;
  margin-bottom: 10px;
  background-color: rgb(72, 72, 72);
  border-radius: 4px;
  color: white;

  transition: background-color, box-shadow 0.5s;

  &:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2),
      0 3px 3px rgba(0, 0, 0, 0.1);
  }

  &:active {
    background-color: rgb(44, 44, 44);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5),
      0 1px 2px rgba(0, 0, 0, 0.3);
  }

}

.placeholder {
  position: relative;
  pointer-events: none;
  width: 100%;
  padding-bottom: 100%;

  p {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}