#dice_wrapper {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 500ms;
}

.dice_help_button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  cursor: pointer;
  z-index: 10;
  font-size: 80%;
  color: grey;
  transition: color 250ms, transform 250ms;
}

.dice_help_button:hover {
  color: #ddd;
  transform: scale(1.05);
}

.dice_help_button span {
  vertical-align: middle;
}

.dice_help_button .material-symbols-rounded {
  font-size: 1.5rem;
}

#dice_left_column {
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
  left: 0.35rem;
  width: calc(50% - 0.25rem);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  max-height: 100%;
  overflow: visible;
  text-align: center;
  font-size: 0;
}

#dice_right_column {
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
  right: 0.5rem;
  width: calc(50% - 0.25rem);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  max-height: calc(100% - 0.75rem);
  overflow: auto;
  background-color: rgb(186 190 224 / 19%);
  border-radius: 1rem;
}

#jackpot_wrapper div {
  display: inline-block;
  position: relative;
  font-size: 1.4rem;
  font-weight: 400;
  vertical-align: middle;
}

#jackpot_wrapper {
  font-size: 2rem;
  text-align: center;
  background-color: rgb(0 0 0 / 50%);
  width: 18rem;
  margin: 0 auto;
  padding: 0rem 0 0.15rem 0;
  border-radius: 0 0 1rem 1rem;
  /* border: dashed 0.1rem rgb(152 124 86); */
  --diceJackpotBorderWidth: 0.15rem;
  background: #1D1F20;
  position: relative;
  top: -0.1rem;
  border-radius: 0 0 1rem 1rem;
  border-top: none;
  overflow: visible;
}

#jackpot_wrapper:after {
  content: '';
  position: absolute;
  top: calc(-1 * var(--diceJackpotBorderWidth));
  left: calc(-1 * var(--diceJackpotBorderWidth));
  height: calc(100% + var(--diceJackpotBorderWidth) * 2);
  width: calc(100% + var(--diceJackpotBorderWidth) * 2);
  background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8);
  border-radius: 0 0 1.2rem 1.2rem;
  z-index: -1;
  animation: animatedgradient 10s ease alternate infinite;
  background-size: 300% 300%;
  border-top: none;
}

@keyframes animatedgradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#dice_jackpot_amount gold {
  font-weight: 300;
}

#jackpot_wrapper .nano_logo {
  top: 0.8rem;
  height: 0.6em;
  margin-right: 0.1rem;
}

#text-jackpot {
  width: 36%;
  padding-top: 11%;
  background: url(../../images/dice/jackpot.png) no-repeat 0px 0px / 100% 100%;
  top: -0.05rem;
}


/****** ROULETTE ******/

.dice_roulette_wrapper {
  position: relative;
  overflow: visible;
  z-index: 2;
}

