/* Animated background with image + gradient overlay */
..animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Behind all content */
  background: 
    url('assets/background.jpg') no-repeat center center; /* Correctly written background URL */
  background-size: cover;
  background-attachment: fixed;
  animation: gradientAnimation 15s ease infinite;
}

/* Animate the gradient */
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Loading screen overlay with background image */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: 
    url('assets/background.jpg') no-repeat center center; /* Correctly written background URL */
  background-size: cover; /* Ensure the background image covers the whole screen */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000; /* Stays on top of everything */
}

/* Animated floating coins */
.animated-shape {
  position: absolute;
  width: 100px;
  height: 100px;
  background-image: url('assets/coin.png'); /* Your coin image */
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.5);
  border-radius: 60px;
  border: 1px solid #D8904B;
  animation: moveShapes 5s ease-in-out infinite alternate;
}

/* Different coins placed around */
.animated-shape:nth-child(1) {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}
.animated-shape:nth-child(2) {
  top: 40%;
  left: 60%;
  animation-delay: 2s;
}
.animated-shape:nth-child(3) {
  top: 60%;
  left: 20%;
  animation-delay: 4s;
}
.animated-shape:nth-child(4) {
  top: 80%;
  left: 50%;
  animation-delay: 6s;
}
.animated-shape:nth-child(5) {
  top: 50%;
  left: 70%;
  animation-delay: 8s;
}

/* Coin movement animation */
@keyframes moveShapes {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -50px) scale(1.5);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Loading text */
#loading-screen p {
  color: #fff;
  margin-top: 20px;
  font-size: 20px;
  font-weight: bold;
  animation: pulseText 2s infinite;
}

/* Loading text pulse animation */
@keyframes pulseText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}