@font-face {
  font-family: valentinesFont;
  src: url(LOVING_IS_EASY.otf);
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h1 {
  text-align: center;
  width: 100%;
  font-family: valentinesFont;
  font-size: 50px;
  color: #fc2e5a;
}

html,
body {
  background: rgb(251, 212, 219);
  width: 100%;
  height: 100%;
  min-width: 500px;
  min-height: 500px;
  overflow: hidden;
  text-align: center;
  position: relative;
}
.heart {
  position: absolute;
  width: 100px;
  height: 90px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: -45px;
  margin-left: -50px;
}
.heart:before,
.heart:after {
  content: "";
  position: absolute;
  top: 0;
  width: 50px;
  height: 80px;
  background: #fc2e5a;
  border-radius: 50px 50px 0 0;
}
.heart:before {
  left: 50px;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}
.heart:after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}
.heart-bg {
  animation: heart-anim 1s linear 0.4s infinite;
}
.heart-bg:before,
.heart-bg:after {
  background-color: #ff7693;
}
.heart-main {
  animation: pounding 0.5s linear infinite alternate;
}
@keyframes pounding {
  0% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes heart-anim {
  46% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  52% {
    transform: scale(1.5);
  }
  55% {
    transform: scale(3);
  }
  100% {
    opacity: 0;
    transform: scale(50);
  }
}

@keyframes jackInTheBox {
  from {
    opacity: 0;
    transform: scale(0.1) rotate(30deg);
    transform-origin: center bottom;
  }

  50% {
    transform: rotate(-10deg);
  }

  70% {
    transform: rotate(3deg);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.jackInTheBox {
  animation: jackInTheBox infinite 1s;
}

.bottom-middle {
  position: absolute;
  bottom: 5%;
  left: 0%;
  transform: translateX(-50%);
}
