@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap"); /* Base */
* {
  box-sizing: border-box;
  font-family: "DM Sans", sans-serif;
}

body {
  position: relative !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  font-family: var(--body-font-family);
  font-size: 16px;

  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

nav {
  margin: 0 auto;
  width: 100vw;
  max-width: var(--body-width);
  padding: 2vh;
}

footer {
  margin: 0 auto;
  padding: 2vh;
  width: 100vw;
  max-width: var(--body-width);
}

@media (max-width: 480px) {
  footer {
    padding: 0;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0.38rem;
  margin-bottom: var(--margin);
}
h1 {
  font-size: 27px;
}
h4 {
  font-weight: 500;
  font-size: 1.1em;
}

.title {
  font-size: 3.8em;
}

@media (max-width: 480px) {
  .title {
    font-size: calc(3em + 0.1vh);
  }
}

.redirect-link-container {
  margin-top: 16px;
  display: flex;
}

.redirect-link-container > a {
  vertical-align: top;
  text-decoration: underline;
}

.status-header {
  display: flex;
  align-items: center;
  margin-top: 10px;
  font-size: 1.62em;
  justify-content: center;
}

.status-text {
  text-transform: capitalize;
}

.status-text.pending,
.status-text.processing {
  color: var(--cyan-4);
}

.status-text.succeeded,
.status-text.verified {
  color: var(--green-4);
}

.status-text.requires_action {
  color: var(--yellow-4);
}

.status-text.canceled,
.status-text.error,
.status-text.unverified {
  color: var(--red-4);
}

.status-icon {
  margin-right: 0.38em;
  width: 16px;
  height: 16px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Nav */
.nav-content {
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .nav-content {
    flex-direction: column;
  }
}

.nav-content a {
  color: white;
  font-size: 20px;
}

.nav-logo {
  background-image: url(../media/rocket-rides.svg);
}

.nav-right {
  display: flex;
  align-items: center;
}

@media (max-width: 480px) {
  .nav-right {
    margin-top: var(--margin);
  }
}

.nav-content .divider {
  margin: 0 var(--margin);
}

/* Layout */
.sr-root {
  display: flex;
  flex-direction: row;
  width: 100vw;
  max-width: var(--body-width);
  align-content: center;
  justify-content: center;
  height: auto;
  min-height: 100vh;
  margin: 0 auto;
}
.sr-header {
  margin-bottom: 32px;
}
.sr-verification-summary {
  margin-bottom: 20px;
  text-align: center;
}
.heroContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  flex-direction: column;
}
.footer p {
  text-align: center;
}

.sr-main,
.sr-content {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0 2vh;
  flex-wrap: wrap;

  height: auto;
  min-height: 0.62vh;
}
.hero-img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70%;
}
.hero-img img {
  width: 100%;
}

@media (max-width: 760px) {
  .sr-main {
    padding: 8vh 2vh;
  }
}

@media (max-width: 340px) {
  .sr-main {
    padding: 8vh 2vh;
  }
}

.sr-content {
  padding-left: 48px;
}
.sr-header__logo {
  background-image: var(--logo-image);
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  width: 100%;
}
.sr-legal-text {
  color: var(--gray-light);
  text-align: center;
  font-size: 13px;
  line-height: 17px;
  margin-top: 12px;
}
.sr-field-error {
  color: var(--accent-color);
  text-align: left;
  font-size: 13px;
  line-height: 17px;
  margin-top: 12px;
}
#shareButton {
  cursor: pointer;
}

/* Annotation */
.annotation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px;
  margin: 0;
  width: 100%;
  padding: 10px 22px;
  background-color: var(--background-light);
  box-shadow: 0 13px 27px -5px rgba(50, 50, 93, 0.25),
    0 8px 16px -8px rgba(0, 0, 0, 0.3);
  font-size: calc(14px + 0.1vh);
  font-weight: bold;
  line-height: 22px;
}

@media (max-width: 720px) {
  .annotation {
    position: fixed;
    bottom: 0;
    left: 0;
    transform: none;
    flex-flow: row wrap;
    border-radius: 0;
  }
}

.annotation p {
  margin: 0;
  font-size: calc(13px + 0.1vh);
  font-weight: 400;
  color: #6a7c94;
}

@media (max-width: 720px) {
  .annotation p {
    order: 1;
    margin: 10px 0 0;
  }
}

.annotation a {
  font-weight: 400;
  color: #666ee8;
}

.annotation a.github {
  background-image: url(../media/arrow-purple.svg);
}

.annotation a.stripe {
  flex: 0 0 53px;
  margin-right: 10px;
  background: url(../media/stripe.svg) center center no-repeat;
  text-indent: -9999px;
}

/* Form */
.sr-form-row {
  margin: 16px 0;
}
label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  display: inline-block;
}

/* Inputs */
.sr-input,
.sr-select,
input[type="text"] {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 5px 12px;
  height: 44px;
  width: 100%;
  transition: box-shadow 0.2s ease;
  background: white;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
}

.sr-input::placeholder,
input[type="text"]::placeholder {
  color: var(--gray-light);
}

