/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

* { box-sizing: border-box; }

/* ========== End of reset =======================================> */

:root
{
    font-family: monospace;
    color-scheme: light dark;
    color: #a4b0be;
    background: black;
    --pip-size: 4px;
    --card-padding: 1rem;
    --color-good: #2ed573;
    --color-bad: #ff4757;
    --color-other: #eccc68;
    --color-na: #2f3542;
}

body
{
    line-height: 1.3;
}

main
{
    margin: 3rem auto;
    padding: 0 1rem;
    text-align: center;
}

h1
{
    font-size: 2rem;
    margin: 2rem 0;
}

h2
{
    font-size: 1.44rem;
    margin: 1.44rem 0;
}

.service-group
{
    margin-bottom: 2rem;
}

.service-list
{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.service-card
{
    border: 1px solid #57606f;
    padding: calc(0.5 * var(--card-padding)) var(--card-padding) var(--card-padding) var(--card-padding);
    width: calc(48 * var(--pip-size) + 47px);
    height: 7.5rem;
    text-align: start;
    box-sizing: content-box;
    display: flex;
    flex-direction: column;
}

.service-heading
{
    align-items: center;
    margin: calc(0.5 * var(--card-padding)) 0;
}

.led
{
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 0.8rem;
    height: 0.8rem;
    width: 0.8rem;
}

.led-good
{
    background: var(--color-good);
}

.led-bad
{
    background: var(--color-bad);
}

.led-other
{
    background: var(--color-other);
}

.led-na
{
    background: var(--color-na);
}

/* Make sure the description has a height. */
.service-desc
{
    box-sizing: content-box;
    height: 1em;
}

.service-history
{
    display: flex;
    gap: 1px;
    height: var(--pip-size);
    margin: 0.8rem 0 1px 0;
}

.history-cell
{
    display: block;
    flex: 0 0 var(--pip-size);
    height: var(--pip-size);
}

.latency-history
{
    display: flex;
    gap: 1px;
    flex-grow: 1;
    margin-top: 1px;
}

.latency-cell
{
    display: block;
    flex: 0 0 var(--pip-size);
    height: 100%;
    position: relative;
}

.latency-range
{
    background: #57606f;
    bottom: var(--latency-min);
    height: calc(var(--latency-max) - var(--latency-min));
    left: calc(50% - 1px);
    position: absolute;
    width: calc(0.5 * var(--pip-size));
}

.latency-average
{
    background: #f1f2f6;
    bottom: var(--latency-average);
    height: var(--pip-size);
    left: 50%;
    position: absolute;
    transform: translate(-50%, 50%);
    width: var(--pip-size);
}

.empty
{
    color: #59616d;
}
