.crawl {
    position: absolute;
    top: 100%; /* Starts the text just below the bottom of the screen */
    animation: crawl 220s infinite linear ; /*  Infinite constant speed 'crawl' animation for 150s */
    width: 80% ; /* The width of the text container is 80% of the screen */
    color:  #FFE81F ;
    text-align: justify;
    transform-origin: 50% 0%; /* Tilts the text around its top edge, which sits on the bottom of the screen */
    left: 10%;  /* Positions the text in the center of the screen, starting form 10% of the left. */
    font-size: 48px;
    line-height: 1.5; /* Adds spacing between lines for readability */

}

.star-wars {
    perspective: 45vh; /* How strongly the text shrinks into the distance (about 400px on a laptop screen) */
    position: absolute;
    top: 0; /* To cover the entire browser window. */
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}
.crawl .title {
    display: block;
    text-align: center;
    font-size: 72px;
    margin-bottom: 40px;
}

.crawl p {
    margin-bottom: 35px; /* Adds 35px of space after each paragraph */
}

body{
    background-image: url("background.jpg");
    background-size: cover; /* makes the image cover the entire screen */
    overflow: hidden; /* To hide scroll bars */
    
}

@keyframes crawl{

    0% {
        transform: rotateX(25deg) translateY(0); /* rotateX tilts the text back, like the film */
    }

    100% {
        
        transform: rotateX(25deg) translateY(calc(-100% - 250vh));
        /* Tilts the element by 25 degrees, then it moves 2.5 screens worth 
         of space along with its own height above its original position. */
    }

}