body,
html {
  margin: 1px;
  background-color: #000;
  color: #444;
  width: 100%;
  height: 100%;
  border: 0px solid black;
  overflow: hidden;
}

::selection {
  color: white;
}

div {
  color: antiquewhite;
  touch-action: none;
}

h1,
p {
  margin: 0 0 1em;
}

.flex-container {
  display: flex;
  align-items: stretch;
  background-color: #2e9097;
}

.flex-container > div {
  background-color: #1c802d;
  border: 1px;
  color: grey;
}

#snookerScore {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: xx-large;
  font-style: italic;
  color: yellow;
  text-align: center;
  filter: drop-shadow(0.08em 0.08em black);
}

#snookerScoreOverlay {
  position: absolute;
  bottom: 1em;
  right: 3em;
}

.view3d {
  width: 100%;
  height: 83%;
  cursor: none;
  caret-color: transparent;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: relative;
}
.view3d:focus {
  outline: none;
}

canvas {
  border-radius: 5px;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.panel {
  width: 100%;
  height: 17%;
  display: flex;
  padding: 0px;
  background: linear-gradient(rgb(0, 64, 94), #000214);
  border-radius: 5px;
  align-items: center;
}

.ballContainer {
  height: 70%;
  margin: auto;
  margin-left: 10px;
  margin-right: 10px;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  aspect-ratio: 1;
  padding: 0 5px;
}

.cueBall {
  height: 100%;
  margin: auto;
  aspect-ratio: 1;
  background: radial-gradient(
    circle at 65% 15%,
    rgb(255, 255, 255) 2px,
    rgb(255, 254, 254) 5%,
    rgb(63, 63, 63) 60%,
    rgb(24, 26, 26) 100%
  );
  border-radius: 50%;
  position: absolute;
  top: 0;
  z-index: 5;
}

.objectBall {
  height: 99%;
  margin: auto;
  aspect-ratio: 1;
  border: 0.5px solid rgb(0, 44, 64);
  border-radius: 50%;
  z-index: 3;
  position: absolute;
  top: 0;
  pointer-events: none;
}

.cueTip {
  height: 20%;
  width: 20%;
  background-color: rgb(72, 72, 158);
  border-radius: 50%;
  top: 40%;
  left: 40%;
  z-index: 10;
  position: relative;
  pointer-events: none;
}

.powerSlider {
  width: 20px;
  height: 70%;
  margin: auto;
  margin-right: 10px;
}

input[type="range"].powerSlider {
  appearance: slider-vertical;
}

.hitButton {
  height: 70%;
  margin: auto;
  margin-left: 5px;
  aspect-ratio: 0.4;
  border-radius: 10px;
  border-width: 4px;
  font-size: large;
  min-width: 80px;
  user-select: none;
}

.outerMenu {
  display: flex;
  height: 50%;
  justify-content: flex-start;
}

.menuButton {
  height: 50%;
  width: 12.5%;
  margin-right: 4px;
  aspect-ratio: 0.4;
  border-radius: 4px;
  border-width: 2px;
  padding: 0;
  max-width: 40px;
  user-select: none;
}

.targetButton {
  height: 50%;
  width: 12.5%;
  margin-right: 4px;
  aspect-ratio: 0.4;
  border-radius: 4px;
  border-width: 2px;
  padding: 0;
  max-width: 40px;
  user-select: none;
  font-size: 16px;
  display: none;
  color: black;
}

.toggleButton {
  height: 100%;
  width: 20%;
  margin-right: 4px;
  aspect-ratio: 0.4;
  border-radius: 10px;
  border-width: 4px;
  padding: 0;
  max-width: 80px;
}

.toggleButton:active,
.menuButton:active,
.hitButton:active,
.targetButton:active {
  transform: scale(0.97);
}

/* Toggle state for targetButton */
.targetButton.is-active {
  background-color: #4a90e2;
  border-color: #357abd;
  color: white;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chatarea {
  height: 70%;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-right: 5px;
}

.chatoutput {
  height: 30%;
  width: 0px;
  min-width: 100%;
  overflow-y: scroll;
  background-color: rgba(47, 79, 79, 0.486);
  padding: 5px;
  margin: 2px;
  border-radius: 5px;
  font-size: smaller;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
}

.chatoutput::-webkit-scrollbar {
  display: none;
}

a.pill {
  outline: none;
  background: linear-gradient(#888686, #b0b0b3);
  border-radius: 4px;
  text-decoration: none;
  border-color: white;
  border-width: 1px;
  margin: 1px;
  padding: 1px;
  font-size: smaller;
  border-top-style: groove;
  display: inline-block;
}

a {
  color: lightblue;
}
.constants {
  background: linear-gradient(#495155, #0b0b0e);
  border-radius: 5px;
  position: fixed;
  right: 0px;
  top: 0px;
  visibility: hidden;
  padding: 5px;
  border: double;
  max-width: 50%;
  font-size: small;
}

.nw {
  display: inline-block;
}

label {
  display: inline-block;
  width: 9ch;
}




.chatoutput .menuButton {
  height: auto;
  width: auto;
  max-width: none;
  aspect-ratio: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  margin-bottom: 4px;
  padding: 0;
}


.scoreButton {
  font-weight: 600;
  position: relative;
  z-index: 100;
}

.scoreHighlight {
  position: fixed;
  display: none;
  background-color: rgba(47, 79, 79, 0.486);
  border: 2px solid #0b0b0e;
  pointer-events: auto;
  z-index: 1000;
  min-height: 40px;
  max-height: 200px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  opacity: 0.95;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  padding: 2px;
  box-sizing: border-box;
}

.scoreHighlight::-webkit-scrollbar {
  display: none; /* WebKit */
}

.score-buttons-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  width: 100%;
}

.score-buttons-container a.pill {
  outline: none;
  background: linear-gradient(#888686, #b0b0b3);
  border-radius: 4px;
  text-decoration: none;
  border-color: white;
  border-width: 1px;
  margin: 2px;
  padding: 1px;
  border-top-style: groove;
  display: block;
  width: calc(100% - 6px);
  text-align: center;
  color: black !important;
}

.scoreButton--white {
  color: #ffffff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  background: linear-gradient(#888686, #b0b0b3) !important;
}

.scoreButton--yellow {
  color: #f7d23e;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  background: linear-gradient(#888686, #b0b0b3) !important;
}
.menuButton--large {
  width: 32px;
  min-width: 32px;
  height: 32px;
  max-width: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  aspect-ratio: auto;
  padding: 0;
}

.chatoutput .menuButton--large {
  width: 32px;
  min-width: 32px;
  height: 32px;
  font-size: 1.1rem;
  line-height: 1;
}








