.morphoViewerSmallCircuit {
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: #fff;

  > canvas.webgl {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  > canvas.webglOverlays {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }

  > header {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 1em;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2em;

    > div.flex {
      display: flex;
      flex-wrap: nowrap;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      gap: 0.5em;
    }

    button {
      font: inherit;
      width: 2.5em;
      height: 2.5em;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      cursor: pointer;
      color: #fff;
      border: 2px solid #000;
      border-radius: 2px;
      background: #3a3a3a;
      margin: 0;
      box-sizing: border-box;
      transition: all 0.3s;

      &:hover {
        background-color: #adf;
        color: #000;
      }
    }
  }
}

/* The gizmo's canvas. Its tips are clickable, so it takes the pointer. */
.gizmo {
  position: absolute;
  z-index: 4;
  cursor: pointer;
  touch-action: none;
}
