@font-face {
  font-family: "Oxygen";
  font-weight: 300;
  src: local("Oxygen"), url("./assets/oxygen-regular.woff2") format("woff2");
  font-display: swap;
}

*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Oxygen, sans-serif;
  color: #191919;
  text-align: center;
  padding: 1rem;
  gap: 1rem;
  height: 100vh;
  background-color: #fafafa;
}

button {
  height: 6.5rem;
  width: 6.5rem;
  border-radius: 50%;
  border: none;
  background-color: #3f3f4f;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus {
  outline: 2px solid hsl(240deg 100% 20%);
}

.fun {
  background-repeat: no-repeat;
  background-size: cover;
  background-image: linear-gradient(
    45deg,
    hsl(240deg 100% 20%) 0%,
    hsl(281deg 100% 21%) 8%,
    hsl(304deg 100% 23%) 17%,
    hsl(319deg 100% 30%) 25%,
    hsl(329deg 100% 36%) 33%,
    hsl(336deg 100% 41%) 42%,
    hsl(346deg 83% 51%) 50%,
    hsl(3deg 95% 61%) 58%,
    hsl(17deg 100% 59%) 67%,
    hsl(30deg 100% 55%) 75%,
    hsl(40deg 100% 50%) 83%,
    hsl(48deg 100% 50%) 92%,
    hsl(55deg 100% 50%) 100%
  );
}

.fun-btn {
  background-color: hsl(55deg 100% 50%);
}

.fun-btn:hover {
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-name: jump;
  animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1);
}

@keyframes jump {
  0% {
    transform: scale(1, 1) translateY(0);
  }
  10% {
    transform: scale(1.1, 0.9) translateY(0);
  }
  30% {
    transform: scale(0.9, 1.1) translateY(-100px);
  }
  50% {
    transform: scale(1.05, 0.95) translateY(0);
  }
  57% {
    transform: scale(1, 1) translateY(-7px);
  }
  64% {
    transform: scale(1, 1) translateY(0);
  }
  100% {
    transform: scale(1, 1) translateY(0);
  }
}
