@font-face {
  font-family: 'Sofia Pro';
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  src: url('./fonts/SofiaPro-UltraLight.ttf') format('truetype');
}

@font-face {
  font-family: 'Sofia Pro';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('./fonts/SofiaPro-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Sofia Pro';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('./fonts/SofiaPro-SemiBold.ttf') format('truetype');
}

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

html {
  font-size: 62.5%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;

  font-family: 'Sofia Pro', sans-serif;
  font-size: 1.8rem;
  color: #fffefe;

  background: linear-gradient(to bottom, #6a66c8 0%, #6660d8 100%);
  overflow: hidden;
}

a {
  font: inherit;
  color: inherit;
}

.Container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  width: 100vmin;
  height: 100vmin;
  padding: 10vmin;
}

.Heading {
  font-weight: 200;
  font-size: 9vmin;
  line-height: 1.25;
}

.Heading strong {
  display: block;
}

.Link {
  display: inline-flex;
  align-items: center;
  height: 1.5em;
  padding: 0 5vmin;
  border-radius: 1.5em;
  margin-top: 5vmin;

  font-size: 7vmin;
  line-height: 1;
  text-decoration: none;
  background-color: #46479c;
  overflow: hidden;
}

.Link img {
  display: block;
  height: 0.53em;
  margin-right: 0.1em;
}

.Link span {
  font-size: 0.5em;
  font-weight: 400;
}

.Link strong {
  /* Compensate for extra spacing at top and bottom of the typeface */
  display: inline-block;
  margin-top: -0.17em;
  margin-bottom: 0.14em;

  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.Gallery {
  --items-count: 7;
  --item-width: 50vmin;

  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100vmin;

  position: absolute;
  top: calc(50% - 50vmin);
  left: 0;
  pointer-events: none;
}

.Row {
  flex-shrink: 0;
  display: flex;
  gap: 2vmin;
  width: calc(var(--items-count) * var(--item-width) + (var(--items-count) - 1) * 2vmin);
  height: 35%;
  margin: 1vmin 0;

  animation: slide ease-in-out infinite alternate 2s;
  animation-fill-mode: both;
  animation-delay: 1s;
}

.Row:nth-child(2n) {
  animation-direction: alternate-reverse;
}

.Box {
  flex-shrink: 0;
  width: var(--item-width);
  height: 100%;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

@keyframes slide {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(calc(100vw + 20%));
  }
}
