body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  background-color: #fb7878;
}
.birthdayCard {
  position: absolute;
  width: 250px;
  height: 350px;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: perspective(2500px);
  transition: 4s;
}

.confetti {
  display: none;
  width: 100%;
  height: 100vh;
}

.birthdayCard:hover .cursor {
  display: none;
}

.birthdayCard:hover {
  transform: perspective(2500px) rotate(5deg);
  box-shadow: inset 100px 20px 100px rgba(0, 0, 0, 0.15),
    0 10px 100px rgba(0, 0, 0, 0.3);
}

.birthdayCard:hover .cardFront {
  transform: rotateY(-160deg);
}

.birthdayCard:hover .front-text {
  display: none;
}

.birthdayCard:hover .wrap-deco {
  display: none;
}

.birthdayCard:hover .wrap-decoTwo {
  display: none;
}

.birthdayCard:hover .plate {
  display: none;
}
.birthdayCard:hover .canvas {
  display: none;
}

.cardFront {
  position: relative;
  background-color: #fff;
  width: 250px;
  height: 350px;
  overflow: hidden;
  transform-origin: left;
  box-shadow: inset 100px 20px 100px rgba(0, 0, 0, 0.13),
    30px 0 50px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
}

.happy,
.toyou {
  position: relative;
  font-family: didot;
  text-align: center;
  backface-visibility: hidden;
  font-size: 30px;
}

.happy {
  top: 198px;
}

.toyou {
  top: 123px;
}

.bday {
  position: relative;
  font-family: arial;
  font-size: 35px;
  text-align: center;
  top: 163px;
}

.wrap-deco {
  position: absolute;
  top: -230px;
  left: -200px;
}

.decorations {
  position: absolute;
  width: 400px;
  height: 300px;
  border: 3px solid #333;
  border-radius: 50%;
}

.decorations:before,
.decorations:after,
.decorationsTwo:before,
.decorationsTwo:after,
.decorationsThree:before,
.decorationsThree:after {
  content: "";
  position: absolute;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  width: 0;
  height: 0;
}

.decorations:before {
  border-top: 40px solid #f15bb5;
  top: 297px;
  left: 210px;
  transform: rotate(-5deg);
}

.decorations:after {
  border-top: 40px solid #f4d35e;
  top: 288px;
  left: 260px;
  transform: rotate(-17deg);
}

.decorationsTwo:before {
  border-top: 40px solid #00f5d4;
  top: 268px;
  left: 315px;
  transform: rotate(-30deg);
}

.decorationsTwo:after,
.decorationsThree:after {
  border-top: 40px solid #9b5de5;
  top: 238px;
  left: 355px;
  transform: rotate(-40deg);
}

.wrap-decoTwo {
  transform: scaleX(-1);
  position: absolute;
  top: -230px;
  left: 445px;
}

.decorationsThree:before {
  border-top: 40px solid #00bbf9;
  top: 268px;
  left: 315px;
  transform: rotate(-30deg);
}

.plate {
  position: absolute;
  width: 130px;
  height: 5px;
  background-color: #00bbf9;
  left: 60px;
  top: 213px;
}

.cake {
  position: absolute;
  overflow: hidden;
  width: 100px;
  height: 50px;
  background-color: #f15bb5;
  border-radius: 10px 10px 0 0;
  top: -50px;
  left: 15px;
  box-shadow: inset 0 -15px #f9c74f, inset 0 15px #432818;
}

.cake:before {
  content: "";
  position: absolute;
  background-color: #432818;
  width: 10px;
  height: 20px;
  top: 5px;
  border-radius: 20px;
  box-shadow: 10px 5px #f15bb5, 20px 0px #432818, 30px 2px #f15bb5,
    40px 5px #432818, 50px 5px #f15bb5, 60px 0px #432818, 70px 5px #f15bb5,
    80px 5px #432818, 90px 5px #f15bb5;
}

.plate:before {
  content: "";
  position: absolute;
  background: repeating-linear-gradient(
    -45deg,
    #9b5de5,
    #9b5de5 3px,
    #00f5d4 3px,
    #00f5d4 6px
  );
  width: 7px;
  height: 25px;
  top: -75px;
  left: 61px;
}

