html, body {
  margin: 0;
  padding: 0;  
  font-family: 'Strait-Regular', cursive;
  height: 100vh;
  width: 100%;
  display: flex;
  overflow: hidden;
}

html {
background-color: black;
}

.container {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 350px;
  transform: translateY(-50%);
}

.wrapper {
  position: absolute;
  top: calc(75% - 338px);
  left: 60px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.cmnsoontxt {
	font-family: 'Arch-ExtraCompressed-Trial';
	color: white;
	padding: 1px;
	font-size: 120px;
	font-style: italic;
  animation: move 25s linear 2s forwards;
}

@keyframes move {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(100px);
  }
}

.desc {
  color: white;
  padding: 0px;
  font-size: 24px;
  line-height: 0;
}

.madwrap { 
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  box-sizing: border-box;
  height: 350px;
}

.madwrap::before,
.madwrap::after{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 4px;
  background: white;
  animation: sweep-in 0.35s ease-out forwards;
}

.madwrap::after{
  top: auto;
  bottom: 0;
}
 
@keyframes sweep-in{
  from { width: 0%; }
  to   { width: 100%; }
}

/*upper row */

.row1{
  width: 100%;
  height: 50%;
  overflow: hidden;
  position: relative;
}

.row1-strip{
  width: 100%;
  height: 100%;
  position: relative;
}

.row1 .layera{
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-size: 300px 100%;
  clip-path: inset(100% 0 0 0);
}

.row1 .layera-1{
  background-image: url('/assets/pic2.png');

  -webkit-mask-image: repeating-linear-gradient(
    to right,
    black 0px, black 300px,
    transparent 300px, transparent 600px
  );
  mask-image: repeating-linear-gradient(
    to right,
    black 0px, black 300px,
    transparent 300px, transparent 600px
  );

  animation: reveal-up 0.55s linear 0.35s forwards;
}

.row1 .layera-2{
  background-image: url('/assets/pic1.png');

  -webkit-mask-image: repeating-linear-gradient(
    to right,
    transparent 0px, transparent 300px,
    black 300px, black 600px
  );
  mask-image: repeating-linear-gradient(
    to right,
    transparent 0px, transparent 300px,
    black 300px, black 600px
  );
  animation: reveal-up-with-pause 1.3s linear 0.35s forwards;
}

@keyframes reveal-up{
  from {
    clip-path: inset(100% 0 0 0);
  }

  to {
    clip-path: inset(2% 0 0 0);
  }
}

@keyframes reveal-up-with-pause{
  0% {
    clip-path: inset(100% 0 0 0);
  }

  70.18% {
    clip-path: inset(100% 0 0 0);
  }

  100% {
    clip-path: inset(2% 0 0 0);
  }
}

/*lower row*/
 
.row2{
  width: 100%;
  height: 50%;
  overflow: hidden;
  position: relative;
}
 
 
.row2-strip{
  width: 0%;
  height: 100%;
  position: relative;
  animation: sweep-in-row 0.35s linear forwards;
}

.layer{
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-size: 300px 100%;
}
 
.layer-1{
  background-image: url('/assets/pic1.png');
  -webkit-mask-image: repeating-linear-gradient(
    to right,
    black 0px, black 300px,
    transparent 300px, transparent 600px
  );
  mask-image: repeating-linear-gradient(
    to right,
    black 0px, black 300px,
    transparent 300px, transparent 600px
  );
}
 
.layer-2{
  background-image: url('/assets/pic2.png');
  -webkit-mask-image: repeating-linear-gradient(
    to right,
    transparent 0px, transparent 300px,
    black 300px, black 600px
  );
  mask-image: repeating-linear-gradient(
    to right,
    transparent 0px, transparent 300px,
    black 300px, black 600px
  );
}
 
@keyframes sweep-in-row{
  from { width: 0%; }
  to   { width: 100%; }
}

.static{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 97.8%;
  object-fit: cover;
  top: 4px;

  opacity: 0;
  animation: show-gif 0s linear 2s forwards;
}

@keyframes show-gif{
  to {
    opacity: 1;
  }
}

.number-display {
  position: absolute;
  bottom: 105%;
  left: 30px;

 color: pink;
  height: 30px;
  white-space: nowrap;

  display: flex;
  align-items: center;
  font-size: 30px;

  opacity: 0;

  animation: slide-num 0.30s linear 2s forwards;
}

#random-number {
  margin-right: 7px;
  font-family: 'Strait-Regular', sans-serif;
  font-size: 20px;
  margin-top: 12px;
  color: #DBD3C9;
}

