html {
  height: 100%;
  overflow: hidden;
  scroll-behavior: [ auto | smooth ];
}
body {

  perspective: 1px;
  transform-style: preserve-3d;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
}
section {
  position: relative;
  width: 100vw;
  height: 100vh;
  top: auto;
  display: grid;
  justify-items: center;
  align-items: center;
  transform-style: preserve-3d;
  transition: transform 0.3 linear;
}
section:nth-child(odd) {
  transform: translateZ(-1px) scale(2);
}
section:nth-child(odd) .text-container {
  transform: translateZ(1px) scale(0.66);
}
section:nth-child(even) {
  z-index: 2;
}
section:nth-child(even) .text-container {
  transform: translateZ(0.5px) scale(0.66);
}
section:nth-child(even) .img-container {
  box-shadow: 0 -10px 10px rgba(0, 0, 0, 0.5), -10px 0 10px rgba(0, 0, 0, 0.5);
}
section .img-container {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translateZ(0.25px);
  transform-origin: 50% 100%;
  transition: transform 0.3 linear;
}
section .text-container {
  position: relative;
  z-index: 10;
  transform-origin: 50% 100%;
  transition: transform 0.3 linear;
}
section .text-container.light {
  color: goldenrod;
}
section .text-container.dark {
  color: white;
}
section .text-container.dark a {
  color: inherit;
}
section .text-container {
  box-sizing: border-box;
  padding: 30px;
  font-family: "Lato", sans-serif;
  font-weight: 600;
  font-size: 3rem;
  line-height: 1.7;
  letter-spacing: 0.1em;
  word-break: break-all;
  text-align: center;
  
}