.plate:after {
  content: "";
  position: absolute;
  width: 1px;
  height: 5px;
  background-color: #333;
  top: -80px;
  left: 64px;
}

.flame {
  position: absolute;
  background-color: #fb5607;
  border-radius: 80% 0 55% 50% / 55% 0 80% 50%;
  transform: rotate(-45deg);
  width: 15px;
  height: 15px;
  opacity: 0.7;
  top: -93px;
  left: 57px;
}
.cardInside {
  position: absolute;
  background-color: #fff;
  width: 250px;
  height: 350px;
  z-index: -1;
  left: 0;
  top: 0;
  box-shadow: inset 100px 20px 100px rgba(0, 0, 0, 0.2);
}

.inside-text {
  position: relative;
  top: -160px;
  transform: scale(0.7);
}

.wishes {
  position: relative;
  top: -100px;
  margin: 25px;
}

p {
  font-family: "Brush Script MT", cursive;
  color: #333;
  font-size: 17px;
}

.name {
  margin-left: 150px;
}

/* Modal styles */
.modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.19);
}

.close {
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #888;
  position: relative;
  left: 240px;
}

/* cursor form codepen */

.cursor {
  perspective: 1000px;
  transform-origin: bottom right;
  position: absolute;
  left: 50%;
  top: 320px;
  width: 30px;
  height: 30px;
  z-index: 20;
  pointer-events: none;
  animation: translate_l2b 2s infinite;
}

@keyframes translate_l2b {
  0% {
    transform: translate(-3px, 4px);
  }
  20% {
    transform: translate(0px, 0px);
  }
  80% {
    transform: translate(-3px, 4px);
  }

  96% {
    transform: translate(-3px, 4px);
  }
  100% {
    transform: translate(-3px, 4px);
  }
}

.cursor:after {
  content: "";
  display: block;
  position: absolute;
  left: -8px;
  top: -8px;
  width: 26px;
  height: 26px;
  border: 1px solid rgb(170, 135, 186);
  border-radius: 50%;
  z-index: 4;
  animation: wave_l2b 2s infinite;
}

@keyframes wave_l2b {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  5% {
    transform: scale(1.2);
    opacity: 0;
  }
  6% {
    transform: scale(0);
    opacity: 0;
  }
  44% {
    transform: scale(0);
    opacity: 0;
  }
  45% {
    transform: scale(0);
    opacity: 1;
  }
  60% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

.cursor:before {
  content: "";
  display: block;
  position: absolute;
  left: -15px;
  top: -15px;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(219, 215, 215);
  border-radius: 50%;
  z-index: 4;
  animation: wave2_l2b 2s infinite;
}

@keyframes wave2_l2b {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  25% {
    transform: scale(1.2);
    opacity: 0;
  }
  26% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(0);
    opacity: 1;
  }
  90% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#click_l2b {
  position: relative;
  animation: click_l2b 2s infinite;
  z-index: 5;
  stroke-width: 2;
  stroke-dasharray: 10 5;
  fill: rgba(120, 67, 144, 0.43);
}

@keyframes click_l2b {
  0% {
    transform: skew(0deg) translateX(0px) scaleY(0.9);
  }
  50% {
    transform: skew(-6deg) translateX(3px) scaleY(1);
  }
  100% {
    transform: skew(0deg) translateX(0px) scaleY(0.9);
  }
}

/* input new */

/* card new  */

.form {
  position: absolute;
  width: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  --input-focus: #2d8cf0;
  --font-color: #323232;
  --font-color-sub: #666;
  --bg-color: rgb(245, 220, 230);
  --main-color: black;
  padding: 20px;
  background: rgb(254, 254, 254);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  box-sizing: border-box;
}

.form button {
  background-color: rgb(238, 130, 130);
}

.input {
  width: 250px;
  height: 40px;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  background-color: var(--bg-color);
  /* box-shadow: 4px 4px var(--main-color); */
  font-size: 15px;
  font-weight: 600;
  color: var(--font-color);
  padding: 5px 10px;
  outline: none;
}

