html {
  color: #222;
  line-height: 1.4;
}
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}
::selection {
  background: #b3d4fc;
  text-shadow: none;
}
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
textarea {
  resize: vertical;
}
b {
  font-weight: 700;
  font-style: bold;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body, h1, h2, h3 {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 1em;
  font-weight: 300;
  font-style: normal;
}
h1 {
  font-size: 2.2em;
  margin: 1em 0.5em;
  text-wrap: balance;
}
header {
  background-color: rgb(255, 213, 0);
  position: sticky;
  top: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 5;
  & div.row {
    padding: 15px 0px;
    display: flex;
  }
  & .logo {
    flex-grow: 1;
  }
  & .language {
    flex-grow: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  & button {
    font-size: 0.8rem;
  }
}
.container {
  max-width: 576px;
  width: 100%;
  padding: 0 1em;
  margin: 0 auto;
}
.amount {
  font-size: clamp(120px, 7vw, 150px);
  letter-spacing: -0.1em;
  position: relative;
  display: inline;
  margin: auto;
  font-weight: 100;
  line-height: 0.9;
}
.amount::before {
  content: "$";
  position: absolute;
  top: 25%;
  left: -15px;
  font-size: 36px;
}
.amount::after {
  content: "00";
  position: absolute;
  top: 20%;
  left: 110%;
  font-size: 36px;
  letter-spacing: 1px;
}
.form-check {
  margin: 10px 15px;
}
.btn {
  margin: 20px auto;
  display: block;
}
.btn-primary {
  background-color: gray;
  color: white;
}
.form-step-title {
  font-weight: 300;
  font-size: 1.5em;
  margin-bottom: 3em;
}
.form-control {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-style: normal;
  position: relative;
}
.form-label {
  display: block;
  text-align: left;
}
.form-select {
  font-size: 18px;
}
.field-message::after {
  /* content: 'TESTING'; */
  color: red;
  font-size: 12px;
  text-transform: uppercase;
  position: absolute;
  bottom: -15px;
}
.all-caps {
  text-transform: uppercase;
}
.return {
  text-align: left;
  fill: #999;
  padding: 5px 0px;
  margin-bottom: -30px;
}
#transaction {
  position: relative;
}
#success, #fail {
  display: none;
}
#waiting {
  visibility: hidden;
  background: rgba(0, 0, 0, 0.3);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  & div {
    animation: 1s linear infinite rotatearrows;
  }
}
@keyframes rotatearrows {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}
span.sp::after {
  content: "(" attr(spa) ")";
  color: rgb(0, 141, 218);
  font-size: 18px;
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: -25px;
  left: 0px;
}
#lan { position: relative; }
label[for='lan'] {
  font-size: 12px;
  font-weight: bold;
}
#cashpayment {
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  padding: 10px;
}

#cashpayment.collapsed {
  max-height: 0;
  padding: 0;
  border: none;
}

/* ============== ADMIN ===============*/
.empty {
  border: 0;
  background-color: transparent;
  width: auto;
  padding: 0;
  margin: 0;
}
.low-number, .high-number {
  max-width: 50px;
}
.phone, .name {
  max-width: 120px;
}
.row-template:first-of-type {
  display: none;
}
.payment-amounts {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 15px;
}
.rate {
  max-width: 70px;
}
/* ============== DRIVER ===============*/
#boot_number {
  font-size: 1.5em;
  font-weight: 300;
  text-align: center;
  margin: 1em 0;
}
#officer {
  font-size: 1.2em;
  font-weight: 300;
  text-align: center;
  margin: 1em 0;
}
#pic1 {
  opacity: 0;
  position: absolute;
  z-index: -1;
}
/* Style the preview container */
#preview {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#preview img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  border: 2px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.earned {
  font-size: 2.5em;
  font-weight: 800;
  text-align: center;
  margin: 0.5em 0;
  color: red;
  position: relative;
}
.earned::before {
  content: "EARNED";
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.5cap;
  color: black;
  position: relative;
  bottom: -0.5em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* ==========================================================================
   Helper classes
   ========================================================================== */
.hidden,
[hidden] {
  display: none !important;
}
.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}
.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}
.invisible {
  visibility: hidden;
}
.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/*==================================================
=                Mobile First Method               =
==================================================*/

/* Small devices (landscape phones, 576px and up) */
@media only screen and (min-width: 576px) {
  
}

/* Medium devices (tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  
}

/* Large devices (desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  
}

/* X-Large devices (large desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media only screen and (min-width: 1400px) {
  
}

@media only screen and (min-width: 35em) {
  
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