/* Buttons and links */
.scan-button {
  display: block;
  margin-top: 16px;
  border: 0;
  border-radius: 15px;
  padding: 12px 16px;
  width: 38%;
  background: #000000;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

@keyframes modalDrop {
  from {
    top: -100%;
    opacity: 0;
  }
  to {
    top: 50%;
    opacity: 1;
  }
}

.modal {
  display: flex;
  position: fixed;
  justify-content: center;
  align-items: center;
  min-width: 50vw;
  min-height: fit-content;
  border-radius: 30px;
  padding: 5vw;
  animation: modalDrop 0.5s;

  flex-direction: column;

  background: #fff;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  top: 50%;
  gap: 3vw;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.preview {
  width: 80%;

  padding: 10px;
  background-color: #efeef3;

  border-radius: 20px;
  border: 3px dashed #bec0da;
  display: flex;
  justify-content: center;
  align-items: center;
}
#blah {
  width: 50%;
}
.upload-btn {
  width: 80%;
  border-radius: 10px;
  background-color: #000;
  color: #fff;
  font-size: 1.5vw;
  padding: 3px;
}
form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
form input {
  width: 100%;
}

.backdrop {
  width: 100vw;
  height: 100vh;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
}

.sr-verification-form button,
.fullwidth {
  width: 100%;
}

.button-container {
  display: flex;
}

.button-container button {
  margin-right: 10px;
  width: auto;
  min-width: 16vh;
}

@media (max-width: 768px) {
  .modal {
    padding: 10%;
    width: 85vw;
    margin: auto;
  }
  .modal h2 {
    font-size: 4vw;
  }
  .modal h1 {
    font-size: 6vw;
  }
  .preview {
    min-height: 60vw;
    max-height: 65vw;
  }
  #blah {
    width: 100%;
  }
  .upload-btn {
    font-size: 5vw;
  }
  form {
    width: 100%;
  }
  .heroContainer {
    width: 100%;
  }
  .scan-button {
    width: 100%;
  }
  .footer p {
    font-size: 3vw;
    line-height: 1.6;
  }
  .button-container {
    flex-direction: column;
  }
  .button-container button {
    width: 100%;
    min-width: 16vw;
  }
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  filter: brightness(0.8);
  text-decoration: underline;
}

a:active {
  filter: brightness(0.5);
}

a.arrow {
  padding-right: 20px;
  background-image: url(../media/arrow-white.svg);
  background-position: right center;
  background-repeat: no-repeat;
}

/* Code block */
code,
pre {
  font-family: "SF Mono", "IBM Plex Mono", "Menlo", monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.sr-callout {
  background: var(--gray-offset);
  padding: 12px;
  border-radius: var(--radius);
  overflow: auto;
}

.response-json {
  position: relative;
  margin-top: 0;
  max-height: 38vh;
  font-size: 1.18em;
}

/* Stripe Element placeholder */
.sr-card-element {
  padding-top: 12px;
}

/* Responsiveness */
@media (max-width: 720px) {
  .sr-root {
    flex-direction: column;
    padding: 2vh;
    min-width: 320px;
  }

  .sr-header__logo {
    background-position: center;
  }

  .sr-content {
    display: none;
  }

  button {
    width: 100%;
  }
}

.spinner,
.spinner:before,
.spinner:after {
  border-radius: 50%;
}
.spinner {
  color: #ffffff;
  font-size: 22px;
  text-indent: -99999px;
  margin: 0px auto;
  position: relative;
  width: 20px;
  height: 20px;
  box-shadow: inset 0 0 0 2px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.spinner:before,
.spinner:after {
  position: absolute;
  content: "";
}
.spinner:before {
  width: 10.4px;
  height: 20.4px;
  background: var(--accent-color);
  border-radius: 20.4px 0 0 20.4px;
  top: -0.2px;
  left: -0.2px;
  -webkit-transform-origin: 10.4px 10.2px;
  transform-origin: 10.4px 10.2px;
  -webkit-animation: loading 2s infinite ease 1.5s;
  animation: loading 2s infinite ease 1.5s;
}
.spinner:after {
  width: 10.4px;
  height: 10.2px;
  background: var(--accent-color);
  border-radius: 0 10.2px 10.2px 0;
  top: -0.1px;
  left: 10.2px;
  -webkit-transform-origin: 0px 10.2px;
  transform-origin: 0px 10.2px;
  -webkit-animation: loading 2s infinite ease;
  animation: loading 2s infinite ease;
}
@-webkit-keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Animated form */

.sr-root {
  animation: 0.4s fade-in;
  animation-fill-mode: both;
  animation-timing-function: ease;
}

.sr-verification-form .sr-form-row {
  animation: 0.4s field-in;
  animation-fill-mode: both;
  animation-timing-function: ease;
  transform-origin: 50% 0%;
}

.hide {
  animation: 0.4s fade-out;
  animation-fill-mode: both;
  animation-timing-function: ease;
}

.unhide {
  animation: 0.4s fade-in;
  animation-fill-mode: both;
  animation-timing-function: ease;
}

.hidden {
  display: none;
  height: 0;
  transition: height 0.38s ease-in-out;
}

@keyframes field-in {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes expand-in {
  0% {
    opacity: 0;
    transform: scale(0.98, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.98, 0);
  }
}

/* Progress */

.progress-bar {
  margin-bottom: 1.8em;
  border: 1px solid rgba(21, 182, 124, 0.18);
  border-radius: 4px;
  width: 100%;
}

.progress {
  width: 5%;
  height: 1em;
  border-radius: 4px;
  background: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%
      )
      left/30px 30px repeat-x,
    linear-gradient(to right, #0c6d4a, var(--accent-color) 62%)
      left/var(--p, 100%) fixed,
    var(--background-color);
  animation: progress-change 1s linear infinite;
  transition: width 0.68s ease-in-out;
}

@keyframes progress-change {
  from {
    background-position: 0 0, left;
  }
  to {
    background-position: 30px 0, left;
  }
}

/* Animations */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }

  to {
    transform: scale(1);
  }
}

@keyframes zoomOut {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(0.8);
  }
}