.input_url {
  width: 270px;
  height: 40px;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  background-color: rgb(238, 130, 130);
  box-shadow: 2px 2px var(--main-color);
  font-size: 15px;
  font-weight: 600;
  color: var(--font-color);
  padding: 5px 10px;
  outline: none;
}

.input::placeholder {
  color: var(--font-color-sub);
  opacity: 0.8;
}

.input:focus {
  border: 2px solid var(--input-focus);
}

.login-with {
  display: flex;
  gap: 20px;
}

.button-log {
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  border: 2px solid var(--main-color);
  background-color: var(--bg-color);
  box-shadow: 2px 2px var(--main-color);
  color: var(--font-color);
  font-size: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon {
  width: 24px;
  height: 24px;
  fill: var(--main-color);
}

.button-log:active,
.button-confirm:active {
  box-shadow: 0px 0px var(--main-color);
  transform: translate(3px, 3px);
}

.button-confirm {
  /* margin: 50px auto 0 auto; */
  width: 120px;
  height: 40px;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  background-color: var(--bg-color);
  box-shadow: 2px 2px var(--main-color);
  font-size: 17px;
  font-weight: 600;
  color: var(--font-color);
  cursor: pointer;
}

.btn_container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Santa clus */

@keyframes blink {
  0%,
  6%,
  100% {
    height: 12%;
  }
  3% {
    height: 0%;
  }
}

@keyframes moveMustache {
  0%,
  40%,
  44%,
  100% {
    transform: translate(-100%, 0) rotate(25deg);
  }
  42% {
    transform: translate(-100%, 0) rotate(30deg);
  }
}

@keyframes moveMustache2 {
  0%,
  40%,
  44%,
  100% {
    transform: rotate(-25deg);
  }
  42% {
    transform: rotate(-30deg);
  }
}

@media (prefers-reduced-motion) {
  * {
    animation: none !important;
  }
}

.canvas {
  --skin: #fca;
  --eyes: #630a;
  --cheeks: #f001;
  --beard: #ffffff;
  --mustache: #fff;
  --suit: #a00;
  --belt: #222;
  --belt-buckle: gold;
  width: 200px;
  aspect-ratio: 1;
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.canvas::before {
  content: "";
  display: block;
  position: absolute;
  top: 90%;
  left: 50%;
  width: 200vmax;
  height: 200vmax;
  background: white;
  transform: translate(-50%, 0) rotate(1deg);
  border-radius: 100% / 20%;
}

.head {
  --positionX: 27%;
  --positionY: 63%;
  position: absolute;
  top: 10%;
  left: 50%;
  border-radius: 50%;
  width: 25%;
  height: 25%;
  transform: translate(-50%, 0);
  background: var(--skin);
}

.eye {
  position: absolute;
  top: var(--positionY);
  left: var(--positionX);
  width: 12%;
  height: 12%;
  background: var(--eyes);
  border-radius: 50%;
  animation: blink 0.5s infinite linear;
}

.eye + .eye {
  left: auto;
  right: var(--positionX);
}

.cheek {
  position: absolute;
  top: calc(var(--positionY) + 7%);
  left: calc(var(--positionX) - 12%);
  width: 20%;
  height: 12%;
  background: var(--cheeks);
  border-radius: 50%;
}

.cheek + .cheek {
  left: auto;
  right: calc(var(--positionX) - 12%);
}

.beard {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 30%;
  height: 40%;
  background: var(--beard);
  transform: translate(-50%, 0);
  border-radius: 100% / 120% 120% 80% 80%;
}

.mustache {
  position: absolute;
  top: 88%;
  left: 52%;
  width: 40%;
  height: 40%;
  background: var(--mustache);
  border-radius: 100% 10% 100% 0;
  transform-origin: top right;
  transform: translate(-100%, 0) rotate(25deg);
  animation: moveMustache 0.5s infinite linear;
}

.mustache + .mustache {
  left: 48%;
  border-radius: 10% 100% 0 100%;
  transform-origin: top left;
  transform: rotate(-25deg);
  animation: moveMustache2 0.5s infinite linear;
}

.hat {
  position: absolute;
  width: 98%;
  height: 80%;
  background: var(--suit);
  border-radius: 100% 20% 0 0;
  top: -40%;
  left: 50%;
  transform: translate(-50%, 0) rotate(1deg);
}

.hat::before {
  content: "";
  display: block;
  position: absolute;
  bottom: -17%;
  left: -5%;
  width: 110%;
  height: 40%;
  border-radius: 100% / 50%;
  transform: rotate(-2deg);
  background: radial-gradient(
    200% 100% at 50% 100%,
    #0000 30%,
    var(--mustache) 31%
  );
}

.hat::after {
  content: "";
  display: block;
  position: absolute;
  right: -25%;
  top: -15%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--beard);
}

.body {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 50%;
  height: 50%;
  background: var(--suit);
  border-radius: 100% / 150% 150% 25% 25%;
  transform: translate(-50%, 0);
  background-image:
      /* buttons */ radial-gradient(
      circle at 50% 36%,
      var(--belt) 2.75%,
      #0000 3%
    ),
    radial-gradient(circle at 50% 48%, var(--belt) 3%, #0000 3.25%),
    radial-gradient(circle at 50% 60%, var(--belt) 2.75%, #0000 3%),
    radial-gradient(circle at 50% 90%, var(--belt) 2.25%, #0000 2.5%),
    /* belt */
      radial-gradient(
        circle at 50% -50%,
        transparent 75%,
        var(--belt) 75.1% 83%,
        transparent 83.1%
      ),
    /* flap */
      linear-gradient(
        to right,
        transparent 42%,
        white 42.2% 57%,
        transparent 57.2%
      );
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 100%,
    51% 100%,
    50% 96%,
    49% 100%,
    0% 100%
  );
}

.belt {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 23%;
  height: 15%;
  background: linear-gradient(var(--belt-buckle) 0 0) 75% 50% / 25% 12%
      no-repeat,
    linear-gradient(var(--belt) 0 0) 50% 50% / 85% 80% no-repeat,
    var(--belt-buckle);
}

.arms {
  position: absolute;
  top: 37%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 65%;
  height: 40%;
  background: #a00;
  border-radius: 100% / 170% 170% 25% 25%;
  background-image: linear-gradient(transparent 20%, #0003);
}

.hand {
  --positionX: 18%;
  position: absolute;
  top: 70%;
  left: var(--positionX);
  width: 13%;
  height: 13%;
  background: var(--belt);
  border-radius: 50%;
}

.hand + .hand {
  left: auto;
  right: var(--positionX);
}

.leg {
  position: absolute;
  top: 75%;
  left: 29%;
  width: 19%;
  height: 25%;
  background: var(--suit);
  transform: skew(2deg);
  background-image: linear-gradient(#0002, transparent 70%, var(--belt) 0);
}

.leg + .leg {
  left: 52%;
}

.leg::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: -6%;
  width: 110%;
  height: 20%;
  background: black;
  border-radius: 50% / 100% 100% 0 0;
}

.leg + .leg::after {
  left: -4%;
}

.share-modal {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  height: 100vh;
}

.share-content {
  background-color: white;
  position: absolute;
  bottom: 0;
  width: 100%;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.share-modal.active .share-content {
  transform: translateY(0);
}

.share-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.share-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-family: arial;
}

.share-close {
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.share-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.share-button:hover {
  background-color: #f5f5f5;
}

.share-button svg {
  width: 24px;
  height: 24px;
}

.share-button[data-platform="whatsapp"] svg {
  color: #25d366;
}
.share-button[data-platform="telegram"] svg {
  color: #0088cc;
}
.share-button[data-platform="twitter"] svg {
  color: #1da1f2;
}
.share-button[data-platform="instagram"] svg {
  color: #e4405f;
}
.share-button[data-platform="skype"] svg {
  color: #00aff0;
}
.share-button[data-platform="slack"] svg {
  color: #4a154b;
}
.share-button[data-platform="copy"] svg {
  color: #6e6e6e;
}

.share-button span {
  font-size: 12px;
  color: #333;
}

@media (max-width: 480px) {
  .share-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
