* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Oswald", sans-serif;
  color: #333;
}

h1 {
  margin: 10vh 0 5vh;
  font-size: clamp(30px, 110px, 10vw);
  line-height: 1.2em;
  text-align: center;
}

p {
  font-size: clamp(20px, 30px, 3vw);
}

.wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  min-height: 100dvh;
  background-image: url(images/jingle-hell.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
  overflow: hidden;
}

.logo {
  align-self: start;
  display: inline-block;
  margin: 30px 0 0 30px;
  padding: 20px;
  background-color: rgba(210, 74, 26, 1);
}
.logo img {
  width: 70px;
}

.floatie {
  position: absolute;
  z-index: -1;
  top: 5%;
  width: 50%;
  max-width: 500px;
  aspect-ratio: 0.46;
  /* animation: float linear 10s infinite; */
}
.ball {
  position: absolute;
  z-index: -1;
  top: -50px;
  align-self: end;
  /* animation: float linear 6s infinite; */
}

.buttons {
  text-align: center;
  margin: 5vh 0 0;
}
.button {
  display: inline-block;
  padding: 15px 25px 18px;
  margin: 0 5px 30px;
  background-color: rgba(210, 74, 26, 1);
  color: #fff;
  font-size: clamp(16px, 30px, 3vw);
  text-decoration: none;
  line-height: 1em;
}

.button:hover {
  background-color: rgb(93, 35, 27);
}

.footer {
  margin: auto 1rem 1rem auto;
}

@media (max-width: 1100px) {
  .ball {
    right: -120px;
  }
}

@media (max-width: 600px) {
  .floatie {
    top: 15%;
  }

  .footer {
    font-size: 14px;
  }
}

@media (max-width: 500px) {
  .floatie {
    top: 20%;
  }
}

@media (max-height: 800px) {
  h1 {
    margin: -50px 0 0;
  }
  .buttons {
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  h1 {
    margin-top: 20px;
  }
  .wrapper {
    background-image: url(images/jingle-hell-mobile.jpg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  12.5% {
    transform: translate(0, -5px) rotate(1deg);
  }
  25% {
    transform: translate(0, -10px) rotate(2deg);
  }
  37.5% {
    transform: translate(0, -15px) rotate(1deg);
  }
  50% {
    transform: translate(0, -20px) rotate(0deg);
  }
  62.5% {
    transform: translate(0, -15px) rotate(-1deg);
  }
  75% {
    transform: translate(0, -10px) rotate(-2deg);
  }
  87.5% {
    transform: translate(0, -5px) rotate(-1deg);
  }
}
