html,
body {
    border: none;
    padding: 0;
    background: #efefef;
    color: #202020;
}

body {
    text-align: center;
    font-family: "Roboto", sans-serif;
    margin: 20px;
}

h1 {
    color: #404040;
}

#startStopBtn {
    display: inline-block;
    margin: 0 auto;
    color: #1e1e1e;
    background-color: #efefef;
    border: 1px solid #ccc;
    border-radius: 0.35em;
    transition: all 0.3s;
    box-sizing: border-box;
    width: 8em;
    height: 3em;
    line-height: 3em;
    cursor: pointer;
    box-shadow: 1px #000000;
}

#startStopBtn:hover {
    background-color: #1e1e1e;
    color: #efefef;
}

#startStopBtn.running {
    background-color: #FF3030;
    border-color: #FF6060;
    color: #efefef;
}

#startStopBtn:before {
    content: "开始测速";
}

#startStopBtn.running:before {
    content: "终止测速";
}

#test {
    margin-top: 2em;
}

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";
}

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;
}

#shareArea {
    width: 95%;
    max-width: 40em;
    margin: 0 auto;
    margin-top: 2em;
}

#shareArea>* {
    display: block;
    width: 100%;
    height: auto;
    margin: 0.25em 0;
}

#privacyPolicy {
    position: fixed;
    top: 2em;
    bottom: 2em;
    left: 2em;
    right: 2em;
    overflow-y: auto;
    width: auto;
    height: auto;
    box-shadow: 0 0 3em 1em #000000;
    z-index: 999999;
    text-align: left;
    background-color: #FFFFFF;
    padding: 1em;
}

a.privacy {
    text-align: center;
    font-size: 0.8em;
    color: #808080;
    padding: 0 3em;
}

div.closePrivacyPolicy {
    width: 100%;
    text-align: center;
}

div.closePrivacyPolicy a.privacy {
    padding: 1em 3em;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 0px 4px rgb(18 18 18 / 15%);
}

.card-link {
    display: block;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: #efefef;
    color: #1e1e1e;
    padding: 20px;
    text-decoration: none !important;
    width: 160px;
    transition: background-color 0.3s;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

.card-link:hover {
    background-color: #1e1e1e;
    color: #efefef;
}