.sectors {
    z-index: 100;
    background-color: #23232c;
    overflow: hidden;
}
.sectors-h1 {
    font-size: 50px;
    color: #fff;
    padding: 75px 0 0 65px;
    text-align: left;
    font-weight: 700;
}
.sector-title {
    box-sizing: border-box;
    padding: 4px 15px;
    width: fit-content;
    height: 55px;
    border: 2px solid #ffffff;
    border-radius: 50px;
    display: inline-flex
}
.title-head {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
    padding-bottom: 20px;
}
.sectors-chart p {
    color: #a8a8a8;
    width: 300px !important;
    display: block;
    font-size: 18px;
}

.sectors-chart {
    margin: 50px 65px;
}
 #chart {
     width: 100%;
     height: 600px;
     margin: 20px auto;
 }
.lines-chart-container {
    margin: 100px 45px;
    position: relative;
    background: linear-gradient(180deg, #595959, #23232c);
    padding: 50px 30px;
    border-radius: 15px;
}

canvas {
    display: block;
    margin: auto;
}

.custom-legend {
    background-color: #2A2A33;
    border-radius: 35px;
    padding: 15px 20px;
    width: fit-content;
    display: inline-flex;
    gap: 10px;
    float: inline-end;
}

.custom-legend-item {
    display: flex;
    align-items: center;
}

.custom-legend-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.custom-legend-label {
    font-size: 14px;
}
.map-container {
    position: relative;
    left: 50%;
    right: 0;
    top: 100px;
}
.map-image {
    width: 400px;
    height: auto;
}
/* Line container */
.line-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    opacity: 0; /* Start invisible */
    transform: translateY(50px); /* Start position shifted downward */
    transition: opacity .4s ease, transform .4s ease;
}

/* Lines */
.line {
    background-color: #ffffff;
    position: relative;
    transition: all 1s ease-out;
}

.vertical {
    width: 2px;
    height: 84px;
}

.horizontal {
    width: 75px;
    height: 2px;
}

/* Circle */
.shadow-circle {
    width: 25px;
    height: 25px;
    background-color:rgba(255, 255, 255, 0.2);;
    border-radius: 50%;
    position: absolute;
    top: -6px;
    right: -6px;
    animation: pulse 2s infinite ease-in-out;
}
.city-circle {
    width: 13px;
    height: 13px;
    background-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    right: -11px;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease .4s;
}

/* Labels */
.label {
    position: absolute;
    top: -67px;
    left: 0;
    text-align: left;
    color: #149E40;
    opacity: 0;
    transition: opacity 0.2s ease .4s;
}

.percentage {
    font-size: 30px;
    font-weight: bold;
}

.city {
    font-size: 16px;
}

.line-container.active {
    opacity: 1;
    transform: translateY(0);
}

.line-container.active .shadow-circle, .line-container.active .city-circle,.line-container.active .horizontal, .line-container.active .vertical,
.line-container.active .label {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1); /* Normal size */
        opacity: 0.6;
    }
    50% {
        transform: scale(1.4); /* Zoom in */
        opacity: 0.3;
    }
    100% {
        transform: scale(1); /* Back to normal size */
        opacity: 0.6;
    }
}

#infoBox {
    position: fixed;
    background-color: #e5f5e8d8;
    color: #000;
    padding: 5px;
    border-radius: 5px;
    display: none; /* Initially hidden */
    pointer-events: none; /* Prevent info box from interfering with mouse events on the canvas */
    z-index: 10; /* Ensure it's on top */
}
.cairo-line {
    top: -110px;
    left: 137px;
}
.alex-line {
    top: -23px;
    left: 10px;
    flex-direction: unset;
}
.ismailia-line {
    top: -25px;
    left: 163px;
}
