/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

html {
  width: 100%;
  height: 100%;
  background-color: #f945e5;
}

body {
  /* 4. Increase line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  width: 100%;
  height: 100%;
  background-color: #f945e5;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
main {
  isolation: isolate;
  background: linear-gradient(0deg, #f945e5 0%, #fcc22f 80%);
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo {
  width: 80dvw;
  position: relative;
  z-index: 2;
}

.comingSoon {
  width: 60dvw;
  z-index: 2;
  position: absolute;
  left: 50%;
  top: 20%;
  transform: translate3d(-50%, -50%, 0) rotateZ(-5deg);
}

.bg {
  display: block;
  z-index: 1;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  filter: drop-shadow(min(0.2dvw, 0.2dvh) max(0.4dvw, 0.4dvh) 0 #FFFFFF);
  mix-blend-mode: hue;
  pointer-events: none;
}

.links {
  position: absolute;
  top: 80%;
  left: 50%;
  max-width: 100%;
  transform: translate3d(-50%, -50%, 0);
  z-index: 2;
}

.links ul {
  display: flex;
  flex-flow: row nowrap;
  list-style-type: none;
  padding: 0;
  gap: 0 min(10dvh, 10dvw);
  align-items: center;
  justify-content: center;
}

.links li {
  flex-shrink: 0;
  display: block;
  animation: translate infinite 6s ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: rotateZ(-5deg);
  }

  50% {
    transform: rotateZ(5deg);
  }
}

@keyframes translate {
  0%, 100% {
    transform: translate3d(0, -10%, 0);
  }

  50% {
    transform: translate3d(0, 10%, 0);
  }
}

.links a {
  display: block;
  -webkit-tap-highlight-color: transparent;
  animation: float infinite 4s ease-in-out;
}

.links img {
  width: 10dvw;
  height: auto;
  transition: transform 200ms ease-in-out;
}

.links img:hover {
  transform: scale(1.2);
}

@media (min-aspect-ratio: 1/1) {
  .logo {
    width: auto;
    height: 30dvh;
  }

  .comingSoon {
    width: auto;
    height: 8dvh;
  }

  .links img {
    width: 8dvh;
  }
}
