:root {
    /* Scale is using this font-size */
    --font-size: 0.8em;

    --bg1: #f5f8f7;
    --blue: #3498db;
    --green: #2ecc71;
    --purple: #9b59b6;
    --gold: #f1c40f;
    --red: #e74c3c;
    --orange: #e67e22;
    --shadow1: 0 2px 4px #00000026, 0 3px 6px #0000001f;
    --shadow2: 0 2px 6px #00000044, 0 4px 7px #00000022;
}

#sec-4 {
    margin: 0 0 10%;
}


#sec-4 h2 {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-size: 70px;
    text-align: center;
    margin-block-end: 0;
}

#sec-4 .para {
    font-size: 28px;
    text-align: center;
    margin-bottom: 80px

}

ul.infoGraphic {
    /* Resize with Ems */
    font-size: var(--font-size);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    li {
        position: relative;
        width: 100%;
        max-width: 25em;
        background: var(--bg1);
        border-radius: 0.5em;
        padding: 0.5em;
        z-index: 1;
        transition: all 0.2s;
        cursor: pointer;
        list-style: none;
        height: 252px;

        .numberWrap {
            position: absolute;
        }

        .number {
            font-family: "maven pro", sans-serif;
            font-size: 13em;
            font-weight: 900;
            width: 0.9em;
            text-align: center;

            &.fontColor1 {
                color: var(--blue);
            }

            &.fontColor2 {
                color: var(--green);
            }

            &.fontColor3 {
                color: var(--purple);
            }

            &.fontColor4 {
                color: var(--gold);
            }

            &.fontColor5 {
                color: var(--red);
            }

            &.fontColor6 {
                color: var(--orange);
            }
        }

        .coverWrap {
            transform: rotate(130deg);
            position: absolute;
            width: 18em;
            height: 15em;
            left: -3em;
            top: 1em;

            .numberCover {
                position: absolute;
                background: var(--bg1);
                width: 18em;
                height: 6em;
                border-radius: 50% 50% 0 0;
                border-bottom: 3px solid #f5f8f7;
                transition: all 0.4s;

                &::before {
                    position: absolute;
                    content: "";
                    bottom: 5px;
                    left: 4em;
                    right: 4em;
                    top: 5em;
                    box-shadow: 0 0 30px 17px #48668577;
                    border-radius: 100px / 10px;
                    z-index: -1;
                }

                &::after {
                    position: absolute;
                    bottom: 0;
                    content: "";
                    left: -10%;
                    width: 120%;
                    height: 150%;
                    background: radial-gradient(at bottom,
                            #48668533,
                            transparent,
                            transparent);
                    z-index: 1;
                }
            }
        }

        .content {
            margin: 8em 3em 1em 7em;
            position: relative;



            p {
                line-height: 100%;
                font-family: Barlow, sans-serif;
                font-size: 1.5rem;
                text-align: center;
                text-transform: capitalize;

            }
        }
    }
}

/* I like the curved version too, so I made it a hover for fun. */
ul.infoGraphic li:hover .coverWrap .numberCover {
    border-radius: 100%;
}


/* /////////////////////////////////////
// Fontawesome Icons
// List: http://astronautweb.co/snippet/font-awesome/ */




/* // --------------
// General Layout
// -------------- */



/* ///////////////////////
    // Controls */

.controls {
    position: fixed;
    z-index: 2;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: #d7d7d7a1;
    padding: .5rem 2em;
    border-top-right-radius: 1rem;
    border-top-left-radius: 1rem;
    border: 1px solid #0000004d;
}

.sliderBox {
    text-align: center;

    .range-value {
        font-weight: 500;
        font-size: 22px;
    }
}