/* X_ITE CSS StyleSheet */

/* Do not include this file directly! This is not needed anymore. */

@charset "utf-8";

/*
@font-face {
  font-family: X_ITE PT Sans;
  font-style: normal;
  font-weight: 400;
  src: url(assets/fonts/PT_Sans/PTSans-Regular.woff2);
  font-display: block;
}

@font-face {
  font-family: X_ITE PT Sans;
  font-style: normal;
  font-weight: 700;
  src: url(assets/fonts/PT_Sans/PTSans-Bold.woff2);
  font-display: block;
}

@font-face {
  font-family: X_ITE PT Sans;
  font-style: italic;
  font-weight: 400;
  src: url(assets/fonts/PT_Sans/PTSans-Italic.woff2);
  font-display: block;
}

@font-face {
  font-family: X_ITE PT Sans;
  font-style: italic;
  font-weight: 700;
  src: url(assets/fonts/PT_Sans/PTSans-BoldItalic.woff2);
  font-display: block;
}
*/

:host,
X3DCanvas {
  --red: #d71f1f;
  --orange-filter:
    brightness(0)
    saturate(100%)
    invert(71%)
    sepia(100%)
    saturate(1647%)
    hue-rotate(335deg)
    brightness(101%)
    contrast(101%);
  --text-color: white;
  --text-color-dark: white;
  --text-shadow-color: black;
  --logo-opacity: 0.6;
  --progress-color: rgba(255, 255, 255, 0.5);
  --color1: rgb(35, 37, 40);
  --color2: rgb(13, 16, 21);
  --gradient: linear-gradient(to bottom, rgba(35, 37, 40, 0.553) 0%, rgba(13, 16, 21, 0.831) 100%);
  --border: 4px solid rgba(43, 45, 47, 0.675);
  --button-color: rgba(0, 0, 0, 0.38196601);
  --icon-filter: none;
}

@media (prefers-color-scheme: light) {
  :host(:not([theme=dark])),
  X3DCanvas:not([theme=dark]) {
    --red: #e12b2b;
    --orange-filter:
      brightness(0)
      saturate(100%)
      invert(71%)
      sepia(100%)
      saturate(2647%)
      hue-rotate(335deg)
      brightness(70%)
      contrast(121%);
    --text-color: black;
    --text-shadow-color: white;
    --logo-opacity: 0.8;
    --progress-color: rgba(0, 0, 0, 0.6);
    --color1: rgb(247, 247, 252);
    --color2: rgb(222, 221, 226);
    --gradient: linear-gradient(to bottom, rgba(247, 247, 252, 0.642) 0%, rgba(222, 221, 226, 0.6) 100%);
    --border: 4px solid rgba(229, 229, 234, 0.66);
    --button-color: rgba(255, 255, 255, 0.38196601);
    --icon-filter: invert(100%);
  }
}

:host([theme=light]),
X3DCanvas[theme=light] {
  --red: #e12b2b;
  --orange-filter:
    brightness(0)
    saturate(100%)
    invert(71%)
    sepia(100%)
    saturate(2647%)
    hue-rotate(335deg)
    brightness(70%)
    contrast(121%);
  --text-color: black;
  --text-shadow-color: white;
  --logo-opacity: 0.8;
  --progress-color: rgba(0, 0, 0, 0.6);
  --color1: rgb(247, 247, 252);
  --color2: rgb(222, 221, 226);
  --gradient: linear-gradient(to bottom, rgba(247, 247, 252, 0.642) 0%, rgba(222, 221, 226, 0.6) 100%);
  --border: 4px solid rgba(229, 229, 234, 0.66);
  --button-color: rgba(255, 255, 255, 0.38196601);
  --icon-filter: invert(100%);
}

:host,
X3DCanvas {
  display: inline-block;
  overflow: hidden;
  outline: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  width: 300px;
  height: 150px;
  -webkit-user-select: none;
  user-select: none;
}

:host([hidden]) {
  display: none;
}

:host(.x_ite-fullscreen),
X3DCanvas.x_ite-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
}

X3DCanvas > :not(.x_ite-private-browser, .x_ite-private-menu) {
  display: none;
}

.x_ite-private-browser {
  overflow: hidden;
  position: relative;
  outline: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  -webkit-user-select: none;
  user-select: none;
}

.x_ite-private-surface {
  outline: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  height: 100%;
}

