
body {
  background: #000;
}

/* Stars 
------------------------------------- */

#space, .stars {
  overflow: hidden;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
}

.stars {
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: zoom 5s infinite;
  opacity: 0;
}

.stars:nth-child(1) {
  background-position: 50% 50%;
  animation-delay: 0s;
}
.stars:nth-child(2) {
  background-position: 20% 60%;
  animation-delay: 1s;
}
.stars:nth-child(3) {
  background-position: -20% -30%;
  animation-delay: 2s;
}
.stars:nth-child(4) {
  background-position: 40% -80%;
  animation-delay: 3s;
}
.stars:nth-child(5) {
  background-position: -20% 30%;
  animation-delay: 4s;
}

@keyframes zoom {
  0% {
    opacity: 0;
    transform: scale(0.5);
    animation-timing-function: ease-in;
  } 
  85% {
    opacity: .75;
    transform: scale(2.8);
    animation-timing-function: linear;
  }
  100% {
    opacity: 0;
    transform: scale(3.5);
  }
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.book-container {
  display: flex;
  padding: .5rem;
}

.box2~.box2 {
  margin: 0 auto;
}

.box2 {
  display: flex;
  max-width: 16%;
  height: auto;
  flex-direction: column;
  justify-content: space-between;
}

.box2 a {
  text-size: 15px;
  color: orange;
  position: relative;
  margin: 0 2% 3% 0%;
  text-align: center
}

@media (max-width: 16vw) {
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25rem;
  }
  .box2 {
    display: flex;
    max-width: 16%;
    height: auto;
  }

  .box2 ~ .box2 {
    margin-top: 1rem;
  }
  
}

.synopsis-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.synopsis-text {
    font-size: 20px;
    padding-left: 40px;
    padding-top: 8%;
    padding-right: 10%;
    float: left;
    background-color: white;
    color: black;
    border-color: red;
    border-style: solid;
    border-width: 5px;
    border-radius: 5px;

}

/* marquee animation */
 @-webkit-keyframes marquee {
    0% {
        -webkit-transform: translate(0, 0);
    }
    100% {
        -webkit-transform: translate(0, -100%);
    }
}
@-moz-keyframes marquee {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(0, -100%);
    }
}
/* define your limiting container */
 .marquee {
    border: solid 2px;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    height: 25px;
}
/* this is the tray moving around your container */
 .marquee span {
    color: orange;
    display: inline-block;
    padding-top: 50px;
    text-indent: 0;
    overflow: hidden;
    animation: marquee 25s linear infinite;
    /* here you select the animation */
    -webkit-animation: marquee 25s linear infinite;
    /* here you select the animation */
}
/* pause the animation on mouse over */
 .marquee span:hover {
    animation-play-state: paused;
    -webkit-animation-play-state: paused;
}
