.camera {
  display: flex;
  justify-content: center;
}

@media screen and (min-width:500px) {
  .camera {
    display: none;
  }
}

#results {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: auto;
}

#results div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
}

#results video {
  width: 100%;
  height: 70vh;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  height: 100vh;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

button {
  display: flex;
  align-items: center;
}

.divider {
  font-weight: 600;
}

input[type='file'] {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

form label {
  cursor: pointer;
  display: flex;
  align-items: center;
  border: 1px solid gray;
  padding: 0.5rem 5rem;
  border-radius: 5px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
}

form span {
  display: flex;
  justify-content: center;
}

.capture_image {
  display: none;
  width: auto;
}

.capture-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

form .row {
  position: relative;
}

.button-wrapper button,
#grabFrameButton {
  display: flex;
  align-items: center;
}

.button-wrapper {
  display: flex;
  flex-direction: row !important;
  margin-top: 1.5rem !important;
  gap: 1.5rem !important;
}

#return-home {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

#uploadCaptured {
  width: 140px;
  display: flex;
  justify-content: center;
}

#retakeButton {
  width: 95px;
  display: flex;
  justify-content: center;
}

.hidden {
  display: none;
}

.notes-header {
  font-weight: 600;
}

.capture_image img {
  width: 100%;
  height: auto;
}

.overlay {
  position: relative;
  width: 300px;
  height: 0;

  --border-style: 2px dashed black;
  --border-space: 20px;
}

.overlay-element {
  position: absolute;
  height: 60vh;
  margin-top: 2rem;
}

.overlay .left {
  border-left: var(--border-style);
  top: var(--border-space);
  left: var(--border-space);
}

.overlay .right {
  border-right: var(--border-style);
  top: var(--border-space);
  right: var(--border-space);
}

.overlay-header p {
  text-align: center;
  margin-bottom: 0;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.spinner {
  --spinner-color: black;

  aspect-ratio: 1/1;
  border-radius: 50%;

  animation-name: spin;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.spinner--quarter {
  width: 48px;
  border: 5px solid var(--spinner-color);
  border-top-color: transparent;

  animation-duration: 1s;
}

.loading-container {
  background-color: white;
  position: absolute;
  width: 100%;
  display: flex;
  align-items: center;
  top: 6rem;
  flex-direction: column;
  display: none;
}

.loading-container p{
  text-align: center;
}