.hotspot-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3; /* Ensure this is on top of the transition container */
}

.hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: rgba(248, 108, 20, 0.8);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(248, 108, 20, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease, opacity 0.5s ease-in-out, top 0.5s ease-in-out, left 0.5s ease-in-out;
}

.hotspot.visible {
    opacity: 1;
    visibility: visible;
}

.hotspot:hover {
    transform: scale(1.5);
    box-shadow: 0 0 25px rgba(248, 108, 20, 1);
}

.hotspot-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(248, 108, 20, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    70% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

#hotspot-clock {
    top: 10%;
    left: 29%;
    z-index: 1;
}

#hotspot-person {
    top: 50%;
    left: 65%;
    z-index: 2;
}

#hotspot-monitor {
    top: 50%;
    left: 10%;
    z-index: 3;
}

#hotspot-clock.consolidate,
#hotspot-person.consolidate,
#hotspot-monitor.consolidate {
    top: 50%;
    left: 50%;
    z-index: 10;
}

#hotspot-clock.activated {
    top: 55%;
    left: 20%;
    z-index: 11;
}

#hotspot-person.activated {
    top: 72%;
    left: 55%;
    z-index: 12;
}

#hotspot-monitor.activated {
    top: 40%;
    left: 62%;
    z-index: 13;
}

.hotspot-content {
    display: none;
    position: absolute;
    background: rgba(12, 12, 8, 0.9);
    color: #FEF9F6;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #f86c14;
    max-width: 300px;
    z-index: 10;
    text-align: left;
}

.hotspot-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #f86c14;
}

.hotspot-content p {
    font-size: 1rem;
}

.problem-title {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #FEF9F6;
    font-size: 2rem;
    text-align: center;
}

.activate-button, .deactivate-button {
    position: absolute;
    bottom: 7rem;
    left: 50%;
    padding: 1rem 2rem;
    border-radius: 5px;
    border: 2px solid #f86c14;
    background-color: transparent;
    color: #f86c14;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: opacity .5s ease-in-out, transform .5s ease-in-out;
    overflow: hidden;
    isolation: isolate;
}

.activate-button.visible, .deactivate-button.visible {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

.deactivate-button {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}

.activate-button::before, .deactivate-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 0;
    padding-bottom: 300%;
    background: #f86c14;
    z-index: -1;
    transform: translate(-50%, -50%) rotate(225deg) scale(0);
    transform-origin: center;
    transition: all 0.5s ease;
}

.activate-button:hover, .deactivate-button:hover {
    color: #0c0c08;
    box-shadow: 0 0 20px #f86c14;
}

.activate-button:hover::before, .deactivate-button:hover::before {
    transform: translate(-50%, -50%) rotate(225deg) scale(1);
}
