.star {
  animation: star 10s ease-out infinite;
}
.wars {
  animation: wars 10s ease-out infinite;
}
.byline span {
  animation: spin-letters 10s linear infinite;
}
.byline {
  animation: move-byline 10s linear infinite;
}

/* Keyframes */
@keyframes star {
  0% {
    opacity: 0;
    transform: scale(1.5) translateY(-0.75em);
  }
  20% {
    opacity: 1;
  }
  89% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: translateZ(-1000em);
  }
}

@keyframes wars {
  0% {
    opacity: 0;
    transform: scale(1.5) translateY(0.5em);
  }
  20% {
    opacity: 1;
  }
  90% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: translateZ(-1000em);
  }
}

@keyframes spin-letters {
  0%, 10% {
    opacity: 0;
    transform: rotateY(90deg);
  }
  30% {
    opacity: 1;
  }
  70%, 86% {
    transform: rotateY(0);
    opacity: 1;
  }
  95%, 100% {
    opacity: 0;
  }
}

@keyframes move-byline {
  0% {
    transform: translateZ(5em);
  }
  100% {
    transform: translateZ(0);
  }
}

/* Make the 3D work on the container */
.starwars-demo {right: 0px !important ;  
  position: absolute; margin-right:2% !important;
  perspective: 800px;
  transform-style: preserve3d;
}

/* General styles and layout */
/*body {
  background: #000 url(//cssanimation.rocks/demo/starwars/images/bg.jpg);
}*/

.starwars-demo { 
  height: 60px !important;
  right: 0px !important ;  
  position: absolute; margin-right: -20px !important;
  top: 10px !important;
  transform: translate(-13%,  -50%);
  width: 90%; margin-top:2px !important;
}

.byline span {
  display: inline-block;
}


.starwars-demo > .star{ 
 height: 60px !important;
  right: 0px !important ;    
  position: absolute; margin-right:-190px !important; 
  top: 10px !important;
  transform: translate(-2% -30%);
  width: 20%; margin-top:20px !important;
}


/*img {
  width: 100%;
}
*/
.star, .wars, .byline { display:inline-block;
  position: static; 
}

.star {
  top: -0.25em;
}

.wars {
  bottom: -0.5em;
}
/*#byline{right: 0px !important ;  
  position: absolute; margin-right:2% !important;}*/
.byline { 
  color: #000;
  font-family: "ITC Serif Gothic", Lato;
  font-size: 1.40em;
  left: -10em;
  letter-spacing: 0.3em;
  right: -6em;
  text-align: center;
  text-transform: uppercase; margin-right:0px !important;
  top: -2%!important;  float:right !important;
  
  
}

.byline-2 {
  color: #fff;
  font-family: "ITC Serif Gothic", Lato;
  font-size: 2.25em;
  left: -2em;
  letter-spacing: 0.4em;
  right: -2em;
  text-align: center;
  text-transform: uppercase;
  top: 29%;
}



/*** Media queries for adjusting to different screen sizes ***/

@media only screen and (max-width: 600px) {
  .starwars-demo {
    font-size: 10px;
  }
}

@media only screen and (max-width: 480px) {
  .starwars-demo {
    font-size: 7px; display:none;  
  }
  
  
  
.starwars-demo > .star{ display:none;  
 height: 60px !important;
  right: 0px !important ;    
  position: absolute; margin-right:0px !important; 
  top: 10px !important;
  transform: translate(-2%,  -50%);
  width: 22%; margin-top:20px !important;
}  
  
}

