

/* For the CONNECTION SETUP diagram */
.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 900px;
}

/* Base Image */
.main-image {
    width: 100%;
    display: block;
}


/* Hover Image Layer (Handles smooth transitions) */
.fade-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0; /* Starts fully transparent */
    transition: opacity 0.3s ease-in-out; /* Smooth fade-in */
}
/* Define main hover area for the top-left cable */
#hover-top-left {
    position: absolute;
    top: 0%;
    left: 18%;
    width: 30%;
    height: 20%;
    
    /* 🔥 Highlight the first hover area */
    background: rgba(255, 0, 0, 0.3); /* Red with transparency */
}

/* Extra hover rectangle 1 (inside #hover-top-left) */
#hover-top-left::before {
    content: "";
    position: absolute;
    top: 100%;  /* Move it below the main area */
    left: 0%;
    width: 40%;
    height: 120%;
    
    /* 🔵 Ensure the second rectangle appears */
    display: block;
    background: rgba(255, 0, 0, 0.3); /* Red transparent */
}

#hover-bottom {
    position: absolute;
    top: 68%;
    left: 27%;
    width: 40%;
    height: 15%;
    
    /* 🔥 Highlight the first hover area */
    background: rgba(0, 255, 0, 0.3); /* Red with transparency */
}

#hover-right {
    position: absolute;
    top: 13%;
    left: 53%;
    width: 14%;
    height: 55%;
    
    /* 🔥 Highlight the first hover area */
    background: rgba(0, 0, 255, 0.3); 
}


/* 🛑 Hide ALL hover areas when ANY is hovered */
.hover-zones:hover #hover-top-left,
.hover-zones:hover #hover-bottom,
.hover-zones:hover #hover-right,
.hover-zones:hover #hover-top-left::before {
    background: transparent;
}

/* Make hover areas visible as clickable elements */
#hover-top-left, #hover-bottom, #hover-right {
    cursor: pointer; 
}


/* _______________________________________________________________ */


/* Magnifying Glass Buttons */
.magnify-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out;
}

/* Magnifying Glass Icon */
.magnify-btn .material-icons {
    font-size: 24px;
    color: #333;
}

/* Position Each Magnifying Glass */
#magnify-top-left {
    top: 5%;
    left: 15%;
}

#magnify-bottom {
    bottom: 10%;
    left: 45%;
}

#magnify-right {
    top: 30%;
    right: 10%;
}

/* Hide Buttons on Hover */
#hover-top-left:hover ~ #magnify-top-left,
#hover-bottom:hover ~ #magnify-bottom,
#hover-right:hover ~ #magnify-right {
    opacity: 0;
}
