html,
body {
  margin: 0;
  padding: 0;
  font-family: "SUSE";
}

body {
  padding-bottom: 110px;
  box-sizing: border-box;
  background-image: linear-gradient(#fff, #d6ecf0);
  min-height: 100vh;
}

input[type="number"] {
  appearance: none;
}
.hide {
  display: none !important;
}
/*  ton-connect button */
button[data-tc-button="true"] {
  border: none;
  padding: 16px 12px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background-color: #0098eb;
  border-radius: 12px;
  height: auto;
  flex: 2;
}
.button {
  display: block;
  border: none;
  padding: 16px 12px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background-color: #0098eb;
  border-radius: 12px;
  text-transform: uppercase;
}
.button.red {
  background-color: transparent;
  color: #be8888;
}

#head {
  width: 100%;
  padding-top: 8px;
  background-image: url(../img/lanscape.jpg);
  background-size: 100% auto;
  background-position: bottom center;
  border-bottom: 2px solid #566931;
  display: flex;
  flex-direction: column;
}
@media (min-width: 500px) {
  #head {
    background-position: center;
  }
}
#head .timer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#head .timer-wrapper .title {
  margin-bottom: 5px;
  font-size: 12px;
}
#head .timer-wrapper .time-box {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 2px 8px;
  border: 2px solid #000;
  border-radius: 10px;
  color: #ffee30;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 3px;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.3);
}
#head .crowd {
  margin-top: 12px;
  width: 100%;
  background: url("../img/crowd2.png");
  height: 16vw;
  /* background-position-x: 1vw; */
  background-size: auto 100%;
}
#head .crowd img {
  width: 100%;
}

#lines {
  border-bottom: 4px solid #5e3f24;
}
#lines .line {
  background-image: url(../img/line-bg.jpg);
  background-size: auto 100%;
  height: 60px;
  position: relative;
}
#lines .line .icon-badge {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 5px;
  bottom: 0;
  z-index: 2;
  box-sizing: border-box;
  width: 41px;
  height: 52px;
  padding: 8px 10px 0px 5px;
  background-image: url(../img/coin-bg.png);
  background-size: 100% 100%;
}
#lines .line .icon-badge img {
  width: 100%;
  margin-bottom: 2px;
}
#lines .line .icon-badge strong {
  display: block;
  text-align: center;
  color: #515050;
  font-size: 10px;
}
#lines .line .horse-box {
  position: absolute;
  left: 90px;
  width: 88px;
  height: 75px;
  bottom: 0;
  z-index: 1;
  transform: translateX(-50%);
  transition: all 1s ease-in-out;
}
#lines .line .horse-box .horse {
  width: 100%;
  position: absolute;
  transform-origin: center center;
}
#lines .line .horse-box .handle {
  height: 30px;
  position: absolute;
  bottom: 0;
  left: calc(50% - 10px);
}
#lines .line .start {
  height: 100%;
  position: absolute;
  top: 0;
  left: 130px;
  filter: sepia(10);
  opacity: 0.8;
}
#lines .line .finish {
  height: 100%;
  position: absolute;
  top: 0;
  left: 100%;
  transform: translateX(-100%);
  padding-right: 20px;
  overflow: hidden;
}
#lines .line .finish .finish-img {
  filter: sepia(10);
  opacity: 0.8;
  height: 100%;
  transform: translateX(90px);
}
#lines .line .score {
  position: absolute;
  top: 5px;
  right: 0;
  background-color: #77b823;
  color: #fff;
  border: 1px solid #fff;
  border-right: none;
  border-radius: 15px 0 0 15px;
  padding: 1px 3px 1px 5px;
  font-size: 10px;
}
#lines .line .score.minus {
  background-color: #cb2e2e;
}
#lines .line .bet {
  position: absolute;
  bottom: 0px;
  left: 40px;
  background: #1f9ae0;
  color: #fff;
  padding: 2px 8px 2px 6px;
  font-size: 12px;
  border-radius: 0 11px 0 0;
  z-index: 1;
}
#lines .line {
  animation: line-bg 12.5s infinite linear;
  animation-play-state: paused;
}
#head .crowd {
  animation: crowd-bg 50s infinite linear;
  animation-play-state: paused;
}
#lines:not(.changing) .start {
  animation: start 3.4s forwards linear;
  animation-play-state: paused;
}
#lines:not(.changing) .finish-img {
  animation: finish 1.5s forwards linear;
  animation-play-state: paused;
}
#lines .horse {
  animation: horse 2s infinite linear;
  animation-play-state: paused;
}
#lines.finishing .finish-img {
  animation-play-state: running;
}
#head.running .crowd {
  animation-play-state: running;
}
#lines.running .line {
  animation-play-state: running;
}
#lines.running .start {
  animation-play-state: running;
}
#lines.running .horse {
  animation-play-state: running;
}
#lines.running .line.l-1 .horse {
  animation-delay: 0ms;
}
#lines.running .line.l-2 .horse {
  animation-delay: 200ms;
}
#lines.running .line.l-3 .horse {
  animation-delay: 100ms;
}
#lines.running .line.l-4 .horse {
  animation-delay: 400ms;
}
#lines.running .line.l-5 .horse {
  animation-delay: 300ms;
}
#lines.running .line.l-6 .horse {
  animation-delay: 500ms;
}
@keyframes line-bg {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -741px 0;
  }
}
@keyframes crowd-bg {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -3000px 0;
  }
}
@keyframes start {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-170px);
  }
}
@keyframes finish {
  0% {
    transform: translateX(90px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes horse {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(5px) rotate(-15deg);
  }
  50% {
    transform: translateY(10px) rotate(0deg);
  }
  75% {
    transform: translateY(5px) rotate(15deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

#content {
  display: flex;
  flex-direction: column;
}
#content .total-prize {
  width: 100%;
  text-align: center;
}
#content .total-prize .title {
  margin: 0;
  font-size: 16px;
  padding: 8px 0;
  background-color: white;
}
.num-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  width: 100%;
  background-color: #59c1ff;
  color: #fff;
}
.num-box .icon {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-radius: 50%;
  margin-right: 10px;
}
.num-box .icon img {
  width: 60%;
}
.num-box .prize {
  font-size: 36px;
}
#content .total-prize .num-box .token {
  margin: 10px 0 0 8px;
}
#content .tokens-img {
  width: 90%;
  margin: 18px auto;
  display: block;
}
#content #tokens {
  padding: 1rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}
