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

body {
 background-image:url('./pisces.jpg');
    background-attachment:fixed;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  
  * {
    transform-style: preserve-3d;
  }
}

.scene {
  position: relative;
  font-size: 10px;
  -webkit-animation:
    sceneR 27s -0s infinite linear,
    sceneT 10s -7.8s infinite ease-in-out;
          animation:
    sceneR 27s -0s infinite linear,
    sceneT 10s -7.8s infinite ease-in-out;
  
  * { position: absolute; }
}

@-webkit-keyframes sceneR {
  from { transform: rotateZ(360deg) rotateX(-20deg) rotateZ(0deg); }
  to { transform: rotateZ(0deg) rotateX(-20deg) rotateZ(360deg); }
}

@keyframes sceneR {
  from { transform: rotateZ(360deg) rotateX(-20deg) rotateZ(0deg); }
  to { transform: rotateZ(0deg) rotateX(-20deg) rotateZ(360deg); }
}
@-webkit-keyframes sceneT {
  0%, 41%, 59%, 100% { translate: 0 1em; }
  6%, 47%, 65% { translate: 0 -1em; }
}
@keyframes sceneT {
  0%, 41%, 59%, 100% { translate: 0 1em; }
  6%, 47%, 65% { translate: 0 -1em; }
}

.wing {
  inset: -1em -3em;
  border-radius: 1em;
  transform: translateZ(calc(var(--w) * 0.5em)) rotateY(calc(var(--odd, 0) * 180deg));
  background-image: linear-gradient(rgb(102, 151, 199), rgb(194, 78, 58));

  i {
    left: 100%; top: calc(50% - 1em);
    width: 80%; height: 2em;
    background-image: inherit;
    border-radius: inherit;
    transform-origin: left;
    -webkit-animation: wing 10s calc(var(--i) * 0.15s - 8s) infinite ease-in-out;
            animation: wing 10s calc(var(--i) * 0.15s - 8s) infinite ease-in-out;
  }

  & > i {
    width: 3em;
    rotate: y calc((var(--w) - 11.5) * var(--odd, 1) * 1deg);
    
    --i: 0;
    & > i { --i: 1; width: 5em; }
    & > i > i { --i: 2; }
    & > i > i > i { --i: 3; }
    & > i > i > i > i { --i: 4; }
    & > i > i > i > i > i{ --i: 5; }
  }
  
  &:nth-child(odd) {
    --odd: -1;
  }
}

@-webkit-keyframes wing {
  0%, 41%, 59%, 100% { transform: rotateZ(-10deg) translateX(1em); }
  6%, 47%, 65% { transform: rotateZ(10deg) translateX(1em); }
}

@keyframes wing {
  0%, 41%, 59%, 100% { transform: rotateZ(-10deg) translateX(1em); }
  6%, 47%, 65% { transform: rotateZ(10deg) translateX(1em); }
}



#card-container {
  position: relative;
  margin: 30px;
  width: 300px;
  height: 200px;
  z-index: 1;
  float: left;
  perspective: 1000px;
}


img {
  width: 300px;
  height: 200px;
  border-radius: 18%;
}

#card1{
  width: 300px;
  height: 200px;
  margin: 10%;
  position:relative;
  top:-600px;
  left:-200px;
  transform-style: preserve-3d;
  transition: all 0.8s linear;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}



#card2{
  width: 300px;
  height: 200px;
  margin: 10%;
  position:relative;
  top:-600px;
  left:-800px;
  transform-style: preserve-3d;
  transition: all 0.8s linear;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}
#card3{
  width: 300px;
  height: 200px;
  margin: 10%;
  position:relative;
  top:-900px;
  left:350px;
  transform-style: preserve-3d;
  transition: all 0.8s linear;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}
#card4{
  width: 300px;
  height: 200px;
  margin: 10%;
  position:relative;
  top:-700px;
  left:-700px;
  transform-style: preserve-3d;
  transition: all 0.8s linear;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}
#card5{
  width: 300px;
  height: 200px;
  margin: 10%;
  position:relative;
  top:-800px;
  left:-200px;
  transform-style: preserve-3d;
  transition: all 0.8s linear;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}
#card6{
  width: 300px;
  height: 200px;
  margin: 10%;
  position:relative;
  top:-1200px;
  left:280px;
  transform-style: preserve-3d;
  transition: all 0.8s linear;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}



