body {
  font-family: "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  color: black;
  font-size: 23px;
  background-color: #292320;
  overflow: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@keyframes height {
  0% {
    width: 95%;
    opacity: 0.3;
  }
  20% {
    width: 95%;
    opacity: 0.5;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

.table {
  position: relative;
  width: 100%;
  height: 100vh;
  cursor: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  animation-name: height;
  animation-duration: 3s;
}

.table--slate {
  width: 80%;
  padding-bottom: 2em;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 3001;
  padding: 0;
}

.table--pockets {
  width: 80%;
  padding-bottom: 2em;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 3000;
  padding: 0;
}

.table--cusions {
  width: 80%;
  padding-bottom: 2em;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 4001;
  opacity: 1;
  padding: 0;
}

.table--markdown {
  width: 80%;
  padding-bottom: 2em;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 3002;
  padding: 0;
}

.table--canvas {
  z-index: 4000;
  width: 80%;
  position: absolute;
  inset: 0px;
  margin: auto;
}

#mydiv {
  position: absolute;
  z-index: 9;
  background-color: #f1f1f1;
  text-align: center;
  border: 1px solid #d3d3d3;
}

#mydivheader {
  padding: 10px;
  cursor: move;
  z-index: 10;
  background-color: #2196F3;
  color: #fff;
}

.ball {
  width: 0.97242%;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  z-index: 5000;
  position: absolute;
}

.ball--ball {
  position: relative;
  width: 100%;
  box-shadow: 0em 0.05em 0.2em rgba(0, 0, 0, 0.01), -0.1em -0.05em 0.2em rgba(0, 0, 0, 0.01), -0.1em 0.05em 0.2em rgba(0, 0, 0, 0.01), 0.1em -0.05em 0.2em rgba(0, 0, 0, 0.01);
  border-radius: 100%;
}

.cursor--rounded {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.6);
  border: 0.5px solid white;
  opacity: 0;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  left: 0;
  top: 0;
  z-index: 12000;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.cue {
  position: absolute;
  width: 40px;
  height: 4px;
  top: 0;
  left: 0;
  z-index: 12001;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: top 0.2s, left 0.2s, rotate 0.2s;
}

.cue--image {
  position: absolute;
  right: calc(50% + 0.7%);
  width: 50%;
  margin: auto;
  top: 0;
  bottom: 0;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.cue--aim-image {
  position: absolute;
  right: calc(0.7% + 0%);
  width: calc(50% - 0.7%);
  opacity: 100%;
  filter: blur(0px);
  min-height: 50%;
  max-height: 300%;
  margin: auto;
  top: 0;
  bottom: 0;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.spin-side-cueball {
  position: fixed;
  bottom: 30px;
  left: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0px 8vh 3vh rgba(23, 34, 5, 0.5);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.spin-side-cueball--image {
  width: 100%;
  height: 100%;
}

.spin-side-cueball--dot {
  --size: 8px;
  width: var(--size);
  height: var(--size);
  background: black;
  border-radius: 50%;
  position: absolute;
  margin: auto;
  opacity: 0.7;
  left: calc(50% - var(--size) / 2);
  top: calc(50% - var(--size) / 2);
}

.shot-power--container {
  position: absolute;
  width: 10px;
  height: 50vh;
  left: 65px;
  opacity: 0%;
  transform: opacity 1s;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.shot-power--background {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  display: flex;
  justify-content: space-evenly;
  flex-direction: column;
}

.shot-power--step-mark {
  background: white;
  opacity: 0.4;
  width: 100%;
  height: 1px;
}

.shot-power--gradient-container {
  position: absolute;
  width: 100%;
  height: 0%;
  top: 0;
  left: 0;
  overflow: hidden;
}

.shot-power--gradient {
  position: absolute;
  width: 100%;
  height: 50vh;
  top: 0;
  left: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #76ff60 0%, #fff384 26.56%, #ff9733 50.52%, #fa533c 100%);
}

.shot-power--handle {
  position: absolute;
  top: -3%;
  width: 20px;
  height: 6px;
  border-radius: 3px;
  background: white;
  margin: auto;
  left: -5px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
  transform: opacity 0.4s;
}

@keyframes score--container {
  0% {
    opacity: 0%;
    width: 4px;
  }
  65% {
    opacity: 0%;
    width: 4px;
  }
  70% {
    opacity: 100%;
    width: 4px;
  }
  80% {
    opacity: 100%;
    width: 640px;
  }
  100% {
    opacity: 100%;
    width: 640px;
  }
}

@keyframes score--test {
  0% {
    opacity: 0%;
  }
  60% {
    opacity: 0%;
  }
  90% {
    opacity: 0%;
  }
  100% {
    opacity: 100%;
  }
}

.score--container {
  opacity: 100%;
  background: white;
  width: 640px;
  height: 32px;
  position: absolute;
  bottom: 10%;
  border-radius: 2px;
  animation-name: score--container;
  animation-duration: 5s;
}

.score--test {
  opacity: 100%;
  animation-name: score--test;
  animation-duration: 5s;
}