.arrows {
  display: flex;
  gap: 100px;
    color: white;
}

@keyframes slide-num {
  from {
    left: 0;
    transform: translateX(0);
    opacity: 1;
  }

  to {
    left: calc(100% - 20px);
    transform: translateX(-100%);
    opacity: 1;
  }
}


.triangles {
  position: absolute;
  top: calc(50% + -139px);
  right: 0;

  display: flex;
  gap: 400px;
  margin-right: 30px;
  color: white;
  font-size: 30px;
}

.triangles span {
  visibility: hidden;
  animation: triangle-in 2s linear forwards;
}

.triangles span:nth-child(1) {
  animation-delay: 0s;
}

.triangles span:nth-child(2) {
  animation-delay: 0.15s;
}

.triangles span:nth-child(3) {
  animation-delay: 0.30s;
}

.triangles span:nth-child(4) {
  animation-delay: 0.45s;
}

@keyframes triangle-in {
  0% {
    visibility: visible;
  }

  25% {
    visibility: hidden;
  }
}



@font-face {
  font-family: 'Arch-ExtraCompressed-Trial';
  src:        url('/assets/Arch-ExtraCompressed-Trial.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HPSimplified-Regular';
  src:        url('/assets/HPSimplified-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Strait-Regular';
  src:        url('/assets/Strait-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@media (max-width: 767px) and (orientation: portrait) {
  html {
    overflow-x: hidden;
    transform: rotate(90deg);
    transform-origin: left top;
    width: 100vh;
    height: 100vw;
    position: absolute;
    top: 0;
    left: 100%;
    display: flex;
  }
}

:root{
  --design-width: 1440px;
}

@media (max-width: 767px){
.container{
    height: 160px;
	bottom: -42px;
  }

.wrapper{
    top: calc(85% - 170px);
    left: 20px;
  }
 
.cmnsoontxt{
    font-size: 48px;
  }
 
.desc{
    font-size: 14px;
  }
 
.madwrap{
    height: 160px;
  }
 
.row1 .layera,
.layer{
    background-size: 140px 100%;
  }
 
.row1 .layera-1,
.layer-1{
    -webkit-mask-image: repeating-linear-gradient(
      to right,
      black 0px, black 140px,
      transparent 140px, transparent 280px
    );
    mask-image: repeating-linear-gradient(
      to right,
      black 0px, black 140px,
      transparent 140px, transparent 280px
    );
  }
 
.row1 .layera-2,
.layer-2{
    -webkit-mask-image: repeating-linear-gradient(
      to right,
      transparent 0px, transparent 140px,
      black 140px, black 280px
    );
    mask-image: repeating-linear-gradient(
      to right,
      transparent 0px, transparent 140px,
      black 140px, black 280px
    );
  }
 
.number-display{
    left: 12px;
    height: 18px;
    font-size: 16px;
  }
 
#random-number{
    font-size: 12px;
  }
 
.arrows{
    gap: 30px;
  }
 
.triangles{
    top: calc(50% + -60px);
    gap: 80px;
    margin-right: 12px;
    font-size: 16px;
  }
}


@media (768px <= width <= 1023px){
.container{
    height: 200px;
	margin-top: -49px;
  }

.wrapper{
    top: calc(85% - 200px);
    left: 20px;
  }
 
.cmnsoontxt{
    font-size: 70px;
  }
 
.desc{
    font-size: 17px;
  }
 
.madwrap{
    height: 160px;
  }
 
.row1 .layera,
.layer{
    background-size: 140px 100%;
  }
 
.row1 .layera-1,
.layer-1{
    -webkit-mask-image: repeating-linear-gradient(
      to right,
      black 0px, black 140px,
      transparent 140px, transparent 280px
    );
    mask-image: repeating-linear-gradient(
      to right,
      black 0px, black 140px,
      transparent 140px, transparent 280px
    );
  }
 
.row1 .layera-2,
.layer-2{
    -webkit-mask-image: repeating-linear-gradient(
      to right,
      transparent 0px, transparent 140px,
      black 140px, black 280px
    );
    mask-image: repeating-linear-gradient(
      to right,
      transparent 0px, transparent 140px,
      black 140px, black 280px
    );
  }
 
.number-display{
    left: 12px;
    height: 18px;
    font-size: 20px;
  }
 
#random-number{
    font-size: 16px;
	margin-top: 6px;
  }
 
.arrows{
    gap: 35px;
  }
 
.triangles{
    top: calc(50% + -72px);
    gap: 80px;
    margin-right: 12px;
    font-size: 20px;
  }
}