.x_ite-private-canvas {
  display: block;
  outline: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.x_ite-private-notification {
  position: absolute;
  top: 20px;
  right: -4px;
  backdrop-filter: blur(8px);
  background: var(--gradient);
  background-clip: padding-box;
  border: var(--border);
  border-radius: 5px;
  padding: 5px 5px 3px 5px;
  color: var(--text-color);
  font-family: X_ITE PT Sans, sans-serif;
  font-size: 10pt;
  letter-spacing: unset;
  line-height: 1;
  white-space: pre;
  pointer-events: none;
}

.x_ite-private-notification span {
  display: inline-block;
  position: relative;
  top: -1px;
  padding: 0 24px 2px 20px;
  background: url(assets/images/logo.svg) no-repeat top -1px left 0px;
  background-size: 17px 17px;
}

.x_ite-private-browser-timings {
  position: absolute;
  bottom: -4px;
  left: -4px;
  backdrop-filter: blur(8px);
  background: var(--gradient);
  background-clip: padding-box;
  border-top: var(--border);
  border-right: var(--border);
  border-radius: 5px;
  padding: 7px 15px 14px 14px;
  color: var(--text-color);
  font-family: X_ITE PT Sans, sans-serif;
  font-size: 9pt;
  white-space: pre;
  pointer-events: none;
}

.x_ite-private-browser-timings :is(table, thead, tbody, tfoot, tr, th, td) {
  box-sizing: border-box;
  outline: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  color: var(--text-color);
  font-size: inherit;
  font-weight: normal;
  font-style: normal;
  letter-spacing: unset;
  line-height: 1;
  text-align: left;
}

.x_ite-private-browser-timings table {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  empty-cells: show;
}

.x_ite-private-browser-timings thead th {
  padding-top: 3px;
  background: url(assets/images/schedule.svg) no-repeat -1px -1px;
  background-size: 17px 17px;
  padding-left: 20px;
  padding-bottom: 5px;
  font-weight: bold;
  color: var(--text-color-dark);
  filter: var(--icon-filter);
}

.x_ite-private-browser-timings td:first-child {
  padding-right: 10px;
}

.x_ite-private-browser-timings table.more tr.x_ite-private-more td {
  padding-bottom: 5px;
}

.x_ite-private-browser-timings table.less tr.x_ite-private-more~tr {
  display: none;
}

.x_ite-private-browser-timings td {
  padding-bottom: 2px;
}

.x_ite-private-browser-timings tfoot td:first-child {
  padding-right: 0;
}

.x_ite-private-browser-timings tfoot td {
  padding-top: 4px;
}

.x_ite-private-browser-timings button {
  box-sizing: border-box;
  border: 0;
  border-radius: 10px;
  width: 100%;
  height: 14pt;
  padding: 0;
  background: var(--button-color);
  color: var(--text-color);
  font-family: X_ITE PT Sans, sans-serif;
  font-style: italic;
  font-size: 9pt;
  letter-spacing: unset;
  line-height: 1.1;
  text-align: center;
  pointer-events: all;
  cursor: pointer;
}

.x_ite-private-world-info-overlay {
  position: absolute;
  inset: 0;
}

.x_ite-private-world-info {
  overflow-y: auto;
  position: absolute;
  inset: 0;
  margin: 21pt;
  backdrop-filter: blur(8px);
  background: var(--gradient);
  background-clip: padding-box;
  border: var(--border);
  border-radius: 15px;
  padding: 21pt;
}

.x_ite-private-world-info :is(.x_ite-private-world-info-top, .x_ite-private-world-info-title, .x_ite-private-world-info-info, p) {
  box-sizing: border-box;
  outline: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  color: var(--text-color);
  font-family: X_ITE PT Sans, sans-serif;
  font-size: inherit;
  font-weight: inherit;
  font-style: normal;
  letter-spacing: unset;
  line-height: 1.2;
  text-align: left;
}

.x_ite-private-world-info .x_ite-private-world-info-top {
  font-weight: bold;
  font-style: italic;
  font-size: 9pt;
}

.x_ite-private-world-info .x_ite-private-world-info-title {
  margin: 0.3em 0 1em 0;
  font-weight: bold;
  font-size: 21pt;
}

.x_ite-private-world-info .x_ite-private-world-info-info,
.x_ite-private-world-info .x_ite-private-world-info-info p {
  margin: 1em 0 1em 0;
  font-size: 14pt;
}

/* Context Menu */

.x_ite-private-menu.context-menu-layer {
  position: fixed;
  z-index: 10000;
  inset: 0;
}

.x_ite-private-menu.context-menu-list,
.x_ite-private-menu .context-menu-list {
  overscroll-behavior: none;
  box-sizing: border-box;
  min-width: 120px;
  margin: 0;
  margin-left: 1px;
  border: 4px solid transparent;
  border-radius: 5px;
  padding: 5px 10px 4px 9px;
  color: var(--text-color);
  font-family: X_ITE PT Sans, sans-serif;
  font-size: 10pt;
  white-space: pre;
  line-height: 1.2;
  list-style-type: none;
}

.x_ite-private-menu.context-menu-list {
  position: fixed;
  z-index: 10000;
  isolation: isolate;
}

.x_ite-private-menu .context-menu-list {
  display: none;
  position: absolute;
  top: -13px;
}

.x_ite-private-menu .context-menu-background {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  min-width: 120px;
  margin: 0;
  margin-left: 1px;
  border: var(--border);
  border-radius: 5px;
  padding: 5px 10px 9px 9px;
  background: var(--gradient);
  backdrop-filter: blur(8px);
  background-clip: padding-box;
}

.x_ite-private-menu .context-menu-item {
  cursor: pointer;
  position: relative;
  border-radius: 5px;
  margin: 0;
  font-size: 10pt;
  line-height: 1;
  letter-spacing: unset;
  text-align: left;
}

.x_ite-private-menu .context-menu-item {
  margin: 0 4px 0 4px;
}

.x_ite-private-menu .context-menu-item:first-of-type {
  margin-top: 4px;
}

.x_ite-private-menu .context-menu-item:last-of-type {
  margin-bottom: 4px;
}

.x_ite-private-menu .context-menu-item:hover:not(.context-menu-not-selectable) {
  background-color: var(--red);
}

.x_ite-private-menu .context-menu-item:hover > .context-menu-list {
  display: block;
}

.x_ite-private-menu .context-menu-not-selectable {
  cursor: default;
}

.x_ite-private-menu .context-menu-separator {
  cursor: default;
  margin: 2px 0;
  border-top: 0;
  border-bottom: 1px solid rgb(138, 138, 138);
  padding-top: 0;
  padding-bottom: 0;
}

.x_ite-private-menu .context-menu-separator+.context-menu-separator {
  display: none !important;
}

.x_ite-private-menu .context-menu-submenu:after {
  content: "";
  position: absolute;
  display: block;
  right: 0;
  top: 8px;
  margin-right: 2px;
  /* CSS triangle */
  border-style: solid;
  border-width: 4px 0 4px 5px;
  border-color: transparent transparent transparent #e8eaed; /* color from icons */
  filter: var(--icon-filter);
  width: 0;
  height: 0;
}

.x_ite-private-menu .context-menu-item > span {
  display: block;
  width: 100%;
  padding: 5px 24px;
}

.x_ite-private-menu label {
  cursor: pointer;
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 5px 24px;
  width: 100%;
  font-size: 10pt;
  font-weight: normal;
  letter-spacing: unset;
  line-height: 1;
}

.x_ite-private-menu label span {
  color: var(--text-color-dark);
  filter: var(--icon-filter);
}

.x_ite-private-menu label:has(>input[type=radio]:checked) {
  font-weight: bold;
}

/* vertically align inside labels */
.x_ite-private-menu label > * {
  vertical-align: top;
  font-size: 10pt;
  letter-spacing: unset;
  line-height: 1;
}

.x_ite-private-menu input {
  all: revert;
  cursor: pointer;
  appearance: none;
}

/* position checkboxes and radios like icons */
.x_ite-private-menu input[type=checkbox],
.x_ite-private-menu input[type=radio] {
  display: inline;
  width: 17px;
  height: 17px;
  margin: 0;
  margin-left: -22px;
  padding: 0;
  display: inline-block;
  position: absolute;
  top: 3px;
  background: url(assets/images/radio_button_unchecked.svg) no-repeat left 0px top 0px;
  background-size: 17px 17px;
  filter: var(--icon-filter);
}

.x_ite-private-menu input:checked {
  filter: var(--orange-filter);
}

.x_ite-private-menu .context-menu-input:hover input:checked {
  filter: var(--icon-filter);
}

.x_ite-private-menu input[type=checkbox]:checked {
  background-image: url(assets/images/check_circle.svg);
}

.x_ite-private-menu input[type=radio]:checked {
  background-image: url(assets/images/radio_button_checked.svg);
}

.x_ite-private-menu span {
  padding-left: 0px;
}

/* Item styles */

.x_ite-private-menu .context-menu-title {
  font-weight: bold;
}

/* Icons */

.x_ite-private-menu .context-menu-icon > span {
  display: block;
  background-repeat: no-repeat;
  background-position: 2px 3px;
  background-size: 17px 17px;
  color: var(--text-color-dark);
  filter: var(--icon-filter);
}

.x_ite-private-menu .context-menu-icon.x_ite-private-icon-logo > span {
  background-image: url(assets/images/logo.svg);
  background-position: 2px 4px;
  filter: none;
  color: var(--text-color);
}

.x_ite-private-icon-viewpoint > span {
  background-image: url(assets/images/eye_tracking.svg);
}

.x_ite-private-menu .x_ite-private-viewpoint input {
  background-image: none;
}

.x_ite-private-menu .x_ite-private-viewpoint input:checked {
  background-image: url(assets/images/visibility.svg);
}

.x_ite-private-icon-viewer > span {
  background-image: url(assets/images/stadia_controller.svg);
}

.x_ite-private-menu .x_ite-private-examine-viewer :is(input, input:checked) {
  background-image: url(assets/images/language.svg);
}

.x_ite-private-menu .x_ite-private-walk-viewer :is(input, input:checked) {
  background-image: url(assets/images/directions_run.svg);
}

.x_ite-private-menu .x_ite-private-fly-viewer :is(input, input:checked) {
  background-image: url(assets/images/travel.svg);
}

.x_ite-private-menu .x_ite-private-plane-viewer :is(input, input:checked) {
  background-image: url(assets/images/border_all.svg);
}

.x_ite-private-menu .x_ite-private-lookat-viewer :is(input, input:checked) {
  background-image: url(assets/images/point_scan.svg);
}

.x_ite-private-menu .x_ite-private-none-viewer :is(input, input:checked) {
  background-image: url(assets/images/block.svg);
}

.x_ite-private-icon-primitive-quality > span {
  background-image: url(assets/images/hexagon.svg);
}

.x_ite-private-icon-texture-quality > span {
  background-image: url(assets/images/texture.svg);
}

.x_ite-private-icon-shading > span {
  background-image: url(assets/images/stroke_partial.svg);
}

.x_ite-private-icon-animations > span {
  background-image: url(assets/images/animation.svg);
}

.x_ite-private-icon-all > span {
  background-image: url(assets/images/done_all.svg);
}

.x_ite-private-icon-none > span {
  background-image: url(assets/images/cancel.svg);
}

.x_ite-private-icon-enter-fullscreen > span {
  background-image: url(assets/images/fullscreen.svg);
}

.x_ite-private-icon-leave-fullscreen > span {
  background-image: url(assets/images/fullscreen_exit.svg);
}

.x_ite-private-icon-world-info > span {
  background-image: url(assets/images/globe.svg);
}

.x_ite-private-icon-info > span {
  background-image: url(assets/images/info.svg);
}

/* Spinner */

.x_ite-private-splash-screen {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--color1) 0%, var(--color2) 100%);
}

