body,
html {
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%/2, max(400px, 100%/3)), 1fr)
  );
  grid-auto-rows: 1fr;
  margin: 0;
  padding: 20px;
  gap: 10px;
}

section {
  background: linear-gradient(
    180deg,
    rgba(30, 99, 159, 1) 0%,
    rgba(27, 82, 136, 1) 100%
  );
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-direction: column;
}

@keyframes heart-in {
  0% {
    transform: translate(-50%, -50%) scale(3);
  }

  50% {
    transform: translate(-50%, -50%);
  }

  75% {
    transform: translate(-50%, -50%) scale(1.1);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  7% {
    transform: translate(-50%, -50%) scale(1.1);
  }

  14% {
    transform: translate(-50%, -50%) scale(1);
  }
}

a {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(3);
  animation: heart-in 0.7s ease-in-out forwards, pulse 4s ease-in-out infinite;
  animation-delay: 0.3s, 3s;
  cursor: pointer;
}

img {
  width: 250px;
  height: 250px;
}

h2 {
  font-family: "Germania One", serif;
  color: white;
  font-size: 100px;
  margin: 0;
  text-align: center;
  margin-top: 30px;
}

@media screen and (max-width: 850px) {
  body {
    grid-auto-rows: 430px;
  }

  a {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
  }
}

.rate-device-container {
  display: flex;
  transform: scale(0.6) translate(0, -275px);
  gap: 100px;
  width: 100%;
  justify-content: space-evenly;
}

.rate-device-container > .device-container {
  transform: rotate(10deg);
  transform-origin: top left;
  z-index: 0;
}

.rate-device-container > .device-container:nth-of-type(1) {
  transform: rotate(-10deg);
}
