@keyframes diagonal-shake {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.shake-button {
  display: inline-block;
  padding: 5px 20px;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: diagonal-shake 1s ease infinite;
}

.ami-title {
  white-space: nowrap; /* Prevent line breaks */
  overflow: hidden; /* Hide overflowing text */
  text-overflow: ellipsis; /* Show ellipsis (…) for truncated text */
  display: block; /* Ensures the element behaves like a block */
  max-width: 100%; /* Confines it to the container width */
}

.amiwrap .ami-title {
  display: flex;
  justify-content: start;
  padding-left: 10px;
  padding-right: 40px;
  align-items: center;
  position: absolute;
  bottom: -8px;
  left: 10px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 2;
  height: 10%;
  width: auto;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 50%
  ); /* Initial gradient */
  background-size: 200% 100%; /* Stretch the gradient */
  animation: pulseEffect 3s ease-in-out infinite; /* Pulse animation */
}

@keyframes pulseEffect {
  0% {
    background-position: 100% 0; /* Start from the right */
  }
  50% {
    background-position: 0% 0; /* Move to the left */
  }
  100% {
    background-position: 100% 0; /* Move back to the right */
  }
}

.animated-border-box {
  position: relative;
  overflow: hidden;
}

.border-animation {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.border-animation.top {
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  animation: borderTop 2.5s linear infinite;
}

.border-animation.right {
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  animation: borderRight 2.5s linear infinite;
  animation-delay: 0.6s;
}

.border-animation.bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  animation: borderBottom 2.5s linear infinite;
  animation-delay: 1.2s;
}

.border-animation.left {
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  animation: borderLeft 2.5s linear infinite;
  animation-delay: 1.8s;
}

.scale-animation {
  display: inline-block;
  animation: scalePulse 1.5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes scalePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes borderTop {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes borderRight {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes borderBottom {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes borderLeft {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(-100%);
  }
}

@keyframes ring {
  0% {
    transform: rotate(0deg) scale(1);
  }
  10% {
    transform: rotate(20deg) scale(1.05);
  }
  20% {
    transform: rotate(-20deg) scale(1.1);
  }
  30% {
    transform: rotate(15deg) scale(1.05);
  }
  40% {
    transform: rotate(-15deg) scale(1.1);
  }
  50% {
    transform: rotate(10deg) scale(1.05);
  }
  60% {
    transform: rotate(-10deg) scale(1.1);
  }
  70% {
    transform: rotate(5deg) scale(1.05);
  }
  80% {
    transform: rotate(-5deg) scale(1.02);
  }
  90% {
    transform: rotate(2deg) scale(1.01);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

.ringing {
  display: inline-block;
  animation: ring 2s infinite;
  transform-origin: center;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.card-text {
  margin-bottom: 0.5rem;
}

.bottom-icon {
}
