.room-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../images/rooms/hub.png');
    background-size: 1200px 800px;
    background-repeat: no-repeat;
    background-position: top left;
}

.doorhotspot {
    position: absolute;
    /* Define hotspot positions and dimensions */
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: rgba(103, 97, 97, 0.5);
    border-radius: 50%;
}

@keyframes pulseAnimation1 {
    0% {
        box-shadow: 0 0 10px rgba(153, 50, 204, 0.7);
    }
    50% {
        box-shadow: 0 0 20px rgba(153, 50, 204, 0.9);
    }
    100% {
        box-shadow: 0 0 10px rgba(153, 50, 204, 0.7);
    }
}

@keyframes pulseAnimation2 {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    }
}

@keyframes pulseAnimation3 {
    0% {
        box-shadow: 0 0 10px rgba(51, 0, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 20px rgba(51, 0, 0, 0.9);
    }
    100% {
        box-shadow: 0 0 10px rgba(51, 0, 0, 0.7);
    }
}

@keyframes pulseAnimation4 {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 0, 0.9);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 255, 0, 0.7);
    }
}

@keyframes pulseAnimation5 {
    0% {
        box-shadow: 0 0 10px rgba(0, 0, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 0, 255, 0.9);
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 0, 255, 0.7);
    }
}

@keyframes pulseAnimation6 {
    0% {
        box-shadow: 0 0 10px rgba(255, 128, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 128, 0, 0.9);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 128, 0, 0.7);
    }
}

@keyframes pulseAnimation7 {
    0% {
        box-shadow: 0 0 10px rgba(27, 110, 4, 0.7);
    }
    50% {
        box-shadow: 0 0 20px rgba(27, 110, 4, 0.9);
    }
    100% {
        box-shadow: 0 0 10px rgba(27, 110, 4, 0.7);
    }
}

@keyframes pulseAnimation8 {
    0% {
        box-shadow: 0 0 10px rgba(255, 0, 170, 0.7);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 0, 170, 0.9);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 0, 170, 0.7);
    }
}

/* Define the keyframes for the size change animation */
@keyframes sizeChangeAnimation1 {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

@keyframes sizeChangeAnimation2 {
    0%, 100% {
        transform: scale(0.7);
    }
    50% {
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); }
    50% { box-shadow: 0 0 20px rgba(0, 0, 0, 0.8); }
}

@keyframes pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Example hotspot */
#hotspot1 {
    top: 160px;
    left: 110px;
    width: 120px;
    height: 120px;
    animation: pulseAnimation1 2s infinite, sizeChangeAnimation2 5s infinite;
}

#hotspot2 {
    top: 160px;
    left: 400px;
    width: 120px;
    height: 120px;
    animation: pulseAnimation2 2s infinite, sizeChangeAnimation2 5s infinite;
}

#hotspot3 {
    top: 160px;
    left: 690px;
    width: 120px;
    height: 120px;
    animation: pulseAnimation3 2s infinite, sizeChangeAnimation2 5s infinite;
}

#hotspot4 {
    top: 160px;
    left: 980px;
    width: 120px;
    height: 120px;
    animation: pulseAnimation4 2s infinite, sizeChangeAnimation2 5s infinite;
}

#hotspot5 {
    top: 520px;
    left: 110px;
    width: 120px;
    height: 120px;
    animation: pulseAnimation5 2s infinite, sizeChangeAnimation2 5s infinite;
}

#hotspot6 {
    top: 520px;
    left: 400px;
    width: 120px;
    height: 120px;
    animation: pulseAnimation6 2s infinite, sizeChangeAnimation2 5s infinite;
}

#hotspot7 {
    top: 520px;
    left: 690px;
    width: 120px;
    height: 120px;
    animation: pulseAnimation7 2s infinite, sizeChangeAnimation2 5s infinite;
}

#hotspot8 {
    top: 520px;
    left: 980px;
    width: 120px;
    height: 120px;
    animation: pulseAnimation8 2s infinite, sizeChangeAnimation2 5s infinite;
}

.hotspot:hover {
    /* Styling for hover effect */
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.6);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px; /* Adjust size as needed */
    color: #000; /* Adjust color for visibility */
    z-index: 2; /* Ensure it's above other modal content */
}
