body {
  background-color: #0C1A24;
  color: #e6e6e6;
  font-family: Arial, sans-serif;
}

html {
  margin: 0;
  padding: 0;
  height: var(--app-height, 100vh);
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  position: relative;
  height: var(--app-height, 100vh);
  overflow-y: auto;
  overflow-x: hidden;
}

.show {
  font-size: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #8b8b8b;
}

#show {
  position: absolute;
  top: 6%;
  left: 0%;
  width: 5.4%;
  height: 90%;
  border-radius: 4px;

  user-select: none;
}

#show_game {
  position: absolute;
  top: 0%;
  left: 5%;
  width: 90%;
  height: 5%;
  border-radius: 4px;

  user-select: none;
}

#show_mode {
  position: absolute;
  top: 5.4%;
  left: 5%;
  width: 90%;
  height: 6%;
  border-radius: 4px;

  user-select: none;
}

#show_money {
  position: absolute;
  top: 17.5%;
  left: 5%;
  width: 90%;
  height: 6%;
  border-radius: 4px;
  user-select: none;
}

#show_bet {
  position: absolute;
  top: 43%;
  left: 5%;
  width: 90%;
  height: 6%;
  border-radius: 4px;
  user-select: none;
}

#show_multi {
  position: absolute;
  top: 67%;
  left: 0%;
  width: 99%;
  height: 6%;
  border-radius: 4px;
  user-select: none;
}

#show_round {
  position: absolute;
  top: 94%;
  left: 5%;
  width: 90%;
  height: 6%;
}

.Ashow {
  border: #20c997 solid 1px;
  font-size: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

}

#show_number {
  position: absolute;
  top: 28%;
  left: 5%;
  width: 90%;
  height: 6%;
}

#show_win {
  position: absolute;

  top: 37%;
  left: 5%;
  width: 90%;
  height: 6%;
}

#show_loss {
  position: absolute;

  top: 47%;
  left: 5%;
  width: 90%;
  height: 6%;
}

#show_onporfit {
  position: absolute;

  top: 56%;
  left: 5%;
  width: 90%;
  height: 6%;
}

#show_onloss {
  position: absolute;

  top: 66.6%;
  left: 5%;
  width: 90%;
  height: 6%;
}

#money {
  position: absolute;
  top: 0%;
  left: -1%;
  width: 101%;
  height: 6%;
  border-radius: 4px;
  background-color: rgba(30, 43, 55, 0.52);
  user-select: none;
}

#birr {
  position: absolute;
  color: rgb(0, 204, 41);
  font-size: 100%;
  width: 10%;
  height: 90%;
  top: 5.8%;
  left: 107%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#money_box {
  position: absolute;
  color: white;
  font-size: 100%;
  border: #8b8b8b solid 1px;
  width: 10%;
  height: 90%;
  top: 5.8%;
  left: 50%;
  background-color: #0C1A24;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#conves {
  position: absolute;
  background-color: rgb(30, 43, 55);
  width: 70%;
  height: 89%;
  top: 7%;
  left: 28.7%;
  border-radius: 0px 5px 5px 0px;
  user-select: none;
}

#add-ball {
  position: absolute;
  width: 93%;
  height: 10%;
  top: 40%;
  left: 3%;
  border: 0;
  background-color: rgb(29, 165, 15);
  font-size: 100%;
  cursor: pointer;
  border-radius: 7px;
}

#add-ball2,
#add-ball3 {
  position: absolute;
  width: 93%;
  height: 10%;
  top: 77%;
  left: 3%;
  border: 0;
  background-color: rgb(29, 165, 15);
  font-size: 100%;
  cursor: pointer;
  border-radius: 7px;
}

#box {
  position: absolute;
  width: 23%;
  height: 89%;
  top: 7%;
  left: 5.7%;
  background-color: rgb(40, 56, 72);
  border-radius: 10px 0px 0px 10px;
  user-select: none;
}

#balance {
  position: absolute;
  width: 55%;
  height: 3%;
  border-radius: 4px;
  padding: 10px;
  background-color: rgb(30, 43, 55);
  color: white;
  border: rgb(0, 115, 223);
  top: 17%;
  left: 3%;
  font-size: 150%;
}

#bet_amount {
  position: absolute;
  color: white;
  font-size: 130%;
  top: 12%;
  left: 3%;
  user-select: none;
}

#manual_auto {
  position: absolute;
  color: white;
  background-color: rgb(30, 43, 55);
  width: 98%;
  height: 10%;
  left: 1%;
  top: 2%;
  border-radius: 40px;
}

#manual {
  position: absolute;
  color: white;
  background-color: rgb(40, 56, 72);
  width: 48%;
  height: 80%;
  left: 2%;
  top: 10%;
  border: #0000000f solid 1px;
  cursor: pointer;
  border-radius: 40px;
}

