html,
body {
  width: 100%;
  height: 100%;
}
body {
  background: url("background.jpg") no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

#mynav {
  /* overflow: hidden; */
  white-space: nowrap;
  animation: backInLeft;
  animation-duration: 2s;
  animation-delay: 6s;
  animation-fill-mode: both;
  background: transparent;
}

.ap {
  font-family: "Special Elite", cursive;
  font-size: 3em;
  font-weight: bolder;
  text-shadow: 3px 3px white;
  color: #842020;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.025em;
}

.navbar {
  z-index: 999;
}

.bheader {
  height: 100%;

  padding: 10px 10px;
}

.buffer {
  height: 50px;
}

.subtitle {
  font-family: "Special Elite", cursive;
  font-size: 1.5em;
  text-shadow: 3px 3px white;
  color: #842020;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.08em;
}

#sub1 {
  animation: typing1 2s 2s steps(30, end);
  -webkit-animation: typing1 2s 2s steps(30, end);
  animation-fill-mode: both;
}
#sub2 {
  animation: typing1 2s 3.5s steps(13, end);
  -webkit-animation: typing1 2s 3.5s steps(13, end);
  animation-fill-mode: both;
}
#sub3 {
  animation: typing1 2s 4s steps(34, end);
  -webkit-animation: typing1 2s 4s steps(34, end);
  animation-fill-mode: both;
}
#sub4 {
  animation: typing1 2s 5s steps(20, end);
  -webkit-animation: typing1 2s 5s steps(20, end);
  animation-fill-mode: both;
}

h3 span {
  padding-top: 50px;
  overflow: hidden;
  display: table-cell;
  animation: animate 0.7s infinite;
  -webkit-animation: animate 0.7s infinite;
  opacity:0;
  width:0;
}

/* Specify a slight delay for
	each of the letters */
h3 span:nth-child(1) {
  animation-delay: 5s;
  padding-right: 20px;
}

h3 span:nth-child(2) {
  animation-delay: 5.2s;
}

h3 span:nth-child(3) {
  animation-delay: 5.3s;
}

h3 span:nth-child(4) {
  animation-delay: 5.4s;
}

h3 span:nth-child(5) {
  animation-delay: 5.5s;
}

h3 span:nth-child(6) {
  animation-delay: 5.6s;
}

h3 span:nth-child(7) {
  animation-delay: 5.7s;
}

h3 span:nth-child(8) {
  animation-delay: 5.8s;
}

h3 span:nth-child(9) {
  animation-delay: 5.9s;
}

h3 span:nth-child(10) {
  animation-delay: 6s;
}

h3 span:nth-child(11) {
  animation-delay: 6.1s;
}
h3 span:nth-child(12) {
  animation-delay: 6.4s;
}

.titleHeader h1 {
  margin: 10px 10px 10px 10px;
  font-family: "Barriecito", cursive;
  color: #6cd054e6;
  font-size: 6em;
  text-shadow: 3px 3px #80003059;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.08em;
  animation: backInDown;
  animation-duration: 2s;
}

@keyframes typing1 {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .ap{
    font-size: 1.5em;
  }
  .titleHeader h1 {
    font-size: 3em;
  }
  .subtitle {
    font-size: 0.8em;
    font-weight: 600;
  }
  .ap{
    font-size: 1.5em;
    
  }
  #subtitles {
    padding-right: 0px;
    padding-left: 0px;
  }
}

/* Specify the animation keyframes
	to be used to move the letters */
@keyframes animate {
  0% {
    opacity:1;
    width:100px;  
  }
  1% {
    opacity:1;
    width:100px;
    transform: translateY(0px);
  }

  50% {
    opacity:1;
    width:100px;
    transform: translateY(-20px);
  }

  100% {
    opacity:1;
    width:100px;
    transform: translateY(0px);
  }
}

.last{
  text-align: center;
}
