html, body {
  margin: 0; 
  height: 100%; 
  /*overflow: hidden*/
  user-select: none;
  font-size: 1rem;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  padding-top: 0;
  background-color: var(--main-bg-color);
}

.main.container {
  margin-top: 6em;
}

.logo {
  height: 8vh;
}

#login-buttons-open-change-password {
  display: none;
}

#top-menu {
  margin-bottom: 20px;
}
.ui.menu {
  border: none;
}

.key {
  /*width: 16px;*/
  width: 24px;
  text-align: center;
}

.dimm {
  background: #000;
  opacity: .15;
  transition: opacity .4s ease .4s;
}

.tight.grid .column {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.status {
  font-size: 3.5vmin;
  padding-top: 5px;
}

.small .status {
  font-size: 2vh;
}

.player-name {
  font-family: Montserrat, Arial, Helvetica, sans-serif !important;
}

.player {
  font-size: 6vmax;
  font-size: 5vmin;
  font-weight: bold;
  line-height: 1.2;
  cursor: pointer;
}

.small .player {
  font-size: 4vmax;
  font-size: 2vmin;
}

.frames {
  font-size: 10vmin;
  font-weight: bold;
  color: var(--primary-highlight-color);
}

.small .frames {
  font-size: 6vmin;
}

.total-frames {
  font-size: 5.5vm; /* fallback for IE9 */
  font-size: 5vmin;
  font-weight: bold;
  color: var(--primary-highlight-color);
}

.small .total-frames {
  font-size: 3vmin;
}

.score {
  font-size: 28vm; /* fallback for IE9 */
  font-size: 22vmin;
  font-weight: bold;
}

.small .score {
  font-size: 10vmin;
}

.break {
  font-size: 24vm; /* fallback for IE9 */
  font-size: 17vmin;
  font-weight: bold;
  color: var(--primary-highlight-color);
}

.small .break {
  font-size: 6vmin;
}

.break::before{
  content: "\200B";
}

.break-input {
  position:absolute;
  left:0;
  right:0;
  top: 0;
  height: 18rem;
  width: 30rem;
  margin-left:auto;
  margin-right:auto;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 12rem;
  z-index: 10000;
  text-align: center;
}

.points-menu {
  font-size: 0.8rem;
}

.brand {
  align-items: start;
  text-align: left;
  font-weight: 400;
  font-size: 1.5em;
}
.brand .head {
  text-transform: uppercase;
}

.brand div {
  font-family: Montserrat, Arial, Helvetica, sans-serif !important;
}

#vertical-menu {
  margin-top: -20px;
  margin-bottom: 20px;
  display: none;
}

.info {
  font-size: 4vmin;
  line-height: 1.1;
  color: AliceBlue;
}

.small .info {
  font-size: 2vmin;
}

.info .menu {
  min-height: 0 !important;
  background: none !important;
}

.info .menu .item {
  padding: .2em 1em !important;
}

.info .menu .item:before {
  background-color: var(--primary-highlight-color) !important;
}

.info .menu .icon {
  margin: 0 !important;
}

.highlighted-label {
  color: var(--primary-highlight-color);
}

.muted-label {
  color: grey
}

.history {
  background: #e0e1e2;
  color: rgba(0,0,0,.6);
  font-weight: 700;
  font-size: 3vh;
  letter-spacing: 0.15em;
  padding: 0.5rem 5px;
  /* height: 4vh; */
  text-overflow: ellipsis; 
  overflow: hidden;
}

a.modal.trigger, a.board-link {
  color: #fff;
  cursor: pointer;
}

.modal .homepage-link {
  display: none;
}

.modal.fullscreen .close {
  top: 0.7rem !important;
}

.modal.overlay.fullscreen .close {
  right: 3rem !important;
}

.result-table .result-header {
  background-color: var(--raised-segment-head-color);
}

.result-table .result-row, .stats-table .result-row {
  background-color: var(--raised-segment-color);
  font-size: 1.5rem;
}

.result-table .result-row {
  padding-bottom: 0 !important;
}

.result-row {
  border-bottom: 1px #3d3d3d solid;
}

.balls-left .disabled {
  opacity: .5;
}

.balls-left {
  margin-left: -3vw;
}

.balls-left .value {
  margin-top: 4vh;
  margin-left: 1.7em;
  font-size: 7vh;
}

.mobile .balls-left .value {
  margin-top: 2vh;
  margin-left: 0;
  font-size: 3vh;
  text-shadow: 2px 2px 2px rgba(0,0,0,.15);
  color: rgb(255, 255, 255);
}

.mobile .balls-left .yellow .value {
  color: #000;
}

.ball {
  display: inline-block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 50%;
  position: relative;
}
.ball:before {
  content: "";
  position: absolute;
  top: 1%;
  left: 5%;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle at 25% 0px, #ffffff, rgba(255, 255, 255, 0) 38%);
  -webkit-filter: blur(5px);
  filter: blur(5px);
  z-index: 2;
}

