@charset "UTF-8";

@font-face {
  font-family:BootsSharp;
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url(../fonts/BootsSharp-Regular.eot);
  src:url(../fonts/BootsSharp-Regular.eot?#iefix) format("embedded-opentype"),
  url(../fonts/BootsSharp-Regular.woff2) format("woff2"),
  url(../fonts/BootsSharp-Regular.woff) format("woff"),
  url(../fonts/BootsSharp-Regular.ttf) format("truetype")
}
@font-face {
  font-family:BootsSharp;
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url(../fonts/BootsSharp-Bold.eot);
  src:url(../fonts/BootsSharp-Bold.eot?#iefix) format("embedded-opentype"),
  url(../fonts/BootsSharp-Bold.woff2) format("woff2"),
  url(../fonts/BootsSharp-Bold.woff) format("woff"),
  url(../fonts/BootsSharp-Bold.ttf) format("truetype")
}

body {
  margin: 0;
  font-family: 'BootsSharp', sans-serif;
  color: #333;
  font-weight: normal;
  padding: 0;
  background: #fff;
}

.contents {
  background: #fff;
}

h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 1rem 0 0;
  padding: 0;
  font-size: 24px;
  font-weight: 400;
  color: rgb(255, 255, 255);
  height: 64px;
  line-height: 64px;
  flex: 1 1 0%;
  font-family: 'BootsSharp', sans-serif;
}

header {
  background: #05054b;
  padding: 0 1.5em;
  color: #fff;
  transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  box-sizing: border-box;
  font-family: Roboto, sans-serif;
  border-radius: 0;
  position: fixed;
  z-index: 1100;
  width: 100%;
  display: flex;
  top: 0;
  box-shadow: 0 1px 3px rgb(0 0 0 / 50%);
  justify-content: space-between;
}

.swal2-styled.swal2-confirm {
  background: #05054b !important;
}

.swal2-container .swal2-popup {
  padding: 0 1em 1em;
}

.nav__icon {
  align-self: center;
  color: #fff;
  font-size: 1.4rem;
  margin-left: 2rem;
}

#scanner {
  width: auto;
  margin: 64px auto 0;
  padding: 0;
  max-width: 1024px;
}


/*
#scanner {
  width: 640px;
  margin: 20px auto;
  padding: 10px;
}

#interactive.viewport {
  width: 640px;
  height: 480px;
}


#interactive.viewport canvas, video {
  float: left;
  width: 640px;
  height: 480px;
}

#interactive.viewport canvas.drawingBuffer, video.drawingBuffer {
  margin-left: -640px;
}
*/

.container {
  max-width: 480px;
  width: auto;
  border: none;
  margin: 65px auto 20px;
  padding: 2rem;
  text-align:center;
}

#scanner {
  max-width: 1024px;
  width: 100%;
  border: none;
  margin: 65px auto 20px;
  padding: 0;
  background: #fff;
  text-align:center;
}

#interactive.viewport {
  width: auto;
  height: auto;
  position: relative;
  display: block;
  margin: 0 auto;
  max-width: 480px;
  max-height: 640px;
  border: 1px solid #05054b;
}

#interactive.viewport canvas, video {
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0;
}


#interactive.viewport canvas.drawingBuffer, video.drawingBuffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}



@media only screen and (orientation: landscape) {

  #interactive.viewport {
    max-width: 640px;
    max-height: 480px;
  }

}




.controls {
  background: #fff;
  padding: 1rem 0.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  /* flex-wrap: wrap; */
  /* flex-basis: 100%; */
  box-sizing: border-box;
  height: auto;
  flex: 1;
  font-family: 'BootsSharp', sans-serif;
}

.controls__inputs {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  flex-basis: 100%;
  box-sizing: border-box;
  height: auto;
  flex: 1;
  padding: 0.5rem 0.5rem 0 0.5rem;
  font-family: 'BootsSharp', sans-serif;
  /* max-width: 75%; */
}


.controls__buttons {
  padding: 1rem;
  min-width: 25%;
  display: flex;
  align-items: center;
}








.controls__submit {
  background: #82c91e;
  padding: 0.5rem 1rem;
  border: none;
  color: #fff;
  border-radius: 5px;
  width: 100%;
  box-shadow: 0 1px 3px rgb(0 0 0 / 50%);
  -webkit-appearance: none;
  -webkit-border-radius: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.controls__submit:disabled,
.controls__submit[disabled]{
  background: #ccc;
  color: #999;
}


.controls__label {
  margin: 0 1rem 0 0;
  padding: 0.25rem;
  font-size: 0.8rem;
  line-height: 1rem;
  align-self: center;
  white-space: nowrap;
}

.controls__input {
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: 'BootsSharp', sans-serif;
  padding: 0.5rem;
  margin: 0;
  display: block;
  min-width: 50%;
  box-shadow: inset 0 0 3px rgb(0,0,0,0.1);
}

.controls p {
  border: none;
  padding: 0;
  width: 100%;
  margin: 0 0 0.5rem 0;
  display: flex;
  flex-direction: row;
  text-align: right;
  justify-content: flex-end;
  align-items: center;

}

.controls__icon {
  margin-left: -25px;
  margin-right: 15%;
}

.fa-exclamation-circle {
  color: #ff922b;
}

.fa-check-circle {
  color: #82c91e;
}

@media only screen and (min-width: 640px) {

  .controls__inputs {
    flex-direction: row;
  }

  .controls p {
    flex: 0 0 50%;
  }


}


@media only screen and (min-width: 768px) {

  .controls__inputs {
    max-width: 75%;
  }

  .controls__buttons {
    max-width: 25%;
  }

  .controls {
    flex-direction: row;
  }

  .controls__buttons input {
    padding: 0.5rem 1rem;
  }

}

.button {
  padding: 0.5rem 1rem;
  border: none;
  color: #fff;
  border-radius: 5px;
  width: auto;
  box-shadow: 0 1px 3px rgb(0 0 0 / 50%);
  -webkit-appearance: none;
  -webkit-border-radius: none;
  font-size: 1.2rem;
  text-decoration: none;
  display: block;
  margin-bottom: 2rem;
}

.button--new {
  background: #ff922b;
  width: 100%;
  cursor: pointer;
}

.button--complete {
  background: #82c91e;
  width: 100%;
  cursor: pointer;
}

.logo {

  margin: 2rem auto;
  display: block;
  max-width: 250px;
}

.scanner__window {
  border-radius: 0px;
  overflow: hidden;
  background: transparent;
}

header button {
  background: transparent;
  border: none;
  cursor: pointer;
}
header form {
  margin: 0;
  padding: 0;
  align-self: center;
}


.login__label {
  margin: 0 1rem 0 0;
  padding: 0.25rem;
  font-size: 1rem;
  line-height: 1rem;
  align-self: center;
  white-space: nowrap;
}

.login__input {
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: 'BootsSharp', sans-serif;
  padding: 0.5rem;
  margin: 0;
  display: block;
  min-width: 50%;
  box-shadow: inset 0 0 3px rgb(0,0,0,0.1);
}

.login p {
  border: none;
  padding: 0;
  width: 100%;
  margin: 0 0 0.5rem 0;
  display: flex;
  flex-direction: row;
  text-align: right;
  justify-content: center;
  align-items: center;

}

.login h1 {
  color: #05054b;
}

.login {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1em;
}

.login__button {
  background: #05054b;
  width: 50%;
  margin: 1em auto;
}