@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: #0084a4;
  --text-btn-bg-col: #9BA0AA;
  --text-btn-text-col: white;
  --text-btn-font-size: 0.7rem;
  --text-btn-width: 10rem;
  --numbox-border-radius: 1px;
  --numbox-label-font-size: 0.8rem;
  --numbox-text-color: #666;
  /* --text-btn-min-width: 20px; */
  /* 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,
.container-wrapper-landing {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.container-wrapper-landing {
  background-color: rgba(35.2, 47.0, 50.2, 0.2);
}

.container-divider {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: calc(100vh - var(--head-foot) * 2);
  overflow: auto;
  margin-top: calc(var(--head-foot) * 2);
  /* Push down the container-divider */
}

.container-left,
.container-right {
  display: flex;
  flex-direction: column;
  margin: var(--m-ss);
  overflow: auto;
  z-index: 10;
  padding: var(--m-xl);
  border: 2px solid black;
  border-radius: 10px;
  width: 50%;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  /* Forces both containers to match in height */
}

.container-content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.img-wrapper,
.img-wrapper-sm {
  display: flex;
  /* Makes .img-wrapper a flex container */
  justify-content: center;
  /* Center the image horizontally */
  align-items: center;
  /* Center the image vertically */
  width: 100%;
  /* Make the image fill the width of the container */
  height: auto;
  /* Automatically adjust the height to maintain aspect ratio */
  overflow: hidden;
  /* Hide any overflow */
  border: 1px solid black;
  border-top: none;
  border-left: none;
  border-right: none;
  margin-bottom: var(--m-md);
  padding: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.img-wrapper img {
  max-width: 100%;
  /* Set the maximum width of the image to 100% of the container width */
  width: auto;
  /* Automatically adjust the width to maintain aspect ratio */
  height: auto;
  /* Automatically adjust the height to maintain aspect ratio */
  display: block;
  /* Ensure that the image doesn't have any extra space below it */
}

.img-wrapper-sm img {
  max-width: 60%;
  width: auto;
  /* Automatically adjust the width to maintain aspect ratio */
  height: auto;
  /* Automatically adjust the height to maintain aspect ratio */
  display: block;
  /* Ensure that the image doesn't have any extra space below it */
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-radius 0.2s ease-out;
}

.img-wrapper-sm img:hover {
  transform: scale(1.05);
  /* Slightly enlarge the image */
  box-shadow: 0 0.11em 0.11em var(--secondary-tr-grey);
  border-radius: 10px;
}

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

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

.custom-header-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;
}

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

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

.custom-header-item:active {
  background-color: var(--primary-tr-blue);
  border-radius: 3px;
}

/* Inputs */
.input-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75em 0;
  border-top: 0.03125rem dashed grey;
}

.custom-input {
  text-align: right;
  font-size: inherit;
  border-style: none;
  outline: 0;
  /* padding-right: 0.25em; */
}

.input-group-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.spinner-overlay {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  display: none;
  place-content: center;
  place-items: center;
}

.input-group-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

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

/* Buttons */
.btn,
.btn-invert {
  line-height: 10px;
  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: transparent;
  color: var(--primary-tr-blue);
}

.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);
  color: #fff;
  box-shadow: none;
}

.hidden-elem {
  display: none !important;
}

.active-elem {
  display: flex !important;
}

.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: 1rem;
  width: 100px;
  height: 100px;
}

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

.gizmo-info-wrapper {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  height: 6rem;
  z-index: 10;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  color: black;
  border-radius: 10px;
  border: 0.03125rem 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);
}

/* Step Bar */
.step-bar {
  position: relative;
  margin-left: var(--m-md);
  margin-top: auto;
  margin-bottom: auto;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  /* spacing between dots */
  width: 6.25rem;
  height: 70vh;
  max-height: calc(100% - var(--padding-global-vertical)* 2);
  padding: var(--m-md) var(--m-md);
  box-sizing: border-box;
  pointer-events: auto;
  z-index: 10;
  /* padding: calc(var(--m-xl) + 2 * var(--m-xl)) 0 var(--m-xl) 1.25rem; */
}

.step-fade-container {
  position: fixed;
  z-index: 9;
  pointer-events: none !important;
  top: 0;
  left: 0;
  height: 100vh;
  width: 35vw;
  background: linear-gradient(to right, white 70%, rgba(255, 255, 255, 0) 100%);
  filter: blur(40px);
  transform: translateX(-20vw) scaleY(1.5);
}

