.mainHeader {
    position: relative;
    margin-bottom: 30px;
}

h3 {
    background: rgb(2,119,187);
    background: -moz-linear-gradient(90deg, rgba(2,119,187,1) 0%, rgba(82,190,252,1) 100%);
    background: -webkit-linear-gradient(90deg, rgba(2,119,187,1) 0%, rgba(82,190,252,1) 100%);
    background: linear-gradient(90deg, rgba(2,119,187,1) 0%, rgba(82,190,252,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#0277bb",endColorstr="#52befc",GradientType=1);
    color: white;
    display: inline-block;
    padding: 1.3rem 2rem;
    border: 1px solid #8fd1f8;
    font-size: 13px;
    margin: 10px;
    position: relative;
    text-align: center;
}

.headerShadow {
    background: rgb(216,216,216);
    background: -moz-radial-gradient(circle, rgba(216,216,216,1) 0%, rgba(234,234,234,0.5) 65%, rgba(255,255,255,0) 75%);
    background: -webkit-radial-gradient(circle, rgba(216,216,216,1) 0%, rgba(234,234,234,0.5) 65%, rgba(255,255,255,0) 75%);
    background: radial-gradient(circle, rgba(216,216,216,1) 0%, rgba(234,234,234,0.5) 65%, rgba(255,255,255,0) 75%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#cdcdcd",endColorstr="#ffffff",GradientType=1);
    position: absolute;
    width: 50px;
    height: 50px;
    transform: scaleX(8);
    left: 45%;
    top: 60%;
}

#quarterly-churn .headerShadow {
    transform: scaleX(8);
}

.chart-wrapper {
    border: 1px solid #e4e4e4;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.chart-wrapper .legend {
    position: absolute;
    bottom: -20px;
}

.chart-wrapper .legend h3 {
    font-size: 15px;
    padding: 10px;
    width: 128px;
    text-align: center;
}

.chart-wrapper .legend .headerShadow {
    transform: scaleX(3);
    top: 27px;
}

.transferOutHeader {
    left: 20px;
}

.transferOutHeader h3 {
    background: #01a0fe;
    border: 1px solid #01a0fe;
}

.transferInHeader {
    right: 18px;
}

.transferInHeader h3 {
    background: #b4d631;
    border: 1px solid #b4d631;
}

.legendHolder {
    display: flex;
}

.legendHolder .legend {
    position: relative;
    top: 0;
    left: 0;
}

.numTransfers h3 {
    background: #01a0fe;
    border: 1px solid #01a0fe;
}

.percSpidTransfers h3 {
    background: #b4d631;
    border: 1px solid #b4d631;
}

#quarterly-churn .chart-wrapper .legendHolder .legend .headerShadow {
    transform: scaleX(3);
}

.chart-container {
    position: relative;
    width: 100%;
}

.chart-container canvas {
    width: 100%;
    height: 100%;
}

.chart-container.pie {
    margin: 10px 7%;
    display: inline-block;
    width: 34%;
}

.pie-wrapper > div {
    width: 35%;
    min-width: 0;
}

.pie-wrapper .pie-small .pie {
    width: 90%;
}

.pie-wrapper .pie-small {
    width: 25%;
}

.pie-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}

.chart-wrapper + .chart-wrapper {
    margin-top: 70px;
}

.pie-wrapper h4 {
    color: #0076ba;
    text-align: center;
    border: 1px solid #0f7ebe;
    background-color: #fff;
    -webkit-box-shadow: 0 14px 20px 0 rgba(102, 102, 102, 1);
    -moz-box-shadow: 0 14px 20px 0 rgba(102, 102, 102, 1);
    box-shadow: 0 14px 20px 0 rgb(102, 102, 102);
    margin-bottom: 25px;
    font-size: 11px;
    padding: 10px;
    font-weight: bold;
}

.chart-footer {
    color: #0076ba;
    font-weight: bold;
    font-size: 13px;
    position: absolute;
    right: 50px;
    bottom: 5px;
}

.lpOverallYAxis {
    color: #004c7f;
    position: absolute;
    right: -7px;
    top: -18px;
    font-size: 11px;
    font-weight: bold;
    visibility: hidden;
}

@media (min-width: 576px) {
    .chart-wrapper .legend h3 {
        font-size: 15px;
        width: 128px;
    }

    .chart-wrapper .legend.percSpidTransfers h3 {
        width: 145px;
    }
}

@media (min-width: 768px) {
    h3 {
        font-size: 19px;
    }

    .transferOutHeader {
        left: 230px;
    }

    .transferInHeader {
        right: 18px;
    }

    .headerShadow {
        transform: scaleX(11);
    }

    .pie-wrapper h4 {
        font-size: 13px;
    }

    .lpOverallYAxis {
        visibility: visible;
    }
}

@media (min-width: 992px) {
    h3 {
        font-size: 21px;
    }

    .chart-wrapper .legend {
        bottom: -20px;
    }

    .transferOutHeader {
        left: 250px;
    }

    .transferInHeader {
        right: 40px;
    }

    .headerShadow {
        transform: scaleX(15);
    }
}

@media (min-width: 1200px) {
    .chart-wrapper .legend h3 {
        font-size: 18px;
        width: 140px;
    }

    .chart-wrapper .legend {
        bottom: 110px;
    }

    .chart-wrapper .legend.percSpidTransfers h3 {
        width: 275px;
    }

    .chart-wrapper .legend.numTransfers h3 {
        width: 200px;
    }

    #quarterly-churn .chart-wrapper .legendHolder .legend .headerShadow {
        transform: scaleX(6);
    }

    .pie-wrapper h4 {
        font-size: 16px;
    }
}