.dice_roulette {
  position: relative;
  overflow: hidden;
  text-align: center;
  width: 20rem;
  font-size: 0px;
  background-color: #ffffff;
  background-image: linear-gradient(0deg, rgb(176 176 176) 0%, #cecece 20%, #eee 80%, rgb(176 176 176) 100%);
  display: inline-block;
  border-radius: 1rem;
  height: 4.3rem;
  box-shadow: rgb(162 162 162) 0px 0px 0.25rem 0.1rem inset, rgb(0 0 0 / 16%) 0.2rem 0rem 0.5rem 0.3rem;
}

.roulette-inner {
  will-change: transform;
}

.number {
  height: 4.5rem;
  padding: 0 0.15rem;
  position: relative;
  display: inline-block;
  border-right: solid 0.075rem;
  border-image: linear-gradient(0deg, rgba(184, 184, 184, 0) 5%, rgb(154, 154, 154) 30%, rgb(221, 221, 221) 70%, rgba(184, 184, 184, 0) 95%) 1;
}

.number:first-child {
  border-left: solid 0.075rem;
  border-image: linear-gradient(0deg, rgba(184, 184, 184, 0) 5%, rgb(154, 154, 154) 30%, rgb(221, 221, 221) 70%, rgba(184, 184, 184, 0) 95%) 1;
}

.number img {
  margin: 0 auto;
  height: 4.3rem;
}

.roulette_left_deco {
  --height: 1rem;
  --width: 0.35rem;
  position: absolute;
  left: calc(50% - 10rem - var(--width));
  top: calc(50% - var(--height) / 2);
  background-color: gold;
  background-image: linear-gradient(0deg, #b08d2e 0%, #d6ae3d 20%, #ffd152 80%, #9c7c24 100%);
  border-radius: 1rem 0 0 1rem;
  height: var(--height);
  width: var(--width);
  box-shadow: rgb(162 162 162) -1.9rem 0px 0.25rem -1.9rem inset;
}

.roulette_right_deco {
  --height: 1rem;
  --width: 0.35rem;
  position: absolute;
  right: calc(50% - 10rem - var(--width));
  top: calc(50% - var(--height) / 2);
  background-color: gold;
  background-image: linear-gradient(0deg, #b08d2e 0%, #d6ae3d 20%, #ffd152 80%, #9c7c24 100%);
  border-radius: 0 1rem 1rem 0;
  height: var(--height);
  width: var(--width);
  box-shadow: rgb(162 162 162) 1.9rem 0px 0.25rem -1.9rem inset;
}

/****************** DICE OPTIONS PANEL******************/
.dice_options {
  position: relative;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
}

.dice_options_row {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;

}

.dice_options_label {
  display: inline-block;
  font-size: 90%;
  font-weight: 400;
  width: 20%;
  text-align: left;
  position: relative;
}

.dice_options_title {
  position: relative;
  text-align: center;
  margin-bottom: 0.8rem;
  font-weight: 400;
  display: block;

}

.dice_options_title span {
  vertical-align: middle;
}

.material-symbols-rounded.dice_top_cog {
  position: relative;
  top: 0rem;
  font-size: 1.25rem;
}

.material-symbols-rounded.dice_bottom_cog {
  position: absolute;
  font-size: 0.9rem;
  left: 44.2%;
  top: 49%;
}

.dice_options_selector_wrapper {
  position: relative;
}

.dice_options_selector {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
  position: relative;
  width: 76%;
  display: inline-block;
  font-size: 0;
  vertical-align: middle;
  transition: background-color 250ms, box-shadow 250ms;
}

.dice_options_selector:hover {
  box-shadow: inset 0px 0px 0px 1px #828280;
}

.dice_options_selector:hover .dice_options_selector_slider {
  background-color: rgb(178 147 106);
}

.dice_options_selector_slider {
  position: absolute;
  z-index: 1;
  background-color: rgb(167 133 87);
  width: 50%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: inherit;
  transition: background-color 250ms;
}

.dice_option1_selector,
.dice_option2_selector {
  display: inline-block;
  text-align: center;
  padding: 0.5rem 0;
  cursor: pointer;
  width: 50%;
  transition: background-color 250ms, box-shadow 250ms;
  vertical-align: middle;
  border-radius: 1rem;
  font-size: 1rem;
  position: relative;
  z-index: 2;
}

.dice_options_input {
  display: inline-block;
  position: relative;
  background-color: rgba(0, 0, 0, 0.5);
  width: 38%;
  border-radius: 1rem;
  /* vertical-align: middle; */
  transition: box-shadow 250ms;

}

.dice_options_input:hover {
  box-shadow: inset 0px 0px 0px 0.06rem #828280;
}

.dice_options_input input {
  border: none;
  background: transparent;
  height: 2em;
  width: calc(100%);
  color: #ddd;
  font-weight: 400;
  text-align: center;
  border-radius: inherit;
}

.dice_option_material_symbol {
  position: absolute;
  top: 50%;
  left: 0.25rem;
  transform: translateY(-50%);
  height: 1em;
}

.dice_option_material_symbol .material-symbols-rounded {
  font-size: 1em;
}

.dice_profit_win_preview {
  text-align: center;
  padding: 0.5rem;
  background-color: rgb(175 175 175 / 34%);
  width: 9rem;
  margin: 0 auto 0.5rem auto;
  border-radius: 0.5rem;
  display: block;

}

.dice_win_preview,
.dice_profit_preview {
  margin-top: 0.15rem;
  font-size: 70%;
}

.dice_threshold_preview {
  font-weight: 400;
}

.dice_threshold_number {
  color: rgb(195 155 66);
}

.dice_options_label.dice_advanced_options_label {
  width: 100%;
  cursor: pointer;
}

.dice_advanced_options_label span {
  vertical-align: middle;
}

.dice_advanced_options_label .options_expand {
  font-size: 1.5rem;
  position: relative;
  color: rgb(178 147 106);
  top: 0.1rem;
  transform: rotate(0deg);
  transition: transform 250ms;
}

.dice_advanced_options_label .options_help {
  font-size: 1rem;
  color: rgb(178 147 106);
  position: relative;
  top: 0.075rem;
}

.dice_advanced_options_help_text {
  position: absolute;
  border-radius: 0.5rem;
  background-color: #d2d2d2;
  color: #303030;
  padding: 0.35rem;
  z-index: 5;
  width: 13rem;
  line-height: 1.2;
  text-align: center;
  top: -0.75rem;
  left: 9.75rem;
  opacity: 0;
  transition: opacity 0.25s;
  transform: scale(0);
}

.dice_advanced_options {
  overflow: hidden;
  transition: height 250ms;
}

.dice_on_win_base_selector,
.dice_on_loss_base_selector {
  font-size: 0.9rem;
}

.dice_switch_label {
  font-size: 0.9rem;

}

.dice_on_loss_mult_row,
.dice_on_win_mult_row {
  display: none;
}

.dice_switch_selector_wrapper .dice_option1_selector,
.dice_switch_selector_wrapper .dice_option2_selector,
.dice_switch_selector_wrapper .dice_option3_selector,
.dice_switch_selector_wrapper .dice_option4_selector {
  display: inline-block;
  text-align: center;
  padding: 0.5rem 0;
  cursor: pointer;
  width: 25%;
  transition: background-color 250ms, box-shadow 250ms;
  vertical-align: middle;
  border-radius: 1rem;
  font-size: 1rem;
  position: relative;
  z-index: 2;
}

.dice_switch_selector_wrapper .dice_switch_selector_slider {
  width: 25%;
}


/**************************** INFO PANEL (HISTORY) ****************************/

.chat_info_panel .dice_history {
  -webkit-overflow-scrolling: touch;
}

.chat_info_panel .dice_history_title {
  position: relative;
  font-size: 0.85rem;
  height: 1.25rem;
  background-color: rgb(0 0 0 / 42%);
  border-bottom: 0.05rem solid rgb(0 0 0 / 33%);
  width: 100%;
  display: flex;
  align-items: center;
  display: none;
}

.chat_info_panel .dice_history_recent_bets {
  position: absolute;
  line-height: 1.3rem;
  width: 100%;
  text-align: center;
  color: rgba(218, 160, 81, 0.85);
}

.chat_info_panel .dice_history_size_button {
  position: absolute;
  width: 1rem;
  height: 1rem;
  text-align: center;
  color: #ddd;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat_info_panel .dice_history_size_button .material-symbols-rounded {
  font-size: 0.8rem;

}

.chat_info_panel .dice_history_expand {
  right: 0.25rem;
}

.chat_info_panel .dice_history_collapse {
  right: 0.25rem;
  display: none;
}

.chat_info_panel .dice_history_filter {
  right: 1.45rem;
}

.chat_info_panel .dice_history_isolate {
  right: 2.65rem;
}

.chat_info_panel .dice_history_header {
  font-size: 0.75rem;
  height: 1.6rem;
  line-height: 2rem;
  background-color: rgb(125 32 67);
  width: 95%;
  display: flex;
  color: rgba(218, 160, 81, 0.85);
  align-items: center;
  position: absolute;
  z-index: 2;
  border-top-left-radius: 0.35rem;
  border-top-right-radius: 0.35rem;
}

.dice_rows {
  margin-top: 1.6rem;
}

.dice_row {
  height: 1.43rem;
  line-height: 1.43rem;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
}

.dice_row div {
  position: relative;
  overflow: visible;
  display: inline-block;
}

.chat_info_panel .dice_history .roll {
  text-align: center;
  font-weight: 550;
  width: 16%;

}

.chat_info_panel .dice_history .hash {
  /* padding: 0 0 0 0.25rem; */
  /* width: calc(8% - 0.25rem); */
  /* overflow: hidden; */
  /* text-align: center; */
  display: none;
}

.chat_info_panel .dice_history .odd {
  background-color: rgba(0, 0, 0, 0.11);
}

.chat_info_panel .dice_history .even {
  background-color: rgba(0, 0, 0, 0.2);
}


.chat_info_panel .dice_history .odd.dice_player_win,
.chat_info_panel .dice_history .even.dice_player_win {
  background-color: rgb(122 255 0 / 20%);
  border-bottom: solid 0.05rem rgb(0 0 0 / 13%);
}

.chat_info_panel .dice_history .user {
  color: rgba(218, 160, 81, 0.85);
  text-align: center;
  width: 27%;
  padding-left: 0.5%;

}

.chat_info_panel .dice_history .target {
  text-align: center;
  width: 16%;
  font-size: 100%;

}

.chat_info_panel .dice_history .payout {
  text-align: center;
  width: 13%;
  display: none;
}

.chat_info_panel .dice_history .bet {
  text-align: center;
  width: 17%;
  font-weight: 400;

}

.chat_info_panel .dice_history .profit {
  /* font-weight: normal; */
  width: 22%;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 450;
}

.chat_info_panel .dice_history .dice_profit_value {
  display: none;
}

/******* HELP ********/

#dice_help_wrapper {
  display: none;
  padding: 0.2rem 0.4rem 0 0.4rem;
  font-size: 100%;
}

#dice_help_wrapper .question {
  color: rgba(218, 160, 81, 0.85);
}

.window.dice_help {
  padding: 1rem 0.5rem;
  max-height: 80%;
  overflow: auto;
}

.dice_question {
  margin-bottom: 1rem;
}

.dice_question:last-of-type {
  margin-bottom: 0;
}

.dice_question_title {
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.dice_answer {
  line-height: 1.2;
  font-size: 90%;

}

.dice_max_bet {
  font-weight: 400;
  margin-left: 0.1rem;
}

/********* CONTROL BAR ************/

#dice_control_bar {
  width: 100%;
  position: absolute;
  bottom: 0;
  height: 100%;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#dice_control_bar .material-symbols-rounded {
  font-size: 1.5em;
  position: relative;
  cursor: pointer;
}

#dice_control_bar .unlogged {
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
  font-weight: 300;
  overflow: hidden;
  text-align: center;
  z-index: 1;
  word-spacing: 0.15em;
  position: absolute;
}

