body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#outfit-switch {
  display: none;
}

.info {
  font-size: 18px;
  font-weight: 400;
  font-family: Inter;
  color: #595959;
  margin: 0;
}

.annonation {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  height: 72px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 48px;
  display: none;
  padding: 8px 16px;
  position: absolute;
  bottom: 24px;

  img {
    width: 24px;
  }
  .icon {
    padding: 12px;
    border-radius: 80%;
  }

  p {
    padding: 16px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 0 48px 48px 0;
  }
}

.closeIcon {
  &:hover {
    cursor: pointer;
  }
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
}

.full-screen {
  position: absolute;
  width: 100%;
  height: 100%;

  .overalay-image {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 10%;
    left: 50%; /* Adjusted for centering */
    transform: translateX(-50%);
    width: 298px;
    border-radius: 24px;

    img {
      height: 84vh;
      object-fit: contain;
      border-radius: 24px 0 0 24px;
      opacity: 0.8; /* Initial opacity set to 100% */
      filter: blur(2px);
      animation: opacityTransition 10s linear forwards; /* 15s total duration, linear transition, forwards to keep final state */
    }

    p {
      font-size: 0.7rem;
      font-weight: 700;
      color: rgb(255, 255, 255);
      background-image: linear-gradient(25deg, orange, red);
      border-radius: 4px;
      padding: 12px 16px;
      white-space: nowrap;
      opacity: 0.7;
    }
  }
}

@keyframes opacityTransition {
  0% {
    opacity: 0.4; /* Start at 100% opacity */
  }
  89.666% {
    opacity: 0.4; /* Maintain 100% opacity for the first 10 seconds (10s / 15s = 66.666%) */
  }
  100% {
    opacity: 0; /* Transition to 5% opacity after the initial 10 seconds */
  }
}

.camera-switch {
  position: absolute;
  width: 48px;
  height: 48px;
  top: 8px;
  right: 8px;
  z-index: 1;
  background-image: url("switch.png");
  background-size: contain;
  background-color: transparent;
  border: none;
}

.avatar-switch {
  position: absolute;
  width: 48px;
  height: 48px;
  top: 64px;
  right: 8px;
  z-index: 1;
  background-image: url("avatar.png");
  background-size: contain;
  background-color: transparent;
  border: none;
}

.loadingSection.hide {
  display: none;
}

.loadingSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: absolute;

  #loadingscreen {
    width: 84px;
    height: 84px;
    animation: rotate 2s linear infinite;
  }

  #cameraIcon {
    width: 40px;
    position: absolute;
    top: 24px;
  }

  .cameraIcon {
    position: relative;
  }
}

.avatar-switch:checked {
  background-image: url("outfit.png");
}

input.avatar-switch[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.record {
  position: absolute;
  width: 48px;
  height: 48px;
  top: 8px;
  left: 8px;
  z-index: 1;
  background-image: url("snapshot.png");
  background-size: contain;
  background-color: transparent;
  border: none;
}

.carousel {
  position: absolute;
  width: 100%;
  height: 64px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.carousel-item {
  background-size: contain;
  background-color: transparent;
  border: double 4px #008080;
  border-radius: 50%;
  overflow: hidden;
  height: 64px;
  width: 64px;
  margin: auto 4px;
  transition: 0.6s;
}

.carousel input[type="radio"] {
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
}

.carousel-item:checked {
  border: solid 4px #008080;
}

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

#logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  padding: 24px;
  margin-left: 4rem;
}

.dots .pulse1 {
  animation-delay: -0.32s;
  -webkit-animation-delay: -0.32s;
}

.dots .pulse2 {
  animation-delay: -0.16s;
  -webkit-animation-delay: -0.16s;
}

@keyframes dot-pulse {
  0%,
  80%,
  100% {
    transform: scale(0);
    -webkit-transform: scale(0);
  }
  40% {
    transform: scale(1);
    -webkit-transform: scale(1);
  }
}

@-webkit-keyframes dot-pulse {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
  }
}

.spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: auto;
  animation: spinner 2.5s infinite linear both;
  -webkit-animation: spinner 2.5s infinite linear both;
}

.spinner-dot {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  animation: spinner-dot 2s infinite ease-in-out both;
  -webkit-animation: spinner-dot 2s infinite ease-in-out both;
}

.spinner-dot:before {
  content: "";
  display: block;
  width: 25%;
  height: 25%;
  background-color: #008080;
  border-radius: 100%;
  animation: spinner-dot-before 2s infinite ease-in-out both;
  -webkit-animation: spinner-dot-before 2s infinite ease-in-out both;
}

.spinner-dot:nth-child(1) {
  animation-delay: -1.1s;
}
.spinner-dot:nth-child(2) {
  animation-delay: -1s;
}
.spinner-dot:nth-child(3) {
  animation-delay: -0.9s;
}
.spinner-dot:nth-child(4) {
  animation-delay: -0.8s;
}
.spinner-dot:nth-child(5) {
  animation-delay: -0.7s;
}
.spinner-dot:nth-child(6) {
  animation-delay: -0.6s;
}
.spinner-dot:nth-child(1):before {
  animation-delay: -1.1s;
}
.spinner-dot:nth-child(2):before {
  animation-delay: -1s;
}
.spinner-dot:nth-child(3):before {
  animation-delay: -0.9s;
}
.spinner-dot:nth-child(4):before {
  animation-delay: -0.8s;
}
.spinner-dot:nth-child(5):before {
  animation-delay: -0.7s;
}
.spinner-dot:nth-child(6):before {
  animation-delay: -0.6s;
}

.spinner-container {
  position: absolute;
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  margin: auto;
  z-index: 1;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}

@keyframes spinner {
  100% {
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
  }
}

@-webkit-keyframes spinner {
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spinner-dot {
  80%,
  100% {
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
  }
}

@-webkit-keyframes spinner-dot {
  80%,
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spinner-dot-before {
  50% {
    transform: scale(0.4);
    -webkit-transform: scale(0.4);
  }
  100%,
  0% {
    transform: scale(1);
    -webkit-transform: scale(1);
  }
}

@-webkit-keyframes spinner-dot-before {
  50% {
    -webkit-transform: scale(0.4);
  }
  100%,
  0% {
    -webkit-transform: scale(1);
  }
}

@media (max-width: 480px) {
  .full-screen {
    .overalay-image {
      top: 34%;
      left: 50%;
      img {
        width: 30vh;
        height: 30vh;
      }

      p {
        font-size: 0.4rem;
        font-weight: 700;
        color: rgb(255, 255, 255);
        background-image: linear-gradient(25deg, orange, red);
        border-radius: 4px;
        padding: 8px 12px;
        white-space: nowrap;
      }
    }
  }
}

/* Mobile Style */
@media only screen and (max-width: 500px) {
  .info {
    font-size: 14px;
    font-weight: 500;
    font-family: Inter;
    color: #595959;
    margin: 0;
  }

  .annonation {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: none;

    img {
      width: 20px;
    }
    .icon {
      padding: 12px;
      border-radius: 80%;
    }

    p {
      padding: 12px;
      font-size: 12px;
      border-radius: 0 48px 48px 0;
    }
  }

  .closeIcon {
    &:hover {
      cursor: pointer;
    }
  }

  .loadingSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: absolute;

    #loadingscreen {
      width: 64px;
      height: 64px;
      animation: rotate 2s linear infinite;
    }

    #cameraIcon {
      width: 28px;
      position: absolute;
      top: 20px;
    }

    .cameraIcon {
      position: relative;
    }
  }
}

