.highlight-promotion {
    box-shadow: inset 2px 2px 10px 10px #ccc;
}

.highlight-touched-piece {
    box-shadow: inset 1px 1px 10px 2px yellow;
}

.graydot {
    position: absolute
}

.status-generic {
    padding-left: 10px;
}

#status-container {
    min-height: 4.8em;
}

.select.is-warning select {
    background-color: #363636; /* Bulma dark grey */
    color: #f5f5f5;
    border-color: #ffdd57;     /* Warning color */
}

.select.is-warning select option {
    background-color: #363636;
    color: #f5f5f5;
}

.select.is-warning::after {
    border-color: #ffdd57;
}

.dashed-link {
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}

.dashed-link:hover {
    border-bottom-style: solid;
}

.u-link {
    text-decoration: underline;
}

#puzzle-modal .modal-card-head,
#puzzle-modal .modal-card-body,
#puzzle-modal .modal-card-foot {
    background-color: #2b2b2b;
    color: #f5f5f5;
    border-color: #444;
}

#puzzle-modal .modal-card-title {
    color: #f5f5f5;
}

#puzzle-modal .button:not(.is-success) {
    background-color: #363636;
    color: #f5f5f5;
    border-color: #555;
}

.range_container {
  --_marker-border-clr: #ca8a04;
  --_marker-size: 17px;
  --_track-height: 1px;

  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
}

.sliders-toplegend {
    padding-bottom: 20px;
}

.sliders-legend {
    padding-top: 30px;
}

.sliders_control {
  position: relative;
}

.slider-tooltip {
  width: 100px;
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--_marker-border-clr);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  text-align: center;
  translate: -50% 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: all;
  width: var(--_marker-size);
  height: var(--_marker-size);
  background-color: var(--_marker-border-clr);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--_marker-border-clr);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  -webkit-appearance: none;
  pointer-events: all;
  width: var(--_marker-size);
  height: var(--_marker-size);
  background-color: var(--_marker-border-clr);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--_marker-border-clr);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #f7f7f7;
}

input[type="range"]::-webkit-slider-thumb:active {
  box-shadow: inset 0 0 3px #387bbe, 0 0 9px #387bbe;
  -webkit-box-shadow: inset 0 0 3px #387bbe, 0 0 9px #387bbe;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: var(--_track-height);
  width: 100%;
  position: absolute;
  background-color: var(--_marker-border-clr);
  pointer-events: none;
}

#fromSlider {
  height: 0;
  z-index: 1;
}

.scale {
  position: relative;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  width: calc(100% - var(--_marker-size));
  height: 70px;
  margin-inline: auto;
  z-index: -1;
}

.scale .marker {
  position: absolute;
  translate: -50% 0;
  bottom: 100%;
}

.scale .marker::before {
  content: "";
  position: absolute;
  left: 50%;
  translate: -50%;
  width: 5px;
  background: var(--marker-bg, #ddd); /* Use custom property for background */
  border-radius: 5px 5px 0 0;
  height: 100%; /* Full height of the marker */
}

.bar {
  --speed: 700ms;
}
.bar::before {
  animation: slide-bar var(--speed) ease-in-out forwards;
  animation-delay: calc(var(--order) * var(--speed));
}

@keyframes slide-bar {
  to {
    width: var(--percent);
  }
}

.bar::after {
  animation: slide-tooltop var(--speed) ease-in-out forwards;
  animation-delay: calc(var(--order) * var(--speed));
}

@keyframes slide-tooltop {
  50% {
    opacity: 100%;
  }
  100% {
    opacity: 100%;
    left: var(--percent);
  }
}

.step::before {
  animation: step-done 150ms ease-in-out forwards;
  animation-delay: var(--delay);
}
@keyframes step-done {
  to {
    inset: var(--inset);
    color: white;
  }
}

.settings-form .checkbox,
.settings-form .checkbox:hover {
    color: white;
}

.white-square-preview, .black-square-preview {
  width: 60px;
  height: 60px;
}

.black-piece-preview, .white-piece-preview {
  background-size: cover;
  //filter: sepia(1) saturate(5) hue-rotate(180deg);
}