#content #tokens > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 1rem;
}
#content #tokens .token-item {
  min-width: 135px;
  width: 31%;
}
#content #tokens .token-item .token-name {
  color: #919191;
  text-align: center;
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 3px;
}
#content #tokens .token-item .wrapper {
  background-color: #fff;
  border-radius: 30px;
  padding: 5px;
  box-shadow: 3px 5px 6px 0 rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
}
#content #tokens .token-item .wrapper .token-img {
  width: 45px;
}
#content #tokens .token-item .wrapper .token-data {
  padding-left: 8px;
  font-weight: bolder;
  display: flex;
  flex-direction: column;
}
#content #tokens .token-item .wrapper .token-data .percent {
  color: #000;
  font-size: 11px;
  margin-bottom: -1px;
}
#content #tokens .token-item .wrapper .token-data .value {
  color: #2b8ec5;
  font-size: 11px;
  display: flex;
  align-items: center;
}
#content #tokens .token-item .wrapper .token-data .value img {
  height: 12px;
}
#content #tokens .token-item .wrapper .token-data .ratio {
  font-size: 16px;
  color: #c43030;
  margin-bottom: -3px;
}

#action-bar {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
}
#action-bar > div {
  display: flex;
}
#action-bar > .betting-blocked-box > div {
  font-size: 12px;
  width: fit-content;
}
#action-bar > .betting-blocked-box {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  background-color: #eaf6f8;
  padding: 5px;
  border-radius: 8px;
}
#action-bar > div > div {
  width: 49%;
  box-sizing: border-box;
  overflow: hidden;
  display: inline-flex;
}
#action-bar .wallet {
  display: inline-flex;
  align-items: center;
}
#action-bar .wallet .icon {
  height: 50px;
  margin-right: 10px;
}
#action-bar .wallet .texts {
  display: flex;
  flex-direction: column;
  width: 60%;
}
#action-bar .wallet .texts .title {
  margin-bottom: 5px;
}
#action-bar .wallet .texts .status {
  color: #b25e5e;
  font-size: 14px;
}
#action-bar .wallet .texts .hash-id {
  color: #8a8a8a;
  font-size: 12px;
  /* text-overflow: ellipsis; */
  font-weight: normal;
  max-width: 90%;
  overflow: hidden;
}
#action-bar .wallet .texts .ton-balance {
  color: #0098eb;
  font-size: 24px;
}
#action-bar .bet-bt {
  background-color: #9ce12f;
  padding: 12px;
  border-radius: 15px;
  margin-left: 1%;
}
#bet-bt.disabled {
  opacity: 0.5;
  pointer-events: none;
}
#action-bar .bet-bt img {
  height: 42px;
  margin: 0 auto;
}
#action-bar .bet-box {
  background-color: #ffcf7b;
  padding: 10px;
  border-radius: 15px;
  margin-left: 1%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
