/* READ NOW 1 */

/* SPHERE */

.decor-container {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.decor-sphere {
  position: absolute;
  top: 80%;
  left: 50%;
  width: 250vmin;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* PEOPLE */
.ppl {
  position: absolute;
  bottom: 5%;
  animation: floatNearOrigin 6s infinite ease-in-out;
  opacity: 0.85;
  will-change: transform;
}

#ppl1 {
  width: 30vw;
  left: 5%;
  top: 62%;
  z-index: 2;
}

#ppl2 {
  width: 30vw;
  right: 5%;
  top: 60%;
  z-index: 3;
  animation-duration: 7s;
}

/* KITES */
#kite1 {
  position: absolute;
  width: 20vw;
  left: 0%;
  top: 30%;
  z-index: 2;
  animation: floatNearOrigin 5s infinite ease-in-out;
}

#kite2 {
  position: absolute;
  width: 30vw;
  left: 82%;
  top: 0%;
  z-index: 2;
  animation: floatNearOrigin 6s infinite ease-in-out;
  animation-delay: 1s;
}

/* STAR */
#star {
  position: absolute;
  width: 15vw;
  left: 42%;
  top: 67%;
  z-index: 2;
  opacity: 0.8;
  animation: floatNearOrigin 8s infinite ease-in-out;
}

/* TEXT BLOCK */
.readnow1-title {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 10;
  width: auto;
  max-width: 800px;
  opacity: 0;
  transition: all 1.5s ease;

  /* Text styles */
  font-family: "Sora", sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 80px;
  line-height: 101px;
  text-align: center;
  color: #110349;
  margin: 0;
}

.readnow1-title.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.noise-rectangle-readnow {
  position: absolute;
  top: 45%;
  transform: translate(-50%, -50%);
  left: 48%;
  width: 150%;
  max-width: fit-content;
  padding: 0 10px;
  box-sizing: content-box;
  z-index: -1;
  height: auto;
  opacity: 0;
  animation: noiseFadeIn 0.5s ease-out 0.8s forwards;
}

.noise-rectangle-readnow {
  opacity: 0;
  animation: noiseFadeIn 0.5s ease-out 0.8s forwards;
}

.readnow1-text {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 10;
  width: 90%;
  max-width: 700px;
  opacity: 0;
  transition: all 1.5s ease;

  /* Text styles */
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
  color: #110349;
}

.readnow1-text.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.readnow1-text p {
  margin: 0 0 24px 0;
}

.readnow1-text p:last-child {
  margin-bottom: 0;
}

.readnow1-text .text-bold {
  font-weight: 700;
}

.readnow1-text .embark-paragraph {
  display: inline;
  text-align: center;
}

.readnow1-text .embark-logo {
  height: 1em;
  width: auto;
  display: inline-block;
  vertical-align: baseline;
  margin: 0 4px;
}

/* FLOATING ANIMATION */
@keyframes floatNearOrigin {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.85;
  }
  25% {
    transform: translateY(-5px) translateX(2px);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-12px) translateX(-4px);
    opacity: 0.95;
  }
  75% {
    transform: translateY(-5px) translateX(4px);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.85;
  }
}

/* MEDIA QUERIES RESPONSIVE  */

/* Bigger Laptops (<=1920px) */
@media (min-width: 1920px) {
  .readnow1-title {
    font-size: 80px;
    line-height: 88px;
    top: 15%;
  }

  .readnow1-text {
    font-size: 25px;
    line-height: 40px;
    width: 70%;
    max-width: 850px;
    top: 43%;
  }

  .readnow1-text p {
    margin: 0 0 22px 0;
  }
}

/* Laptops (<=1440px) */
@media (max-width: 1440px) {
  .readnow1-title {
    font-size: 70px;
    line-height: 88px;
    top: 15%;
  }

  .readnow1-text {
    font-size: 22px;
    line-height: 33px;
    width: 70%;
    max-width: 650px;
    top: 45%;
  }

  .readnow1-text p {
    margin: 0 0 22px 0;
  }
}

/* Tablets (<=1024px) */
@media (max-width: 1024px) {
  .decor-sphere {
    width: 300vmin;
    top: 75%;
  }

  #ppl1,
  #ppl2 {
    width: 40vw;
  }

  #ppl1 {
    left: -5%;
  }

  #ppl2 {
    right: -4%;
  }

  #kite1 {
    width: 25vw;
    top: 45%;
  }

  #kite2 {
    width: 35vw;
    left: 75%;
    top: 5%;
  }

  #star {
    width: 18vw;
    top: 67%;
  }

  .readnow1-title {
    font-size: 60px;
    line-height: 76px;
    top: 12%;
  }

  .readnow1-text {
    width: 60%;
    top: 45%;
    font-size: 20px;
    line-height: 30px;
  }

  .readnow1-text p {
    margin: 0 0 20px 0;
  }
}

/* Large Mobile (<=768px) */
@media (max-width: 768px) {
  .decor-sphere {
    width: 340vmin;
    top: 78%;
  }

  #ppl1,
  #ppl2 {
    width: 48vw;
    margin: 8%;
    top: 65%;
  }

  #kite1 {
    width: 30vw;
    top: 59%;
  }

  #kite2 {
    width: 40vw;
    left: 70%;
    top: 10%;
  }

  #star {
    width: 20vw;
    top: 72%;
  }

  .readnow1-title {
    font-size: 48px;
    line-height: 60px;
    top: 13%;
  }

  .readnow1-text {
    width: 85%;
    top: 45%;
    font-size: 18px;
    line-height: 27px;
  }

  .readnow1-text p {
    margin: 0 0 18px 0;
  }
}

/* Small Mobile (<=480px) */
@media (max-width: 480px) {
  .decor-sphere {
    width: 420vmin;
    top: 80%;
  }

  #ppl1,
  #ppl2 {
    width: 70vw;
    top: 60%;
  }

  #ppl1 {
    left: -18%;
    rotate: -5deg;
  }

  #ppl2 {
    right: -13%;
    rotate: 5deg;
  }

  #kite1 {
    width: 35vw;
    top: 60%;
  }

  #kite2 {
    width: 45vw;
    left: 65%;
    top: 2%;
  }

  #star {
    width: 25vw;
    top: 65%;
    left: 58%;
  }

  .readnow1-title {
    font-size: 30px;
    line-height: 48px;
    top: 15%;
  }

  .readnow1-text {
    width: 90%;
    top: 45%;
    font-size: 16px;
    line-height: 24px;
  }

  .readnow1-text p {
    margin: 0 0 16px 0;
  }
}

/* Extra Small Mobile (<=344px) */
@media (max-width: 344px) {
  .decor-sphere {
    width: 500vmin;
    top: 87%;
  }

  #ppl1,
  #ppl2 {
    width: 65vw;
    top: 55%;
  }

  #kite1 {
    width: 40vw;
    top: 50%;
  }

  #kite2 {
    width: 50vw;
    left: 65%;
  }

  #star {
    width: 28vw;
    top: 55%;
  }

  .readnow1-title {
    font-size: 26px;
    line-height: 40px;
    top: 16%;
  }

  .readnow1-text {
    width: 92%;
    top: 44%;
    font-size: 14px;
    line-height: 21px;
  }

  .readnow1-text p {
    margin: 0 0 14px 0;
  }
}

/* ACCESSIBILITY & REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .noise-rectangle-readnow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ANIMATIONS */
@keyframes noiseFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .noise-rectangle {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}
