.animated-button {
  font-size: 18px;
  border: none;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
  width: 164px;
  height: 40px;
  margin: auto;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: black;
  font-size: 15px;
  color: #fff;
  vertical-align: middle;
}

.animated-button:hover {
  background-color: #333;
}

.animated-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 355%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: width 0.3s ease, height 0.3s ease, top 0.3s ease, left 0.3s ease;
}

.animated-button:hover::before {
  width: 0;
  height: 0;
  top: 50%;
  left: 50%;
}

/* .animated-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    animation: bounce 0.6s infinite;
} */

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}
