@import "../lib/open-iconic/css/open-iconic-bootstrap.min.css";
@import "../lib/bootstrap-icons/font/bootstrap-icons.min.css";
@import "../lib/bootstrap/css/bootstrap.min.css";
#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

@supports (-webkit-touch-callout: none) {
  .status-bar-safe-area {
    display: flex;
    position: sticky;
    top: 0;
    height: env(safe-area-inset-top);
    background-color: #f7f7f7;
    width: 100%;
    z-index: 1;
  }
  .flex-column, .navbar-brand {
    padding-left: env(safe-area-inset-left);
  }
}
:root {
  --bs-primary-alt: rgb(112, 66, 193);
  --bs-primary-alt-hover: rgb(102, 50, 193);
  --bs-primary-alt-click: rgb(96, 39, 197);
  --bs-primary-alt-outline: rgb(125, 82, 200);
}

html, body, #app {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  height: 100%;
}

html, body {
  overscroll-behavior: none;
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

#app {
  display: flex;
  flex-direction: column;
}

#page {
  display: flex;
  flex-direction: column;
  overflow: auto;
  height: 0;
  min-height: 100%;
}
#page > * {
  flex-shrink: 0;
}

.content {
  padding-top: 1.1rem;
}

.container-inline-size {
  container-type: inline-size;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.h-100-fixed {
  height: 0;
  min-height: 100%;
}

.w-100-fixed {
  width: 0;
  min-width: 100%;
}

.w-fit {
  width: fit-content;
}

.h-fit {
  height: fit-content;
}

.rotate-90 {
  transform: rotate(90deg);
}

.rotate-180 {
  transform: rotate(180deg);
}

.rotate-270 {
  transform: rotate(270deg);
}

.flip {
  transform: scaleX(-1);
}

.outline {
  border: 1px solid red !important;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100000;
}

.page-padded {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.5rem;
}

.page-content-thin {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: center;
  max-width: 100%;
  width: calc(300px + 20%);
}

.page-content-medium {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: center;
  max-width: 100%;
  width: calc(400px + 25%);
}

.d-contents {
  display: contents;
}

h1:focus {
  outline: none;
}

pre {
  margin: 0;
}

a {
  /*color: var(--bs-white);*/
  text-decoration: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--focus-outline, #258cfb);
}

.btn-primary {
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: #1b6ec2;
  --bs-btn-border-color: #1861ac;
}

[data-bs-theme=dark] .btn-outline-dark {
  --bs-btn-color: #f8f9fa;
  --bs-btn-border-color: #424649;
  --bs-btn-hover-color: #f8f9fa;
  --bs-btn-hover-bg: #373b3e;
  --bs-btn-hover-border-color: #f8f9fa;
  --bs-btn-focus-shadow-rgb: 248, 249, 250;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #f8f9fa;
  --bs-btn-active-border-color: #f8f9fa;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #f8f9fa;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #f8f9fa;
  --bs-gradient: none;
}

.btn-outline-light {
  --bs-btn-color: #f8f9fa;
  --bs-btn-border-color: #424649;
  --bs-btn-hover-color: #f8f9fa;
  --bs-btn-hover-bg: #373b3e;
  --bs-btn-hover-border-color: #f8f9fa;
  --bs-btn-focus-shadow-rgb: 248, 249, 250;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #f8f9fa;
  --bs-btn-active-border-color: #f8f9fa;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #f8f9fa;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #f8f9fa;
  --bs-gradient: none;
}

.btn-purple {
  color: var(--bs-white);
  background-color: var(--bs-primary-alt);
  border-color: var(--bs-primary-alt);
  --focus-outline: var(--bs-primary-alt-outline);
}
.btn-purple:hover {
  color: var(--bs-white);
  background-color: var(--bs-primary-alt-hover);
  border-color: var(--bs-primary-alt-hover);
}
.btn-purple:active {
  color: var(--bs-white);
  background-color: var(--bs-primary-alt-click);
  border-color: var(--bs-primary-alt-click);
}

.toast-body {
  overflow-wrap: anywhere;
}

.breadcrumb {
  --bs-breadcrumb-padding-x: 0.5rem;
  --bs-breadcrumb-padding-y: 0.33rem;
  --bs-breadcrumb-margin-bottom: 0;
  --bs-breadcrumb-bg: var(--bs-body-bg);
  --bs-breadcrumb-border-radius: 0;
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid #e50000;
}

.validation-message {
  color: #e50000;
}

.darker-border-checkbox.form-check-input {
  border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.link {
  color: var(--bs-link-color);
}
.link:hover {
  text-decoration: underline;
  cursor: pointer;
}

.link-plain {
  text-decoration: none !important;
}

.link-external {
  /*color: var(--bs-white);*/
  /*background-color: #006bb7;*/
  border-radius: 5px;
  padding: 0.25rem 0.25rem;
  transition: all 0.15s ease-in-out;
}
.link-external:before {
  font-family: "Icons";
  content: "\e064";
  vertical-align: middle;
  font-size: 14px;
  padding-right: 0.25rem;
}
.link-external:hover {
  color: var(--bs-white);
  background-color: #006bb7;
}
.link-external:active {
  color: var(--bs-white);
  background-color: #5600b7;
}

.round {
  border-radius: 10000px;
}

.icon-large {
  width: 40px;
  height: 40px;
}

.no-select {
  user-drag: none !important;
  -webkit-user-drag: none !important;
  user-select: none !important;
  -moz-user-select: none !important;
  -webkit-user-select: none !important;
  -ms-user-select: none !important;
}
.no-select input {
  pointer-events: none !important;
}

.debug-text {
  background: black;
  color: white;
}

code, .font-monospace {
  font-family: "Fira Code Retina", var(--bs-font-monospace) !important;
}

.drag-handle {
  color: var(--bs-gray-600);
  align-self: center;
  cursor: ns-resize;
}
.drag-handle:after {
  content: "=";
}

.dragging-ease {
  transition: transform 0.25s ease;
}

.btn-foldout_text {
  display: block;
  transition: width ease 0.33s, padding ease 0.33s;
  white-space: nowrap;
  overflow: hidden;
}

:not(.btn:hover) > .btn-foldout_text {
  width: 0 !important;
  padding: 0 !important;
}

.cursor-pointer {
  cursor: pointer;
}

.info-button {
  border-radius: 10000px;
}
.info-button > .oi {
  right: 1px;
}

.info-button-h3 {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  width: 2.125rem;
}

.nav-sidebar {
  height: 0 !important;
  min-height: 100% !important;
  width: fit-content !important;
  display: block !important;
  padding: 1rem;
  background-image: linear-gradient(0, rgb(5, 39, 103) 0%, #3a0647 70%);
  overflow: auto;
  scrollbar-width: none;
}
.nav-sidebar .nav-item {
  display: flex;
  align-items: center;
  height: 2.5rem;
  width: 200px;
  overflow: hidden;
  line-height: 1.125;
}
.nav-sidebar .nav-item .oi {
  top: -1px;
}
.nav-sidebar .nav-item .oi, .nav-sidebar .nav-item .bi {
  text-align: center;
  min-width: 1.25rem;
}
.nav-sidebar .nav-item .nav-text {
  margin-left: 0.75rem;
}
.nav-sidebar.hiding, .nav-sidebar.showing {
  transition: all var(--duration, 0.35s) ease;
}
.nav-sidebar.hiding .nav-item, .nav-sidebar.showing .nav-item {
  transition: all var(--duration, 0.35s) ease;
}
.nav-sidebar.hiding .nav-item .oi, .nav-sidebar.hiding .nav-item .bi, .nav-sidebar.showing .nav-item .oi, .nav-sidebar.showing .nav-item .bi {
  transition: min-width var(--duration, 0.35s) ease;
}
.nav-sidebar.hiding .nav-item .nav-text, .nav-sidebar.showing .nav-item .nav-text {
  transition: margin-left var(--duration, 0.35s) ease;
}
.nav-sidebar.hiding, .nav-sidebar.hide {
  width: 50px;
  padding: 0 4px;
}
.nav-sidebar.hiding .nav-item, .nav-sidebar.hide .nav-item {
  width: 42px;
  padding: 0;
}
.nav-sidebar.hiding .nav-item .oi, .nav-sidebar.hiding .nav-item .bi, .nav-sidebar.hide .nav-item .oi, .nav-sidebar.hide .nav-item .bi {
  min-width: 42px;
}
.nav-sidebar.hiding .nav-item .nav-text, .nav-sidebar.hide .nav-item .nav-text {
  margin-left: 0;
}

.modal {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2.5px);
}

.dropdown-item > .oi {
  width: 1lh;
}

.droparea {
  border: 4px dotted var(--bs-body-color);
  border-radius: var(--bs-border-radius-xl);
  user-select: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
[data-bs-theme=dark] .droparea {
  background: rgba(0, 0, 0, 0.1);
}
.droparea[data-drop_accept=true], [data-drop_accept=true] > .droparea {
  cursor: alias;
  border-color: var(--bs-success);
}
.droparea[data-drop_accept=false], [data-drop_accept=false] > .droparea {
  cursor: no-drop;
  border-color: var(--bs-danger);
}

.draggable {
  cursor: move;
  user-select: none;
}

.hide-dragged.dragging {
  display: none !important;
}

.drag_ghost-root {
  position: fixed;
  z-index: 1;
  pointer-events: none !important;
}
.drag_ghost-root * {
  pointer-events: none !important;
}

.drop-tooltip {
  margin-left: 15px;
  z-index: 2;
  pointer-events: none;
  color: var(--bs-body-color);
}

.menu-control {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  min-width: 10rem;
  max-width: 15rem;
  padding: 1rem 0.5rem 0.25rem 0.5rem;
  border-color: #128a92;
  border-width: 5px;
  background-color: #173c41;
  color: var(--bs-white);
}

.menu-control-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.menu-control-label {
  position: absolute;
  place-content: end;
  bottom: 0;
  left: 0;
  right: 0;
  text-shadow: 0 0 0.5rem black;
}

.menu-control-icon {
  position: absolute;
  justify-self: center;
  top: 0;
  left: 0;
  right: 0;
  height: 80%;
}

.menu-control-action_icon-container {
  position: absolute;
  background-color: #2d3137;
  border-radius: 10000px;
  right: 10%;
  bottom: 20%;
  width: 25%;
  aspect-ratio: 1;
  padding: 2.5%;
}
.menu-control-action_icon-container img {
  width: 100%;
  height: 100%;
}

.menu-control-toggle-spinner {
  animation-name: spin;
  animation-duration: 2.5s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.menu-control-radial-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  font-weight: bolder;
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0.75);
  padding: 0rem 1rem;
  bottom: 20%;
  border-radius: 10000px;
}

.menu-radial_editor {
  position: absolute;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.menu-radial_editor-label {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  font-weight: bolder;
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0.33);
  padding: 0rem 1rem;
  border-radius: 10000px;
}

.menu-radial_editor-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.menu-radial_editor-ring #border {
  fill: #1a5961;
}
.menu-radial_editor-ring #background {
  fill: #363d45;
}
.menu-radial_editor-ring #ring_empty, .menu-radial_editor-ring #ring_fill {
  fill: none;
  stroke: #242e33;
  stroke-width: 15%;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}
