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


* {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 100%;
  line-height: 1.5;
}

*:active,
*:focus {
  outline: none !important;
  box-shadow: none !important;
}

body {
  font-family: Arial, sans-serif;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100svh;
  width: 66.66666vh;
  max-width: 100%;
}


body {
  height: 100%;
  width: 100%;
  display: flex;
  justify-self: center;
  align-items: center;
  flex-direction: column;
}

#video,
#canvas,
#canvas2 {
  aspect-ratio: 9/16;
  /* width: 900px;
  height: 1600px; */
  position: absolute;
  object-fit: cover;
}

#video {
  z-index: 2;
}


.video-photo {
  z-index: -1;
}

.ai-photo,
.video-photo,
.lens-photo {
  position: absolute;
  aspect-ratio: 9/16;
  width: 100%;
}

.controls {
  position: absolute;
  z-index: 3;
  width: 100%;
  justify-content: space-around;
  display: flex;
  align-items: center;
  bottom: 10%;
}

.capture-btn {
  width: 20%;
}

.download-btn,
.share-btn {
  width: 16%;
}

.print-btn,
.switch-btn {
  background-color: white;
  font-size: 2rem;
}

#qrcode {
  position: fixed;
  top: 5%;
  right: 5%;
  z-index: 2;
  width: 20%;
  height: 20%;
}

#qrcode2 {
  position: fixed;
  top: 5%;
  left: 5%;
  z-index: 2;
  width: 20%;
  height: 20%;
}

.loader {
  position: absolute;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.loader-content {
  border: 8px solid rgba(0, 0, 0, 0.1);
  border-top: 8px solid #000;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  animation: spin 2s linear infinite;
  animation-delay: 250ms;
}

.loading-icon {
  animation: spin 2s linear infinite;
}

.hidden {
  display: none;
}

.mirror {
  transform: scaleX(-1);
}

/* Keyframes for the rotation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

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