#action-bar .bet-box .text {
  margin: 0 auto 5px;
}
#action-bar .bet-box .text strong {
  font-size: 18px;
}
#action-bar .bet-box .token {
  font-size: 20px;
  color: #994217;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background-color: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: end;
  transition: all 0.5s ease-out;
}
.popup .popup-wrapper {
  position: relative;
  background-color: #fff;
  text-align: center;
  padding: 1rem;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.16);
  transition: all 0.45s ease-out;
  overflow-y: auto;
  max-height: 80%;
}
.popup .popup-wrapper:before {
  content: "";
  display: inline-flex;
  width: 40px;
  height: 5px;
  border-radius: 5px;
  background-color: rgba(108, 108, 108, 0.5);
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
}
.popup .popup-wrapper .message {
  font-size: 16px;
}
.popup .popup-wrapper .more {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #2e8fc5;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.25s ease-out;
}
.popup .popup-wrapper .more img {
  width: 14px;
  margin-top: 3px;
  transition: transform 0.3s ease;
}

.popup .popup-wrapper .more-info {
  font-size: 16px;
  text-align: justify;
  margin-bottom: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
  margin-top: 0;
}

.popup .popup-wrapper .more-info.hidden {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.popup .popup-wrapper .more-info:not(.hidden) {
  max-height: 300px;
  opacity: 1;
  margin-top: 10px;
}

.popup .popup-wrapper hr {
  border: none;
  border-bottom: 1px solid #cacaca;
  margin: 12px 0;
}
.popup .popup-wrapper .button-bar {
  display: flex;
  margin-top: 2rem;
}
.popup .popup-wrapper .button-bar > .button {
  flex: 1;
}
.popup .popup-wrapper .button-bar > .button:not(:only-child) {
  flex: 2;
}
.popup .popup-wrapper .button-bar > .button:not(:only-child):first-child {
  flex: 1;
}
.popup.alert {
  padding: 1rem;
  align-items: center;
}
.popup.alert .popup-wrapper {
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.18, 0.89, 0.58, 1.34);
}
.popup.alert .popup-wrapper:before {
  content: none;
}
.popup.blurless {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.popup.hidden {
  display: flex;
  opacity: 0;
  visibility: hidden;
}
.popup.hidden.alert .popup-wrapper {
  transform: scale(0.4);
  opacity: 0;
  visibility: hidden;
}
.popup.hidden .popup-wrapper {
  transform: translateY(105%);
  opacity: 0;
  visibility: hidden;
}

#popup-bet .wallet-balance {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
#popup-bet .wallet-balance span {
  font-size: 14px;
  font-weight: bold;
  color: #909090;
}
#popup-bet .wallet-balance strong {
  color: #2b8ec5;
  margin: 0 4px 0 8px;
}
#popup-bet .wallet-balance img {
  height: 12px;
}
.bet-input {
  display: inline-flex;
  border: 2px solid #96c5cb;
  box-shadow: 2px 5px 8px rgba(0, 0, 0, 0.1);
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
}
.bet-input button {
  border: none;
  padding: 16px 16px;
  background-color: #d6edf0;
  color: #81b1b7;
  font-weight: bold;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bet-input button img {
  max-width: 22px;
}
.bet-input input {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  color: #2b8ec5;
  max-width: 130px;
  border: none;
  outline: transparent;
}
.bet-input-error {
  margin-top: 5px;
  font-size: 14px;
  color: #cb2e2e;
}
#popup-bet .bet-title {
  margin-top: 2rem;
}
#popup-bet .bet-horses {
  max-width: 500px;
}
#popup-bet .bet-horses .bet-item {
  position: relative;
  font-weight: bold;
  text-align: right;
  display: inline-block;
  margin: 0 10px;
}
#popup-bet .bet-horses .bet-item:after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 7px;
  left: 2px;
  top: 35px;
  border-radius: 0 10px 10px 10px;
  background-image: linear-gradient(-90deg, rgb(214, 237, 240) 0%, rgb(255, 255, 255) 100%);
  box-shadow: 2px 1px 5px rgba(0, 0, 0, 0.05);
}
#popup-bet .bet-horses .bet-item img {
  position: relative;
  height: 93px;
  z-index: 1;
}
#popup-bet .bet-horses .bet-item .content {
  position: absolute;
  bottom: 11px;
  right: 18px;
  z-index: 1;
}
#popup-bet .bet-horses .bet-item .content span {
  display: block;
}
#popup-bet .bet-horses .bet-item .percent {
  color: #000;
  font-size: 12px;
  margin-bottom: 8px;
}
#popup-bet .bet-horses .bet-item .value {
  color: #2b8ec5;
  font-size: 14px;
  display: flex;
  align-items: center;
}
#popup-bet .bet-horses .bet-item .value img {
  height: 12px;
  margin-left: 3px;
}
#popup-bet .bet-horses .bet-item .ratio {
  font-size: 22px;
  color: #dc2323;
}
#popup-bet .bet-horses .bet-item.selected:after {
  background-image: linear-gradient(-90deg, #f0d525, rgb(255, 255, 255) 100%);
}
#popup-bet .button-bar .button.action {
  background-color: #9ce12f;
  transition: all 0.25s ease-out;
}
#popup-bet .button-bar .button.action img {
  height: 30px;
}
#popup-bet .button-bar .button.action.disabled {
  opacity: 0.5;
  pointer-events: none;
}

