@font-face {
  font-family: "Roboto";
  src: url("/@uix/src/common/assets/fonts/Roboto/Roboto-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/@uix/src/common/assets/fonts/Roboto/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/@uix/src/common/assets/fonts/Roboto/Roboto-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/@uix/src/common/assets/fonts/Roboto/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/@uix/src/common/assets/fonts/Roboto/Roboto-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/@uix/src/common/assets/fonts/Roboto/Roboto-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/@uix/src/common/assets/fonts/Roboto/Roboto-BlackItalic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/@uix/src/common/assets/fonts/Roboto/Roboto-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/@uix/src/common/assets/fonts/Roboto/Roboto-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/@uix/src/common/assets/fonts/Roboto/Roboto-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/@uix/src/common/assets/fonts/Roboto/Roboto-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/@uix/src/common/assets/fonts/Roboto/Roboto-ThinItalic.ttf") format("truetype");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
body {
  margin: 0 !important;
  height: 100dvh;
  overflow: hidden;
  font-family: "Roboto", sans-serif;
  --margin: 30px;
}

body:has(.infinite-body) {
  height: auto !important;
  overflow: auto !important;
}

@media screen and (max-width: 1000px) {
  body {
    --margin: 20px;
  }
}
* {
  scroll-behavior: smooth;
}

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  /* -webkit-user-select: none; */
  /* -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; */
}

a {
  text-decoration: none;
}

textarea, select, input {
  border: 2px solid var(--border);
}

select {
  margin-bottom: 0;
}

select.light {
  background-color: var(--bg-content);
  border-color: var(--bg-content-light);
}

input[type=file] {
  border: 2px solid var(--border-opaque);
}

.password-label {
  position: relative;
}

.toggle {
  background: none;
  border: none;
  color: var(--text);
  font-weight: 600;
  position: absolute;
  right: 0.5em;
  z-index: 9;
  padding-top: 9px;
}

@media (prefers-color-scheme: dark) {
  img, video {
    opacity: 1;
  }
}
h1, h2, h3 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.card {
  background-color: var(--bg-content);
  border-radius: 10px;
  padding: 30px;
  display: inline-block;
  max-height: 97%;
}
.card h1, .card h2, .card h3 {
  word-break: break-word;
}

@media screen and (max-width: 1000px) {
  .card {
    max-height: unset;
  }

  .card.responsive {
    height: 100%;
    border-radius: 0;
  }
}
pre {
  overflow: hidden;
}

.input-group {
  margin-top: 15px;
}

.input-group .inner > div {
  width: 100%;
}

@media screen and (min-width: 1000px) {
  .input-group .inner {
    flex-direction: column;
    gap: 0px;
  }
  .input-group .inner > :first-child {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }
}
.input-group select {
  margin-bottom: 0.5rem;
}

.input-group > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.input-group h5 {
  min-width: 80px;
}

.input-group > label {
  margin-bottom: 10px;
}

/** buttons **/
button, .button, input[type=submit], input[type=reset], input[type=button] {
  color: var(--text-blue-bg);
}

button:hover, .button:hover, input[type=submit]:hover, input[type=reset]:hover, input[type=button]:hover {
  transform: scale(1.02);
}

button:enabled:active, .button:not([aria-disabled=true]):active, input[type=submit]:active, input[type=reset]:active, input[type=button]:active, label[type=button]:active {
  scale: 0.98;
}

button.plain {
  background-color: transparent;
  border: none;
  color: var(--text);
}

input[readonly] {
  cursor: not-allowed;
  background-color: var(--disabled);
  border-color: var(--disabled);
  color: var(--text-light);
}

.button[aria-disabled=true], input[readonly], input[readonly]:focus, input:disabled, textarea:disabled, select:disabled, button[disabled] {
  border-color: var(--border-opaque);
  opacity: 0.5;
}

.btn-danger {
  background-color: var(--red);
  border-color: var(--red);
  color: white;
}

.btn-green {
  background-color: var(--green);
  border-color: var(--green);
  color: white;
}

.btn-grey {
  background-color: #999;
  border-color: #999;
  color: black;
}

.btn-mono {
  background-color: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-blue-bg);
}

iframe {
  border: none;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: -100;
  opacity: 0.5;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

html {
  height: 100vh;
}

body {
  min-height: 100%;
}

*:focus {
  outline: none;
}

input:focus, select:focus {
  border-color: var(--text-light);
}

input:invalid {
  border-color: var(--yellow);
}

input:invalid:focus {
  outline: 2px solid var(--yellow);
}

.transition-dialog {
  opacity: 0;
  transform: translateY(90px);
  transition: opacity 0.4s, transform 0.4s;
  overflow: hidden;
  height: auto;
}

.pill-label {
  background-color: var(--text);
  border-radius: 50px;
  color: var(--bg);
  padding: 0px 8px;
  text-align: center;
  display: inline-block;
  width: fit-content;
}
.pill-label a, .pill-label a:visited {
  color: var(--bg);
}

.pill-label.red {
  background-color: var(--red);
  color: var(--text-blue-bg);
}

.pill-label.green {
  background-color: var(--green);
  color: white;
}

.toggle-label {
  display: flex;
}

.bottom-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.floating-label {
  position: relative;
}
.floating-label label {
  position: absolute;
  top: -9px;
  left: 10px;
  font-size: 0.8em;
  transition: all 0.2s;
  background: linear-gradient(0deg, var(--bg) 33%, transparent 90%);
  padding: 0px 2px;
  color: var(--border);
}
.floating-label:has(input:placeholder-shown) label {
  display: none;
}
.floating-label:has(:focus) label {
  color: var(--text-light);
}

@media screen and (max-width: 1000px) {
  .floating-label {
    width: 100%;
  }

  .transition-dialog {
    overflow: auto;
  }
}
/* mapbox */
/* change background and tip color to yellow */
.person-popup .mapboxgl-popup-content {
  background-color: var(--bg-content);
  color: var(--text);
  border-radius: 10px;
}

.person-popup.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
  border-top-color: var(--bg-content);
}

