/* Global Styles */
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background: linear-gradient(120deg, #FF6F91, #FFC75F, #F9F871);
  animation: backgroundAnimation 10s infinite alternate;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
}

/* Background Animation */
@keyframes backgroundAnimation {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.container {
  position: relative;
  text-align: center;
}

#audioVisualizer {
  position: absolute;
  bottom: 250px; /* Move the visualizer up the page */
  left: 50%;
  transform: translateX(-50%);
  width: 350px; /* Make the visualizer larger */
  height: 350px; /* Make the visualizer larger */
  background: transparent; /* Ensure the background is transparent */
  pointer-events: none; /* Allow clicks to pass through */
  z-index: 1; /* Ensure the visualizer is behind the character */
}

.character {
  position: relative;
  z-index: 2; /* Ensure the character is in front of the visualizer */
  display: inline-block;
  animation: float 8s ease-in-out infinite, rotate 20s linear infinite; /* Add floating and slower rotation animation */
}

.character img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

@keyframes float {
  0% { transform: translateY(0); }
  20% { transform: translateY(-10px); }
  40% { transform: translateY(15px); }
  60% { transform: translateY(-5px); }
  80% { transform: translateY(20px); }
  100% { transform: translateY(0); }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-15deg); }
  100% { transform: rotate(0deg); }
}

#playPauseBtn {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 20px; /* Adds space between the text and button */
  cursor: pointer;
  display: inline-block; /* Ensures the image size remains */
  z-index: 3; /* Ensure the play/pause button is in front of the visualizer and character */
}

#playPauseBtn img {
  max-width: 100px;
  width: 100%;
  height: auto;
  display: block; /* Removes any inline styling issues */
  cursor: pointer;
}

/* Style for the animated text */
.animated-text {
  color: white; /* Set the text color to white */
  font-size: 2rem; /* Adjust the font size as needed */
  margin-top: 20px; /* Add some margin to position the text */
}

/* ... existing code ... */