.step-line {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 0.03125rem;
  height: 100%;
  max-height: 100%;
  background: gray;
}

.step-dot-wrapper {
  display: flex;
  align-items: center;
  font-size: 0.5625rem;
  transition: margin-top 0.5s ease-in;
}

.step-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0.8125rem;
  width: 0.8125rem;
  height: 0.8125rem;
  left: -0.375rem;
  border-radius: 50%;
  background: gray;
  color: white;
  cursor: pointer;
  transition: all 0.125s;
}

.step-dot.active {
  min-width: 1.125rem;
  width: 1.125rem;
  height: 1.125rem;
  left: -0.5625rem;
  background: black;
  font-size: 0.6875rem;
}

.step-dot.finished {
  min-width: 1rem;
  width: 1rem;
  height: 1rem;
  left: -0.5rem;
  background: lightgreen;
  font-size: 0.6875rem;
  padding: 0.3125rem;
}

.step-dot-wrapper .step-label {
  color: gray;
  padding: 0.3125rem;
}

.step-label {
  color: gray;
  padding: 0.3125rem;
  transition: color 0.2s ease, font-size 0.2s ease;
}

/* When the step-dot-wrapper is active */
.step-dot-wrapper.active .step-label {
  font-size: 0.875rem;
  color: black;
}

/* When the step-dot-wrapper is finished */
.step-dot-wrapper.finished .step-label {
  font-size: 0.3125rem;
  color: grey;
}

.card-content-wrapper {
  /* overflow: hidden; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.8rem;
}

.card-wrapper {
  height: max-content;
  z-index: 10;
  display: flex;
  flex-direction: column;
  color: black;
  width: 18.75rem;
  /* 300px */
  max-width: 100%;
  padding: 0.9375rem;
  /* 15px */
  border-radius: 10px;
  border: 0.03125rem solid lightgray;
  background: rgba(255, 255, 255, 0.66);
  filter: drop-shadow(0px 0px 0.3125rem rgba(0, 0, 0, .25));
}

.card-header {
  margin-bottom: 1em;
}

.card-content {
  width: calc(100% + 3.125rem);
  padding-right: 50px;
  /* overflow: hidden; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* align-items: center; */
}

.card-content-separator {
  border-top: 0.03125rem dashed grey;
  /* border-bottom: 0.03125rem dashed grey; */
  padding: 0.5rem 0;
}

.card-text {
  margin-bottom: 1em;
}

.card-close-btn {
  position: fixed;
  align-self: flex-end;
  margin-top: calc((0.9375rem + var(--m-xl) / 4) * -1);
  margin-right: calc((0.9375rem + var(--m-xl) / 4) * -1);
  background: rgb(80, 80, 80);
  color: white;
  width: calc(var(--m-xl) / 2);
  height: calc(var(--m-xl) / 2);
  border-radius: 50%;
  border: 0.125rem solid lightgray;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  cursor: default;
  filter: drop-shadow(0 0 0.0625rem rgba(0, 0, 0, .1));
}

.card-close-btn:hover {
  background: black;
  cursor: pointer;
}

.card-link {
  color: var(--primary-tr-blue);
  cursor: pointer;
  text-decoration: underline;
}

.card-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card-info-img {
  width: 10rem;
  border: 1px solid var(--primary-tr-grey);
  padding: 1rem;
  border-radius: 0.625rem;
}

.card-btn-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 0.7rem;
}

.card-btn {
  padding: var(--m-xs);
  margin: 0.5rem;
  width: 50%;
  border-radius: 0.3rem;
  cursor: pointer;
  font-family: 'Museo Sans', sans-serif;
  font-size: var(--textsm);
}

.label-select {
  margin-right: 2rem;
}

.x-axis {
  color: red;
  font-weight: bold;
  margin-right: 1rem;
}

.y-axis {
  color: green;
  font-weight: bold;
  margin-right: 1rem;
}

.z-axis {
  color: blue;
  font-weight: bold;
  margin-right: 1rem;
}

/* Override web-components styles */
/* as-modal-button.ok {
  --color-primary: var (--primary-tr-blue);
} */

