body {
    background-color: #fff;
    font-family:sans-serif;
    /*overflow: hidden;*/
  
    display: flex;
    justify-content: center;
    align-items: center;  
  
    --bodymargin : 20px;
    /*
    --wContent: calc(100vw - 2*var(--bodymargin));
    --hContent: calc(100vh - 2*var(--bodymargin));*/

    margin:0;
    padding:0;
    height:100vh;

    background:url(noise.svg);
  }

  body.night{
    background:url(nnnoise.svg);
  }

body,html{
  -webkit-user-drag: none;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
  
}


#container
{
 /*display : inline-block;*/
 display:grid;

}

svg{
  /*display:none;*/
}


canvas{
  touch-action: none;
}
svg,canvas
{
  grid-column: 1/1;
  grid-row: 1/1;
  display: block;
  max-width: 90vw;
  height: auto;
  max-height:90vh;
  width: auto;
  /*order*/
  /*box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.1);*/
 /* background-color: #fff;
  padding: 24px;*/
}


.shadow,#mycanvas,#mysvg{
  box-shadow: 0 1px 6px rgb(0 0 0 / 6%), 4px 32px 32px rgb(0 0 0 / 16%), 8px 50px 64px rgb(0 0 0 / 35%);
}


polygon {
  stroke-linejoin: round;
}



#info{
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  font-weight: 200;
  width: 100%;
  height:25px;
  /*background-color:rgba(0,0,0,0.8);*/
  color:#000;
  padding: 10px;
  text-align: center;
}

body.night #info{
  color:#fff;
}


.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid;
  border-color: rgba(64,64,64,0.5) transparent rgba(64,64,64,0.5) transparent;
  border-radius: 50%;
  animation: spin-anim 4.8s linear infinite;
}

@keyframes spin-anim {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}


.loader-container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
 /* background: #000;*/
  z-index: 1;
}


#debug{
  position:fixed;
  left:20px;
  bottom:20px;
  background-color: #fff;
  color:#000;
  padding:10px;

}

/*
.moon { fill:#D6D5C0; }
.moonback { fill:black;stroke:#fff;stroke-width:1px; }
*/