#auto {
  position: absolute;
  color: white;
  background-color: rgb(30, 43, 55);
  width: 45%;
  height: 80%;
  left: 52%;
  top: 10%;
  border: #0000000f solid 1px;
  cursor: pointer;
  border-radius: 40px;
}

#incrementButton {
  position: absolute;
  color: white;
  background-color: rgb(30, 43, 55);
  font-size: 130%;
  width: 15%;
  height: 7%;
  top: 17%;
  left: 83%;
  cursor: pointer;
  border-radius: 7px;
}

#decrementButton {
  position: absolute;
  color: white;
  background-color: rgb(30, 43, 55);
  font-size: 130%;
  width: 15%;
  height: 7%;
  top: 17%;
  left: 66.8%;
  cursor: pointer;
  border-radius: 7px;
}

#Labelnumberofbet {
  position: absolute;
  font-size: 100%;
  width: 90%;
  height: 5%;
  left: 1%;
  top: 24%;
}

#numberofbet {
  position: absolute;
  font-size: 100%;
  justify-content: center;
  align-items: center;
  width: 95%;
  height: 5%;
  left: 1%;
  top: 27.5%;
  border-radius: 4px;
  background-color: rgb(30, 43, 55);
  color: white;
  border: rgb(0, 115, 223);
}

#Labelonwin {
  position: absolute;
  font-size: 100%;
  width: 90%;
  height: 5%;
  left: 1%;
  top: 33.5%;
}

#onwin {
  position: absolute;
  font-size: 100%;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: 5%;
  left: 45%;
  top: 37%;
  border-radius: 4px;
  background-color: rgb(30, 43, 55);
  color: white;
  border: rgb(0, 115, 223);
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

#reset1 {
  position: absolute;
  color: white;
  background-color: rgb(30, 43, 55);
  font-size: 1%;
  width: 15%;
  height: 6%;
  top: 37%;
  left: 1%;
  border: 0;
  font-size: 80%;
  cursor: pointer;
  border-radius: 7px;
  border: 1px solid rgb(255, 255, 255);
}

#Increase1 {
  position: absolute;
  color: white;
  background-color: rgb(30, 43, 55);
  font-size: 1%;
  width: 27%;
  height: 6%;
  top: 37%;
  left: 17%;
  border: 1px solid rgba(0, 0, 0, 0);
  font-size: 80%;
  cursor: pointer;
  border-radius: 7px;
}

#Labelonloss {
  position: absolute;
  font-size: 100%;
  width: 90%;
  height: 5%;
  left: 1%;
  top: 43%;
}

#onloss {
  position: absolute;
  font-size: 100%;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: 5%;
  left: 45%;
  top: 46.5%;
  border-radius: 4px;
  background-color: rgb(30, 43, 55);
  color: white;
  border: rgb(0, 115, 223);
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

#reset2 {
  position: absolute;
  color: white;
  background-color: rgb(30, 43, 55);
  font-size: 1%;
  width: 15%;
  height: 6%;
  top: 46.5%;
  left: 1%;
  border: 0;
  font-size: 80%;
  cursor: pointer;
  border-radius: 7px;
  border: 1px solid rgb(255, 255, 255);
}

#Increase2 {
  position: absolute;
  color: white;
  background-color: rgb(30, 43, 55);
  font-size: 1%;
  width: 27%;
  height: 6%;
  top: 46.5%;
  left: 17%;
  border: 1px solid rgba(0, 0, 0, 0);
  font-size: 80%;
  cursor: pointer;
  border-radius: 7px;
}

#Labelstoponprofit {
  position: absolute;
  font-size: 100%;
  width: 90%;
  height: 5%;
  left: 1%;
  top: 53%;
}

#onprofit {
  position: absolute;
  font-size: 100%;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 5%;
  left: 1%;
  top: 56.7%;
  border-radius: 4px;
  background-color: rgb(30, 43, 55);
  color: white;
  border: rgb(0, 115, 223);
}

#Labelstoponloss {
  position: absolute;
  font-size: 100%;
  width: 90%;
  height: 5%;
  left: 1%;
  top: 63.5%;
}

#stoponloss {
  position: absolute;
  font-size: 100%;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 5%;
  left: 1%;
  top: 67.2%;
  border-radius: 4px;
  background-color: rgb(30, 43, 55);
  color: white;
  border: rgb(0, 115, 223);
}

