.menu-popup {
  position: absolute;
  border-radius: 2px;
  background: rgba(28,28,28,.9);
  text-shadow: 0 0 2px rgba(0,0,0,.5);
  transition: opacity .1s cubic-bezier(0,0,.2,1);
}

.menu-panel {
  padding: 8px 0;
  display: table;
  width: 100%;
  color: #eee;
  box-sizing: border-box;
}

.menu-item {
  display: table-row;
  outline: none;
  cursor: pointer;
  height: 40px;
}

.menu-item:hover {
  background-color: rgba(255,255,255,.1);
}

.menu-item-icon {
  padding: 0 10px;
  display: table-cell;
  justify-content: center;
  vertical-align: middle;
  height: 24px;
  width: 24px;
}

.menu-item-label {
  font-weight: 500;
  font-family: sans-serif;
  font-size: 1em;
  line-height: 1.3;
  display: table-cell;
  text-align: left;
  vertical-align: middle;
  padding-left: 0;
}

.context-show {
  z-index: 1000;
  position: absolute;
  background-color: #C0C0C0;
  border: 1px solid blue;
  padding: 2px;
  display: block;
  margin: 0;
  list-style-type: none;
  list-style: none;
}

.context-hide {
  display: none;
}

.material-radio {
  z-index: 0;
  position: relative;
  display: inline-block;
  font-family: "sans-serif";
  font-size: 1.25em;
}

.material-radio > input {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  z-index: -1;
  position: absolute;
  left: -10px;
  top: -8px;
  display: block;
  margin: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  outline: none;
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
}

.material-radio > span {
  display: inline-block;
  width: 100%;
  cursor: pointer;
  font-family: "sans-serif";
}

.material-radio > span::before {
  content: "";
  display: inline-block;
  box-sizing: border-box;
  margin: 2px 10px 2px 0;
  border: solid 2px;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  vertical-align: top;
  transition: border-color 0.2s;
}

.material-radio > span::after {
  content: "";
  display: block;
  position: absolute;
  top: 2px;
  left: 0;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background-color: #6716ea;
  transform: translate(5px, 5px) scale(0);
  transition: transform 0.2s;
}

.material-radio > input:checked {
  background-color: #6716ea;
}

.material-radio > input:checked + span::before {
  border-color: #6716ea;
}

.material-radio > input:checked + span::after {
  transform: translate(5px, 5px) scale(1);
}

.material-radio:hover > input {
  opacity: 0.04;
}

.material-radio > input:focus {
  opacity: 0.12;
}

.material-radio:hover > input:focus {
  opacity: 0.16;
}

.material-radio > input:active {
  opacity: 1;
  transform: scale(0);
  transition: transform 0s, opacity 0s;
}

.material-radio > input:active + span::before {
  border-color: #6716ea;
}

.node_data {
  background-color: #f5f5f5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  padding: 12px;
  border-radius: 2px;
}

.node_data:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.node {
  -webkit-filter: drop-shadow(0px 1px 3px rgba(0,0,0,.12)) drop-shadow(0px 1px 2px rgba(0,0,0,.24));
  filter: drop-shadow(0px 1px 3px rgba(0,0,0,.12)) drop-shadow(0px 1px 2px rgba(0,0,0,.24));
  transition: -webkit-filter 0.3s cubic-bezier(.25,.8,.25,1), filter 0.3s cubic-bezier(.25,.8,.25,1);
  cursor: pointer;
}

.node:hover {
  -webkit-filter: drop-shadow(0px 14px 14px rgba(0,0,0,.25)) drop-shadow(0px 10px 5px rgba(0,0,0,.22));
  filter: drop-shadow(0px 14px 14px rgba(0,0,0,.25)) drop-shadow(0px 10px 5px rgba(0,0,0,.22));
}

.node-selected {
  -webkit-filter: drop-shadow(0px 14px 14px rgba(0,0,0,.25)) drop-shadow(0px 10px 5px rgba(0,0,0,.22));
  filter: drop-shadow(0px 14px 14px rgba(0,0,0,.25)) drop-shadow(0px 10px 5px rgba(0,0,0,.22));
  transition: -webkit-filter 0.3s cubic-bezier(.25,.8,.25,1), filter 0.3s cubic-bezier(.25,.8,.25,1);
  cursor: pointer;
}

.link {
  stroke-width: 8px;
  stroke: black;
  fill: none;
  transition: stroke-width 0.1s, stroke 0.1s;
}

.link:hover, .link-selected {
  stroke-width: 12px;
  stroke: #6716ea;
  fill: none;
}

.link-no-hover {
  stroke-width: 8px;
  stroke: black;
  fill: none;
  transition: stroke-width 0.1s, stroke 0.1s;
}

.material-radio > input:disabled {
    opacity: 0;
}

.material-radio > input:disabled + span {
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
    cursor: initial;
}

.material-radio > input:disabled + span::before {
    border-color: currentColor;
}

.material-radio > input:disabled + span::after {
    background-color: currentColor;
}

#snackbar {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-family: "sans-serif";
  font-size: 1.25em;
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;} 
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;} 
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}