.speedtest-wrapper {
    text-align: center;
}

#loading {
    background-color: #FFFFFF;
    color: #404040;
    text-align: center;
}

span.loadCircle {
    display: inline-block;
    width: 2em;
    height: 2em;
    vertical-align: middle;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAP1BMVEUAAAB2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZyFzwnAAAAFHRSTlMAEvRFvX406baecwbf0casimhSHyiwmqgAAADpSURBVHja7dbJbQMxAENRahnN5lkc//5rDRAkDeRgHszXgACJoKiIiIiIiIiIiIiIiIiIiIj4HHspsrpAVhdVVguzrA4OWc10WcEqpwKbnBo0OU1Q5NSpsoJFTgOecrrdEag85DRgktNqfoEdTjnd7hrEHMEJvmRUYJbTYk5Agy6nau6Abp5Cm7mDBtRdPi9gyKdU7w4p1fsLvyqs8hl4z9/w3n/Hmr9WoQ65lAU4d7lMYOz//QboRR5jBZibLMZdAR6O/Vfa1PlxNr3XdS3HzK/HVPRu/KnLs8iAOh993VpRRERERMT/fAN60wwWaVyWwAAAAABJRU5ErkJggg==');
    background-size: 2em 2em;
    margin-right: 0.5em;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(359deg);
    }
}

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

/* #test {
        margin-top: 2em;
    } */

#ip {
    font-family: var(--font-secondary);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.5;
}

/* #ipArea {
        margin-top: 20px;
    } */

#pingText {
    white-space: nowrap;
}

#pingUnit {
    font-size: 25px;
    font-weight: bold;
}

.testArea {
    display: inline-block;
    width: 37.44em;
    height: 29.25em;
    position: relative;
    box-sizing: border-box;
}

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

.testArea .testName {
    position: absolute;
    top: 4.1em;
    left: 0;
    width: 100%;
    font-size: 40px;
    z-index: 9;
    margin-bottom: 10px;
}

.testArea2 .testName {
    display: block;
    text-align: center;
    font-size: 40px;
    line-height: .9;
}

.testArea .meterText {
    position: absolute;
    bottom: .85em;
    left: 0;
    width: 100%;
    font-size: 120px;
    z-index: 9;
}

.testArea2 .meterText {
    display: inline-block;
    font-size: 4em;
    font-family: var(--font-secondary);
}

.meterText:empty:before {
    content: "0.00";
}

.unit {
    position: absolute;
    bottom: 4em;
    left: 0;
    width: 100%;
    z-index: 9;
    font-weight: bold;
    font-family: var(--font-secondary);
    font-size: 25px;
}

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

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

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

#submitSpeedtest {
    width: 95%;
    max-width: 40em;
    margin: 0 auto;
    margin-top: 20px;
}

#submitSpeedtest>* {
    display: block;
    width: 100%;
    height: auto;
    margin: 0.25em 0;
}

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

.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;
    }
}

@media screen and (max-width: 768px) {
    .testArea {
        width: 24em;
        height: 18.75em;
    }

    .testArea .testName {
        top: 2.2em;
    }

    .testArea .meterText {
        /* bottom: 1.2em; */
        font-size: 80px;
    }

    .testArea .unit {
        bottom: 2.4em;
        font-size: 25px;
    }
}
