::selection {
  background: #2D2F36;
  color: white;
}

::-webkit-selection {
  background: #2D2F36;
  color: white;
}

::-moz-selection {
  background: #2D2F36;
  color: white;
}

body {
  background: white;
  margin: 0;
  padding: 20px;
  min-width: 320px;
}

input {
  cursor: text;
}

.language-selector {
  position: absolute;
  right: 1em;
  top: 1em;
  text-transform: capitalize;
  user-select: none;
  -webkit-user-select: none;
  /* for Safari */
}

.page {
  background: #e2e2e5;
  display: flex;
  flex-direction: column;
  height: calc(100% - 40px);
  position: absolute;
  place-content: center;
  width: calc(100% - 40px);
  min-width: 320px;
}

@media (max-width: 767px) {
  .page {
    height: auto;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 320px;
  margin: 0 auto;
  width: 640px;
}

@media (max-width: 767px) {
  .container {
    flex-direction: column;
    height: calc(100vh - 60px);
    min-height: 640px;
    width: 320px;
  }
}

.left {
  background: white;
  height: calc(100% - 40px);
  position: absolute;
  width: 280px;
  max-height: 280px;
  transition: transform 0.5s ease-out;
  overflow: hidden;
  /* transition-delay: 0.1s; */
  transform: translate(-50%, 0);
}

.left.center {
  /* transition-delay: 0s; */
  transform: translate(0, 0);
}

.left * {
  transition: color 0.1s ease, opacity 0.1s ease;
  transition-delay: 0.5s;
}

.left.text-hidden * {
  color: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition-delay: 0s;
}

@media (max-width: 767px) {
  .left {
    height: 100%;
    transform: translate(0, -50%);
  }
}

.title {
  font-size: 50px;
  font-weight: 900;
  margin: 50px 40px 40px;
  user-select: none;
  -webkit-user-select: none;
  /* for Safari */
}

.description {
  color: #999;
  font-size: 14px;
  line-height: 1.5;
  margin: 40px;
  user-select: none;
  -webkit-user-select: none;
  /* for Safari */
}

.right {
  background: #474A59;
  box-shadow: 0px 0px 40px 16px rgba(0, 0, 0, 0.22);
  color: #F1F1F2;
  position: relative;
  width: 50%;
  height: 100%;
  max-height: 320px;
  transition: transform 0.5s ease-out;
  transform: translate(50%, 0);
}

.right.center {
  transform: translate(0, 0);
}

@media (max-width: 767px) {
  .right {
    flex-shrink: 0;
    height: 100%;
    width: 100%;
    left: 0;
    transform: translate(0, 50%);
  }
}

.right-cover {
  background: #474A59;
  box-shadow: 0px 0px 40px 16px rgba(0, 0, 0, 0.22);
  color: #F1F1F2;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  opacity: 1;
  transition: opacity 0.2s;
  transition-delay: 0.2s;
}

.right-cover.hidden {
  opacity: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  /* for Safari */
}

.otp {
  position: absolute;
  height: 3em;
  width: 3em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  overflow-y: auto;
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  user-select: text;
  -webkit-user-select: text;
  /* for Safari */
}

.otp>* {
  flex-basis: calc(var(--flex-basis-in-percentage, calc(100 / 3)) * 1%);
  /* fallback to 3 characters per row */
  flex-grow: 1;
  /* this will center align last line if there are total 5 characters */
  text-align: center;
}

.barcode {
  position: absolute;
  height: 3em;
  width: 3em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
}

.timestamp-info {
  position: relative;
  top: -2em;
  display: inherit;
  text-align: center;
  text-transform: capitalize;
}

.timestamp-info.expired {
  color: red;
}

svg {
  position: absolute;
  width: 320px;
}

path {
  fill: none;
  stroke: url(#linearGradient);
  stroke-width: 4;
  stroke-dasharray: 240 1386;
}

form {
  margin: 40px;
  position: absolute;
  width: calc(100% - 80px);
}

form label {
  color: #c2c2c5;
  display: block;
  font-size: 14px;
  height: 16px;
  margin-top: 22px;
  margin-bottom: 0px;
  user-select: none;
  -webkit-user-select: none;
  /* for Safari */
}

/* fix for iOS svg align problem */
@supports (-webkit-overflow-scrolling: touch) {
  form label {
    margin-top: 15px;
  }
}

input {
  background: transparent;
  border: 0;
  color: #f2f2f2;
  font-size: 20px;
  height: 30px;
  line-height: 30px;
  outline: none !important;
  width: 100%;
}

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

input::selection {
  background: #0099ff;
}

#submit {
  color: #707075;
  margin-top: 40px;
  transition: color 300ms;
  cursor: pointer;
  height: 50px;
}

#submit:hover,
#submit:focus {
  color: #f2f2f2;
}

