/* Fog overlay styles */
#blurOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 100;
}

/* Fog message styles */
#blurMessage {
    position: fixed;
    top: 2vh;           /* 2% from top of viewport */
    left: 2vw;          /* 2% from left of viewport */
    color: white;
    background-color: rgba(80, 80, 80, 0.7); /* slightly darker for readability */
    padding: clamp(0.5rem, 1vw, 1rem);      /* scales with screen */
    border-radius: 0.5rem;
    display: none;
    z-index: 122;
    animation: slideIn 0.5s forwards;
    max-width: 90vw;     /* prevent message from overflowing on small screens */
    font-size: clamp(0.9rem, 2vw, 1rem);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Optional: slide-in animation */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* Keyframes */
@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.monster-image {
    width: 300px;
    height: auto;
    margin-right: 10px;
    position: left;
    opacity: 0;
    transform: translateY(100px);
    animation: slide-up 0.5s forwards;
}

/* Result Container */
#resultContainer {
    position: absolute;
    top: 50px;
    width: 100%;
}

#resultContainer,
#imageContainer,
#statsContainer {
    z-index: 120;
}

#resultContainer.hidden {
    display: none;
}

.result-text {
    position: relative;
    z-index: 1;
    padding: 1px;
    text-align: center;
}

.black-box {
  position: absolute;
  width: 100%;
  min-height: 30vh; /* always fills at least 30% of screen */
  background: linear-gradient(to bottom, lightgreen, rgb(245, 189, 84));
  border-radius: 7px;
  opacity: 0.7;
  margin-top: 2rem;
}
/* Make stats container the positioning context */
#statsContainer {
    position: relative;
    width: 100%;
    padding: 1rem; /* spacing inside */
    z-index: 120;  /* text/content above black-box */
}

/* Background behind stats */
.black-box {
    position: absolute;
    inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0 */
    background: linear-gradient(to bottom, lightgreen, rgb(245, 189, 84));
    border-radius: 7px;
    opacity: 0.7;
    z-index: 0; /* behind stats text */
}

/* Stats text/content */
.result-text {
    position: relative;
    z-index: 1;
    padding: 2rem;
    text-align: center;
    font-weight: bold;
}

/* Optional: make stats scale better on mobile */
@media (max-width: 600px) {
    #statsContainer {
        padding: 0.2rem;
    }

    .result-text {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
    }
}