/* Dirty styling of the as-header component */
#header {
  --col-button-hover-bg: var(--primary-tr-blue);
  --col-tooltip-bg: rgb(244, 243, 243);
  --col-tooltip-text: rgb(0, 0, 0);
}

.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);
}

.spinner {
  width: 2rem;
  height: 2rem;
  display: none;
}

.hover-card-img {
  width: 35rem;
  height: auto;
}

as-feature-controls.placement {
  height: 70%;
}

as-hovercard-wrapper .input-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75em 0;
  border-top: 0.03125rem dashed grey;
  box-sizing: border-box;
}

as-numbox.x-axis {
  --label-color: red;
}

as-numbox.y-axis {
  --label-color: green;
}

as-numbox.z-axis {
  --label-color: blue;
}

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

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

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

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

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

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

/* -------- Mobile (< 600px) -------- */
@media (max-width: 37.5rem) {
  .step-bar {
    width: 4.375rem;
    height: 50vh;
    gap: 1rem;
  }

  .step-line {
    height: 60%;
  }

  .step-fade-container {
    width: 60vw;
    transform: translateX(-30vw) scaleY(1.2);
  }

  .step-dot,
  .step-dot.finished,
  .step-dot.active {
    width: 0.625rem;
    height: 0.625rem;
    left: -0.3125rem;
    font-size: 0.5625rem;
  }

  .step-dot.active {
    width: 0.875rem;
    height: 0.875rem;
    left: -0.4375rem;
  }

  .step-dot.finished {
    width: 0.75rem;
    height: 0.75rem;
    left: -0.375rem;
  }

  .step-label {
    font-size: 0.625rem;
  }

  .step-dot-wrapper.active .step-label {
    font-size: 0.75rem;
  }

  .card-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(0);
    transition: top 0.2s ease, left 0.2s ease;
  }

  .card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .card-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    margin: 0;
  }

  .card-info-img {
    width: 100%;
    padding: 0.5rem;
  }

  .card-btn {
    width: 100%;
    margin: 0.5rem 0;
  }

  .viewport-wrapper as-axis-display {
    padding: var(--m-sm);
  }
}


/* -------- Tablet (600px – 1024px) -------- */
@media (min-width: 37.5rem) and (max-width: 64rem) {
  .step-bar {
    width: 5.3125rem;
    height: 75vh;
    gap: 1.5rem;
  }

  .step-line {
    height: 60%;
  }

  .step-fade-container {
    width: 40vw;
    transform: translateX(-25vw) scaleY(1.3);
  }

  .step-dot {
    width: 0.6875rem;
    height: 0.6875rem;
    left: -0.34375rem;
  }

  .step-dot.active {
    width: 1rem;
    height: 1rem;
    left: -0.5rem;
    font-size: 0.625rem;
  }

  .step-dot.finished {
    width: 0.875rem;
    height: 0.875rem;
    left: -0.4375rem;
    font-size: 0.625rem;
  }

  .step-label {
    font-size: 0.6875rem;
  }

  .step-dot-wrapper.active .step-label {
    font-size: 0.8125rem;
  }

  .card-wrapper {
    /* width: 90%; */
    max-width: 30rem;
  }

  .card-content {
    width: 100%;
    padding-right: 1rem;
  }

  .card-btn {
    width: 45%;
  }

  .viewport-wrapper as-axis-display {
    padding: var(--m-sm);
  }
}


/* -------- HD Landscape (e.g. 1280x720) -------- */
@media (max-height: 45rem) and (min-width: 60rem) {
  .step-bar {
    height: 85vh;
    gap: 1.25rem;
  }

  .step-line {
    height: 60%;
  }

  .step-fade-container {
    width: 30vw;
    transform: translateX(-15vw) scaleY(1.2);
    filter: blur(2rem);
  }

  .step-dot {
    width: 0.75rem;
    height: 0.75rem;
    left: -0.375rem;
  }

  .step-dot.active {
    width: 1rem;
    height: 1rem;
    left: -0.5rem;
    font-size: 0.625rem;
  }

  .step-dot.finished {
    width: 0.875rem;
    height: 0.875rem;
    left: -0.4375rem;
    font-size: 0.625rem;
  }

  .step-label {
    font-size: 0.6875rem;
  }

  .step-dot-wrapper.active .step-label {
    font-size: 0.75rem;
  }

  .viewport-wrapper as-axis-display {
    padding: var(--m-sm);
  }
}