@media (max-width: 767px) {
  #submit {
    color: #f2f2f2;
  }
}

#submit:active {
  color: #0099ff;
}

/* spinkit */
.spinner {
  width: 40px;
  height: 40px;
  margin: 100px auto;
  background-color: white;

  border-radius: 100%;
  -webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
  animation: sk-scaleout 1.0s infinite ease-in-out;
}

@-webkit-keyframes sk-scaleout {
  0% {
    -webkit-transform: scale(0)
  }

  100% {
    -webkit-transform: scale(1.0);
    opacity: 0;
  }
}

@keyframes sk-scaleout {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  100% {
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
    opacity: 0;
  }
}

/* floating label */
.floating-label-group label {
  pointer-events: none;
  transform: translateY(20px);
  font-size: 20px;
  transition: transform 0.2s, font-size 0.2s;
}

.floating-label-group:focus-within label,
.floating-label-group.floating label {
  transform: translateY(0);
  font-size: 14px;
}

/* live-indicator */
.live-indicator {
  user-select: none;
  -webkit-user-select: none;
  /* for Safari */
}

.live-indicator span {
  color: #0099ff;
  position: absolute;
  bottom: 50%;
  left: 5%;
  width: 12px;
  transform: translateY(50%);
  font-size: 12px;
  padding: 2px;
}

.live-indicator span::before {
  content: "";
  background-color: #0099ff;
  display: block;
  position: absolute;
  left: 50%;
  width: 4px;
  height: 4px;
  padding: 2px;
  margin: 4px 0 4px 0;
  transform: translateX(-50%) translateY(-200%);
  border-radius: 100%;
  animation: heartbeat 1000ms linear infinite running;
}

.live-indicator.hidden {
  display: none;
}

/* username-indicator */
.username-indicator {
  user-select: none;
  -webkit-user-select: none;
  /* for Safari */
}

.username-indicator span {
  position: absolute;
  right: 5%;
  font-size: 1em;
  bottom: 50%;
  opacity: .2;
  padding: 2px;
  transform: translateY(50%);
  transition: opacity .2s ease;
  max-height: 80%;
  overflow: hidden;
}

.username-indicator span:hover,
.username-indicator span:focus {
  opacity: 1;
}

.username-indicator.hidden {
  display: none;
}

.username-indicator span.vertical-rl-responsive {
  writing-mode: vertical-rl;
}

@media (max-width: 767px) {
  .username-indicator span {
    bottom: 2em;
    left: 50%;
    right: unset;
    width: unset;
    transform: translateX(-50%);
    max-width: 80%;
  }

  .username-indicator span.vertical-rl-responsive {
    writing-mode: unset;
  }
}

@keyframes heartbeat {
  0% {
    opacity: .4;
    box-shadow: 0 0 0 transparent, inset 0 0 0 transparent;
  }

  5% {
    opacity: 1;
    box-shadow: 0 0 10px #0099ff, inset 0 0 4px #0099ff;
  }

  100% {
    opacity: .4;
    box-shadow: 0 0 0 transparent, inset 0 0 0 transparent;
  }
}

