﻿    @keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.rotating-border {
    --border-radius: 1em;
    --border-size: 0.7em;
    --border-bg: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
    --padding: 1em;
    position: relative;
    overflow: hidden;
    padding: calc(var(--padding) + var(--border-size));
    border-radius: 50%;
    transform: translateZ(0);
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-weight: normal;
    font-size: 1em;
    line-height: 1.6em;
    color: black;
}
.rotating-border span.units {
    font-size: 1.1em;
    font-weight: lighter;
}
.rotating-border div
{
    content: '';
    display: block;
    background: var(--border-bg);
    width: calc(100% * 1.41421356237);
    padding-bottom: calc(100% * 1.41421356237);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 100%;
    z-index: -2;
    animation: spin 5s linear infinite;
}

.rotating-border--reverse::before {
    animation-direction: reverse;
}

.rotating-border::after {
    content: '';
    position: absolute;
    inset: var(--border-size);
    background: white;
    z-index: -1;
    border-radius: calc(var(--border-radius) - var(--border-size));
}

.rotating-border--black-yellow {
    --border-radius: 100%;
    --border-bg: conic-gradient( #F0C400 0.1666turn, #888 0.1666turn 0.3333turn, #F0C400 0.3333turn 0.5turn, #888 0.5turn 0.6666turn, #F0C400 0.6666turn 0.8333turn, #888 0.8333turn );
    width: 3em;
    height: 3em;
    text-align: center;
    vertical-align: middle;
}
.rotating-border--black-yellow span {
    margin-top: 0.8em;
    font-size: 1.5em;
}
.rotating-border--solid {
    --border-radius: 100%;
    --border-bg: #888;
    width: 3em;
    height: 3em;
    text-align: center;
    vertical-align: bottom;
}
    .rotating-border--solid p {
        font-size: 0.9em;
        line-height: 1.2em;
        margin-top: 0.5em;
    }

.rotating-border--light {
    --border-radius: 100%;
    --border-bg: #88AA88;
    background-color: black;
    width: 3em;
    height: 3em;
    text-align: center;
    vertical-align: bottom;
}

.rotating-border--solid p {
    font-size: 0.9em;
    line-height: 1.2em;
    margin-top: 0.5em;
}

.rotating-border--light::after {
    background: black;
}

    .rotating-border--solid p.charger_reserved {
        margin-top: 1em;
        font-weight: normal;
    }
.rotating-border--light p.charger_free {
    margin-top: 0.5em;
    color: white;
    font-size: 1.3em;
    font-weight: lighter;
}
