.but,
button {
  outline: none;
  border: none;
  background: inherit;
  box-sizing: border-box !important;
}
.button-1 {
  position: relative;
  display: inline-block;
  padding: 16px 28px;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background-color: #1f347b;
  border-radius: 40px;
  overflow: hidden;
  border: none;
  z-index: 1;
}

.button-1:before {
  transition: 1s;
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.button-1:hover:before {
  width: 300px;
  height: 300px;
  opacity: 0.4;
  transition: all 0.5s ease-out;
}

.button-1:hover {
  background-color: #fff;
  color: #202960;
  transition: all 0.5s ease-out;
}

.button-1:hover:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: #255ea4;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    width: 0;
    height: 0;
    opacity: 0.5;
  }

  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

.button-2 {
  display: inline-block;
  padding: 10px 10px;
  border: 2px solid #4a5568;
  background-color: #4a5568;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.button-2::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: #fff;
  opacity: 0.2;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease-in-out;
}

.button-2:hover {
  background-color: #fff;
  color: #4a5568;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.button-2:hover::before {
  width: 200%;
  height: 200%;
}

.button-3 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 15px 38px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: #ffffff;
  background-color: #1dc9a0;
  font-size: 16px;
  letter-spacing: 1px;
  transition: all 0.15s linear;
}

.button-3:hover {
  background-color: rgba(29, 201, 160, 0.08);
  border-color: #1dc9a0;
  color: #1dc9a0;
  transform: translateY(-5px) scale(1.05);
}

.button-3:active {
  background-color: transparent;
  border-color: #1dc9a0;
  color: #1dc9a0;
  transform: translateY(5px) scale(0.95);
}

.button-3:disabled {
  background-color: rgba(255, 255, 255, 0.16);
  color: #8e8e93;
  border-color: #8e8e93;
}

.button-4 {
  padding: 10px;
  margin-top: 15px;
  border: 0;
  box-shadow: 0px 0px 40px 0px red;
  font-weight: bolder;
  color: white;
  border-radius: 0.3rem;
  background-color: red;
  letter-spacing: 0.2rem;
}

.button-4:hover {
  animation: changeBg 1s infinite;
  -webkit-animation-duration: 10s;
}

@keyframes changeBg {
  0%,
  100% {
    box-shadow: 0px 0px 40px 0px red;
  }

  25% {
    box-shadow: 0px 0px 40px 0px turquoise;
    background-color: turquoise;
  }

  50% {
    box-shadow: 0px 0px 40px 0px purple;
    background-color: purple;
  }

  75% {
    box-shadow: 0px 0px 40px 0px rgb(191, 204, 11);
    background-color: rgb(191, 204, 11);
  }
}

.button-5 {
  font-size: 17px;
  font-weight: bold;
  border: 0px;
  color: white;
  background-color: #1877f2;
  padding: 10px 15px;
  border-radius: 15px;
  cursor: pointer;
}

.button-5:hover {
  background-image: linear-gradient(90deg, #b799ff 0%, #acbcff 50%, #aee2ff 75%, #e6fffd 100%);
  color: black;
  animation: slide 10s linear infinite;
}

@keyframes slide {
  100% {
    background-position: 50rem;
  }
}
