* {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.full-height-container {
  min-height: 100vh;
  /* Minimum height of 100% of the viewport height */
}

body {
  background-color: #101010;
  /* background-color: #202022; */
  color: #C1CCCC;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
}

textarea,
input[type="text"],
input[type="password"],
select {
  background-color: #080808;
  border: #333333 1px solid;
  color: #D7983D;
  border-radius: 3px;
  padding: 4px;
}

textarea.monospace {
  font-family: monospace;
}


input[type="password"] {
  font-family: monospace;
  font-size:medium;
  max-width: 32ch;
  width: 80%;
  padding: 4px;
}

select {
  font-family: monospace;
  font-size:medium;
  max-width: 32ch;
  width: 80%;
  padding: 4px;  
}

.form-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-row-gap: 2px;
  grid-column-gap: 1em;
  align-items: first baseline;
  padding-right: 0.2ch;
}

.form-grid .title {
  text-align: left;
  /* Optional: for right-aligned labels */
}

button {
  width: 20ch;
  background-color: #505050;
  color: antiquewhite;
  border: #333333 1px solid;
  border-radius: 3px;
  padding: 0.5em;
  font-size: 1rem;
  cursor: pointer;
}

button:active {
  background-color: #3f3b36;
}

button:hover {
  background-color: #5a5a5a;
  color: #ffefdb;
}

button:disabled {
  background-color: #333230;
  color: #909090;
  cursor: auto;
}

#outputQrcodeContainer {
  font-family: monospace;
  display: inline-block;
  max-width: 64ch;
  align-items: center;
  padding: 10px;
  aspect-ratio: 1/1;

  background-color: #505050;
  border: #333333 1px solid;
  padding: 0.5em;
  border-radius: 3px;
}

#outputQrcode {
  border: #18181A solid 1px;
}

.blurred .qrcode {
  filter: blur(4px);
}

.qrcode {
  box-sizing: border-box;
  /* Include padding in the width and height calculations */
  display: flex;
  /* Use flexbox to center the image */
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Center vertically */
  /* border: 1px solid black; Optional: for visualizing the container */
}

.qrcode canvas {
  max-width: 100%;
  /* Max width is 100% of the container */
  max-height: 100%;
  /* Max height is 100% of the container */
  display: block;
  /* Remove default inline behavior */
  object-fit: contain;
  /* Ensure the image aspect ratio is maintained */
  border: 8px solid white;
  box-sizing: border-box;
  /* Include padding in the width and height calculations */
}

.qrcode img {
  max-width: 100%;
  /* Max width is 100% of the container */
  max-height: 100%;
  /* Max height is 100% of the container */
  display: block;
  /* Remove default inline behavior */
  object-fit: contain;
  /* Ensure the image aspect ratio is maintained */
  border: 8px solid white;
  box-sizing: border-box;
  /* Include padding in the width and height calculations */
}


button.qrcode-container {
  width: auto;
  /* width: 20ch;
    background-color: #505050;
    color: antiquewhite;
    border: #333333 1px solid;
    padding: 4px;
   
    width: auto;
    background-color: white;
    display: inline-block;
    aspect-ratio: 1 / 1; 
    padding: 10px; */
}

button.qrcode-container:active {
  background-color: #3f3b36 !important;
}

.password-display {
  display: flex;
  /* align-items: center; */
  align-items: first baseline;
}

.password-display .hint .mark {
  margin: 0 0 0 4px;
  font-size: small;
}

.password-display .hint {
  font-size: small;
}

.password-display .hint.ok .mark {
  color: greenyellow;
}

.password-display .hint.wrong .mark {
  color: coral;
}

.password-display .hint.wrong {
  color: #aa7f62;
}

.password-display:not(.wrong) .hint.wrong,
.password-display:not(.ok) .hint.ok {
  display: none;
}

.password-display.ok .hint.ok,
.password-display.wrong .hint.wrong {
  display: inline-block;
}


textarea.result {
  color: #9CDCF0;
}

textarea.error-result {
  color: #dd473c;
}

.hidden {
  display: none !important;
}

.print-only {
  display: none;
}




/****************************************/
/* * {
        box-sizing: border-box;
    } */

/* *:focus,
    input:focus+label {
        outline: none;
        box-shadow: inset 0 0 0 5px lightBlue;
    }
 */

.tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto 20px;
  border-radius: 10px 10px 0 0;
}

.radiotab {
  position: absolute;
  opacity: 0;
}

.tablabel {
  padding: 1em 2em;
}

.tabfiller {
  display: flex;
  align-items: center;
}

.tablabel {
  width: 100%;
  background: #181819;
  cursor: pointer;
  font-weight: 600;
  color: #7f7f7f;
  transition: background .15s, color .15s;
  border: none;
  border-radius: 0;
  text-align: center;
}


.tablabel:hover {
  /* background: #202022; */
  color: #a1845b;

}

.tablabel:active {
  background: #404040;
}

.radiotab:checked+.tablabel {
  background: #202022;
  color: #f0f0f0;
  /* border-top: solid 1px #000;
  border-left: solid 1px #000;
  border-right: solid 1px #000;*/
  border-bottom: none;
}

.tabpanel {
  display: none;
  padding: 1ch 1ch 1ch 1ch;
  background: #202022;
  width: 100%;
  /* border-left: solid 2px #f00;
  border-bottom: solid 2px #f00;
  border-right: solid 2px #f00; */
}

.radiotab:checked+.tablabel+.tabpanel {
  display: block;
}

.tabpanel {
  order: 99;
}

.tablabel,
.tabfiller {
  width: auto;
  /* border-bottom: solid 1px #0f0; */
}

.tabfiller {
  display: flex;
  background: transparent;
  font-weight: bold;

  text-align: left;
  width: auto;
  flex-grow: 1;
  /* Grow to fill available space */
  background-color: #101010;


  border-radius: 0px;
  padding: 0px;

}

mark {
  color: #e8f7ff;
  background-color: transparent;
}


mark.important {
  color: #ffbfbf;
  background-color: transparent;
}

/* .app-version{
  font-size: 8pt;
  
  vertical-align: top;
  font-weight: normal;
  width: 100%;

  text-align: right;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding-bottom: 4px;
  padding-right: 10px;
    
  
} */

#scannerOverlay {
  display: flex;
  /* Enable Flexbox */
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Center vertically */
}

#scannerForm {
  /* border: #333333 1px solid; */
  max-width: min(90%, 48ch);
  max-height: min(90%, 48ch);
  overflow: hidden;
}

.overlay-button {
  background: none;
  padding: 4px;
  border: none;
  border-radius: 3px;
}

#closeScanner {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 5ch;
  height: 5ch;
}

#changeScannerCamera{
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 5ch;
  height: 5ch;
}

#scannerVideoContainer {
  aspect-ratio: 1/1;

  /* border: 1px solid black; */

  /* width: 90%; */
  /* top: 50%;
  left: 50%;
  transform: translate(50%, 50%); */
}

#scannerVideo {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.overlay,
.dark-overlay {
  position: fixed;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

.dark-overlay {
  background-color: rgba(0, 0, 0, 0.8);
}


.overlay.blocking {
  cursor: not-allowed;
}

.overlay-message {
  position: absolute;
  /* Position to the center */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(50%);
  opacity: 70%;
}

span.hint {
  color: #7f7f7f;
}

.no-break {
  white-space: nowrap;
}

.version-info {
  white-space: nowrap;
  display: inline-block; 
}

/* Spinner from https://loading.io/css/ */
.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid #fff;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