.menu-radial_editor-ring #ring_fill {
  stroke: #128c94;
  stroke-dasharray: calc(3.141 * var(--a, 0%) * 0.8), 500%;
}

.menu-editor-cursor {
  position: absolute;
  top: calc(var(--y) - 35% / 2);
  left: calc(var(--x) - 35% / 2);
  width: 35%;
  height: 35%;
  opacity: 0.66;
}
.menu-editor-cursor circle {
  fill: #0e3337;
  stroke: #1a5961;
  stroke-width: 4%;
}

.menu-radial_editor-indicator {
  position: absolute;
  top: calc(var(--y) - 15% / 2);
  left: calc(var(--x) - 15% / 2);
  transform: rotate(calc(var(--r) + 45deg));
  width: 15%;
  height: 15%;
}
.menu-radial_editor-indicator rect {
  fill: #0e7076;
  stroke: #15a8b1;
  stroke-width: 8%;
}

.menu-axis_editor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.menu-axis_editor-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.menu-axis_editor-svg .border {
  stroke: #1a5961;
  stroke-width: 1.75%;
}
.menu-axis_editor-svg #center-background {
  fill: #363d45;
}
.menu-axis_editor-svg #background {
  fill: #242e33;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}
.menu-axis_editor-svg .arc {
  fill: none;
  stroke-width: 25%;
  stroke-dasharray: 0, 164.9025%, 500%;
  transform-origin: center;
  animation: 100.1s linear calc(-1s * var(--lerp, 99)) paused stroke-lerp;
  --lerp-a: #0e3337;
  --lerp-b: #15a8b1;
}
@keyframes stroke-lerp {
  from {
    stroke: var(--lerp-a);
  }
  to {
    stroke: var(--lerp-b);
  }
}
.menu-axis_editor-svg .arc-1 {
  transform: rotate(-45deg);
}
.menu-axis_editor-svg .arc-2 {
  transform: rotate(45deg);
}
.menu-axis_editor-svg .arc-3 {
  transform: rotate(135deg);
}
.menu-axis_editor-svg .arc-4 {
  transform: rotate(225deg);
}

