.forgrid {
  position: absolute;
  transform: translateX(62vw);
  width: 28vw;
  height: 61vh;
  border: 10px solid #dee6f0;
  padding-top: 10px;
  display: grid;
  grid-template-columns: 150px 190px;
  justify-content: flex-end;
  margin-right: 8vw;
  margin-top: 5vh;

  border-radius: 27px;
}

.pdf {
  animation: fall 8s linear infinite;
  display: block;
  margin-top: 20px;
  margin: 10px;
  background-color: rgb(243, 250, 183);
  height: auto;
  width: 6vw;
  padding: 20px;
  text-align: center;
  font-size: larger;
  border: 2px solid;
  border-radius: 30px;

  position: absolute;
  top: 0;
}
/*
.pdf1 {
  animation: fall1 6s linear infinite;
  display: block;
  margin: 10px;
  height: auto;
  width: 6vw;
  padding: 20px;
  text-align: center;
  font-size: larger;
  position: absolute;
  top: 0;
  left: 0;
  margin: 10px;
}

.pdf1 a {
  color: black;
  text-decoration: none;
}

@keyframes fall1 {
  0% {
    
    opacity: 0;
  }
  49% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  85% {
    opacity: 0;
  }
  90% {
    opacity: 0.11;
  }
  100% {
    transform: translateY(20vh);
    opacity: 0;
  }
}
  */

  .pdf1 {
  animation: fall1 6s ease-in-out infinite;
  display: block;
  margin: 10px;
  height: auto;
  width: 6vw;
  padding: 20px;
  text-align: center;
  font-size: larger;
  position: absolute;
  top: 0;
  left: 0;
}

.pdf1 a {
  color: black;
  text-decoration: none;
}

@keyframes fall1 {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  70% {
    opacity: 1;
    transform: translateY(15vh);
  }
  90% {
    opacity: 0;
    transform: translateY(20vh);
  }
  100% {
    opacity: 0;
    transform: translateY(20vh);
  }
}


.pdf-container {
  position: relative;
  height: 60vh; /* enough height for falling effect */
}

/* Set animation delays 
.pdf-container > .pdf1:nth-child(1) {
  animation-delay: 0s;
  z-index: 3;
}
.pdf-container > .pdf1:nth-child(2) {
  animation-delay: 4s;
  z-index: 2;
}
.pdf-container > .pdf1:nth-child(3) {
  animation-delay: 8s;
  z-index: 1;
}*/

.pdf1:nth-child(1) { top: 0vh; }
.pdf1:nth-child(2) { top: 25vh; }
.pdf1:nth-child(3) { top: 25vh; }

.bookimage {
  height: 20vh;
}