#dice_control_bar .logged {
    position: absolute;
}

#dice_control_bar .unlogged span {
  position: relative;
  top: 1.7rem;
}

#dice_control_bar .game_buttons:active {
  transform: scale(0.95);
}

#dice_control_bar .game_buttons {
  font-weight: 300;
  top: 0.3rem;
  width: 7.5rem;
  height: calc(100% - 0.6rem);
  font-size: 1.2rem;
  overflow: hidden;
  cursor: pointer;
  position: absolute;
  background-color: rgba(170, 170, 170, 0.23);
  z-index: 4;
  text-align: center;
  line-height: 1.25;
  transition: background-color 0.25s, box-shadow 0.25s, transform 0.15s;
  border-radius: 0.5rem;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

#dice_control_bar .game_buttons .button_text {
  position: absolute;
  top: 0.5rem;
  left: 0;
  text-align: center;
  width: 100%;
}

#dice_control_bar .game_buttons span {
  cursor: pointer;
}

#dice_control_bar .game_buttons:hover {
    box-shadow: inset 0px 0px 0px 0.06rem #828280;
    background-color: rgb(142 135 156 / 50%);

}

#dice_control_bar .roll_button {
  right: 0.4rem;
  background-color: rgb(167 133 87);
  font-weight: 400;
}