#popup-bet .button-bar .button.action.hidden {
  display: none;
}

#popup-wallet-connect .popup-wrapper {
  padding: 0;
}
#popup-wallet-connect .popup-wrapper:before {
  content: none;
}
#popup-wallet-connect img {
  width: 100%;
  max-width: 500px;
}

#popup-won img.bg {
  width: calc(100% + 2rem);
  margin: -1rem -1rem 0 -1rem;
  border-radius: 20px;
}
#popup-won img.medal {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 190px;
}
#popup-won .message {
  font-size: 18px;
}
#popup-won .message.p1 {
  margin-bottom: 0.5rem;
}
#popup-won .message.p2 {
  margin-top: 0;
}
#popup-won .message.p2 strong {
  color: #0098eb;
}
#popup-won .info {
  color: #676666;
}
#popup-won .info strong {
  color: #0098eb;
}

@media (max-width: 430px) {
  #popup-bet .bet-horses .bet-item {
    margin: 0;
  }
}
@media (max-width: 390px) {
  #popup-bet .bet-horses .bet-item img {
    height: 84px;
  }
  #popup-bet .bet-horses .bet-item .ratio {
    font-size: 20px;
  }
  #popup-bet .bet-horses .bet-item:after {
    top: 30px;
  }
}
@media (max-width: 360px) {
  #popup-bet .bet-horses .bet-item img {
    height: 76px;
  }
  #popup-bet .bet-horses .bet-item:after {
    top: 20px;
  }
}
#charge-amount {
  height: 48px;
  width: 100%;
  border: transparent;
  outline: transparent;
  padding-left: 16px;
  padding-right: 16px;
}
.flash-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: red;
  color: white;
  width: 10px;
  height: 11px;
  border: none;
  border-radius: 999px;
  animation: flash 1s infinite;
}