.menu-axis_editor-labels {
  display: contents;
}
.menu-axis_editor-labels > * {
  position: absolute;
  width: 20%;
  height: 20%;
}
.menu-axis_editor-labels #up {
  top: 3%;
}
.menu-axis_editor-labels #right {
  right: 3%;
}
.menu-axis_editor-labels #down {
  bottom: 3%;
}
.menu-axis_editor-labels #left {
  left: 3%;
}
.menu-axis_editor-labels #up, .menu-axis_editor-labels #down {
  left: 0;
  right: 0;
  margin: 0 auto;
}
.menu-axis_editor-labels #right, .menu-axis_editor-labels #left {
  top: 0;
  bottom: 0;
  margin: auto 0;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  container-type: inline-size;
  gap: 1rem;
}

.menu-back {
  text-align: center;
}

.menu-controls {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(var(--count, 8), minmax(10rem, 15rem));
  gap: 1rem;
}

@container (width < 87rem) {
  .menu-controls {
    grid-template-columns: repeat(min(var(--count, 4), 4), minmax(auto, 15rem));
  }
}
@container (width < 43rem) {
  .menu-controls {
    grid-template-columns: repeat(min(var(--count, 2), 2), minmax(auto, 15rem));
  }
}
@container (width < 21rem) {
  .menu-controls {
    grid-template-columns: repeat(min(var(--count, 1), 1), minmax(auto, 15rem));
  }
}
.state_debug-path {
  width: 40%;
}

.state_debug-value {
  width: 15%;
  min-width: 200px;
}
.state_debug-value input[type=number] {
  min-width: 50px;
}

.tab-header {
  display: flex;
  flex-direction: row;
  height: 3rem;
}

.tab-header-item {
  flex: 1 1 100%;
  background-color: var(--bs-body-bg);
  border: none;
  border-bottom: 1px solid var(--bs-border-color);
  border-radius: 0;
  transition: border-bottom ease-in-out 0.1s, background-color ease-in-out 0.1s;
  font-size: 1.25rem !important;
  align-content: center;
}
.tab-header-item:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.tab-header-item:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left-width: 0 !important;
}
.tab-header-item:hover {
  border-bottom: 1px solid var(--bs-purple);
}
.tab-header-item:active {
  border-color: var(--bs-purple) !important;
  background-color: var(--bs-secondary-bg) !important;
}
.tab-header-item.tab-header--selected {
  border-bottom: 0.2rem solid var(--bs-purple);
}

.tab-header-item:focus, .tab-header-item:active:focus {
  box-shadow: none !important;
}
