@font-face {
  font-family: 'Museo Light';
  src: url('../assets/fonts/MuseoSans-100.otf');
}

@font-face {
  font-family: 'Museo Sans';
  src: url('../assets/fonts/MuseoSans-300.otf');
}

@font-face {
  font-family: 'Museo Bold';
  src: url('../assets/fonts/MuseoSans-500.otf');
}

@font-face {
  font-family: 'Museo Bolder';
  src: url('../assets/fonts/MuseoSans-700.otf');
}

:root {
  /* Main Colors */
  --primary-tr-blue: #0084a4;
  --primary-tr-grey: #C4C4C4;
  --secondary-tr-blue: #57c3e0;
  --secondary-tr-grey: #9BA0AA;
  --highlight: #2b2c2e;
  --tooltip: #878785;
  --info: #2A7230;
  --danger: #a3161669;
  --tooltip-bg-col: #0084a4;
  --icon-btn-hover-bg-col: #0084a4;
  --text-btn-hover-bg-col: #9BA0AA;
  --text-btn-bg-col: #0084a4;
  --text-btn-text-col: white;
  /* Measurements */
  --textxs: 0.6rem;
  --textsm: 0.8rem;
  --textmd: 1rem;
  --textlg: 1.5rem;
  --m-xs: 0.2rem;
  --m-ss: 0.5rem;
  --m-sm: 1rem;
  --m-md: 1.5rem;
  --m-lg: 2rem;
  --m-xl: 2.5rem;
  --head-foot: 3rem;
  --dynamic-p: 0.25rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--textmd);
}

body {
  margin: 0;
  background-color: rgba(255, 255, 255, 0.2);
  font-family: 'Museo Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* .container-wrapper {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
} */

.header {
  position: fixed;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: var(--head-foot);
}

.header-item-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.header-item,
.sidebar-item,
.sidebar-menu-item {
  display: flex;
  padding: 0.35em 0.55em;
  margin: 0 var(--m-xs);
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}

.sidebar-menu-item {
  margin: var(--m-xs);
  flex-direction: column;
}

.sidebar-menu-item .sidebar-label {
  font-size: 0.7rem;
  color: var(--highlight);
  margin-top: 0.3rem;
  text-align: center;
}

.header-item:hover,
.sidebar-item:hover,
.sidebar-menu-item:hover {
  box-shadow: 0 0.11em 0.11em var(--secondary-tr-grey);
  border-radius: 3px;
}

.header-logo {
  height: 2rem;
  display: flex;
  justify-content: center;
}

.header-item:active,
.item-selected,
.item-selected:hover,
.sidebar-item:active,
.sidebar-menu-item:active {
  background-color: var(--primary-tr-blue);
  border-radius: 3px;
}

.header-icon,
.sidebar-icon,
.sidebar-icon-inverted {
  font-size: var(--textsm);
  width: 1.7rem;
}

.sidebar-icon-inverted {
  filter: invert(100%);
}

.header-icon:hover,
.sidebar-icon:hover {
  color: var(--secondary-tr-blue);
  cursor: pointer;
}

.sidebar-icon.active {
  /* box-shadow: 0.2em 0.2em 0 var(--primary-tr-blue); */
  box-shadow: 0 0 0 0.2em var(--primary-tr-blue);
  border-radius: 3px;
}

.sidebar-menu-left,
.sidebar-menu-right {
  position: absolute;
  top: 30%;
  /* display: flex; */
  display: none;
  flex-direction: column;
  max-width: 100px;
  z-index: 2;
}

.sidebar-menu-left {
  left: 1.5rem;
}

.sidebar-menu-right {
  right: 1.5rem;
}

.sidebar-left,
.sidebar-right {
  position: absolute;
  display: flex;
  flex-direction: column;
  /* height: calc(100% - 11.5rem); */
  width: fit-content;
  z-index: 10;
  padding: var(--m-xl);
  font-family: 'Museo Sans', sans-serif;
  top: 10rem;
}

.sidebar-left {
  left: 0;
}

.sidebar-right {
  right: 0;
  width: 20rem;
}

.sidebar-header {
  /* border-bottom: 1px solid var(--primary-tr-blue); */
  padding: var(--m-md) 0;
  font-size: var(--textmd);
  color: var(--primary-tr-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-content-wrapper {
  display: flex;
  flex-direction: column;
  /* overflow-y: auto; */
  border-radius: 10px;
  border: 0.5px solid lightgray;
  background: rgba(255, 255, 255, 0.66);
  filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, .25));
}

