﻿.gauge {
    width: 300px;
    height: 150px;
    position: relative;
    box-sizing: content-box;
}

.gauge-background {
    width: 200px;
    height: 100px;
    background-color: transparent;
    border-top-left-radius: 150px;
    border-top-right-radius: 150px;
    border: 50px solid var(--gray-1);
    border-bottom: 0;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: content-box;
}

.gauge-value {
    width: 200px;
    height: 100px;
    background-color: transparent;
    border-bottom-left-radius: 150px;
    border-bottom-right-radius: 150px;
    border: 50px solid var(--green);
    border-top: 0;
    transform-origin: top center;
    position: absolute;
    top: 150px;
    left: 0;
    transition: transform 1s ease;
    box-sizing: content-box;
}

.gauge-inner {
    height: 100px;
    width: 200px;
    background: inherit;
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    position: absolute;
    top: 50px;
    left: 50px;
}

.gauge-base {
    width: 300px;
    height: 150px;
    background-color: white;
    position: absolute;
    top: 150px;
    left: 0;
}

.gauge-marker-line {
    width: 160px;
    height: 2px;
    background-color: black;
    position: absolute;
    top: 150px;
    left: -10px;
    transform: rotate(-90deg);
    transform-origin: right;
    transition: transform 1s ease;
}

.gauge-core {
    height: 90px;
    width: 180px;
    background: inherit;
    border-top-left-radius: 90px;
    border-top-right-radius: 90px;
    position: absolute;
    top: 60px;
    left: 60px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.gauge-title {
    justify-content: center;
    color: var(--primary);
    white-space: nowrap;
}

.gauge-headline {
    font-size: 2rem;
    color: var(--primary);
}

.gauge-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.gauge-below {
    justify-self: center;
}
