@import "./fonts/roboto_index.css";
* {
  font-size: 100%;
  color: white;
}

*, html, body {
  font-family: 'Roboto', sans-serif;
}

html,
body {
  height: 100%;
  width: 100%;
  background-color: white;
  margin: 0;
  padding: 0;
  text-align: center;
  width: inherit;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  touch-action: manipulation;
}

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

/* start of styles for overlay rect that is placed on top of ZoOm, button and checkbox, and fancy background fade container */

.background-to-black {
  background: black;
  height: 100%;
  width: 100%;
  position: fixed;
  top:0;
  left:0;
  display: none;
  pointer-events: none;
}

#logo-sub-text {
  font-size: 18px;
  color: rgb(65, 127, 178);
}

#controls, #additional-screen, #official-id-photo-container {
  min-height: 360px;
  width: 640px;
  padding: 20px 0;
  max-width: 100%;
  margin: 0 auto;
  border: 2px solid rgb(65, 127, 178);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 12px;
  z-index: 0;
  background-color:white;
  overflow: hidden;
}


/* start of styles for developer overlays - new user guidance, retry screens, upload progress screens, success animation screen */

.big-button {
  width: 40%;
  height: 40px;
  margin: 0 auto;
  color: white;
  background: rgb(65, 127, 178);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 500;
  transition: all 0.7s linear;
  cursor: pointer;
  outline: none;
}

@media (hover: hover) {
  .big-button:hover:enabled {
    background-color: rgb(57, 110, 153);
    color: white !important;
  }
}

.big-button:disabled, .big-button[disabled] {
  cursor: not-allowed;
  background: rgba(65, 127, 178, 0.4) !important;
  color: white !important;
}

.browser-button {
  min-height: 50px;
  height: 50px;
  width: 320px;
  border: unset;
  margin: 7.5px auto;
}

button, input {
  z-index: 0;
}

input::placeholder {
  color: gray;
}

#age-check-radio-button-container {
  display: none;
  flex-direction: column;
  justify-content: center;
  row-gap: 12px;
}

#status {
  width: 100%;
  margin: 10px auto 0;
  color:  rgb(64, 127, 178);
  font-size: 80%;
  display: none;
}

.wrapping-box-container {
  margin: 10px auto;
  width: 646px;
  height: auto;
  color: #fff;
  padding: 0;
  display: none;
  opacity: 0;
}

#browser-subtext {
  margin: 0 auto;
}

.contact-us-link, #email-details, .sdk-site-link {
  font-size: 10px;
  letter-spacing: 0.6px;
}

.sdk-site-link {
  width: 100%;
  color: white;
  margin: 10px 0px 5px 0px;
}

button:disabled {
  cursor: not-allowed;
  color: #ddd;
  border-color: #ddd;
}

button::-moz-focus-inner {
  border: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

.error-logo img:first-child {
  position: relative;
}

#agreed-label {
  display: block;
  padding-left: 15px;
  text-indent: -15px;
  margin: 10px 0 0;
  font-size: 80%;
  color: rgb(64, 127, 178);
}
#agreed-label a {
  color: inherit;
  font-size: inherit;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
  font-weight: 600;
}


textarea,
input.text,
input[type="text"],
input[type="button"],
input[type="submit"],
.input-checkbox {
-webkit-appearance: none;
border-radius: 0;
}

.email-section span {
  color: rgb(64, 127, 178);
}

#error-overlay {
  position: absolute;
  display: none;
  width: 550px;
  max-width: 90%;
  max-height: 90%;
  left: 50%;
  top: 47.5%;
  margin: 0 auto;
  z-index: 1;
  font-size: 0.9em;
  color: white;
  transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  overflow: auto;
}

#error-overlay div {
  text-align: center;
}

#error-overlay p {
  text-align: center;
  font-size: 0.9em !important;
}

#error-overlay .error-feedback-container {
  display: none;
}

.error-feedback-container p {
  margin-block-start: 0.5em;
  margin-block-end: 0.5em;
}

.error-feedback-container li {
  margin-block-start: 0.1em;
  margin-block-end: 0.1em;
  text-align:left;
}

.error-feedback-container ol {
  display: inline-block;
  width: 45%;
  margin-block-start: 0em;
  margin-block-end: 0.5em;
  font-size: 0.9em !important;
}

#error-overlay .error-header {
  font-size: 1.2em !important;
}

