.custom_meter {
    position: relative;
    width: 330px;
    height: 330px;
}

.first_ring {
    position: absolute;
    width: 330px;
    height: 330px;
    background-color: #666;
    border-radius: 50%;
    box-sizing: border-box;
}

.second_ring {
    position: absolute;
    width: 320px;
    height: 320px;
    top: 5px;
    left: 5px;
    background-color: #CCC;
    border-radius: 50%;
    box-sizing: border-box;
}

.third_ring {
    position: absolute;
    width: 310px;
    height: 310px;
    top: 5px;
    left: 5px;
    background-color: #FFF;
    border-radius: 50%;
    box-sizing: border-box;
}

.pie {
    position: relative;
    width: 300px;
    height: 300px;
    transform: translate(15px, 15px) rotate(-45deg);
}

.pie_segment {
    position: absolute;
    height: 150px;
    width: 150px;
}

.pie_segment.red {
    background-color: red;
    border-radius: 100% 0px 0px 0px;
}

.pie_segment.orange {
    background-color: orange;
    left: 150px;
    border-radius: 0px 100% 0px 0px;
}

.pie_segment.green {
    background-color: green;
    left: 150px;
    top: 150px;
    border-radius: 0px 0px 100% 0px;
}

.pie_segment.white {
    background-color: white;
    left: 0px;
    top: 150px;
    border-radius: 0px 0px 0px 100%;
}

.second_layer {
    position: absolute;
    index: 10;
    top: 55px;
    left: 55px;
    height: 220px;
    width: 220px;
    background-color: #FFFFFF;
    opacity: 0.5;
    border-radius: 50%;
    box-sizing: border-box;
}

.third_layer {
    position: absolute;
    index: 10;
    top: 95px;
    left: 95px;
    height: 140px;
    width: 140px;
    background-color: #FFFFFF;
    border-radius: 50%;
    box-sizing: border-box;
}

.middle_point {
    position: absolute;
    index: 16;
    top: 150px;
    left: 150px;
    height: 30px;
    width: 30px;
    background-color: #FFFFFF;
    border: solid 10px #CCC;
    border-radius: 50%;
    box-sizing: border-box;
}

.arrow {
    background-color: transparent;
    box-sizing: border-box;
    width: 120px;
    height: 20px;
    position: absolute;
    top: 155px;
    left: 45px;
    transform-origin: right;
    transform: rotate(0deg);
}

.arrowtop {
    box-sizing: border-box;
    width: 0;
    height: 0;
    border-bottom: 10px solid #666;
    border-left: 120px solid transparent;
}

.arrowbottom {
    box-sizing: border-box;
    width: 0;
    height: 0;
    border-top: 10px solid #666;
    border-left: 120px solid transparent;
}

#barometer_form {
    margin-top: 20px;
}

#barometer_form label {
    box-sizing: border-box;
    font-size: 13px;
    font-weight: bold;
    padding-right: 20px;
}

#barometer_form input {
    font: inherit;
    color: #000;
    box-shadow: none;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    margin-bottom: 15px;
}

div#barometer {
    width: 350px;
    position: relative;
    margin-inline: auto;
}

.percentage {
    position: absolute;
    width: 100%;
    bottom: 24px;
    z-index: 4;
    left: 0;
    right: 0;
    margin-inline: auto;
}

.percentage span {
    /*transform: rotate(-46deg);*/
    font-size: 15px;
    font-weight: 700;
}

.percentage_inner {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.percentage_inner:before {
    position: absolute;
    content: '';
    background: #666;
    width: 3px;
    height: 16px;
    transform: rotate(128deg);
    right: 12%;
    bottom: 16px;
}

.percentage_inner:after {
    position: absolute;
    content: '';
    background: #666;
    width: 3px;
    height: 16px;
    transform: rotate(-128deg);
    left: 12%;
    bottom: 15px;
}

.percentage_inner span:first-child {
    padding-left: 10px;
}

.pie_segment.red {
    background-color: green;
}

.pie_segment.green {
    background-color: red;
}