.face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.btn-wrapper {
  --width: 200px;
  --height: 60px;
  --padding: 8px;
  --border-radius: 24px;
  --dot-size: 8px;
  --btn-color: #71a0f7;
  --hue: 142deg;
  --animation-duration: 1.2s;
    top:-500px;
    left: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--width);
  height: var(--height);
  
  border-radius: var(--border-radius);
  border: none;

  background-color: #b42f2f08;

  box-shadow:
    1px 1px 2px 0 rgba(173, 54, 54, 0.867),
    2px 2px 2px #0001 inset,
    2px 2px 4px #0001 inset,
    2px 2px 8px #0001 inset;

  transition: box-shadow 50ms linear;

  perspective: 150px;
  perspective-origin: center;

  user-select: none;
  z-index: 1;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 0.25em;
  text-align: left;
  padding: 0 var(--height) 0 calc(var(--padding) * 2);

  width: calc(100% - 2 * var(--padding));
  height: calc(100% - 2 * var(--padding));
  border-radius: calc(var(--border-radius) - var(--padding));
  border: none;
  cursor: pointer;

  background: linear-gradient(#fff2, #0001), var(--btn-color);

  box-shadow:
    1px 1px 2px -1px #19b6ae inset,
    0 2px 1px #00000010,
    0 4px 2px #00000010,
    0 8px 4px #00000010,
    0 16px 8px #00000010,
    0 32px 16px #00000010;

  transition:
    transform 0.25s cubic-bezier(0.25, 1.5, 0.5, 2.2),
    box-shadow 0.25s cubic-bezier(0.25, 1.5, 0.5, 1),
    filter 0.3s cubic-bezier(0.25, 1.5, 0.5, 1);
  will-change: transform, filter;

  z-index: 2;
}

.btn-txt {
  display: inline-block;

  font-size: 20px;
  font-weight: 500;
  font-family: "Montserrat", "Manrope", sans-serif;

  color: #5550;
  background-image: linear-gradient(#000a, #555);
  background-clip: text;
  filter: drop-shadow(0 1px 0px #350202) drop-shadow(0 -1px 0px #0005);
}

.disclaimer-txt {
  position: absolute;
  left: var(--border-radius);
  bottom: -24px;
  font-family: "Montserrat", "Manrope", sans-serif;
  font-size: 18px;
  color: #0009;
}

.dot {
  position: absolute;
  top: calc(50% - var(--dot-size) / 2);
  right: calc(var(--height) / 2 - var(--padding) / 2);
  width: var(--dot-size);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: hsla(var(--hue), 0%, 50%, 0.1);

  border: 1px solid hsla(var(--hue), 0%, 60%, 0.6);
  box-sizing: border-box;

  box-shadow:
    1px 1px 2px -1px #fffe inset,
    0 2px 1px #00000010,
    0 4px 2px #00000010,
    0 8px 4px #00000010;

  pointer-events: none;
  z-index: 3;
}

.dot::before {
  content: "";
  position: absolute;
  top: calc(var(--padding) / -2);
  left: calc(var(--padding) / -2);
  width: calc(100% + var(--padding));
  height: calc(100% + var(--padding));
  border-radius: inherit;
  background-color: #0006;
  mask-image: radial-gradient(circle at 50% 60%, transparent 50%, black);
}

.dot::after {
  content: "";
  position: absolute;
  top: calc(var(--padding) / -2);
  left: calc(var(--padding) / -2);
  width: calc(100% + var(--padding));
  height: calc(100% + var(--padding));
  border-radius: inherit;
  background-color: #0000;

  box-shadow:
    0 0 10px 2px hsla(var(--hue), 80%, 50%, 0.3),
    0 0 20px 10px hsla(var(--hue), 80%, 50%, 0.5),
    0 0 50px 20px hsla(var(--hue), 80%, 50%, 0.5),
    0 0 16px 1px hsla(var(--hue), 100%, 60%, 0.9) inset;

  opacity: 0;
}

.pulse {
  transition: transform 200ms ease-in;

  &.dot {
    animation: bg-anim var(--animation-duration) ease-in-out infinite;
  }

  &::after {
    animation: opacity-anim var(--animation-duration) ease-in-out infinite;
  }
}

@keyframes bg-anim {
  0%,
  100% {
    background-color: hsla(var(--hue), 50%, 50%, 0);
  }
  50% {
    background-color: hsla(var(--hue), 100%, 50%, 1);
  }
}

@keyframes opacity-anim {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.btn:hover,
.btn:focus-visible {
  filter: drop-shadow(
    var(--padding) 0 var(--padding) hsla(var(--hue), 70%, 60%, 0.6)
  );
  transform: translate3d(0, -2px, 2px);

  .btn-txt {
    background-color: hsla(var(--hue), 50%, 50%, 1);
    background-image: none;
  }

  .pulse {
    &.dot {
      animation: none;
      background-color: hsla(var(--hue), 100%, 50%, 1);
    }
    &::after {
      animation: none;
      opacity: 1;
    }
  }
}

.btn:focus-visible {
  outline: 2px dashed hsla(var(--hue), 70%, 40%, 1);
  outline-offset: var(--padding);
}

.btn:active {
  filter: drop-shadow(
    var(--padding) 0 var(--padding) hsla(var(--hue), 100%, 50%, 1)
  );
  transform: translate3d(0, 0, -4px);

  .btn-txt {
    background-color: hsla(var(--hue), 50%, 50%, 1);
  }

  ~ .dot {
    animation-play-state: paused;
    background-color: hsla(var(--hue), 100%, 50%, 1);
  }
}

.btn-wrapper:has(.btn:active) {
  box-shadow:
    1px 1px 2px 0 #fff,
    2px 2px 2px #0001 inset,
    2px 2px 4px #0001 inset,
    2px 2px 8px #0001 inset,
    0 0 32px 2px hsla(var(--hue), 50%, 50%, 0.5) inset;
}

