/* Existing styles remain unchanged */
.buff-image-container {
  margin-top: 45px;
  transition: all 3s;
  height: calc(100vh - 220px);
  max-height: 750px;
  padding: 0px;
  position: absolute;
  top: 50%;
  left: 50%;
}

.buff-image-container img {
  height: calc(100vh - 220px);
  max-height: 750px;
  display: block;
  margin: auto;
  /* opacity: 1; */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.buff-image-container img.buff-image {
  /* opacity: 1; */
}
.buff-image-container img.buff-image-2 {
  opacity: 0;
}

/* Level Display Styles */
.level-display {
  text-align: center;
  color: #fff;
  bottom: 35px;
  position: fixed;
  width: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 2s;
}

.level-display * {
  color: #fff;
  font-weight: 100;
  font-size: 22px;
  font-style: italic;
}

.level-display-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.level-display-progress span {
  margin: 0 30px;
}

.buff-progress-bar {
  position: relative;
  max-width: 500px;
  width: calc(100% - 200px);
  height: 20px;
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #57ffae, #57ffae);
  transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
}

/* New Animations for Progress Bar */
.buff-progress-bar.blinking-green {
  animation: blinkingGreen 3s infinite;
}

.buff-progress-bar.blinking-red {
  animation: blinkingRed 3s infinite;
}

@keyframes blinkingGreen {
  0% { background-color: #57ffaeaa; }
  50% { background-color: #333; }
  100% { background-color: #57ffaeaa; }
}

@keyframes blinkingRed {
  0% { background-color: #ff4444aa; }
  50% { background-color: #333; }
  100% { background-color: #ff4444aa; }
}

/* Level Text Animation */
.level-display > .level-text {
  font-weight: 600;
  font-size: 24px;
  transition: color 0.5s ease-in-out;
}

.level-display > .level-text.level-up {
  color: #57ffae; /* Green for level up */
  animation: levelUpAnimation 1s;
}

.level-display > .level-text.level-down {
  color: #ff4444; /* Red for level down */
  animation: levelDownAnimation 1s;
}

/* @keyframes levelUpAnimation {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes levelDownAnimation {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
 */
/* Level Change Animation */
.level-display.level-change-animation {
  animation: levelChange 1s;
}

@keyframes levelChange {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Pulsating Aura around Buff Image */
.pulsating-aura {
  position: absolute;
  width: 150px;
  height: 150px;
  top: -25px;
  left: -25px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Adjusted Animation for Buff Image Container */
.buff-image-container {
  transition: all 3s;
}

.buff-image-container.animated {
  margin-top: 65px;
  transform: scale(1.2);
}

/* Ensure the level display fades in smoothly */
.level-display {
  opacity: 0;
  transition: opacity 2s;
}

.level-display.visible {
  opacity: 1;
}
.buff-page-container .absolute-info {
  position: absolute;
  right: -35px;
  display: flex;
  top: 3px;
}
.buff-page-container .absolute-info * {
  font-size: 16px;
  font-style: normal;
}
