:root {
  --primary: #37b36b;
  --accent: hsl(220 9% 46%);
  --background: hsl(0 0% 100%);
  --foreground: hsl(0 0% 100%);
}
body {
  font-family: "Cairo", sans-serif;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.animate-hero-img {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}
/* Common styles for both divs */

/* Right-to-Left Animation */
#rightToLeft {
  opacity: 0; /* Initial state: hidden */
  transform: translateX(50px); /* Start 50px to the right */
  animation: slideRightToLeft 0.6s ease-out forwards;
}

@keyframes slideRightToLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Left-to-Right Animation */
#leftToRight {
  opacity: 0; /* Initial state: hidden */
  transform: translateX(-50px); /* Start 50px to the left */
  animation: slideLeftToRight 0.6s ease-out forwards;
}

@keyframes slideLeftToRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