@keyframes flash {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.menu {
  position: absolute;
  top: 80px;
  width: fit-content;
  display: flex;
  flex-direction: column;
  gap: 12px;
  left: 0;
}
.menu div {
  background: white;
  padding: 8px 20px;
  display: flex;
  width: fit-content;
  border-radius: 0px 20px 20px 0;
  cursor: pointer;
  height: 20px;
  align-items: center;
  gap: 5px;
  font-weight: bold;
  color: grey;
  box-shadow: 0px 0px 6px 0 rgb(0 0 0 / 0.1);
}
.menu div img {
  height: 100%;
}

.menu-btn {
  position: absolute;
  background: white;
  top: 10px;
  z-index: 100;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 0px 20px 20px 0;
  cursor: pointer;
  width: 30px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 0px 6px 0 rgb(0 0 0 / 0.1);
}

.menu-btn-burger {
  width: 100%;
  height: 3px;
  background-color: grey;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease;
}

.menu-btn-burger::before,
.menu-btn-burger::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: grey;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-btn-burger::before {
  transform: translateY(-8px);
}

.menu-btn-burger::after {
  transform: translateY(8px);
}

.menu-btn.active .menu-btn-burger {
  transform: rotate(45deg);
}

.menu-btn.active .menu-btn-burger::before {
  transform: rotate(90deg);
}

.menu-btn.active .menu-btn-burger::after {
  transform: rotate(90deg);
  opacity: 0;
}
/************* withdraw *****************/
#popup-withdraw .popup-wrapper {
  width: 100%;
  max-width: 480px;
}
.select-withdraw-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.select-max-withdraw {
  color: #2e8fc5;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}
.select-withdraw {
  font-size: 16px;
  color: #909090;
}

.wallet-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 15px;
  width: 100%;
  background-color: #007ec3;
  color: #fff;
  font-size: 14px;
  margin-bottom: 1em;
}
.wallet-card-title {
  color: #6eccff;
  text-align: left;
  padding: 0 15px;
  margin-bottom: 0;
}
.wallet-box {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.wallet-box-icon {
  height: 20px;
  border-radius: 4px;
  border: 1px solid white;
}
.wallet-box .hash-id {
  text-overflow: ellipsis;
  max-width: 90%;
  overflow: hidden;
  font-weight: lighter;
  font-size: 14px;
}
.wallet-box-name {
}
.arrow-icon {
  width: 20px;
}
.wallet-card .num-box {
  background-color: #0098eb;
  gap: 15px;
}

.withdraw-history-wrapper {
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
  padding: 10px 15px;
  background-color: #efefef;
  margin-top: 24px;
}
.withdraw-history-title {
  font-size: 14px;
  padding: 10px 0;
  font-weight: bold;
  display: block;
}
.withdraw-history {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
.withdraw-card {
  border-top: 1px solid #cacaca;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}
.withdraw-card-amount img {
  height: 12px;
}
.withdraw-card-amount {
  color: #2b8ec5;
  margin-right: 4px;
  font-weight: bold;
}
.withdraw-card-date {
  color: #929292;
}
/*************************** History ***********************/
#popup-bets-history .popup-wrapper,
#popup-history .popup-wrapper {
  width: 100%;
  max-width: 480px;
  height: 100dvh;
}
#popup-history .game-history-container {
  box-sizing: border-box;
  height: 100%;
  overflow-y: auto;
}
#popup-history .game-history {
  gap: 20px;
  font-size: 12px;
}
#popup-history .bet-horses .bet-item {
  position: relative;
  font-weight: bold;
  text-align: right;
  display: flex;
  margin: 0 10px;
}
#popup-history .bet-horses .bet-item:after {
  content: "";
  position: absolute;
  bottom: 0px;
  right: 0px;
  left: 0px;
  top: 19px;
  border-radius: 0 10px 10px 10px;
  background-image: linear-gradient(-90deg, rgb(214, 237, 240) 0%, rgb(255, 255, 255) 100%);
  box-shadow: 2px 1px 5px rgba(0, 0, 0, 0.05);
}
#popup-history .bet-horses .bet-item > img {
  position: absolute;
  height: 70px;
  left: 0px;
  bottom: 0px;
  z-index: 1;
}
#popup-history .bet-horses .bet-item .content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-end;
  position: relative;
  right: 15px;
  margin-left: auto;
  z-index: 1;
  align-items: flex-end;
}
#popup-history .bet-horses .bet-item .content span {
  display: flex;
}
#popup-history .bet-horses .bet-item .percent {
  color: #000;
  font-size: 12px;
  margin-bottom: 8px;
}
#popup-history .bet-horses .bet-item .value {
  color: #2b8ec5;
  font-size: 16px;
  display: flex;
  align-items: center;
}
#popup-history .bet-horses .bet-item .symbol {
  font-size: 11px;

  display: inline-block;
  margin-left: auto;
}
#popup-history .bet-horses .bet-item .value img {
  height: 12px;
  margin-left: 3px;
}
/******************************* BETS History ***********************/
.table-container {
  box-sizing: border-box;

  overflow-y: auto;
  height: 92%;
  margin: 20px 0;
  font-size: 12px;
  color: #909090;
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
  padding: 10px 0px;
  background-color: #efefef;
  margin-top: 24px;
  padding-bottom: 24px;
}