#browser-subtext {
  width: 100%;
}

#facetec-logo-container {
  /* margin: 0 2px 0 0; */
}

#facetec-logo-container img {
  /* margin: 0 auto; */
  max-width: 280px;
}

#facetec-logo-container div {
  /* margin: 0 10px 0 0; */
}

#facetec-logo-container p {
  padding: 0;
  margin: 0;
}

#re-enroll-button {
  display: none;
}

#button-container {
  opacity: 1;
  position: relative;
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 7.5px;
}

#liveness-button {
  /* margin: 0 auto; */
}

#loading-overlay {
  margin: 160px auto 0;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  border: 5px solid #f3f3f3;
  border-top-color: rgb(65, 127, 178);
  animation: spin 1s linear infinite;
  -webkit-animation: spin 1s linear infinite;
}
@-webkit-keyframes spin {
  from { -webkit-transform: rotate(0deg); }
  to { -webkit-transform: rotate(359deg); }
}
@keyframes spin {
  from { transform:rotate(0deg); }
  to { transform:rotate(359deg); }
}

#status-and-loading-overlay-container div p {
  color: rgb(65, 127, 178);
  /* use the same size font as in the SDK */
  font-size: 16px;
}

#status-and-loading-overlay-container {
  height: 100%;
  width: 100%;
  position: absolute;
  opacity: 1;
  transition: opacity 300ms linear;
}

/* start age check styles */
.age-range-title {
  color: rgb(65, 127, 178);
  margin: 0;
}

#age-check-result-container {
  margin: 0 auto;
  display: none;
  flex-direction: column;
  justify-content: center;
}

.age-check-sub-info-text {
  float: left;
  font-size: 14px;
  color: rgb(65, 127, 178);

}

.result-message {
  margin: 0;
  color: rgb(65, 127, 178);
}

/* start styles for custom radio buttons */

/* generic class for all age check elements */
.age-check-radio-buttons {
  display: none;
}

.age-check-result-sub-message {
  font-size: 14px;
  color: #bdbdbd;
  margin: 0;
}

.radio {
  /* margin: 0; */
}

.radio-label, .label-text {
  cursor: pointer;
  color: rgb(65, 127, 178);
}

.radio input[type="radio"] {
  position: absolute;
  display: none;
  opacity: 0;
}

.radio input[type="radio"] + .radio-label:before {
  content: '';
  background: white;
  border-radius: 100%;
  border: 1.5px solid rgb(65, 127, 178);
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  position: relative;
  margin-right: 1em;
  vertical-align: bottom;
  cursor: pointer;
  text-align: center;
  transition: all 250ms ease;
}

.radio input[type="radio"]:disabled + .radio-label:before, .radio input[type="radio"]:disabled + .radio-label {
  opacity: 0.6;
  pointer-events: none;
}

.radio input[type="radio"]:checked + .radio-label:before {
  background-color: rgb(65, 127, 178);
  box-shadow: inset 0 0 0 4px white;
}

.label-text {
  display: inline-block;
  min-width: 105px;
  text-align: left;
}

/* end styles for custom radio buttons */

/* end age check styles */

.main-logo {
  max-height: 50px;
}

.loading-session-token-container {
  position: absolute;
  top: 185px;
  width: 100%;
  display: none;
  z-index: 1;
}

@media screen and (max-width: 800px) {
  .loading-session-token-container {
    top: 52%;
    transform: translateY(-50%);
  }
}

#loading-session-token-text {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(64, 127, 178);
}

#additional-screen {
  display: none;
  opacity: 0;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: column;
}

#additional-screen button {
  min-height: 50px;
  height: 50px;
  width: 320px;
  border: unset;
  margin: 0 auto -75px;
}

#additional-screen-logo {
  height: 70px;
}

#additional-screen-image-and-text>h2 {
  font-size: 24px;
  color: rgb(64, 127, 178);
}

#additional-screen-text {
  color: rgb(64, 127, 178);
  font-size: 16px;
}

/* FOOTER STYLING */

footer {
  position: absolute;
  bottom: 4px;
  width: 100%;
  font-size: 15px;
  left: 50%;
  transform: translateX(-50%);
 }

footer span p {
  margin: 0;
  color: grey;
}

.footer-element-margin {
  margin: 4px 0 4px !important;
}

footer span p a:hover{
  color: rgb(65, 127, 178);
  text-decoration: underline;
}

