*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue';
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

body {
  height: max-content;
  min-height: 600vh;
  width: 100%;
  background-color: #000;
}

.container1 {
  --bg-color: transparent;
}

.container2,
.container8,
.container14 {
  --bg-color: #0f0;
}

.container3,
.container9,
.container15 {
  --bg-color: #ff0;
}

.container4,
.container10,
.container16 {
  --bg-color: #f0f;
}

.container5,
.container11,
.container17 {
  --bg-color: #0ff;
}

.container6,
.container12,
.container18 {
  --bg-color: #f00;
}

.container7,
.container13,
.container19 {
  --bg-color: #00f;
}

.container {
  width: 100%;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background-image: url('assets/image.avif');
  background-size: cover;
  background-position: center;
  animation: crecer auto linear forwards;
  animation-timeline: scroll();

  &::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: var(--bg-color, transparent);
    mix-blend-mode: multiply;
  }
}

@keyframes crecer {
  0% {
    min-height: calc(var(--mh) * 2vw);
  }
  100% {
    min-height: 100vh;
  }
}