/* fade-target */
@keyframes fade {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.fade-target-out {
  animation: fade 500ms ease-in-out;
}

.fade-target-in {
  animation: fade 500ms ease-in-out;
  animation-direction: reverse;
}

/* badge */
.badge {
  /* only display when using hCaptcha */
  display: none;
  position: fixed;
  bottom: 5vmin;
  width: 200px;
  text-align: center;
  left: 0;
  background-color: white;
  border-radius: 3px;
  box-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.08);
  margin: 5px;
  transform: translateX(-68%);
  transition: 0.2s transform ease;
}

.badge.show {
  display: initial;
}

.badge:hover,
.badge:focus {
  transform: translateX(0);
}

/* avoid fighting :hover selector on gap between window */
.badge::before {
  position: absolute;
  width: 5px;
  height: 100%;
  left: -5px;
  content: "";
}

.badge .banner {
  width: calc(70% - 10px);
  background-color: rgb(10, 193, 194);
  color: white;
  height: 100%;
  position: absolute;
  border-radius: 3px 0 0 3px;
}

.badge .banner .headline {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 5%;
}

.badge .banner .links {
  font-size: 0.7em;
  margin-top: 5%;
}

.badge .banner .links a {
  color: white;
}

.badge .logo {
  float: right;
  width: 30%;
  margin: 5px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.badge .logo .hint {
  font-size: 8px;
  white-space: nowrap;
  transition: 0.2s max-height ease;
  max-height: 100%;
  overflow: hidden;
  margin-top: 2px;
}

.badge:hover .logo .hint,
.badge:focus .logo .hint {
  max-height: 0;
}

/* logo img crop */
.badge .logo img {
  object-fit: cover;
  object-position: 0 0;
  overflow: hidden;
  height: 54px;
  width: 54px;
}

/* captcha switch link */
.captcha-switch-link {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  color: grey;
  width: 100%;
  text-align: center;
  display: none;
}

.captcha-switch-link.show {
  display: initial;
}

/* copy button */
.btn-copy {
  cursor: pointer;
  position: absolute;
  width: 8em;
  bottom: 1em;
  left: 50%;
  transform: translate(-50%, 0px);
  font-size: 1rem;
  padding: 0.2rem 2rem;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: 0.5s box-shadow ease, 0.5s margin ease;
  user-select: none;
  -webkit-user-select: none;
  /* for Safari */
}

.btn-copy:hover,
.btn-copy:focus {
  box-shadow: 0 15px 10px -10px rgba(31, 31, 31, 0.5);
}

@media (max-width: 767px) {
  .btn-copy {
    width: 2em;
    height: 5em;
    bottom: 50%;
    right: 5%;
    left: unset;
    transform: translate(0px, 50%);
    padding: 1rem 0;
  }

  .btn-copy .vertical-rl-responsive {
    writing-mode: vertical-rl;
  }
}

.uppercase {
  text-transform: uppercase;
}

.capitalize {
  text-transform: capitalize;
}

.vertical-rl {
  writing-mode: vertical-rl;
}

.primary-color {
  stop-color: #0099ff;
}

.secondary-color {
  stop-color: #00eeff;
}

.tcaptcha {
  position: fixed;
  display: flex;
  right: 0;
  bottom: 5vmin;
  margin: 5px;
  box-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.08);
  transform: translateX(85%);
  transition: 0.2s transform ease;
}

/* avoid fighting :hover selector on gap between window */
.tcaptcha::after {
  position: absolute;
  width: 5px;
  height: 100%;
  right: -5px;
  content: "";
}

.tcaptcha:hover,
.tcaptcha:focus,
.tcaptcha.callout {
  transform: translateX(0);
}

/* fix padding below turnstile captcha */
.tcaptcha > * {
  display: grid;
}