.person-popup.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
  border-right-color: var(--bg-content);
}

.person-popup.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
  border-left-color: var(--bg-content);
}

.person-popup.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
  border-bottom-color: var(--bg-content);
}

.map-user-preview {
  user-select: none;
  display: flex;
}

.map-user-preview h3 {
  font-size: 1.2em;
  margin-top: 0;
  margin-bottom: 5px;
}

.map-user-preview img {
  height: 50px;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-right: 10px;
  background-color: var(--text);
}

.map-user-preview div {
  display: flex;
  align-items: center;
}

.loading {
  width: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  padding-top: var(--top-padding);
}

.spinner {
  display: inline-block;
  position: relative;
  width: 60px;
  height: 60px;
  opacity: 0.5;
}
.spinner.inline {
  display: inline-flex;
  width: 1em;
  height: 1em;
  opacity: 0.8;
  padding-left: 2px;
  padding-top: 2px;
}
.spinner.inline div {
  width: 1em;
  height: 1em;
  border-width: 0.14em;
  margin: 0px;
}

.spinner div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 44px;
  height: 44px;
  margin: 8px;
  border: 6px solid var(--text);
  border-radius: 50%;
  animation: spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--text) transparent transparent transparent;
}

.spinner div:nth-child(1) {
  animation-delay: -0.45s;
}

.spinner div:nth-child(2) {
  animation-delay: -0.3s;
}

.spinner div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/** placeholders **/
.placeholder-card-1 {
  width: 100%;
  height: 100%;
  background-color: var(--bg-content);
  border-radius: 10px;
}

.placeholder-container-1 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.placeholder-container-1 div:not(.resultHeader) {
  width: 100%;
  height: 70px;
  background-color: var(--bg-content);
  border-radius: 10px;
}

.placeholder-container-1 .first {
  margin-top: 15px;
}

@media screen and (max-width: 1200px) {
  .placeholder-card-1 {
    display: none;
  }
}
.info-container {
  display: flex;
  gap: 5px;
  align-items: baseline;
  background-color: var(--light-blue);
  color: var(--text-blue-bg);
  border-radius: 5px;
  padding: 10px;
  margin: 5px 0px;
}

label {
  user-select: none;
}

dialog {
  border: none;
  background: transparent;
  max-width: none;
  justify-content: center;
  align-items: center;
  padding: 0;
}

dialog[open] {
  display: flex;
}

dialog::backdrop {
  opacity: 1;
  background: none;
  -webkit-backdrop-filter: grayscale(1) brightness(0.6) blur(1px) contrast(0.5);
  backdrop-filter: grayscale(1) brightness(0.6) blur(1px) contrast(0.5);
}

a, a:visited {
  color: var(--light-blue);
}

.mobile-back {
  margin-right: 15px;
  display: none;
}

.desktop-close {
  cursor: pointer;
  display: block;
  position: absolute;
  right: 10px;
  top: 6px;
  padding: 4px;
  font-size: 1.2em;
  color: var(--text-light);
}

.desktop-close:hover {
  color: var(--text);
}

@media screen and (max-width: 1000px) {
  dialog {
    width: 100%;
    max-height: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
  }

  dialog[open] {
    display: block;
  }

  .mobile-back {
    display: inline;
  }

  .desktop-close {
    display: none;
  }
}
.radio-element {
  background: var(--bg-content-light);
  padding: 10px;
  border-radius: 10px;
  margin: 10px 0px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.radio-element input[type=checkbox] {
  margin-right: 6px;
}

.radio-element:has(> :checked) {
  background: var(--accent-dark);
}

@media screen and (max-width: 600px) {
  .radio-element {
    padding: 5px;
  }

  .edit-button {
    display: none;
  }
}
button {
  user-select: none;
}

.error:not(.notification) {
  color: var(--red);
  position: absolute;
  margin-top: -6px;
}

.item-link {
  font-weight: bold;
  cursor: pointer;
  text-underline-offset: 4px;
}
.item-link:hover {
  text-decoration: underline;
}
.item-link i {
  margin-right: 5px;
}

.search-bar {
  display: flex;
  gap: 8px;
}
.search-bar button {
  width: 40px;
}

.bottommenu {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--cms-bg-opaque);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 10000;
  font-size: 0.6em;
  padding-bottom: 15px;
  padding-top: 10px;
}
.bottommenu ul {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  padding: 0px;
}
.bottommenu li {
  list-style-type: none;
}
.bottommenu li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--text-light);
  opacity: 0.7;
}
.bottommenu li a.active {
  color: var(--accent);
  opacity: 1;
}
.bottommenu li a i {
  font-size: 2.5em;
}

@media screen and (max-width: 1200px) {
  .bottommenu {
    display: block;
  }
}
.page-container {
  padding: var(--margin);
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

#notification-container {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 1000;
}

@media screen and (max-width: 1000px) {
  #notification-container {
    bottom: 80px;
  }
}
.notification {
  background-color: var(--bg-content);
  border-radius: 10px;
  padding: 15px;
  margin: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 2s ease;
  opacity: 0.95;
}

.notification.success {
  background-color: var(--green);
  color: white;
}

.notification.warning {
  background-color: var(--yellow);
  color: var(--text);
}

.notification.error {
  background-color: var(--red);
  color: white;
}
