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

body {
  height: 100svh;
  overflow: hidden;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}

.container {
  position: relative;
  perspective: 1000px;
  cursor: pointer;
  width: 400px;
  height: 400px;
}

.left,
.right {
  width: 100%;
  height: 100%;
  border: 1px solid black;
  position: absolute;
  top: 0;
  left: 0;
}

.right {
  background-color: lightcoral;
  transition: all 5s ease-out;
}

.left {
  z-index: 1;
  transform-style: preserve-3d;
  transform-origin: left;
  /* backface-visibility: hidden; */
  transition: all 1.5s ease;
}

.container:hover .left {
  transform: rotate3d(0, 1, 0, -180deg);
  /* transform: rotate3d(0, 1, 0, -180deg) scale(2); */
}

.container:hover .right {
  transform: rotate3d(0, 0, 1, -15deg);
  /* transform: rotate3d(0, 0, 1, -15deg) scale(2); */
}

img {
  width: 100%;
  height: 100%;
}

.heart {
  width: 100vw;
  position: absolute;
  bottom: 10px;
  z-index: 999;
  pointer-events: none;
  /* color: red; */
  /* text-align: center; */
}
.heart.hide {
  display: none;
}
svg #line {
  fill: none;
  stroke: #e00000;
  stroke-width: 1.5;
  stroke-linecap: butt;
  stroke-linejoin: round;
  stroke-miterlimit: 4;

  stroke-opacity: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: dash 3s linear infinite;
}
svg #point {
  fill: none;
  stroke: #f00000;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-miterlimit: 0.1;
  stroke-opacity: 1;
  stroke-dasharray: 0.0001, 0.9999;
  stroke-dashoffset: 1;
  animation: dash 3s linear infinite;
}

@keyframes dash {
  0% {
    stroke-dashoffset: 1;
  }
  80% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.romantic-text {
  font-family: "Brush Script MT", cursive;
  width: 90vw;
  font-size: 1rem;
  color: #ff6b81;
  text-align: center;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: pulseGlow 2s infinite;
  text-shadow: 0 0 5px #ff6b81, 0 0 10px #ff6b81, 0 0 20px #ff6b81,
    0 0 30px #ff6b81;
}

@keyframes pulseGlow {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    text-shadow: 0 0 5px #ff6b81, 0 0 10px #ff6b81, 0 0 20px #ff6b81,
      0 0 30px #ff6b81;
  }
  50% {
    transform: translateX(-50%) scale(1.05);
    opacity: 0.9;
    text-shadow: 0 0 10px #ff4757, 0 0 20px #ff4757, 0 0 30px #ff4757,
      0 0 40px #ff4757;
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    text-shadow: 0 0 5px #ff6b81, 0 0 10px #ff6b81, 0 0 20px #ff6b81,
      0 0 30px #ff6b81;
  }
}

#cute-music-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: #fff0f6;
  color: #d63384;
  border: 2px solid #ffb6c1;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-size: 1.1em;
  z-index: 9999;
  opacity: 0;
  animation: fadeInCute 0.8s forwards ease;
}

@keyframes fadeInCute {
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@media (max-width: 800px) {
  #cute-music-popup {
    font-size: 1em;
    padding: 10px 16px;
    width: 400px;
    text-align: center;
    line-height: 1.4;
    left: 50%;
  }
}

@media (max-width: 600px) {
  .heart {
    bottom: 20%;
  }
  .romantic-text {
    bottom: 15%;
  }
}
