.joytick {
  user-select: none;
  position: relative;
  width: 5vw;
  height: 5vw;
  border-radius: 5vw;
  top: 0;
  left: 0;

  &.enabled-x {
    width: 18vw;
    .handle {
      height: 100%;
      width: 29%;
    }
  }
  &.enabled-y {
    height: 18vw;
    .handle {
      width: 100%;
      height: 29%;
    }
  }

  &.enabled-x.enabled-y  {
    border-radius: 50%;
    width: 18vw;
    height: 18vw;

    .handle {


  user-select: none;
      width: 33.3%;
      height: 33.3%;
    }
  }

}

.joytick .rail {
  position: absolute;
  background-color: #666;
  opacity: 0.3;
  width: 100%;
  height: 100%;
  border-radius: 10000px;
  user-select: none;
}

.joytick .handle {
  aspect-ratio:1;
  color: #91d5ff;
  background-color: #fff;
  border: solid 2px #91d5ff;
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