#dice_control_bar .roll_button:hover {
    background-color: rgb(178 147 106);
    box-shadow: 0 0 0 0.06rem rgba(255, 255, 255, 0.36) inset;

}

#dice_control_bar .stop_button {
  right: 0.4rem;
  display: none;

}

#dice_control_bar .game_buttons.auto_button {
  left: calc(50% + 12.3rem);
  width: 4.5rem;
}

#dice_control_bar .game_buttons.stop_button .material-symbols-rounded {
  color: #db4739;
}

#dice_control_bar .game_buttons.roll_button .material-symbols-rounded {
  transform: rotate(45deg);
  font-size: 1.35em;
  margin-top: 0.1rem;
  transition: opacity 0.15s;
}

#dice_control_bar .game_buttons.auto_button .auto_yes {
  display: none;
}

#dice_control_bar .game_buttons.auto_button .auto_no {
  color: rgb(142 135 156 / 50%);
}

#dice_control_bar .bet_button {
  background: rgba(0, 0, 0, 0.5);
  height: calc(100% - 0.6rem);
  width: 4.5rem;
  text-align: center;
  font-size: 1.5rem;
  top: 0.3rem;
  cursor: pointer;
  position: absolute;
  z-index: 5;
}

#dice_control_bar .bet_button span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
}

