.begin-button-container {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.begin-button {
  color: white;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.8px;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 55px;
  width: 280px;
  border: 0px solid #0460cc;
  border-radius: 75px;
  background: #000;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.25);
  transition: color, background 0.5s ease-in-out;
}

body.dark-mode .begin-button {
  color: black;
  background-color: white;
  transition: color, background 0.5s ease-in-out;
}

.begin-button span {
  position: relative;
  font-size: 72px;
  top: 5px;
  left: -5px;
}

.begin-button::before,
.begin-button::after {
  opacity: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  content: "";
  left: -11px;
  height: 55px;
  width: 300px;
  background: #ccc;
  border-radius: 75px;
  animation-name: ripple;
  animation-duration: 4s;
  animation-delay: 5s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);
  z-index: -1;
  transition: color, background 0.5s ease-in-out;
}

body.dark-mode .begin-button::before,
body.dark-mode .begin-button::after {
  background: #5a5a5a;
  transition: color, background 0.5s ease-in-out;
}

.begin-button::before {
  animation: ripple 4s infinite;
}

.begin-button::after {
  animation: ripple 4s infinite;
  animation-delay: 0.5s; /* Second pulse delayed by 0.5 seconds */
}

@keyframes ripple {
  from {
    opacity: 1;
    transform: scale3d(0.75, 0.75, 1);
  }

  to {
    opacity: 0;
    transform: scale3d(1.25, 2, 1);
  }
}
