/* Base styles for the X mark */
.xmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #d93636;
  /* Red color */
  stroke-miterlimit: 10;
  margin-bottom: 40px;
  animation: fill 0.4s ease-in-out 0.4s forwards,
    scale 0.3s ease-in-out 0.9s both;
}

/* Animation for the circle stroke */
.xmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #d93636;
  /* Red color */
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

/* Common styles for both lines of the X */
.xmark__line1,
.xmark__line2 {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* Keyframes for drawing the stroke */
@keyframes stroke {
  to {
    stroke-dashoffset: 0;
  }
}

/* Keyframes for scaling effect */
@keyframes scale {
  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

/* Optional: Fill animation for the circle background */
@keyframes fill {
  to {
    fill: rgba(255, 0, 0, 0.1);
    /* Light red fill */
  }
}