#dice_control_bar .bet_button.x2 span.material-symbols-rounded {
  position: relative;
  top: 0.15rem;
  left: 0;
  transform: none;
  font-size: 80%;
}

#dice_control_bar .bet_button.d2 span.material-symbols-rounded {
  position: relative;
  top: 0.12rem;
  left: 0;
  transform: rotate(45deg);
  font-size: 73%;
}

#dice_control_bar .bet:active {
  transform: scale(0.95);
}

#dice_control_bar .bet {
  border-radius: 0.5rem;
  transition: background-color 0.25s, box-shadow 0.25s, transform 0.15s;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

#dice_control_bar .bet:hover {
    background: rgb(0 0 0 / 75%);
    box-shadow: inset 0px 0px 0px 0.06rem #828280;

}

#dice_control_bar .bet_amount:hover {
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0px 0px 0px 0.06rem #828280;
}

#dice_control_bar .bet_amount:active {
  transform: unset;
}

#dice_control_bar .bet_amount {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0.3rem;
  left: calc(50% - 10.25rem);
  height: calc(100% - 0.6rem);
  font-size: 1.35em;
  width: 8rem;
  z-index: 4;
}

#dice_control_bar .bet_amount input {
  border: none;
  background: transparent;
  padding-right: 0.75rem;
  height: calc(100% - 0.6rem);
  width: calc(100% - 2.15rem);
  text-align: right;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  padding-left: 1.4rem;
  color: #ddd;
  position: absolute;
  right: 0px;
  font-weight: 400;
  border-radius: inherit;
}

#dice_control_bar .bet_amount .bet_mode {
  position: absolute;
  top: 1.15rem;
  left: 0.5rem;
  z-index: 5;
}

#dice_control_bar .bet_button_plus {
  left: calc(50% - 2rem);
}

#dice_control_bar .bet_button_plus:hover {
  background: rgb(16 93 0 / 68%);
}

#dice_control_bar .bet_button_minus {
  left: calc(50% - 15rem);
}

#dice_control_bar .bet_button_minus:hover {
  background: rgb(200 20 0 / 51%);
}

#dice_control_bar .x2 {
  left: calc(50% + 2.75rem);
}

#dice_control_bar .d2 {
  left: calc(50% - 19.75rem);
}

#dice_control_bar .min_button {
  left: calc(50% - 24.5rem);
}

#dice_control_bar .max_button {
  left: calc(50% + 7.5rem);
}

/* KEYBOARD SHORTCUTS */
#dice_control_bar .bet_button .keyboard_key {
  position: absolute;
  top: 2.9rem;
  left: 1.65rem;
  border: solid 0.1rem white;
  font-size: 0.7rem;
  padding: 0.15rem 0;
  width: 1rem;
  border-radius: 0.25rem;
  opacity: 0;
  transition: opacity 0.25s;
}

#dice_control_bar .bet_button:hover .keyboard_key {
  opacity: 0.8;
}

#dice_control_bar .roll_button .keyboard_key {
  position: absolute;
  top: 2.225rem;
  left: 2.2rem;
  border: solid 0.1rem white;
  font-size: 0.7rem;
  padding: 0.15rem 0;
  width: 3rem;
  border-radius: 0.25rem;
  opacity: 0;
  transition: opacity 0.25s;
}

#dice_control_bar .roll_button:hover .material-symbols-rounded {
  opacity: 0;
}

#dice_control_bar .roll_button:hover .keyboard_key {
  opacity: 0.8;
}

.dice_win_notification_wrapper {
  top: calc(-50% + 0.75rem);
  right: 0rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 8rem;
  transform: translateX(10rem);
  justify-content: center;
  position: absolute;
  opacity: 0;
}

.dice_win_notification {
  background: rgb(201, 17, 195);
  padding: 0.3rem 0.65rem;
  min-width: 5rem;
  max-width: 6rem;
  border-radius: 0.33rem;
  box-shadow: 0 0 0.4rem 0.1rem rgba(255, 221, 221, 0.51) inset;
  -webkit-user-select: none;
  user-select: none;
  font-size: 0.9rem;
  text-align: center;

}

.dice_win_notification_amount {
  display: inline-block;
}