/*! simple.css | MIT License | https://github.com/kevquirk/simple.css */
:root {
    --sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
    "Nimbus Sans L", Roboto, Noto, "Segoe UI", Arial, Helvetica,
    "Helvetica Neue", sans-serif;
    --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;

    --bg: #fff;
    --accent-bg: #f5f7ff;
    --text: #212121;
    --text-light: #585858;
    --border: #d8dae1;
    --accent: #6a26da;
    --code: #6a26da;
    --preformatted: #444;
    --marked: #ffdd33;
    --disabled: #efefef;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #212121;
        --accent-bg: #2b2b2b;
        --text: #dcdcdc;
        --text-light: #ababab;
        --border: #666;
        --accent: #6a26da;
        --code: #674a9b;
        --preformatted: #ccc;
        --disabled: #111;
    }

    img,
    video {
        opacity: 0.8;
    }
}

html {
    font-family: var(--sans-font);
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    background: var(--bg);
    font-size: 1.15rem;
    line-height: 1.5;
    display: grid;
    grid-template-columns:
    1fr min(45rem, 90%) 1fr;
    margin: 0;
}

body > * {
    grid-column: 2;
}

body > header {
    background: var(--accent-bg);
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding: 0 0.5rem 2rem 0.5rem;
    grid-column: 1 / -1;
    box-sizing: border-box;
}

body > header h1 {
    max-width: 1200px;
    margin: 1rem auto;
}

body > header p {
    max-width: 40rem;
    margin: 1rem auto;
}

main {
    padding-top: 1.5rem;
}

body > footer {
    margin-top: 4rem;
    padding: 2rem 1rem 1.5rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.6rem;
    margin-top: 3rem;
}

h3 {
    font-size: 2rem;
    margin-top: 3rem;
}

h4 {
    font-size: 1.44rem;
}

h5 {
    font-size: 1.15rem;
}

h6 {
    font-size: 0.96rem;
}

h1,
h2,
h3 {
    line-height: 1.1;
}

@media only screen and (max-width: 720px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.1rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    h4 {
        font-size: 1.25rem;
    }
}

a,
a:visited {
    color: var(--accent);
}

a:hover {
    text-decoration: none;
}

#message {
    text-align: center;
}

span.loadCircle  {
    width: 2em;
    height: 2em;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#startStopBtn {
    display: block;
    margin: 2rem auto;
    color: #6060AA;
    background-color: rgba(0, 0, 0, 0);
    border: 0.15em solid #6060FF;
    border-radius: 0.3em;
    transition: all 0.3s;
    box-sizing: border-box;
    width: 16em;
    height: 6em;
    line-height: 2.7em;
    cursor: pointer;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.1), inset 0 0 0 rgba(0, 0, 0, 0.1);
}

#startStopBtn:hover {
    box-shadow: 0 0 2em rgba(0, 0, 0, 0.1), inset 0 0 1em rgba(0, 0, 0, 0.1);
}

#startStopBtn.running {
    background-color: #FF3030;
    border-color: #FF6060;
    color: #FFFFFF;
}

#startStopBtn:before {
    font-size: 3em;
    content: "Start";
}

#startStopBtn.running:before {
    content: "Abort";
}

#serverArea {
    margin: 1em auto;
    text-align: center;
}

#server {
    font-size: 1em;
    padding: 0.2em;
}

#test {
    margin-top: 2em;
    margin-bottom: 12em;
}

div.testArea {
    display: inline-block;
    width: 16em;
    height: 12.5em;
    position: relative;
    box-sizing: border-box;
}

div.testArea2 {
    display: inline-block;
    width: 14em;
    height: 7em;
    position: relative;
    box-sizing: border-box;
    text-align: center;
}

div.testArea div.testName {
    position: absolute;
    top: 0.1em;
    left: 0;
    width: 100%;
    font-size: 1.4em;
    z-index: 9;
}

div.testArea2 div.testName {
    display: block;
    text-align: center;
    font-size: 1.4em;
}

div.testArea div.meterText {
    position: absolute;
    bottom: 1.55em;
    left: 0;
    width: 100%;
    font-size: 2.5em;
    z-index: 9;
}

div.testArea2 div.meterText {
    display: inline-block;
    font-size: 2.5em;
}

div.meterText:empty:before {
    content: "0.00";
}
.meterText {
    color: var(--accent);
}
div.testArea div.unit {
    position: absolute;
    bottom: 2em;
    left: 0;
    width: 100%;
    z-index: 9;
}

div.testArea2 div.unit {
    display: inline-block;
}

div.testArea canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

div.testGroup {
    display: block;
    margin: 0 auto;
}

div.visible {
    animation: fadeIn 0.4s;
    display: block;
}

div.hidden {
    animation: fadeOut 0.4s;
    display: none;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        display: block;
        opacity: 1;
    }
    100% {
        display: block;
        opacity: 0;
    }
}