html * {
  user-select: none;
}

html {
  padding: 0;
}

html,
body {
  font-size: 14px;
  font-family: "open_sansregular", sans-serif;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
}

canvas {
  display: block;
}

.hn3000-debug-console {
  position: absolute;
  background-color: rgba(125, 125, 125, 0.3);
  color: honeydew;
  visibility: hidden;
}

.hn3000-debug-console-toggle {
  position: absolute;
  visibility: visible;
}

.ui-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  pointer-events: none;
}

#arCanvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ui-root {
  position: absolute;
  padding: 10px 10px 10px 10px;
  align-items: start;
  width: 100%;
  height: 100%;
  visibility: visible;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-areas:
    "logo logo envs"
    "colors warning envs"
    "colors actions models";
  justify-content: space-between;
  pointer-events: none;
  box-sizing: border-box;
}

.is-ipad .ui-wrapper,
.is-iphone .ui-wrapper {
  padding: env(safe-area-inset-top, 10px) env(safe-area-inset-right, 10px)
    env(safe-area-inset-bottom, 10px) env(safe-area-inset-left, 10px);
}

.is-edge .ui-wrapper,
.is-chrome .ui-wrapper {
  padding: 10px 10px 10px 10px;
}

.button-place,
.picker-env {
  grid-area: envs;
  align-self: start;
  justify-self: end;
  width: min-content;
}
.picker-color {
  grid-area: colors;
  align-self: end;
  width: min-content;
}
.picker-model {
  grid-area: models;
  align-self: end;
  justify-self: end;
  width: min-content;
}

.loader,
.overlay-logo {
  grid-area: logo;
}

.ui-actions {
  grid-area: actions;
  align-self: end;
  display: flex;
  flex-direction: row-reverse;
  justify-items: center;

  justify-content: space-around;
  height: min-content;
}

.ui-header {
  display: flex;
  flex-flow: row-reverse;
  justify-content: space-between;
  align-items: flex-start;
}

.ui-footer {
  display: flex;
  flex-flow: row-reverse;
  justify-content: space-between;
  align-items: flex-end;
}

.clickable {
  pointer-events: auto;
}

.button-base {
  padding: 10px 6px;
  margin: 2px;
  border-radius: 2px;
  border: none;
  background-color: #429bd9;
  color: white;
  text-align: center;
  white-space: nowrap;
  outline: none;
  z-index: 999;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
}

.button-base:hover {
  background-color: #387fb3;
  color: white;
}

.ui-button {
  padding-left: 10px;
  padding-right: 10px;
  display: flex;
  width: auto;
  min-width: 70px;
  justify-content: space-between;
}

.ui-button::after {
  content: "";
  margin-left: 5px;
  display: inline-block;
  width: 15px;
  height: 15px;
  background-size: 100% 100%;
}

/* workaroud for the default option */
select option[disabled] {
  display: none;
}

.picker {
  display: flex;
  flex-flow: column;
  z-index: 999;
  cursor: pointer;
  pointer-events: auto;
}

#fold-button {
  font-size: x-large;
}

.color-button {
  height: 40px;
  width: 40px;
  padding: 2px;
  opacity: 1;
  background-size: 35px;
  background-repeat: no-repeat;
  background-position: center;
  transition: ease-in-out .5s;
}

.color-button-folded {
  height: 0px;
  padding: 0px;
}

.selected-button::after {
  background-image: url("/resources/images/icons/tick.svg");
}

.modal-container {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  display: flex;
  flex-flow: column;
  align-items: center;
  padding: 25px;
  border-radius: 4px;
  background: #cccccc;
  box-shadow: 3px 3px 10px 5px rgba(0, 0, 0, 0.3);
}

.modal > * {
  max-width: 90vw;
}

.qr-canvas {
  max-height: 512px !important;
  max-width: 512px !important;
  border-radius: 10px;
  margin-bottom: 25px;
}

.loader {
  border: 10px solid aliceblue;
  border-radius: 50%;
  border-top: 10px solid grey;
  width: 30px;
  height: 30px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.overlay-logo {
  width: 40vmin;
}

@keyframes breathing {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes breathing {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.warning-message {
  bottom: 0;
  position: relative;
  grid-area: warning;
  background-color: #f0f8ff;
  border-radius: 5px;
  width: fit-content;
  padding: 5px;
  align-self: end;
  justify-self: center;
  transition: bottom ease 1s;
}

.warning-message-start {
  bottom: -150%;
}

#info-item {
  box-sizing: border-box;
  position: absolute;
  left: 10vw;
  bottom: 10vh;
  text-align: left;
  vertical-align: middle;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 3px;
  padding: 1em;
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  max-width: 25vw;
}

#info-item,
#info-item * {
  pointer-events: all;
}

#info-item * {
  margin-top: 0;
  margin-bottom: 0.8rem;
}
#info-item *:last-child {
  margin-bottom: 0;
}

#info-item h2 {
  font-weight: 600;
  font-size: 1rem;
}
#info-item p {
  font-weight: 400;
  font-size: 1rem;
}
#info-item a {
  font-weight: 400;
  font-size: 1rem;
}

.ui-lights {
  margin: 10px;
  border: solid black 3px;
  padding: 10px;
  border-radius: 10px;
  position: absolute;
  z-index: 10;
  color: white;
  background-color: rgba(0, 0, 0, 0.3);
}

.ui-lights td,
.ui-lights th {
  text-align: left;
  min-width: 60px;
}

.ui-lights td:last-child,
.ui-lights th:last-child {
  min-width: 0px;
}.ui-lights input {
  width: 60px;
}

.ui-lights button.add-row {
  margin-top: 5px;
}

.ui-lights button.lights-apply {
  align-self: center;
}

.ui-lights .lights-category {
  border: solid 2px #555555;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 5px;
  border-radius: 5px;
  margin-bottom: 10px;
}

div[id^="light-type--"] {
  display: flex;
  flex-flow: column;
  border: 2px solid black;
}

.light-panel,
.light-position--container,
.light-position {
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
}