.slider-container {
  border: #29394a solid 10px;
  background-color: #29394a;
  border-radius: 20px;
  position: absolute;
  width: 90%;
  height: 3%;
  top: 50%;
  left: 3%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

.slider-container {
  width: 80%;
  margin: 50px auto;
  position: relative;
}

.slider {
  position: absolute;
  -webkit-appearance: none;
  width: 100%;
  height: 98%;
  top: -10%;
  left: -0.5%;
  border-radius: 999px;
  background: linear-gradient(to right, rgb(255, 0, 0) 50%, rgb(0, 255, 0) 50%);
  outline: none;
  opacity: 1;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  height: 34px;
  background-color: #3b82f6;
  background-image: repeating-linear-gradient(to right,
      rgba(255, 255, 255, 0.75) 0,
      rgba(255, 255, 255, 0.75) 2px,
      transparent 2px,
      transparent 6px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 50%;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid #2563eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  position: relative;
}

.slider::-webkit-slider-thumb::before {
  color: black;
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.slider::-moz-range-thumb {
  width: 34px;
  height: 34px;
  background-color: #3b82f6;
  background-image: repeating-linear-gradient(to right,
      rgba(255, 255, 255, 0.75) 0,
      rgba(255, 255, 255, 0.75) 2px,
      transparent 2px,
      transparent 6px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 50%;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid #2563eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  position: relative;
}

.slider::-moz-range-thumb::before {
  color: black;
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  position: absolute;
  width: 100%;
  top: -30px;
  left: 0%;
}

.slider-label {
  color: white;
  font-size: 14px;
}

#things {
  position: absolute;
  border: rgb(50, 70, 90) solid 1px;
  border-radius: 7px;
  width: 89%;
  background-color: rgb(34, 48, 62);
  width: 60%;
  height: 20%;
  top: 70%;
  left: 24.5%;
}

.refresh-icon {
  position: absolute;
  left: 50%;
  top: 30%;
  font-size: 250%;
  color: #8c949c;
  cursor: pointer;
  transition: color 0.2s;
}

.refresh-icon:hover {
  color: #00cc29;
}

#Labemultipier {
  position: absolute;
  left: 1%;
  top: 15%;
  color: #b0b8c1;
  font-size: 15px;
  margin-right: 8px;
  font-weight: 600;
  min-width: 70px;
}

#LabeRoll {
  position: absolute;
  left: 49.5%;
  top: 15%;
  color: #b0b8c1;
  font-size: 15px;
  margin-right: 8px;
  font-weight: 600;
  min-width: 70px;
}

#multipier {
  position: absolute;
  background: #15212e;
  border: 1.5px solid #1b2c3d;
  border-radius: 6px;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  top: 10%;
  left: 17.5%;
  width: 28%;
  height: 30%;
  margin-right: 0;
  text-align: left;
  box-sizing: border-box;
}

#roll-over {
  position: absolute;
  background: #15212e;
  border: 1.5px solid #1b2c3d;
  border-radius: 6px;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  top: 10%;
  left: 68%;
  width: 20%;
  height: 30%;
  margin-right: 0;
  text-align: left;
  box-sizing: border-box;
}

#pointing-div {
  position: absolute;
  width: 80.7%;
  height: 7%;
  left: 11%;
  top: 54.5%;
}

#pointing-object {
  position: absolute;
  width: 66px;
  height: 66px;
  top: -66px;
  left: 53%;
  transform: translateX(-50%);
  opacity: 0;
  transition: left 0.9s ease, opacity 0.3s ease;
  z-index: 5;
}

/* Disables the transition so a position/opacity change happens instantly */
#pointing-object.no-anim {
  transition: none !important;
}

/* Global animations toggle is OFF: pointer jumps instantly, no smooth easing */
body.animations-off #pointing-object {
  transition: none !important;
}

#pointing-object::before {
  content: '';
  position: absolute;
  width: 44px;
  height: 44px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, #ffffff 0%, #e9edf1 45%, #ffffff 100%);
  border-radius: 9px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4),
    inset 0 2px 3px rgba(255, 255, 255, 0.9),
    inset 0 -3px 4px rgba(0, 0, 0, 0.12);
}

#pointing-number {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #e0384a;
  font-size: 15px;
  font-weight: 700;
  z-index: 1;
  white-space: nowrap;
  transition: color 0.15s ease;
}

#pointing-number.win {
  color: #4ebb4e;
}

#output {
  position: absolute;
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
  width: 99%;
  height: 10%;
  left: 1%;
  align-items: center;
  padding-right: 10px;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: hidden;
}

.output-item {
  background: rgb(34, 48, 62);
  color: #fff;
  min-width: 55px;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  font-size: 1.1em;
  font-weight: 600;
  transition: background 0.2s;
  text-align: center;
  opacity: 1;
  animation: slideInFromRight 0.4s cubic-bezier(.4, 1.7, .7, 1) backwards;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(60px) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideOutToLeft {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(-60px) scale(0.8);
  }
}

