/* ===================== */
/* SCREEN LAYOUT */
/* ===================== */
.screen {
  display: none;
  position: relative;
  padding: 20px;
  text-align: center;
  background: black;
}
.screen {
  height: calc(100vh - 50px);
}
@media screen and (max-width: 430px) {
  .screen {
    height: calc(100vh - 72px) !important;
  }
}
@media screen and (max-width: 540px) {
  .screen {
    height: calc(100vh - 70px) !important;
  }
}
@media screen and (max-width: 420px) {
  .screen {
    height: calc(100vh - 72px) !important;
  }
}
@media screen and (max-width:400px) {
  .screen {
    height: calc(100vh - 91px) !important;
  }
}
.screen.active {
  display: block;
}
/* ===================== */
/* MEDIA ELEMENTS */
/* ===================== */
video {
  width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
canvas {
  width: 100%;
  height: 100%;
  /* max-width: 600px; */
  object-fit: contain;
  border-radius: 12px;
}
/* ===================== */
/* CONTROLS */
/* ===================== */
.controls {
  margin-top: 15px;
}
.controls button {
  padding: 10px 15px;
  margin: 5px;
  font-size: 18px;
}
/* ===================== */
/* CAMERA UI */
/* ===================== */
/* TOP BAR */
.top-bar {
  width: 100%;
  text-align: center;
  padding: 10px;
  color: white;
}
.top-bar select {
  padding: 10px;
}
/* BOTTOM BAR */
.bottom-bar {
  position: absolute;
  justify-content: space-around;
  bottom: 0;
  width: 100%;
  /* padding: 15px; */
  left: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}
.capture-btn span {
  margin: 0px -2px 24px 6px;
  display: flex;
}
.bottom-bar button {
  font-size: 20px;
  padding: 12px;
  border-radius: 50%;
  border: none;
}
/* SPECIAL BUTTON */
#captureBtn {
  background: gold;
}
/* SELECTOR CENTER */
.selector {
  text-align: center;
  color: white;
  font-size: 12px;
}
.selector select {
  margin-top: 5px;
  padding: 5px;
  border-radius: 6px;
}
/* BUTTONS */
.circle-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #333;
  color: white;
  border: none;
}
/* CAPTURE BUTTON */
.capture-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: gold;
  border: none;
  font-size: 20px;
}
#torchBtn span {
  display: flex;
  margin: -2px;
}