* {
  box-sizing: border-box;
}

body {
  font-family: Jost;
  width: 100%;
  margin: 0;
  padding: 8px;
  letter-spacing: 0.05em;
  color: #b80404;
  background-color: #f5f5f5;
}

.toast {
  font-size: 16px;
  position: fixed;
  right: 0;
  bottom: 8vh;
  left: 0;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  padding: 4px;
  text-align: center;
  color: #f5f5f5;
  border-radius: 20px;
  background-color: #e30909;
}

#app-icon {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  background-image: url(https://i.imgur.com/2hrqqrE.png);
  background-size: contain;
}

#app-version {
  font-size: x-small;
  position: fixed;
  bottom: 4px;
  width: 100%;
  text-align: center;
  color: #949494;
}

#calculator-container {
  max-width: 400px;
  min-height: 20px;
  margin: 0 auto;
  padding: 24px;
}

#github-ref {
  position: fixed;
  bottom: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  background: url(github-icon.png) no-repeat;
  background-size: contain;
  filter: invert(25%);
}

#header-container {
  font-size: 20px;
  font-weight: 500;
  position: relative;
  display: flex;
  min-width: 300px;
  max-width: 400px;
  height: 64px;
  margin: 0 auto;
  padding: 20px 12px 10px;
  color: #4c4c4c;
  border-bottom: solid 2px;
  border-color: #dedede;
  align-items: center;
}

#input-container {
  position: relative;
}

#input-container input {
  font-size: 20px;
  width: 100%;
  max-width: 400px;
  margin-bottom: 8px;
  text-align: left;
  color: #a0a0a0;
  border: none;
  background-color: transparent;
}

#input-container input::placeholder {
  font-size: 16px;
  color: #bbb;
}

#input-container input:focus {
  outline: none;
}

#input-secret-container {
    display: flex;
}

#input-secret {
    padding-left: 0;
}

#input-image-button,
#input-video-button {
  min-width: 24px;
  margin-left: 12px;
  background-size: contain;
  background-repeat: no-repeat;
}

#input-image-button {
  background-image: url(scan-image.png);
}

#input-video-button {
  background-image: url(scan-video.png);
}

#input-video-dialog {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #101010bd;
}

#input-video-container {
  position: relative;
  margin: 0 auto;
  top: 96px;
  left: 0;
  right: 0;
  width: min(100%, 300px);
  border-radius: 8px;
  border-style: solid;
  border-width: 2px;
  border-color: #212121;
  overflow: hidden;
}

#input-video-container:before {
  content: "";
  display: block;
  padding-top: 100%;
}

#input-video {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: #0e0e0e;
  object-fit: cover;
  transform: rotateY(180deg);
}

#light-switch {
  position: fixed;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: url(light-bulb.png) no-repeat;
  background-size: contain;
}

#more-button {
  width: 24px;
  height: 24px;
  margin-left: auto;
  background: url(more.png) no-repeat;
  
}

#more-button,
#input-image-button,
#input-video-button,
#light-switch
{
    background-size: contain;
    cursor: pointer;
    filter: invert(75%);
}

#otpauth-qr {
  position: relative;
  width: 256px;
  height: 256px;
  margin-top: 20px;
  margin-right: auto;
  margin-left: auto;
  cursor: pointer;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: #fff;
}

#otpauth-qr-image {
  width: 100%;
  height: 100%;
}

#otpauth-qr-overlay {
  font-size: 16px;
  position: absolute;
  top: 42%;
  right: 0;
  left: 0;
  width: 64%;
  margin: 0 auto;
  padding: 4px;
  text-align: center;
  color: #f5f5f5;
  border-radius: 20px;
  background-color: #e30909;
}

#totp-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  margin-bottom: 8px;
  cursor: pointer;
  color: #777777;
  height: 1em;
  transition: 0.2s;
}

#totp-token {
  font-size: 24px;
  font-weight: 500;
  height: 34px;
  cursor: pointer;
}

#totp-token-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

#totp-token-remaining-seconds-pie {
  display: block;
  width: 22px;
  height: 22px;
  margin-left: auto;
  transform: rotate(-90deg);
  border-radius: 50%;
}

#totp-token-remaining-seconds-pie > circle {
  transition: stroke-dashoffset 1s linear;
  stroke: #b80404;
  stroke-width: 100%;
  stroke-dasharray: 1;
  stroke-dashoffset: -1;
  fill: none;
}