.sidebar-content {
  flex-direction: column;
  /* overflow: hidden; */
}

.sidebar-group-center-ms {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--m-sm) 0;
  width: 4rem;
}

.btn-wrapper {
  width: 50%;
  align-items: center;
  margin: var(--m-ms);
}

/* Buttons */
.btn,
.btn-invert {
  line-height: 20px;
  font-weight: 600;
  padding: var(--m-ss);
  width: 100%;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: 'Museo Sans', sans-serif;
  font-size: var(--textsm);
}

.btn {
  background-color: var(--primary-tr-blue);
  color: #fff;
  border: 2px solid var(--primary-tr-blue);
}

.btn-invert {
  background-color: transparent;
  color: var(--primary-tr-blue);
  border: 2px solid var(--primary-tr-blue);
}

.btn:disabled,
.btn-invert:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn:hover {
  background-color: var(--secondary-tr-grey);
  /* color: var(--primary-tr-blue); */
  border: 2px solid var(--secondary-tr-grey);
}

.btn-invert:hover {
  background-color: var(--primary-tr-blue);
  color: #fff;
  border: 0;
}

.btn:active {
  background-color: var(--secondary-tr-grey);
  color: #fff;
  box-shadow: none;
}

.btn:focus {
  background-color: var(--primary-tr-blue);
  border: 2px solid var(--primary-tr-blue);
  color: #fff;
  box-shadow: none;
}

.toggleable-left,
.toggleable-right,
.toggleable-toolsmenu,
.hidden-elem {
  display: none;
}

.active {
  display: flex;
}

.toggleable-group {
  display: none;
}

.viewport-wrapper {
  position: absolute;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
}

.viewport-wrapper #viewPort {
  width: 100%;
  height: 100%;
}

.viewport-wrapper as-axis-display {
  pointer-events: none;
  bottom: 2rem;
  /* left: 2rem; */
  width: 100px;
  height: 100px;
}

as-tooltip-wrapper {
  display: flex;
  place-content: center;
}

.footer {
  position: absolute;
  bottom: 1rem;
  z-index: 10;
  font-size: var(--textsm);
  pointer-events: none;
  color: var(--secondary-tr-grey);
  display: flex;
  justify-content: flex-end;
  /* justify-content: center; */
  padding-bottom: calc(30px + 2em);
  padding-right: var(--head-foot);
  width: 100%;
}

.gizmo-info-wrapper {
  /* display: flex; */
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  /* width: 20%; */
  height: 7rem;
  z-index: 10;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  color: black;
  border-radius: 10px;
  border: 0.5px solid lightgray;
  background: rgba(255, 255, 255, 0.66);
  filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, .25));
}

.gizmo-info-text {
  padding: 1rem;
  font-size: var(--textsm);
}

.header-set {
  display: flex;
  gap: var(--button-padding-x, 1rem);
  align-items: center;
  padding: var(--button-padding-y, 0.375rem);
  border-radius: var(--default-radius, 0.5rem);
}

.attention-btn {
  --icon-btn-bg-col: var(--primary-tr-blue);
}

as-feature-controls.placement {
  padding-right: var(--padding-right, 1.5rem);
}

/* -------------------
   FONT-SIZE QUERIES
   ------------------- */
@media only screen and (max-width: 3840px) {
  html {
    font-size: 150%;
  }
}

@media only screen and (max-width: 2560px) {
  html {
    font-size: 100%;
  }
}

@media only screen and (max-width: 1050px) {
  html {
    font-size: 60%;
  }
}

@media only screen and (max-width: 800px) {
  html {
    font-size: 50%;
  }
}

@media only screen and (max-width: 720px) {
  html {
    font-size: 40%;
  }
}

/* -------------------
   LAYOUT BREAKPOINTS
   ------------------- */

/* -------- Mobile (< 600px) -------- */
@media (max-width: 37.5rem) {
  .viewport-wrapper as-axis-display {
    padding: var(--m-sm);
  }
}

/* -------- Tablet (600px – 1024px) -------- */
@media (min-width: 37.5rem) and (max-width: 64rem) {
  .viewport-wrapper as-axis-display {
    padding: var(--m-sm);
  }
}

/* -------- HD Landscape (e.g. 1280x720) -------- */
@media (max-height: 45rem) and (min-width: 60rem) {
  .viewport-wrapper as-axis-display {
    padding: var(--m-sm);
  }
}