@keyframes changesize {
  from {
    transform: scale(1.2);
  }

  to {
    transform: scale(0.8);
  }
}

@font-face {
    font-family: reenie;
    src: url(fonts/ReenieBeanie-Regular.ttf);
}

body {
  margin: 0;
  background-color: #52c5d8;
}

.animation-box {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.container {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: none;
}

.container>.target {
  position: absolute;
  filter: drop-shadow(-12px 12px 7px rgba(0, 0, 0, 0.5));
  max-width: 50%;
  max-height: 50%;
  animation-duration: 5s;
  animation-name: changesize;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.bubbles {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 0;
  overflow: hidden;
  top: 0;
  left: 0;
}

.bubble {
  position: absolute;
  bottom: -100px;
  background-color: #f1f1f1;
  border-radius: 50%;
  opacity: 0.5;
  animation: fly 15s ease-in-out infinite;
}

.bubble:nth-child(1) {
  left: 1%;
  height: 40px;
  width: 40px;
  animation-duration: 8s;
  z-index: 1000;
}

.bubble:nth-child(2) {
  left: 10%;
  height: 20px;
  width: 20px;
  animation-duration: 10s;
  animation-delay: 1s;
  z-index: 1000;
}

.bubble:nth-child(3) {
  left: 15%;
  height: 30px;
  width: 30px;
  animation-duration: 6s;
  animation-delay: 2s;
}

.bubble:nth-child(4) {
  left: 30%;
  height: 60px;
  width: 60px;
  animation-duration: 12s;
  animation-delay: 5s;
}

.bubble:nth-child(5) {
  left: 40%;
  height: 30px;
  width: 30px;
  animation-duration: 9s;
  animation-delay: 0;
  z-index: 1000;
}

.bubble:nth-child(6) {
  left: 50%;
  height: 15px;
  width: 15px;
  animation-duration: 13s;
  animation-delay: 8s;
}

.bubble:nth-child(7) {
  left: 55%;
  height: 60px;
  width: 60px;
  animation-duration: 10s;
  animation-delay: 0;
}

.bubble:nth-child(8) {
  left: 60%;
  height: 10px;
  width: 10px;
  animation-duration: 14s;
  animation-delay: 5s;
}

.bubble:nth-child(9) {
  left: 65%;
  height: 20px;
  width: 20px;
  animation-duration: 10s;
  animation-delay: 3s;
}

.bubble:nth-child(10) {
  left: 70%;
  height: 55px;
  width: 55px;
  animation-duration: 7s;
  animation-delay: 11s;
}

.bubble:nth-child(11) {
  left: 80%;
  height: 33px;
  width: 33px;
  animation-duration: 4s;
  animation-delay: 15s;
}

.bubble:nth-child(12) {
  left: 90%;
  height: 24px;
  width: 24px;
  animation-duration: 8s;
  animation-delay: 5s;
}

.bubble:nth-child(13) {
  left: 95%;
  height: 20px;
  width: 20px;
  animation-duration: 9s;
  animation-delay: 4s;
  z-index: 1000;
}

.bubble:nth-child(14) {
  left: 25%;
  height: 28px;
  width: 28px;
  animation-duration: 17s;
  animation-delay: 0s;
}

.bubble:nth-child(15) {
  left: 20%;
  height: 20px;
  width: 20px;
  animation-duration: 14s;
  animation-delay: 1s;
}

.front-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 32000;
}

.book-col {
  padding: 5%;
  padding-top: 0px;
}

.book-box {
  box-shadow: 3px 3px 10px 10px #ccc;
  width: 100%;
  position: relative;
}

.book-badge {
    position: absolute;
    right: 2rem;
    top: 2rem;
    background: #5cb377;
    border-radius: 50%;
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 1.375rem;
    line-height: 1;
    font-weight: bold;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.5) !important;
    display: inline-block !important;
    z-index: 20;
}

.book-badge-extended {
  font-size: 0.4rem;
  line-height: 1.1;
  padding-top: 34px;
}

.book-info {
  background: rgb(0, 0, 0); /* Fallback color */
  /*background: rgba(52, 210, 235, 0.8);  Black background with 0.5 opacity */
  background: rgba(42, 48, 48, 1.0); /* Black background with 0.5 opacity */
  color: #f1f1f1; /* Grey text */
  width: 100%; /* Full width */
  padding: 20px; /* Some padding */
}

.book-info a {
/**  color: #f1f1f1; **/
  color: #FFF;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: underline;
  margin-bottom: 10px;
}

.book-info .info-title {
  color: #FFF;
  font-size: 18px;
  margin-bottom: 10px;
}

.txt-center {
  text-align: center;
}

.page-title {
  color: #FFF;
  font-size: 64px;
  font-weight: bold;
  font-family: reenie;
  background: transparent;
  text-align: center;
  margin-bottom: 25px;
}

.nobr {
  white-space: nowrap;
}

@media (min-width:320px)  {
  .book-badge {
    right: 0rem;
    top: -1rem;
    width: 80px;
    height: 80px;
    font-size: 1rem;
    padding-top: 35px;
  }
  .book-badge-extended {
    padding-top: 25px;
  }
  .book-col {
    padding: 8%;
    padding-top: 0px;
  }
  .page-title {
    font-size: 48px;
  }
}
@media (min-width:481px)  {
  .book-badge {
    right: 0.3rem;
    top: -1rem;
    width: 90px;
    height: 90px;
    font-size: 1rem;
    padding-top: 35px;
  }
  .book-badge-extended {
    padding-top: 27px;
  }
  .book-col {
    padding: 8%;
    padding-top: 0px;
  }
}
@media (min-width:641px)  {
  .book-badge {
    right: 0.5rem;
    top: -1rem;
    width: 100px;
    height: 100px;
    font-size: 1rem;
    padding-top: 40px;
  }
  .book-badge-extended {
    padding-top: 30px;
  }
  .book-col {
    padding: 5%;
    padding-top: 0px;
  }
}
@media (min-width:961px)  {
  .book-badge {
    right: 1rem;
    top: -1rem;
    width: 105px;
    height: 105px;
    font-size: 1.1rem;
    padding-top: 45px;
  }
  .book-badge-extended {
    padding-top: 32px;
  }
  .book-col {
    padding: 5%;
    padding-top: 0px;
    padding-bottom: 0px;
  }
  .page-title {
    font-size: 64px;
  }
  .book-link {
    height: 48px;
    line-height: 48px;
  }
}
@media (min-width:1025px)  {
  .book-badge {
    right: 1.5rem;
    top: -1.5rem;
    width: 110px;
    height: 110px;
    font-size: 1.2rem;
    padding-top: 48px;
  }
  .book-badge-extended {
    padding-top: 34px;
  }
  .book-col {
    padding: 5%;
    padding-top: 0px;
    padding-bottom: 0px;
  }
}
@media (min-width:1281px)  {
  .book-badge {
    right: 2rem;
    top: -2rem;
    width: 120px;
    height: 120px;
    font-size: 1.3rem;
    padding-top: 50px;
  }
  .book-badge-extended {
    padding-top: 37px;
  }
  .book-col {
    padding: 5%;
    padding-top: 0px;
    padding-bottom: 0px;
  }
}
@keyframes fly {
  0% {
    bottom: -200px;
    transform: translateX(0);
  }

  50% {
    transform: translateX(100px);
  }

  100% {
    bottom: 1080px;
    transform: translateX(-200px);
  }
}
