/* GLOBAL */

html, body {
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  height: 100vh;
}

h1, h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
  padding: .5em 1em; 
}

.center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* BLOCK REVEAL */

.block-reveal {
  position: absolute;
}
.block-reveal span {
  opacity: 0;
}
.block-reveal:after {
  position: absolute;
  content: '';
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
}

#second {
  left: 61%;
  top: 53%;
}

/* TIMING */

.block-reveal span {
  animation: show-text .0001s linear forwards;
  animation-delay: 1.4s;
}
.block-reveal:after {
  animation: block-reveal 1.5s cubic-bezier(.19, 1, .22, 1) forwards;
  animation-delay: 1s;
}

#second span {
  animation-delay: 2s;
}
#second.block-reveal:after {
  animation-delay: 1.4s;
}


/* ANIMATION */

@keyframes block-reveal {
  0% {
    left: 0;
    width: 0%;
  }
  50% {
    left: 0;
    width: 100%;
  }
  100% {
    left: 100%;
    width: 0%;
  }
}

@keyframes show-text {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* SIZES */

h1 {
  font-size: 36px;
  letter-spacing: 3px;
}

h2 {
  font-size: 24px;
  letter-spacing: 2px;
}

/* COLORS */

body {
  background: #eceff1;
}

h1 {
  color: #263238;
}

h2 {
  color: #b0bec5;
}

.block-reveal:after {
  background: #607d8b;
}

#second.block-reveal:after {
  background: #455a64;
}
