.selectBox {
  border: 1px solid #55aaff;
  background-color: rgba(75, 160, 255, 0.3);
  position: fixed;
}

.weas-mode-hint {
  position: absolute;
  left: 50%;
  top: 56px;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.3;
  border-radius: 4px;
  pointer-events: none;
  z-index: 20;
  user-select: none;
}

.lassoSelect {
  position: absolute;
  left: 0;
  top: 0;
}

#animation-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

#animation-controls button {
  margin: 0 5px;
  padding: 5px 10px;
}

#timeline {
  margin: 0 10px;
  width: 50%;
}

#current-frame {
  margin-left: 10px;
}

.search-overlay {
  display: flex; /* Hidden by default */
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2c3e50;
  color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  z-index: 1000; /* Make sure it's above other content */
  width: 300px;
}

.search-overlay input {
  width: 90%;
  margin: 5px; /* Ensures space between search box and results */
  padding: 10px;
  border: none;
  background: none;
  color: white;
  font-size: 14px;
}

.search-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.search-overlay ul li {
  padding: 5px;
  cursor: pointer;
}

.search-overlay ul li:hover {
  background: #34495e;
}

#search-box {
  width: 90%; /* Full width inside the overlay, considering padding */
  margin-bottom: 5px; /* Space between search box and results */
}

#search-results {
  overflow-y: auto; /* Allow vertical scrolling */
  max-height: 150px; /* Adjust based on the overlay height and search box */
}

.text-label {
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.text-label-cross {
  position: relative;
  width: var(--cross-size, 1em);
  height: var(--cross-size, 1em);
}

.text-label-cross[data-cross="true"]::before,
.text-label-cross[data-cross="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.text-label-cross[data-cross="true"]::before {
  width: 100%;
  height: calc(var(--cross-size, 1em) * 0.04);
  min-height: 1px;
}

.text-label-cross[data-cross="true"]::after {
  width: calc(var(--cross-size, 1em) * 0.04);
  min-width: 1px;
  height: 100%;
}
