.scanSection {
  background: url('../images/home/scan_BG.jpg') no-repeat center center;
  background-size: cover;
  height: 80vh;
  margin-top: 72px;
  text-align: center;
  display: flex;
}

.scanSection .scanBox {
  margin: auto;
}

.codeContainer {
  margin: auto;
}

.scanSection h1 {
  color: #f2e0e2;
  text-shadow: 0px 2px 6px #682a3a;
}

.scanSection p {
  font-family: 'Eras Light ITC';
color: #f7ecee;
font-weight: bold;
font-size: 20px;
letter-spacing: 1px;
text-shadow: 1px 1px 0 #000000;
}

.codeContainer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.codeContainer li {
  display: inline-block;
}

.codeContainer input {
  border: 2px solid #ffffff;
  color: #ffffff;
  border: 2px solid #ffffff;
  background-color: #c73750;
  text-transform: uppercase;
  font-weight: bold;
  font-family: 'source_sans_probold';
  letter-spacing: 5px;
  font-size: 28px;
  height: 52px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  width: 52px;
  text-transform: uppercase;
  outline: none;
}



.btnWebcam {
  display: inline-block;
  margin: 28px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  outline: none;
}

.btnWebcam .btnWebcamInner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #ffffff;
  border-radius: 8px;
  padding: 10px 18px;
  background-color: rgba(256, 256, 256, 0.2);
  color: #ffffff;
  font-family: 'source_sans_probold';
  font-size: 18px;
  letter-spacing: 0.4px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btnWebcam:hover .btnWebcamInner,
.btnWebcam:focus .btnWebcamInner {
  background-color: rgba(256, 256, 256, 0.6);
  cursor: pointer;
  transform: translateY(-1px);
}

.btnWebcam img {
  width: 24px;
  margin-right: 0;
}

.cameraScannerBackdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1400;
  background: rgba(13, 19, 26, 0.86);
}

.cameraScannerPanel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1410;
  width: calc(100% - 32px);
  max-width: 440px;
  padding: 28px 22px 24px;
  border-radius: 16px;
  background: #0d1720;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
}

.cameraScannerClose {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  font-size: 34px;
  line-height: 1;
}

.cameraScannerTitle {
  margin-bottom: 8px;
  color: #f2e0e2;
  font-family: 'alex_brushregular';
  font-size: 40px;
  line-height: 1;
}

.cameraScannerInstructions {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-family: 'source_sans_prolight';
  font-size: 18px;
  line-height: 1.35;
}

.cameraScannerViewport {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #000000;
}

.cameraScannerViewport:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(62vw, 240px);
  height: min(62vw, 240px);
  max-width: calc(100% - 36px);
  max-height: calc(100% - 36px);
  border: 2px solid rgba(245, 162, 70, 0.9);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cameraScannerVideo {
  display: block;
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}

.cameraScannerStatus,
.cameraScannerError {
  margin-top: 16px;
  font-family: 'source_sans_proregular';
  font-size: 16px;
  line-height: 1.35;
}

.cameraScannerStatus {
  color: rgba(255, 255, 255, 0.84);
}

.cameraScannerError {
  color: #ffb6c2;
}

.cameraScannerAction {
  display: inline-block;
  min-width: 140px;
  margin-top: 18px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: #f5a246;
  color: #ffffff;
  font-family: 'source_sans_probold';
  font-size: 17px;
  letter-spacing: 0.4px;
}


@media only screen
and (max-width : 480px) {
  /* phone */
  .scanSection {
    margin-top: 48px;
    height: 80vh !important;
  }

  .btnWebcam {
    margin-top: 22px;
  }

  .btnWebcam .btnWebcamInner {
    width: 100%;
    font-size: 17px;
  }

  .cameraScannerPanel {
    width: calc(100% - 20px);
    padding: 24px 16px 20px;
  }

  .cameraScannerTitle {
    font-size: 34px;
  }

  .cameraScannerInstructions {
    font-size: 16px;
  }

  .cameraScannerVideo {
    min-height: 240px;
  }

}
