/* ---------- BASELINE ---------- */
@font-face {
  font-family: GothamLight;
  src: url(../../../Common/fonts/GothamLight.woff2) format("woff2"),
    url(../../../Common/fonts/GothamLight.woff) format("woff"),
    url(../../../Common/fonts/GothamLight.ttf) format("truetype");
}

@font-face {
  font-family: GothamBold;
  src: url(../../../Common/fonts/GothamBold.woff2) format("woff2"),
    url(../../../Common/fonts/GothamBold.woff) format("woff"),
    url(../../../Common/fonts/GothamBold.ttf) format("truetype");
}

* {
  box-sizing: border-box;
}

@media screen and (min-width: 50em) {
  html {
    font-size: 18px;
  }
}

body {
  font-family: GothamLight;
  font-size: inherit;
  margin: 0px;
  padding: 0px;
  width: 100vw;
  height: 100vh;
  background-color: black;
}

.unselectable {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}

[hidden="false"] {
  display: initial;
}
[hidden]:not([hidden="false"]) {
  display: none !important;
}

/* ---------- MAIN APP ---------- */
#main {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 3% 3%;
  column-gap: 3%;
  grid-template-columns: 55% 42%;
  grid-template-rows: auto 1fr;
  background-color: black;
  display: grid;
  grid-template-areas:
    "camera title"
    "camera description";
  place-items: start;
}
@media (orientation: portrait) {
  #main {
    padding: 1% 0%;
    grid-template-columns: 100%;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "title"
      "camera"
      "description";
    place-items: center;
    row-gap: 1%;
    column-gap: unset;
  }
}

#container {
  position: relative;
  place-self: stretch;
  grid-area: camera;
  overflow: hidden;
  z-index: 0;
}

/* ---------- SHAPE ANALYSIS ---------- */
.analysis-component {
  position: relative;
  margin-top: 3rem;
  display: flex;
}

.analysis-component_title {
  position: absolute;
  left: 0;
  top: calc(calc(1rem + 8px) * -1);
  height: calc(2rem + 16px);
  padding: 8px;
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  font-family: GothamBold;
  background: linear-gradient(0, #5c6466, #879097);
  box-shadow: inset 0 0 1px 1px rgb(255 255 255 / 20%),
    0 1px 1px 0px rgb(0 0 0 / 60%);
  min-width: 240px;
}

.analysis-component_title--success {
  background: linear-gradient(0, #2eba87, #19b371);
}

.analysis-component_title_text {
  text-transform: capitalize;
}

.analysis-component_title_icon {
  width: 2rem;
  height: 2rem;
  margin-right: 8px;
}

.analysis-component_body {
  background: linear-gradient(0, #2e2d2d, #373837);
  box-shadow: inset 0 0 1px 1px rgb(255 255 255 / 10%),
    0 1px 1px 0px rgb(0 0 0 / 60%);
  border-radius: 0 20px 20px 20px;
  padding: calc(1rem + 16px) calc(2rem + 8px) 2px calc(2rem + 8px);
}

.analysis-suggestions {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.analysis-label {
  font-family: GothamBold;
  margin: 0 0 1rem 0;
}

/* ---------- LOGO AND TITLE ---------- */
.logo {
  grid-area: logo;
  object-fit: cover;
  max-height: 10vh;
  width: 33%;
}
@media (orientation: portrait) {
  .logo {
    width: 25%;
  }
}

.title {
  grid-area: title;
  color: white;
  display: flex;
  flex-direction: column;
}
@media (orientation: portrait) {
  .title {
    place-items: center;
  }
}

.titleTop {
  font-family: GothamBold;
  font-size: 2rem;
  line-height: 2rem;
}
.titleBottom {
  font-family: GothamLight;
  font-size: 2rem;
  line-height: 2rem;
}

.description {
  grid-area: description;
  color: white;
}
@media (orientation: portrait) {
  .description {
    display: none;
  }
}

/* ---------- HEAD POSITION OVERLAY AND HINTS ---------- */
#face-position-mask {
  position: absolute;
  stroke: white;
  stroke-width: 1.5px;
  fill: rgba(0, 0, 0, 0.4);
  transform-origin: 2050px 2050px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(6);
  transition: fill 0.8s ease-out;
}
#face-position-mask.success {
  stroke: rgba(6, 149, 79, 1);
  fill: transparent;
}
#face-position-mask.success-1 {
  stroke: rgba(223, 255, 0, 1);
  fill: transparent;
}
#face-position-mask.success-2 {
  transition: fill, stroke 0.25s ease-out;
  stroke: transparent;
  fill: transparent;
}

#position-hint {
  position: absolute;
  font-size: 1.4rem;
  color: white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.8));
}

#well-lit-hint {
  position: absolute;
  top: 0;
  left: 0;
  padding: 1rem;
  color: white;
  display: flex;
  align-items: center;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.8));
}

#clear-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: white;
  display: flex;
  width: 4rem;
  height: 4rem;
  cursor: pointer;
  transition: filter 0.2s ease-out;
  transform: scale(1);
  filter: drop-shadow(0 3px 1px rgba(0, 0, 0, 0.6));
}
#clear-btn:hover {
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.6));
}
#clear-btn:active {
  filter: drop-shadow(0 0 0px rgba(0, 0, 0, 0.9));
}
