@import url(https://fonts.googleapis.com/css?family=Open+Sans:600);

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 50px;
}

.text {
  position: absolute;
  width: 1000px;
  left: 25%;
  margin-left: -180px;
  height: 40px;
  top: 25%;
  margin-top: -20px;
  color: antiquewhite;
}
.aftertext{
  position: absolute;
  width: 1000px;
  left: 1000px;
  margin-left: -225px;
  height: 40px;
  top: 54%;
  margin-top: -20px;
  color: antiquewhite;
}

p {
  display: inline-block;
  vertical-align: top;
  margin: 0;
}

.word {
  position: absolute;
  width: 400px;
  opacity: 0;
}

.letter {
  display: inline-block;
  position: relative;
  float: left;
  transform: translateZ(25px);
  transform-origin: 50% 50% 25px;
}

.letter.out {
  transform: rotateX(90deg);
  transition: transform 0.32s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.letter.behind {
  transform: rotateX(-90deg);
}

.letter.in {
  transform: rotateX(0deg);
  transition: transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wisteria {
  color: #8e44ad;
}

.belize {
  color: #2980b9;
}

.pomegranate {
  color: #c0392b;
}

.green {
  color: #16a085;
}

.midnight {
  color: #007bf7;
}

.pomegranate {
  color: #c0392b;
}

@media (max-width:500px) {
  .text {
    position: absolute;
    width: 1000px;
    left: 65%;
    margin-left: -225px;
    height: 40px;
    top: 25%;
    margin-top: -20px;
    color: antiquewhite;
  }
  body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 40px;
  }
}

@keyframes cursorAnim {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0.7);
  }
}
@keyframes cursorAnim2 {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0.4);
  }
}
@keyframes cursorAnim3 {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(3);
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
.expand {
  animation: cursorAnim3 0.5s forwards;
  border: 1px solid rgb(238, 238, 238);
}

