html, body {
  width: 100vw;
  height: 100vh;
  height: -webkit-fill-available;
  margin: 0;
  display: flex;
  overflow: hidden;
}

#background {
  background-image: radial-gradient(rgb(132, 0, 0), rgb(87, 0, 0));
}

#background > svg {
  mix-blend-mode: overlay;
  opacity: 0.5;
}

#faceCanvas,
#webcam,
#background,
#loader {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover;
  position: absolute;
}

#webcam {
  opacity: 0;
  transform: scaleX(-1);
  transition: opacity 330ms ease-in-out;
}

#webcam.visible {
  opacity: 1;
}

#background {
  opacity: 1;
  transition: opacity 330ms ease-in-out;
}

#webcam.visible + #background {
  opacity: 0;
}

#faceCanvas {
  transform: scaleX(-1);
}

#loader {
 background: rgba(255,255,255,0.5);
 mix-blend-mode: screen;
 z-index: 100;
 display: flex;
 align-items: center;
 justify-content: center;
}

#loader > svg {
  position: relative;
  top: -2rem;
}

#loader .eyes,
#features {
  animation-duration: 4s;
  animation-name: look-around;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}

@keyframes look-around {
  from {
    transform: translateX(-5px);
  }

  to {
    transform: translateX(5px);
  }
}

#visibilityToggle,
#artist {
  background: white;
  border: none;
  border-radius: 1rem;
  height: 2rem;
  box-shadow: 
    0 2px 2px 0 rgba(0,0,0,0.14), 
    0 3px 1px -2px rgba(0,0,0,0.12), 
    0 1px 5px 0 rgba(0,0,0,0.2);
  display: flex;
  font-size: 16px;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  width: 2rem;
  overflow: hidden;
  white-space: pre;
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  transition: width 330ms ease-in-out;
  cursor: pointer;
  outline: none;
  z-index: 99;
}

#visibilityToggle > svg {
  position: absolute;
  left: 0.25rem;
  width: 24px;
  height: 24px;
  top: 0.25rem;
}

#back {
  left: initial;
  left: 0.5rem;
  color: #232323;
}

#visibilityToggle > svg > .strikethrough {
  transform-origin: 50% 50%;
  transform: rotate(30deg);
  transition: width 330ms ease-in-out;
}

#visibilityToggle > span {
  position: absolute;
  top: 0.25rem;
  font-size: 1.25rem;
  left: calc(0.5rem + 24px);
}

#visibilityToggle:hover,
#visibilityToggle:focus {
  width: 13rem;
  width: fill-available;
  box-shadow: 
    0 3px 3px 0 rgba(0,0,0,0.14), 
    0 1px 7px 0 rgba(0,0,0,0.12), 
    0 3px 1px -1px rgba(0,0,0,0.2);
}

#artist:hover,
#artist:focus {
  box-shadow: 
    0 3px 3px 0 rgba(0,0,0,0.14), 
    0 1px 7px 0 rgba(0,0,0,0.12), 
    0 3px 1px -1px rgba(0,0,0,0.2);
}

#artist {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  text-transform: capitalize;
  right: initial;
  top: initial;
  bottom: 0.5rem;
  text-decoration: none;
  color: #fff;
  padding: 0.3rem 0.8rem;
  font-weight: bold;
  background: linear-gradient(135deg, #ff6b6b, #ffa500, #ffeb3b, #4caf50, #2196f3, #9c27b0);
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
  border-radius: 20px;
  font-size: 0.9rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#artist:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#visibilityToggle.on > svg > .strikethrough {
  width: 0;
}

#visibilityToggle > svg > .strikethrough {
  width: 24px;
}

.carousel,
.photo-carousel {
  width: 100vw;
  height: 100vh;
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  top: 0;
}

.texture {
  visibility: hidden;
}

