/* pie-chart.css */

/* Flex container for chart and details */

.cpc-chart-container {
    width: 100%;
  display:flex;
	flex-flow: row wrap;
	justify-content:space-between;
    position: relative;
	align-items:center;
   
}
#mobile-deets{display:none;}
.cpc-chart-wrap {
    width: 100%;
    max-width: 400px; /* Ensures the chart does not exceed 400px */
    flex: 1 1 400px;
    margin-right: 20px;
    position: relative;
    /* Ensure there's no display:none or height issues here */
}

/* Responsive Chart */
.cpc-chart {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
    display: block;
    margin: auto;
    max-width: 400px; /* Ensures the chart does not exceed 400px */
    flex: 1 1 400px;


}

.cpc-chart canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: filter 0.5s ease-in-out; /* Add transition for hover effects */
}

/* Details container (Right) */
.cpc-chart-details {
    flex: 0 1 56%;
    padding-left: 20px;
}


/* Chart description */
.cpc-chart-description {
    margin-bottom: 20px;
}

/* Chart key */
.cpc-chart-key {
    margin-top: 20px;
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    max-height: 350px;
}

.cpc-chart-key-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex: 1 1 25px;
    width: 48%;
	position:relative;
}
.cpc-chart-key-label{
	    margin-left: 25px;
    line-height: 16px;
}

/* Hover effect for key items */
.cpc-chart-key-item:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Light background on hover */
}

.cpc-chart-key-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50px;
    margin-right: 6px;
	position:absolute;
}

.cpc-dynamic-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    text-align: center;
    color: #000;
    pointer-events: none; /* Prevents interaction */
    max-width: 200px;
}

/* Ensure that canvas transition is smooth */
.cpc-chart-container canvas {
    width: 100%; /* Set this as per your design */
    height: 400px; /* Ensure height is defined */

    transition: filter 0.5s ease-in-out;
}
.cpc-dynamic-text {
    font-size: 16px;
    font-weight: normal;
    color: #333;
}

.cpc-dynamic-text .dynamic-label {
    font-weight: bold;
    color: #10533c; 
}

.cpc-dynamic-text .dynamic-value {
    font-weight: bold;
    color: #c08c35; 
}
@media screen and (max-width:1023px){
	#desk-deets{display:none;}
	#mobile-deets{display:block; margin-bottom:2em;}
	.cpc-chart-wrap{margin-right:0!important;}
	.cpc-chart-details{flex: 0 1 100%; margin-top:2em;padding-left:0;}

	.cpc-chart-container canvas{height:auto;}
}