.balls-left .red {
  background: radial-gradient(circle at 50% 120%, #ec8787, #db4d4d 10%, #da0e0e 80%, #062745 100%);
}
.balls-left .yellow {
  background: radial-gradient(circle at 50% 120%, #ffef93, #ffe553 10%, #ffdb11 80%, #062745 100%);
}
.balls-left .green {
  background: radial-gradient(circle at 50% 120%, #8fda80, #47ad33 10%, #1a7907 80%, #062745 100%);
}
.balls-left .brown {
  background: radial-gradient(circle at 50% 120%, #cfab94, #a3704e 10%, #7a411b 80%, #062745 100%);
}
.balls-left .blue {
  background: radial-gradient(circle at 50% 120%, #6f91ff, #3b5ae0 10%, #031f7a 80%, #062745 100%);
}
.balls-left .pink {
  background: radial-gradient(circle at 50% 120%, #f8a5d4, #e03997 10%, #dd0b82 80%, #062745 100%);
}
.balls-left .black {
  background: radial-gradient(circle at 50% 120%, #a9aaac, #464747 10%, #1b1c1d 80%, #062745 100%);
}

.stage {
  width: 10vh;
  height: 10vh;
  display: inline-block;
  -webkit-perspective: 1200px;
  -moz-perspective: 1200px;
  -ms-perspective: 1200px;
  -o-perspective: 1200px;
  perspective: 1200px;
  -webkit-perspective-origin: 50% 50%;
  -moz-perspective-origin: 50% 50%;
  -ms-perspective-origin: 50% 50%;
  -o-perspective-origin: 50% 50%;
  perspective-origin: 50% 50%;
}

.mobile .stage {
  width: 7vh;
  height: 7vh;
}

.kioskboard-wrapper:before {
  position: absolute;
  color: rgb(104, 104, 104);
}

.match-banner .row {
  padding: 0.2rem !important;
}

.match-banner .column {
  padding-left: 0.2rem !important;
  padding-right: 0.2rem !important;
}

.match-banner .player-banner {
  overflow-wrap: break-word;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.match-banner .match-score .ui.label {
  padding: 0.3833em 0.533em !important;
}

.match-banner a.board-link {
  color: rgb(136, 133, 133);
  cursor: pointer;
}

.swal2-content {
  text-transform: none;
}

.ui.dimmer {
  background-color: rgba(0, 0, 0, 0.93) !important;
}

.ui.inverted,
.ui.inverted.segment,
.ui.inverted.table,
.ui.inverted.menu,
.ui.inverted.selection.dropdown
{
  background-color: var(--secondary-bg-color);
}

.ui.modal {
  background-color: var(--raised-segment-color);
}

.ui.flyout.inverted>.content, .ui.flyout.inverted>.header {
  background-color: var(--raised-bg-color) !important;
}

/*
.ui.ui.inverted.table>thead>tr>th {
  background-color: var(--raised-segment-head-color);
}
*/

.ui.inverted.divider {
  background-color: inherit;
}

.ui.inverted.very.basic.button {
  box-shadow: none;
}

.ui.inverted.form input[type], 
.ui.inverted.form input[list], 
.ui.inverted.form input:not([type]),
.ui.inverted.toggle.checkbox label:before {
  background-color: var(--form-input-bg-color) !important;
  color: #fff;
}

.ui.basic.inverted.buttons .button {
  border-width: 1px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 50%) inset;
}

.ui.inverted.basic .button {
  background-color: var(--main-bg-color) !important;
}

.ui.inverted.basic.label {
  background-color: inherit !important;
}

form .player-select {
  font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;
  width: 100%;
  background-color: var(--form-input-bg-color) !important;
  color: #b0aeab !important;
  font-size: 1em !important;
  padding: 0.75em 1em !important;
  cursor: pointer;
}

form .player-select.selected {
  color: #fff !important;
}

.ui.grid {
  padding:0 !important;
}

.ui.secondary.inverted.menu {
  background-color: var(--main-bg-color);
}

body.pushable>.pusher, body.pushable>.pusher.dimmed {
  background: var(--main-bg-color);
}

.mini-score {
  cursor: pointer;
}

.mini-score small {
  margin-left: 0.3rem;
  margin-right: 0.3rem;
}

.ui.icon.menu .item>i.icon {
  line-height: 0.5;
}

#undo-button, #redo-button {
  display: none;
}

.mobile .scoring-player-name {
  height: 100% !important;
  justify-content: center;
  display: flex !important;
  padding: 0.5em;
}

#player-select1 {
  position: absolute;
  top: 9vh;
  left: 0;
  height: 46vh;
  width: 42vw;
}

#player-select2 {
  position: absolute;
  top: 9vh;
  right: 0;
  height: 46vh;
  width: 42vw;
}

table.list-match-result td {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: none !important;
}

.break-banner .label, .match-score .label, .mini-score {
  text-shadow: 1px 1px 1px rgb(0 0 0 / 45%);
}

.break-banner {
  display: flex;
  align-items: center;
}

.player-1 .break-banner {
  justify-content: flex-end;
}

.player-2 .break-banner {
  justify-content: flex-start;
}

.break-banner .label {
  vertical-align: middle;
}

.ui.special-grey.text {
  color: #a1a1a1;
}

.last-break {
  opacity: 35%;
  color: #fff;
}

.ui.infinite-grey.labels .label, .ui.ui.ui.infinite-grey.label {
  background-color: #585151;
  border-color: #585151;
  color: #fff;
}

#KioskBoard-VirtualKeyboard {
  padding: 5px 0 !important;
}

#KioskBoard-VirtualKeyboard .kioskboard-row-numpad {
  max-width: 630px !important;
}

.ptr--ptr {
  background: var(--main-bg-color);
  height: 1.2em;
  pointer-events: auto !important;
}

.ptr--box {
  padding-bottom: 30px;
}

.ptr--text {
  color: #a1a1a1;
  font-size: 1.6rem;
}

.ui .labeled.icon.menu .item .label {
  margin-left: 0;
  margin-top: 1rem;
}