﻿.reviewSection .circle-gauge {
    position: relative;
    width: 80px;
    height: 80px;
    overflow: hidden;
}

    .reviewSection .circle-gauge * {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .reviewSection .circle-gauge.circle-gauge-small {
        width: 60px;
        height: 60px;
    }

    .reviewSection .circle {
        border-radius: 9999px;
    }


.reviewSection .half {
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.reviewSection .left.half {
    left: 0px;
}

.reviewSection .right.half {
    right: 0px;
}

.reviewSection .big.outer, .reviewSection .small {
    background-color: #73B544;
}

.reviewSection .circle-gauge.circle-gauge-small .big.outer, .reviewSection .circle-gauge.circle-gauge-small .small {
    background-color: #AAD14E;
}

.reviewModal .reviewSection .circle-gauge.circle-gauge-small .big.outer {
    background-color: #73B544;
}


.reviewSection .big.outer {
    width: 100%;
    height: 100%;
}

.reviewSection .half .big.outer {
    width: 200%;
}

.reviewSection .big.inner {
    width: 80%;
    height: 80%;
    background-color: white;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    margin: auto;
}

.reviewSection .small {
    width: 10%;
    height: 10%;
    top: 0px;
    left: 0px;
    right: 0px;
    margin: auto;
}

.reviewSection .rectangle {
    background-color: white;
}

.reviewSection .gradient-hack {
    display: none;
}

/* Animations */

.reviewSection .circle-gauge * {
    animation-duration: 3s;
    animation-iteration-count: 1;
}

.reviewSection .appear.later {
    animation-name: appear-later;
    animation-timing-function: step-end;
}

@keyframes appear-later {
    from {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.reviewSection .rotate {
    animation-name: rotate;
    --rotation-amplitude: 120deg;
    animation-fill-mode: forwards;
    /* Animation caveat
    The animation is quite finicky in that --rotation-mid
    cannot be changed, and it must be reached exactly at
    the halfway point in the animation, because that is when
    the appear-later animation is hardcoded to trigger the
    opacity change on the left half of the circle. You *can*
    change --rotation-amplitude to any value between 0deg
    and 180deg.
  */
    --rotation-mid: 180deg;
    --rotation-from: 360deg;
    --rotation-to: 20deg;
}

@keyframes rotate {
    from {
        transform: rotate(var(--rotation-from));
        animation-timing-function: ease-in;
    }

    50% {
        transform: rotate(var(--rotation-mid));
        animation-timing-function: ease-out;
    }

    to {
        transform: rotate(var(--rotation-to));
    }
}

.reviewSection .rotate.later {
    animation-name: rotate-later;
}

@keyframes rotate-later {
    50% {
        transform: rotate(0deg);
        animation-timing-function: ease-out;
    }

    to {
        transform: rotate( calc(var(--rotation-to) - 180deg));
    }
}

/* For presentational purposes */

.reviewSection .circle-gauge {
    display: inline-block;
    margin: 5px;
}



.reviewSection .averageValue {
    position: absolute;
    top: 54%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #253126;
    font-weight: 700; 
    font-size: 25px;
    z-index: 2;
}

.reviewSection .gauge-small .averageValue {
    font-size: 20px;
    top: 65%;
}

.gaugeSection .gauge {
    position: relative;
    height: 100px;
    display: flex;
    align-items: end;
    justify-content: center;
    width: 100%;
}


    .gaugeSection .gauge i {
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 60px;
    }

.gaugeSection .averageLabel {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    margin-top: 0px;
}


@media screen and (min-width:600px) {
    .reviewSection .circle-gauge {
        width: 120px;
        height: 120px;
    }

        .reviewSection .circle-gauge.circle-gauge-small {
            width: 80px;
            height: 80px;
        }


    .reviewSection .circle-gauge {
        margin: 30px;
    }

    .gaugeSection .gauge {
        height: 185px;
    }

    .gaugeSection .averageLabel {
        text-align: center;
        font-size: 16px;
        font-weight: 700;
        margin-top: -20px;
    }

    .gaugeSection .gauge i {
        bottom: 30px;
        font-size: 80px;
    }


    .reviewSection .averageValue {
        top: 50%;
        left: 50%;
        font-size: 33px;
    }

    .reviewSection .gauge-small .averageValue {
        font-size: 20px;
        top: 58%;
    }

    .reviewSection .gauge-small .circle-gauge-small ~ .averageValue {
        top: 62%;
    }
}


@media screen and (min-width: 768px) and (max-width: 993px) {
    .reviewSection .circle-gauge {
        width: 80px;
        height: 80px;
    }

        .reviewSection .circle-gauge.circle-gauge-small {
            width: 60px;
            height: 60px;
        }

    .reviewSection .circle-gauge {
        margin: 10px;
    }

    .reviewSection .gauge-small .averageValue {
        top: 65%;
    }

    .reviewSection .gauge-small .circle-gauge-small ~ .averageValue {
        top: 60%;
    }

    .gaugeSection .gauge {
        height: 100px;
    }

        .gaugeSection .gauge i {
            bottom: 0px;
            font-size: 60px;
        }

    .gaugeSection .averageLabel {
        margin-top: 0px;
    }
}