﻿.gauge-wrapper {
    display: inline-block;
    width: auto;
    margin: 0 auto;
    padding: 20px 15px 15px;
}

.gauge {
    background: #e7e7e7;
    box-shadow: 0 -3px 6px 2px rgba(0, 0, 0, 0.50);
    width: 200px;
    height: 100px;
    border-radius: 100px 100px 0 0 !important;
    position: relative;
    overflow: hidden;
}

    .gauge.min-scaled {
        transform: scale(0.5);
    }

.gauge-center {
    content: '';
    color: #fff;
    width: 60%;
    height: 60%;
    background: #15222E;
    border-radius: 100px 100px 0 0 !important;
    position: absolute;
    box-shadow: 0 -13px 15px -10px rgba(0, 0, 0, 0.28);
    right: 21%;
    bottom: 0;
    color: #fff;
    z-index: 10;
}

    .gauge-center .label, .gauge-center .number {
        display: block;
        width: 100%;
        text-align: center;
        border: 0 !important;
    }

    .gauge-center .label {
        font-size: 0.75em;
        opacity: 0.6;
        margin: 2.1em 0 0.3em 0;
    }

    .gauge-center .number {
        font-size: 1.2em;
    }

.needle {
    width: 80px;
    height: 7px;
    background: #15222E;
    border-bottom-left-radius: 100% !important;
    border-bottom-right-radius: 5px !important;
    border-top-left-radius: 100% !important;
    border-top-right-radius: 5px !important;
    position: absolute;
    bottom: -2px;
    left: 20px;
    transform-origin: 100% 4px;
    transform: rotate(0deg);
    box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.38);
    display: none;
    z-index: 9;
}

.four.rischio1 .needle {
    animation: fourspeed1 2s 1 both;
    animation-delay: 1s;
    display: block;
}

.four.rischio2 .needle {
    animation: fourspeed2 2s 1 both;
    animation-delay: 1s;
    display: block;
}

.four.rischio3 .needle {
    animation: fourspeed3 2s 1 both;
    animation-delay: 1s;
    display: block;
}

.four.rischio4 .needle {
    animation: fourspeed4 2s 1 both;
    animation-delay: 1s;
    display: block;
}

.four.rischio5 .needle {
    animation: fourspeed5 2s 1 both;
    animation-delay: 1s;
    display: block;
}

.four.rischio6 .needle {
    animation: fourspeed6 2s 1 both;
    animation-delay: 1s;
    display: block;
}

.four.rischio7 .needle {
    animation: fourspeed7 2s 1 both;
    animation-delay: 1s;
    display: block;
}

.four.rischio8 .needle {
    animation: fourspeed8 2s 1 both;
    animation-delay: 1s;
    display: block;
}

.slice-colors {
    height: 100%;
}

    .slice-colors .st {
        position: absolute;
        bottom: 0;
        width: 0;
        height: 0;
        border: 50px solid transparent;
    }

.four .slice-colors .st.slice-item:nth-child(1) {
    left: 0%;
    bottom: 0%;
    background-color: #31F5EB;
    transform: rotate(0deg);
}

.four .slice-colors .st.slice-item:nth-child(2) {
    left: -10%;
    bottom: 27%;
    background-color: #92D14F;
    transform: rotate(288deg);
}

.four .slice-colors .st.slice-item:nth-child(3) {
    left: 21%;
    bottom: 28%;
    background-color: #01B051;
    transform: rotate(307deg);
}

.four .slice-colors .st.slice-item:nth-child(4) {
    left: 37%;
    bottom: 24%;
    background-color: #01B0F1;
    transform: rotate(336deg);
}

.four .slice-colors .st.slice-item:nth-child(5) {
    left: 50%;
    bottom: 5%;
    background-color: #315496;
    transform: rotate(0deg);
}

.four .slice-colors .st.slice-item:nth-child(6) {
    left: 62%;
    bottom: 0%;
    background-color: #7030A0;
    transform: rotate(30deg);
}
.four .slice-colors .st.slice-item:nth-child(7) {
    left: 74%;
    bottom: -25%;
    background-color: #FE0000;
    transform: rotate(40deg);
}
.four .slice-colors .st.slice-item:nth-child(8) {
    left: 82%;
    bottom: -59%;
    background-color: #C1060A;
    transform: rotate(65deg);
}


@-webkit-keyframes fourspeed1 {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(8deg);
    }
}

@-webkit-keyframes fourspeed2 {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(29deg);
    }
}

@-webkit-keyframes fourspeed3 {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(55deg);
    }
}

@-webkit-keyframes fourspeed4 {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(78deg);
    }
}
@-webkit-keyframes fourspeed5 {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(101deg);
    }
}
@-webkit-keyframes fourspeed6 {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(124deg);
    }
}

@-webkit-keyframes fourspeed7 {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(150deg);
    }
}
@-webkit-keyframes fourspeed8 {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(172deg);
    }
}