﻿



.gauge-mask {
    position: relative;
    overflow: hidden;
    display: block;
    width: 200px;
    height: 100px;
    margin: 20px;
}

.gauge-circle {
    position: relative;
    display: block;
    width: 200px;
    height: 100px;
    background: #02a144;
    border-radius: 50% 50% 50% 50% / 100% 100% 0% 0%;
}


.gauge-circle::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 2;
    display: block;
    width: 140px;
    height: 70px;
    margin-left: -70px;
    background: var(--winLight);
    border-radius: 50% 50% 50% 50% / 100% 100% 0% 0%;
}



.gauge-circle--mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: transparent;
    transform: rotate(0deg) translate3d(0,0,0);
    transform-origin: center center;
    backface-visibility: hidden;
    transition: all .3s ease-in-out;
}


.gauge-circle--mask::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0%;
    z-index: 2;
    display: block;
    width: 202px;
    height: 102px;
    margin: -1px 0 0 -1px;
    background: var(--winMiddle);
    border-radius: 50% 50% 50% 50% / 100% 100% 0% 0%;
}


.gauge-circle-max {
    position: absolute;
    top: 100%;
    left: 0;
    width: 202px;
    height: 6px;
    background: linear-gradient(to right,#e6002d 50%,transparent 50%);
    transform-origin: center top;
    transform: rotate(0deg);
    transition: transform .4s ease-out;
}



.gauge {
    position: relative;
}

.gauge .textMin {
    position : absolute;
    left : 18px;
    top : 104px;
}

.gauge .textMax {
    position: absolute;
    left: 192px;
    top: 104px;
}

.gauge .textCaption {
    position : absolute;
    top : 76px;
    width : 240px;
    z-index : 10;
    text-align : center;
}

.gauge .textValue {
    position : absolute;
    top : 52px;
    width : 240px;
    z-index : 10;
    font-weight : bold;
    font-size : 20px;
    text-align : center;
}

.gauge .legend {
    min-width: 12px;
    min-height: 12px;
    width: 12px;
    height: 12px;
    border-radius: 6px;
    margin-right: 8px;
    margin-top: 2px;
}

.gauge .h1 {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 8px;
    text-align: center;
    font-weight: bold;
}

.gauge .valueBox {
    width: 80px;
    background-color: var(--winMiddle);
    text-align: center;
    padding: 8px 4px;
    position: absolute;
}

.gauge .valueBox > div:first-of-type {
    font-size: 8px;
}

.gauge .valueBox > div:last-of-type {
    font-size: 16px;
    font-weight: bold;
}



