body {
  transition: all 0.5s ease-in-out;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f5f5f5;
}

h1 {
  font-family: cursive;
}

.main-div {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
}

button {
  padding: 15px 25px;
  margin: 0px 15px 0px 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
}

.for-mobile {
  display: none;
}

@media (max-width: 700px) {
  .main-div h1 {
    font-size: 25px;
    text-align: center;
  }

  button {
    flex-wrap: wrap;
  }

  .for-mobile {
    display: block;
  }

  .for-pc {
    display: none;
  }

  .div-one,
  .div-two {
    justify-content: space-around;
    align-items: center;
    display: flex;
    margin: 10px 0 10px 0;
  }
}

.reset {
  background: transparent;
  color: #000;
  font-size: 17px;
  text-transform: uppercase;
  font-weight: 900;
  border: none;
  padding: 20px 30px;
  cursor: pointer;
  perspective: 30rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.308);
}

.reset::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 10px;
  background: linear-gradient(
    320deg,
    rgba(0, 140, 255, 0.678),
    rgba(128, 0, 128, 0.308)
  );
  z-index: 1;
  transition: background 3s;
}

.reset:hover::before {
  animation: rotate 1s;
  transition: all 0.5s;
}

@keyframes rotate {
  0% {
    transform: rotateY(180deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

.color-btn {
  position: relative;
  padding: 17px 35px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 10px;
  background-color: #fff;
  border: 1px solid;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
}

.color-btn span {
  position: relative;
  z-index: 2;
}

/* hover shake animation */
.color-btn:hover {
  animation: rotate624 0.7s ease-in-out both;
}

.color-btn:hover span {
  animation: storm1261 0.7s ease-in-out both;
  animation-delay: 0.06s;
}

.red {
  color: #f30b0b;
  border-color: rgba(230, 7, 11, 0.887);
}

.green {
  color: #1b7f3a;
  border-color: rgba(27, 127, 58, 0.6);
}

.blue {
  color: #1d89ff;
  border-color: rgba(5, 62, 123, 0.645);
}

.orange {
  color: #c96a00;
  border-color: rgba(230, 128, 11, 0.6);
}

.color-btn::after {
  content: "";
  position: absolute;
  top: -50px;
  left: -75px;
  width: 50px;
  height: 155px;
  opacity: 0.4;
  transform: rotate(35deg);
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

.red::after {
  background: #f31414;
}
.green::after {
  background: #049639;
}
.blue::after {
  background: #137ae8;
}
.orange::after {
  background: #f6871f;
}

.color-btn:hover::after {
  left: 120%;
}
