/* General */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  hyphens: auto;
}

/* Login / Change Password */
div.pf-login,
div.pf-change-pw {
  width: 40%;
  margin-top: auto;
  margin-bottom: auto;
  position: relative;
  padding: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.8), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.8),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.8),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 5px;
}

div.pf-login form,
div.pf-change-pw form {
  margin-bottom: 1em;
}

div.pf-login form-control,
div.pf-change-pw form-control {
  position: relative;
  box-sizing: border-box;
  overflow: visible;
  height: auto;
  padding: 10px;
}

div.pf-login input.form-control:focus div.pf-change-pw input.form-control:focus {
  z-index: 1;
}

div.pf-login form input[type="email"] {
  margin-bottom: 1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

div.pf-login form input[type="password"] {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Probefahrt Form */
button.btn-next-form,
button.btn-save-form {
  float: right !important;
}

.btn-outline-invalid {
  border-color: var(--bs-form-invalid-border-color);
  color: var(--bs-form-invalid-border-color);
}

/* Visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  border: 0;
}

/* Icons on cards float right */
div.card :is(h1, h2, h3, h4, h5, h6) i {
  float: right;
}

/* Hide arrows in number inputs */
/* Chrome, Safari, Edge, Opera */
input.no-arrow::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input.no-arrow[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

div#signature-pad canvas {
  width: 100%;
  border-radius: 0.3em;
}

div#signature-pad canvas.invalid {
  border: 0.25rem solid var(--bs-form-invalid-border-color);
}

@media (orientation: portrait) {
  div#signature-pad canvas {
    height: 20vh;
  }

  div.pf-login,
  div.pf-change-pw {
    width: 95%;
  }
}

@media (orientation: landscape) {
  div#signature-pad canvas {
    height: 30vh;
  }
}

input#take-photo[type="file"] {
  display: none;
}

button#probefahrt-save {
  height: 3rem;
}

/* Camera, canvas */
div.camera {
  height: 100%;
}

@media (orientation: portrait) {

  div.camera video {
    width: 100%;
  }
}

@media (orientation: landscape) {
  div.camera video {
    height: 100%;
  }
}

.btn-square {
  width: 4rem !important;
  max-width: 100% !important;
  max-height: 100% !important;
  height: 4rem !important;
  /* text-align: center; */
  /* padding: 0px; */
  font-size: 2rem;
}

/* bootstrap table */
.bootstrap-table.fullscreen {
  background-color: var(--bs-body-bg)
}