@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
@keyframes stroke {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes scale {
  0%,
  to {
    transform: none;
  }
  50% {
    transform: scaleX(1);
  }
}
@keyframes fill {
  to {
    transform: scale(1);
  }
}
@keyframes scale-up-center {
  0% {
    transform: scale(0.01);
  }
  to {
    transform: scale(1);
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes expand-height {
  from {
    height: 65px;
  }
  to {
    height: 200px;
  }
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-wrapper,
body,
html {
  height: 100%;
  margin: 0;
  overflow: hidden;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.main-wrapper,
body {
  background-color: #fff;
  color: #232323;
  font-family: -apple-system, system-ui, blinkmacsystemfont, Segoe UI, roboto, oxygen, ubuntu, Helvetica Neue, arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-style: normal;
}

#content {
  align-items: center;
  background-color: #fafafa;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 65px;
  justify-content: space-between;
  position: relative;
  user-select: none;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  transition: height 0.5s ease-in-out;
}
@media (prefers-color-scheme:dark) {
  #content {
    border-color: #797979;
    background-color: #232323;
    color: #fff;
  } 
 
}

#branding {
  display: inline-flex;
  flex-direction: column;
  margin: 0 16px 0 0;
  text-align: right;
  align-self: flex-end;
  position: absolute;
  bottom: 10px;
  right: 10px;
}

#spinner-i {
  animation: spin 5s linear infinite;
  display: flex;
  height: 30px;
  width: 30px;
}

.checkbox-container {
  display: flex;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  height: 65px;
}

.cb-c {
  align-items: center;
  cursor: pointer;
  display: flex;
  max-width: 68%;
  text-align: left;
}

.cb-lb {
  display: grid;
  place-items: center;
}

.cb-lb input {
  cursor: pointer;
  grid-area: 1/1;
  height: 24px;
  margin: 0;
  opacity: 0;
  width: 24px;
  z-index: 10;
}

.cb-lb input:active ~ .cb-i,
.cb-lb input:focus ~ .cb-i {
  border: 2px solid #c44d0e;
}

.cb-lb .cb-i {
  animation: scale-up-center 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
  background: #fff;
  border: 2px solid #6d6d6d;
  border-radius: 3px;
  box-sizing: border-box;
  grid-area: 1/1;
  height: 24px;
  transition: all 0.1s ease-in;
  width: 24px;
  z-index: 9;
}

.cb-lb .cb-i:after {
  border-radius: 5px;
  content: "";
  position: absolute;
}

.cb-lb .cb-lb-t {
  grid-column: 2;
  margin-left: 8px;
  display: flex;
  flex-flow: row-reverse nowrap;
  place-content: center flex-end;
  align-items: center;
  user-select: none;
}

#verifying {
  align-items: center;
  display: none;
  visibility: hidden;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  height: 65px;
}

#verifying-msg {
  display: flex;
  align-items: center;
}

#verifying-text {
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 0 10px;
  text-align: inherit;
}

.circle {
  stroke-width: 3px;
  stroke-linecap: round;
  stroke: #038127;
  stroke-dasharray: 0, 100, 0;
  stroke-dashoffset: 200;
  stroke-miterlimit: 1;
  stroke-linejoin: round;
}

#logo {
  height: 25px;
  margin-bottom: 1px;
}

#terms {
  color: #232323;
  display: inline-flex;
  font-size: 8px;
  font-style: normal;
  justify-content: flex-end;
  line-height: 10px;
}



#terms .link-spacer {
  margin: 0 0.2rem;
}

#terms a {
  display: inline-block;
}

#terms a,
#terms a:link,
#terms a:visited {
  color: #232323;
  font-size: 8px;
  font-style: normal;
  font-weight: 400;
  line-height: 10px;
  text-decoration: underline;
}

#terms a:active,
#terms a:focus,
#terms a:hover {
  color: #166379;
  text-decoration: underline;
}

.logo-text {
  fill: #000;
}

@media (prefers-color-scheme:dark) {
  #terms a,
  #terms a:link,
  #terms a:visited{
    color: #bbb;
  }
  .logo-text {
    fill: #fff;
  }
}


#qr {
  fill: #232323;
}

#instructions {
  width: 85%;
  margin: 0 auto;
  display: none;
  opacity: 0;
  top: -30px;
  animation: slide-in 0.5s ease-out forwards;
  animation-delay: 0.5s;
  position: relative;
}

#instructions h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0;
  color: #333;
  text-align: center;
}

@media (prefers-color-scheme:dark) {
  #instructions h2 {
    color: #fff;
  }
}

#instructions ol {
  padding-left: 20px;
  margin: 10px 0;
}

#instructions li {
  margin-bottom: 8px;
  line-height: 1.4;
  font-size: 13px;
}

.key {
  display: inline-flex;
  align-items: center;
  padding: 1px 4px;
  margin: 0 2px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  font-family: monospace;
  font-size: 12px;
}

@media (prefers-color-scheme:dark) {
  .key {
    color: #000;
  }
}

.windows-logo {
  height: 12px;
  width: 12px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  margin-bottom: 1px;
}

.key-container {
  position: relative;
  display: inline-block;
}

.help-mark {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 12px;
  height: 12px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 50%;
  font-size: 9px;
  line-height: 12px;
  text-align: center;
  font-weight: bold;
  cursor: help;
  z-index: 10;
}

.tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 125%;
  right: -145px;
  width: 160px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 4px;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 20;
  pointer-events: none;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 15px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.help-mark:hover + .tooltip {
  visibility: visible;
  opacity: 1;
}

iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

/* Hidden textarea for clipboard operations */
#clipboard-text {
  position: absolute;
  left: -9999px;
  top: 0;
}

@media (prefers-color-scheme:dark) {
  .main-wrapper, body {
    background-color: #222 !important;
  }
}