@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBBc9.ttf) format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxP.ttf) format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBBc9.ttf) format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc9.ttf) format('truetype');
}
* {
  margin: 0;
  padding: 0;
  outline: none;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  color: #000;
  background: transparent;
  border: none;
}
html,
body {
  height: 100%;
  width: 100%;
}
body {
  background: #111;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}
section {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: 0.6s all ease-out 0s;
  pointer-events: none;
}
section.active {
  opacity: 1;
  pointer-events: initial;
}
.first {
  height: 100%;
  width: 100%;
  background: #000;
}
.first p {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 36px;
  height: 40px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  color: #fff;
  overflow: hidden;
}
.first p span {
  display: inline-block;
  color: #FFF;
  transform: translateY(40px);
  transition: 0.6s all ease-out 0.6s;
}
.first p.active span {
  transform: translateY(0);
}
.first p.hide span {
  transform: translateY(-40px);
}
.first.hide {
  opacity: 0;
}
.second {
  height: 100%;
  width: 100%;
  background: url(./chat_photo.jpg) no-repeat center center;
  background-size: cover;
}
.second h1 {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 10px;
  font-size: 36px;
  height: 140px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
.second h1 span {
  font-size: 146px;
  color: #FFF;
  display: inline-block;
  opacity: 0;
  transform-origin: bottom;
  perspective: 1000px;
  transform-style: preserve-3d;
  text-shadow: 0 20px 30px rgba(0, 0, 0, 0.6);
  transform: rotateY(-90deg);
  transition: 0.8s all cubic-bezier(0.64, 0.57, 0.67, 1.53);
}
.second h1 span:nth-of-type(1) {
  transition-delay: 0.2s;
}
.second h1 span:nth-of-type(2) {
  transition-delay: 0.4s;
}
.second h1 span:nth-of-type(3) {
  transition-delay: 0.6s;
}
.second h1 span:nth-of-type(4) {
  transition-delay: 0.8s;
}
.second h1 span:nth-of-type(5) {
  transition-delay: 1s;
}
.second h1 span:nth-of-type(6) {
  transition-delay: 1.2s;
}
.second h1 span:nth-of-type(7) {
  transition-delay: 1.4s;
}
.second h1 span:nth-of-type(8) {
  transition-delay: 1.6s;
}
.second h1 span:nth-of-type(9) {
  transition-delay: 1.8s;
}
.second h1 span:nth-of-type(10) {
  transition-delay: 2s;
}
.second h1 span:nth-of-type(11) {
  transition-delay: 2.2s;
}
.second h1.active span {
  opacity: 1;
  transform: rotateX(0);
}