.texture,
.photo {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

.gallery-types {
  display: flex;
  width: 50vw;
  position: absolute;
  height: 2rem;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  position: relative;
  z-index: 1;
  margin: 0.5rem auto;
  border: 2px solid #fff;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  font-family: monospace;
  box-shadow: 0 0 1px 1px #232323;
}
.gallery-types > input {
  display: none;
}
.gallery-types > input:checked + label {
  color: #232323;
}
.gallery-types > input:nth-of-type(1):checked ~ label:last-of-type:before {
  transform: translateX(calc(0% + 0px));
}

.gallery-types > input:nth-of-type(2):checked ~ label:last-of-type:before {
  transform: translateX(calc(100% + 0px));
}
.gallery-types label {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  font-weight: bold;
}
.gallery-types > input:not(:checked) + label {
  text-shadow: 0    0   1px #232323,
              -1px  0   1px #232323,
               0   -1px 1px #232323,
               1px  0   1px #232323,
               0    1px 1px #232323;
}
.gallery-types label:last-of-type:before {
  content: "";
  display: block;
  max-width: calc(50% - 0px);
  margin: 0px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  transform: translateX(0);
}
.gallery-types label {
  padding: 6px 3px;
  transition: color 250ms cubic-bezier(0, 0.95, 0.38, 0.98);
}
.gallery-types label:before {
  background: #fff;
  transition: all 250ms cubic-bezier(0, 0.95, 0.38, 0.98);
}
.gallery-types label:not(:last-child) {
  border-right: 1px solid #fff;
}

.ar > .photo-carousel {
  visibility: hidden;
}

.photo-carousel {
  background: black;
}

.photos > #faceCanvas,
.photos > #webcam,
.photos > .carousel {
  display: none;
}

/* Flower falling effect styles */
.flower-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.flower {
  position: absolute;
  font-size: 2rem;
  animation: fall linear infinite;
  opacity: 0.8;
  user-select: none;
  pointer-events: none;
}

.flower:nth-child(odd) {
  animation-duration: 8s;
  animation-delay: 0s;
}

.flower:nth-child(even) {
  animation-duration: 12s;
  animation-delay: 2s;
}

.flower:nth-child(3n) {
  animation-duration: 10s;
  animation-delay: 4s;
}

.flower:nth-child(4n) {
  animation-duration: 14s;
  animation-delay: 1s;
}

.flower:nth-child(5n) {
  animation-duration: 9s;
  animation-delay: 3s;
}

@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0.8;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(360deg);
    opacity: 0;
  }
}

/* Different flower types with slight variations */
.flower.rose {
  animation-name: fall-rose;
}

.flower.sunflower {
  animation-name: fall-sunflower;
}

.flower.tulip {
  animation-name: fall-tulip;
}

.flower.blossom {
  animation-name: fall-blossom;
}

.flower.hibiscus {
  animation-name: fall-hibiscus;
}

@keyframes fall-rose {
  0% {
    transform: translateY(-100px) translateX(0px) rotate(0deg);
    opacity: 0.8;
  }
  25% {
    transform: translateY(25vh) translateX(20px) rotate(90deg);
  }
  50% {
    transform: translateY(50vh) translateX(-15px) rotate(180deg);
  }
  75% {
    transform: translateY(75vh) translateX(25px) rotate(270deg);
  }
  100% {
    transform: translateY(calc(100vh + 100px)) translateX(0px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes fall-sunflower {
  0% {
    transform: translateY(-100px) translateX(0px) rotate(0deg);
    opacity: 0.8;
  }
  20% {
    transform: translateY(20vh) translateX(-30px) rotate(72deg);
  }
  40% {
    transform: translateY(40vh) translateX(40px) rotate(144deg);
  }
  60% {
    transform: translateY(60vh) translateX(-20px) rotate(216deg);
  }
  80% {
    transform: translateY(80vh) translateX(35px) rotate(288deg);
  }
  100% {
    transform: translateY(calc(100vh + 100px)) translateX(0px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes fall-tulip {
  0% {
    transform: translateY(-100px) translateX(0px) rotate(0deg);
    opacity: 0.8;
  }
  30% {
    transform: translateY(30vh) translateX(15px) rotate(108deg);
  }
  60% {
    transform: translateY(60vh) translateX(-25px) rotate(216deg);
  }
  100% {
    transform: translateY(calc(100vh + 100px)) translateX(0px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes fall-blossom {
  0% {
    transform: translateY(-100px) translateX(0px) rotate(0deg);
    opacity: 0.8;
  }
  15% {
    transform: translateY(15vh) translateX(-20px) rotate(54deg);
  }
  35% {
    transform: translateY(35vh) translateX(30px) rotate(126deg);
  }
  55% {
    transform: translateY(55vh) translateX(-10px) rotate(198deg);
  }
  75% {
    transform: translateY(75vh) translateX(20px) rotate(270deg);
  }
  100% {
    transform: translateY(calc(100vh + 100px)) translateX(0px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes fall-hibiscus {
  0% {
    transform: translateY(-100px) translateX(0px) rotate(0deg);
    opacity: 0.8;
  }
  25% {
    transform: translateY(25vh) translateX(25px) rotate(90deg);
  }
  50% {
    transform: translateY(50vh) translateX(-30px) rotate(180deg);
  }
  75% {
    transform: translateY(75vh) translateX(15px) rotate(270deg);
  }
  100% {
    transform: translateY(calc(100vh + 100px)) translateX(0px) rotate(360deg);
    opacity: 0;
  }
}