/* .ball:before {
  background: yellow;
  border-radius: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
} */
@keyframes transformmercurytotriangle {
  0%, 100% {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  }
  50% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}
@-webkit-keyframes x-axis {
  0% {
    transform: translate(-28.8px);
  }
  100% {
    transform: translate(28.8px);
  }
}
@keyframes x-axis {
  0% {
    transform: translate(-28.8px);
  }
  100% {
    transform: translate(28.8px);
  }
}
@-webkit-keyframes y-axis {
  0% {
    transform: translateY(12.6px);
  }
  100% {
    transform: translateY(-19.8px) scale(0.8);
    background: #00fffb;
  }
}
@keyframes y-axis {
  0% {
    transform: translateY(12.6px);
  }
  100% {
    transform: translateY(-19.8px) scale(0.8);
    background: #00fffb;
  }
}
@-webkit-keyframes x-axis-lateral {
  0% {
    transform: translate(-10.8px);
  }
  100% {
    transform: translate(10.8px);
  }
}
@keyframes x-axis-lateral {
  0% {
    transform: translate(-10.8px);
  }
  100% {
    transform: translate(10.8px);
  }
}
@-webkit-keyframes y-axis-lateral {
  0% {
    transform: translateY(3.6px);
  }
  100% {
    transform: translateY(-18px);
    background: #00fffb;
  }
}
@keyframes y-axis-lateral {
  0% {
    transform: translateY(3.6px);
  }
  100% {
    transform: translateY(-18px);
    background: #00fffb;
  }
}
body {
  background-color: #000;
  color: #fff;
  height: 100vh;
  width: 100vw;
  margin: auto;
}

* {
  user-select: none;
}

#main-wrapper {
  width: 100%;
  height: auto;
  max-width: 500px;
  margin: auto;
  max-height: 500px;
  display: block;
  position: relative;
  top: 25%;
}

#svg-container {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
#svg-container > #main-triangle {
  cursor: pointer;
}

.corner-triangle {
  cursor: pointer;
  opacity: 0;
  transition: all 0.333s ease;
}
.corner-triangle:hover {
  opacity: 0.0333;
}

#mercury {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  pointer-events: none;
  transition: all 1s ease;
  filter: url("#liquid-triangle") url("#gemstoneFilter");
}

#small-triangle-mercury-container {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  width: 500px;
  height: auto;
  display: block;
  overflow: visible;
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  width: 50px;
  transform: translate(-50%, -50%);
  top: 65%;
  left: 50%;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

#small-triangle-mercury-container circle {
  filter: url("#gemstoneFilter0") url("#gemstoneFilter") blur(11px);
}

#small-triangle-container {
  width: 500px;
  height: auto;
  display: block;
  overflow: visible;
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

#small-triangle {
  transition: transform 0.3333s cubic-bezier(0.0333, 1.333, 0.79, 0.79);
}

.ball {
  width: 5px;
  height: 5px;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(50%, 50%);
  transition: r 1s ease;
}
.ball:nth-child(1) {
  transform: translate(-39.6px);
  -webkit-animation: x-axis-lateral 2s infinite alternate ease-in-out;
  animation: x-axis-lateral 2s infinite alternate ease-in-out;
}
.ball:nth-child(2) {
  -webkit-animation: y-axis-lateral 1s infinite 0.1s alternate ease-in-out;
  animation: y-axis-lateral 1s infinite 0.1s alternate ease-in-out;
}
.ball:nth-child(3) {
  -webkit-animation: x-axis 2s infinite alternate ease-in-out;
  animation: x-axis 2s infinite alternate ease-in-out;
}
.ball:nth-child(4) {
  -webkit-animation: y-axis 1s infinite 0.5s alternate ease-in-out;
  animation: y-axis 1s infinite 0.5s alternate ease-in-out;
}
.ball:nth-child(5) {
  transform: translate(39.6px, 46.8px);
  -webkit-animation: x-axis-lateral 2s infinite alternate ease;
  animation: x-axis-lateral 2s infinite alternate ease;
}
.ball:nth-child(6) {
  -webkit-animation: y-axis-lateral 1s infinite 0.4s alternate ease-in-out;
  animation: y-axis-lateral 1s infinite 0.4s alternate ease-in-out;
}