.bets-table {
  width: 100%;
  border-collapse: collapse;
}

.bets-table thead {
  /* position: sticky; */
  top: 0;
  z-index: 1;
  border-bottom: 1px solid #cacaca;
}

.bets-table th {
  padding: 8px;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.bets-table td {
  padding: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bets-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.horse-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.horse-cell .symbol {
  font-size: 10px;
}
td.horse-cell .image {
  width: 24px;
  height: 24px;
}

.bets-table td img {
  display: inline-block;
  width: 10px;
  height: 10px;
  vertical-align: middle;
  margin-left: 4px;
}

.bets-table td.won {
  font-weight: bold;
  color: #4caf50;
  font-size: 14px;
}
.bets-table td.amount {
  font-weight: bold;
  color: #2b8ec5;
  min-width: 50px;
  font-size: 14px;
}

/* .bets-table td.positive {
  color: #4caf50;
}

.bets-table td:not(.positive):not(.won) {
  color: #ff5252;
} */

/* Rules popup specific styles */
.rules-content {
  padding-right: 10px;
}
.rules-content ol {
  list-style-position: inside;
  padding-inline-start: 0;
}

.rule-section {
  margin-bottom: 20px;
}

.rule-section h3 {
  color: #ffcc00;
  margin-bottom: 10px;
  font-size: 18px;
}

.rule-section p,
.rule-section ul {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.rule-section li {
  margin-bottom: 5px;
  text-align: start;
}
/***************** LOADING *****************/
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

.loading-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.loading-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loading-logo {
  margin-bottom: 2rem;
}

.logo-image {
  max-width: 170px;
  height: auto;
  margin-bottom: 20vh;
}

.horse-running {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 100%;
  backdrop-filter: blur(10px);
}

.loading-overlay.telegram-blocker .loading-spinner {
  display: none;
}
.loading-overlay.telegram-blocker .loading-content {
  display: none;
}


.loading-text {
  font-size: 1rem;
  /* margin-bottom: 1rem; */
  color: #fff;
}

.loading-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fff;
  animation: loading-dots 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}
.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes loading-dots {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.telegram-section {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.loading-overlay.telegram-blocker .telegram-section {
  display: flex;
}
.telegram-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.telegram-icon {
  width: 50px;
  height: 50px;
}

.telegram-text {
  color: #fff;
  font-size: 0.9rem;
  margin: 0;
  max-width: 250px;
}

.telegram-play-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 8px 34px;
  background: linear-gradient(135deg, #0088cc, #239ad6);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.telegram-play-button:hover {
  background: linear-gradient(135deg, #0099dd, #006aaa);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}


/* Mobile responsiveness */
/* @media (max-width: 768px) {
  .logo-image {
    max-width: 150px;
  }

  .horse-running {
    width: 80px;
    height: 80px;
  }

  .telegram-text {
    font-size: 0.8rem;
    max-width: 200px;
  }

  .telegram-play-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
} */
