.sdcard-graph-gauge-box {
    display: inline-block;
    width: 250px;
    margin: 0.5em;
    vertical-align: top;
}

.sdcard-graph-mini-gauge-box {
    display: inline-block;
    width: 150px;
    margin: 0.5em;
    vertical-align: top;
}

.sdcard-graph-gauge-box-canvas-div {
    height: 250px;
}

.sdcard-graph-mini-gauge-box-canvas-div {
    height: 150px;
}

.sdcard-graph-number-box {
    height: 250px;
    font-size: 140px;
    text-wrap-mode: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sdcard-graph-caption-box {
    font-weight: bold;
}

.sdcard-graph-outer-box {
    border: 1px solid lightgray;
    border-radius: 10px;
    padding: 10px;
    margin: 20px;
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-color: #ccc #0000;
    animation: l16 1s infinite linear;
}

.loader::before,
.loader::after {    
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
}

.loader::before {
    border-color: #f03355 #0000;
    animation: inherit; 
    animation-duration: .5s;
    animation-direction: reverse;
}

.loader::after {
    margin: 8px;
}

@keyframes l16 { 
    100%{transform: rotate(1turn)}
}

@keyframes fadein {
    0% { opacity: 0% }
    100% { opacity: 100% }
}

#sdcard-graph-lightbox-div {
    animation: fadein 0.5s;
    background-color: rgb(255,255,255,0.75);
    z-index: 100000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

@keyframes sdgraphs-pop-in {
    0% { top: 100vh; bottom: calc(100vh + 4em); }
    8% { top: calc(100vh - 6em); bottom: calc(100vh - 2em); }
    92% { top: calc(100vh - 6em); bottom: calc(100vh - 2em); }
    100% { top: 100vh; bottom: calc(100vh + 4em); }
}

#sdcard-graph-error-div {
    animation: sdgraphs-pop-in 6s;
    animation-play-state: paused;
    display: none;
    position: fixed;
    z-index: 100001;
    bottom: calc(100vh + 4em);
    top: 100vh;
    width: 25%;
    height: 4em;
    left: 37.5%;
    background-color: #f44;
    color: white;
    border-radius: 5px;
    box-shadow: 10px 10px 10px #888;
    padding: 5px 10px;
    text-align: left;
    font-weight: bold;
}

.sdcard-graph-help-popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: underline dotted 1px;
    text-underline-position: under;
}

/* The actual popup (appears on top) */
.sdcard-graph-help-popup .sdcard-graph-help-popuptext {
    visibility: hidden;
    width: 400px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    text-decoration: none;
    font-weight: normal;
    font-size: 12px;
    padding: 0.5em;
    margin-left: -50px;
}

/* Popup arrow */
.sdcard-graph-help-popup .sdcard-graph-help-popuptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 5%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Toggle this class when clicking on the popup container (hide and show the popup) */
.sdcard-graph-help-popup .sdcard-graph-help-show {
    visibility: visible;
    animation: fadeIn 0.5s
}

/* Add animation (fade in the popup) */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#sdcard-graph-single-card-view {
    text-align: center;
}

#sdcard-graph-compare-view {
    text-align: center;
    display: none;
}