.x_ite-private-spinner {
  --size: 160px;
  --center-x: calc(458 / 1024 * var(--size));
  --center-y: calc(539 / 1024 * var(--size));
  position: absolute;
  top: calc(50% - (var(--size) / 2) + calc(var(--size) / 2 - var(--center-y)));
  left: calc(50% - (var(--size) / 2) + calc(var(--size) / 2 - var(--center-x)));
  width: var(--size);
  height: var(--size);
  background: url(assets/images/logo.svg) no-repeat;
  background-size: var(--size) var(--size);
  opacity: var(--logo-opacity);
  animation: x_ite-spinner-animation 32s linear infinite;
  transform-origin: var(--center-x) var(--center-y);
}

@keyframes x_ite-spinner-animation {
  100% {
    transform: rotate(360deg);
  }
}

.x_ite-private-progress {
  position: absolute;
  top: calc(50% - 28pt - 11pt);
  left: calc(50% - 100px);
  width: 200px;
}

.x_ite-private-x_ite {
  color: var(--text-color);
  font-size: 28pt;
  text-align: center;
  text-shadow: 1px 1px 0 var(--text-shadow-color);
  font-family: X_ITE PT Sans, sans-serif;
}

.x_ite-private-x_ite b {
  font-family: X_ITE PT Sans, sans-serif;
  font-weight: bold;
}

.x_ite-private-spinner-text {
  color: var(--text-color);
  font-size: 11pt;
  text-align: center;
  text-shadow: 1px 1px 0 var(--text-shadow-color);
  font-family: X_ITE PT Sans, sans-serif;
}

.x_ite-private-progressbar {
  margin: 8px;
  border-left: 2px solid var(--progress-color);
  border-right: 2px solid var(--progress-color);
  padding: 0 2px;
  text-align: left;
}

.x_ite-private-progressbar div {
  width: 0%;
  height: 6px;
  background: var(--progress-color);
}

/* WebXR */

.x_ite-private-xr-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 18px;
  background: url(assets/images/xr.svg);
  cursor: pointer;
  transition: transform .2s ease-in-out;
}

.x_ite-private-xr-button:hover {
  transform: scale(1.2);
}

/* Animations */

.x_ite-private-hidden {
  visibility: hidden;
  opacity: 0;
}

.x_ite-private-fade-out-splash-screen {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 200ms, opacity 200ms ease-in-out;
}

.x_ite-private-fade-in-300 {
  visibility: visible;
  opacity: 1;
  transition: opacity 300ms ease-in-out;
}

.x_ite-private-fade-out-300 {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 300ms, opacity 300ms ease-in-out;
}