.hr {
  margin: 5px auto;
  width: 250px;
  border: none;
  height: 2px;
  background: #eee;
}

#copy-right-section {
  height: auto;
  display: block;
}

#copy-right-length {
  position: absolute;
  visibility: hidden;
  height: auto;
  width: auto;
  white-space: nowrap;
  font-size: 7px;
}

#certi-images a {
  display: inline-block;
}

#certi-images img {
  padding: 0 5px;
  height: 40px;
  margin-bottom: 0;
}

#try-age-check {
  height: 16px;
}

#try-age-check-label {
  display: block;
  padding: 0;
  text-indent: -15px;
  margin: 0;
  font-size: 12px;
  color: rgb(64, 127, 178);
}

#try-age-check-label a {
  color: inherit;
  font-size: inherit;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
  font-weight: 600;
}

#app-version {
  color: grey;
  font-size: 100%;
}

#age-check-result-screen {
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: white;
}

#age-check-result-screen-inner-content {
  height: calc(100% - 80px);
  width: 100%;
  top: 0px;
  bottom: 60px;
  position: relative;
  justify-content: center;
  align-content: center;
}

#age-check-result-container {
  display: flex;
  margin-bottom: 15px;
}

#age-check-primary-result-title {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

#age-check-primary-result-subtitle {
  font-size: 16px;
  white-space: pre-wrap;
}

#age-check-result-divider {
  height: 2px;
  width: 100%;
  background: rgb(65, 127, 178);
  margin-top: 40px;
  margin-bottom: 40px;
}

#age-check-alt-result-container,
#age-check-alt-result-header-container,
#age-check-alt-result-message-container,
#age-check-alt-result-image-container,
#age-check-primary-result-container,
#age-check-primary-result-message-container,
#age-check-primary-result-image-container {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: fit-content;
  justify-content: center;
}

#age-check-primary-result-image-container {
  margin-bottom: 10px;
}

#age-check-alt-result-image-container {
  margin: 10px auto;
}

#age-check-alt-result-header {
  font-weight: 700;
  font-size: 14px;
}

#age-check-alt-result-title {
  font-weight: 700;
  font-size: 11.5px;
  margin-bottom: 10px;
}

#age-check-alt-result-subtitle {
  font-size: 9px;
}

#age-check-again-button {
  width: 80%;
  height: 50px;
  max-width: 350px;
  max-height: 50px;
  min-height: 30px;
  flex: 1 1 0%;
  justify-content: center;
  font-size: 20px;
  position: relative;
}

#age-check-primary-result-image {
  height: 80px;
}

#age-check-alt-result-image {
  height: 45px;
}

#official-id-photo-container {
  position: relative;
  padding: 0;
  display: none;
  opacity: 0;
}

#official-id-photo-session-cancel-button {
  display: flex;
  position: absolute;
  top: 15px;
  left: 15px;
  border: none;
  background: none;
  width: 18px;
  height: 18px;
  cursor: pointer;
  padding-block: 0;
  padding-inline: 0;
}

#official-id-photo-session-cancel-button:disabled {
  cursor: not-allowed;
}

#official-id-photo-session-cancel-button img {
  max-width: 100%;
  height: auto;
}

#official-id-photo-intro-container, #official-id-photo-result-container {
  margin: 20px auto 20px auto;
  background-color:white;
}

#official-id-photo-intro-container-content,
#official-id-photo-result-container-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#official-id-photo-intro-container-content *,
#official-id-photo-result-container-content * {
  color: rgb(65, 127, 178);
}

.official-id-photo-intro-span,
.official-id-photo-result-span {
  display: inline-block;
  white-space: pre-line;
  margin-left: auto;
  margin-right: auto;
}

#official-id-photo-intro-header-text, #official-id-photo-result-header-text {
  display: block;
  white-space: pre-line;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

#official-id-photo-intro-continue-button, #official-id-photo-result-download-button {
  min-height: unset;
  margin-top: 0;
}

.official-id-photo-intro-instruction-item-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.official-id-photo-intro-instruction-item-img{
  aspect-ratio: 1;
}

#official-id-photo-intro-container-instructions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: auto;
  margin-right: auto;
}

.official-id-photo-intro-instruction-item-span {
  white-space: nowrap;
}

#official-id-photo-result-image {
  height: 250px;
  width: auto;
}