.output-item.removing {
  animation: slideOutToLeft 0.4s cubic-bezier(.4, 1.7, .7, 1) forwards;
}

@media (max-width: 900px) {
  #conves {
    position: absolute;
    background-color: rgb(30, 43, 55);
    width: 400px;
    height: 64%;
    top: 6.02%;
    left: 50%;
    transform: translateX(-50%);
    user-select: none;
    border-radius: 0%;
  }

  #box {
    position: absolute;
    width: 400px;
    height: 100%;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(40, 56, 72);
    user-select: none;
    border-radius: 0%;
  }

  #money {
    position: absolute;
    width: 400px;
    height: 5.9%;
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
  }

  #bet_amount {
    position: absolute;
    color: white;
    font-size: 150%;
    top: 0%;
    left: 3%;
    user-select: none;
  }

  #money_box {
    font-size: 100%;
    width: 25%;
    height: 90%;
    top: 5.8%;
    left: 45%;
  }

  #balance {
    width: 51%;
    height: 3.8%;
    top: 5%;
    left: 3%;
    font-size: 138%;
  }

  #decrementButton {
    font-size: 77%;
    width: 15%;
    height: 7%;
    top: 5%;
    left: 65.8%;
    border: 1px solid rgba(44, 43, 43, 0.224);
  }

  #add-ball {
    width: 94%;
    height: 8%;
    top: 12.9%;
    left: 3%;
    font-size: 100%;
  }

  #add-ball2,
  #add-ball3 {
    width: 94%;
    height: 8%;
    top: 12.9%;
    left: 3%;
    font-size: 100%;
  }

  #auto_view {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    z-index: 0;
  }

  #manual_auto {

    width: 98%;
    height: 10%;
    left: 1%;
    top: 22.7%;
    z-index: 1;
  }

  #incrementButton {
    font-size: 77%;
    width: 15%;
    height: 7%;
    top: 5%;
    left: 83%;
    border: 1px solid rgba(44, 43, 43, 0.224);
  }

  .output-item {
    min-width: 38px;
    height: 44%;
    font-size: 76%;
  }

  .slider {
    position: absolute;
    -webkit-appearance: none;
    width: 100%;
    height: 95%;
    top: -10%;
    left: -1%;
    border-radius: 10px;
    background: linear-gradient(to right, rgb(255, 0, 0) 50%, rgb(0, 255, 0) 50%);
    outline: none;
    opacity: 0.8;
    -webkit-transition: .2s;
    transition: opacity .2s;
  }

  #pointing-div {
    position: absolute;
    width: 80.7%;
    height: 7%;
    left: 13%;
    top: 32.5%;
  }

  #pointing-object {
    width: 50px;
    height: 50px;
    top: -50px;
  }

  #pointing-object::before {
    width: 34px;
    height: 34px;
  }

  #pointing-number {
    font-size: 12px;
  }

  .slider-label {
    color: white;
    font-size: 12px;
  }

  .slider-container {
    width: 80%;
    margin: 50px auto;
    position: relative;
  }

  .slider-container {
    border: #3e5757 solid 10px;
    border-radius: 20px;
    position: absolute;
    width: 89%;
    height: 3%;
    top: 27%;
    left: 3%;
  }

  #show {
    background-color: #00000000;
  }

  #things {
    position: absolute;
    border: rgb(50, 70, 90) solid 1px;
    border-radius: 7px;
    width: 89%;
    background-color: rgb(34, 48, 62);
    width: 87%;
    height: 23%;
    top: 68%;
    left: 8.5%;
  }

  .refresh-icon {
    position: absolute;
    left: 43%;
    top: 21%;
    font-size: 350%;
    color: #8c949c;
    cursor: pointer;
    transition: color 0.2s;
  }

  #multipier {
    font-size: 110%;
    font-weight: bold;
    top: 50%;
    left: 5.5%;
    width: 28%;
    height: 30%;
  }

  #Labemultipier {
    position: absolute;
    left: 8%;
    top: 32%;
    color: #b0b8c1;
    font-size: 18px;
    margin-right: 8px;
    font-weight: 600;
    min-width: 73px;
  }

  #roll-over {
    font-size: 18px;
    font-weight: bold;
    top: 50%;
    left: 64%;
    width: 28%;
    height: 30%;
    margin-right: 0;
    text-align: left;
    box-sizing: border-box;
  }

  #LabeRoll {
    position: absolute;
    left: 65.5%;
    top: 32%;
    color: #b0b8c1;
    font-size: 18px;
    margin-right: 8px;
    font-weight: 600;
    min-width: 70px;
  }
}

@media (max-width: 400px) {
  #conves {
    width: 97%;
  }

  #money {
    width: 97%;
  }

  #box {
    width: 97%;
  }
}