/* Additional CSS for Responsiveness and Styling */
body {
    font-family: 'Open Sans', sans-serif;
    color: #4D4D4E;
    font-size: 14px;
    background: #EEE;
}

p {
    line-height: 20px;
}

.header {
    background: #4D4D4E;
    padding: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.header a.logo {
    font-weight: bold;
    text-decoration: none;
}

.header a.logo .body {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2px;
    color: #FFF;
    font-size: 40px;
}

.header a.logo .body img {
    width: 9px;
    height: 32px;
    margin-top: -2px;
}

.header a.logo .motto {
    font-size: 1.8em;
    font-weight: normal;
    color: #999;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 13px;
    display: block;
    margin-top: -5px;
}

#disclaimer {
    padding: 0 40px 25px 40px;
    color: #4D4D4E;
    font-size: 16px;
}

h1 {
    font-size: 1.8em;
    text-transform: uppercase;
    color: #4D4D4E;
    border-bottom: 1px solid #4D4D4E;
    padding-bottom: 16px;
    margin: 0 40px;
}

#open-disclaimer, #disclaimer a {
    color: #F2A900;
    cursor: pointer;
    text-decoration: none;
}

#testWrapper {
    background-color: #FAFAFA;
    text-align: center;
    margin: 0 auto;
    width: 600px;
    height: auto;
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    box-shadow: 0 0 1em 0.2em #888;
}
img.header-image {
    filter: drop-shadow(2px 4px 4px rgba(0,0,0,1));
}

#test {
    margin-top: 2em;
    margin: 50px 40px;
}

#startStopBtn,
#close-disclaimer {
    display: inline-block;
    margin: 0 auto;
    color: #4D4D4E;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid #4D4D4E;
    border-radius: 5px;
    transition: all 0.3s;
    box-sizing: border-box;
    padding: 0 30px;
    line-height: 42px;
    cursor: pointer;
    text-transform: uppercase;
}

#startStopBtn:hover,
#close-disclaimer:hover {
    border-color: #F2A900;
}

#close-disclaimer {
    margin-top: 20px;
}

#startStopBtn.running {
    background-color: #F2A900;
    border-color: #F2A900;
    color: #000;
}

#startStopBtn:before {
    content: "Run Test";
}

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

div.testArea {
    display: inline-block;
    width: 16em;
    height: 12.5em;
    position: relative;
    box-sizing: border-box;
    background: #EEE;
    border-radius: 5px;
    margin: 10px;
    padding: 20px;
}

div.testArea2 {
    display: inline-block;
    width: 16em;
    height: auto;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
    text-align: center;
    background: #EEE;
    border-radius: 5px;
    margin: 10px;
}

div.testArea div.testName {
    position: relative;
    top: 2.1em;
    left: 0;
    width: 100%;
    font-size: 1.2em;
    z-index: 9;
}

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

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

#ipArea {
    display: block;
    height: 30px;
}

#disclaimer-dialog {
    text-align: center;
    max-width: 600px;
    border: 1px solid #4D4D4E;
    border-radius: 10px;
    padding: 40px;
    height: auto;
    max-height: 600px;
    box-shadow: 0 0 1em 0.2em #888;
}

#disclaimer-dialog  .disclaimer-text {
    text-align: left;
    font-size: 16px;
}

#disclaimer-dialog  .disclaimer-text ul li {
    margin: 5px;
}

#disclaimer-dialog  .disclaimer-text a {
    color: #F2A900;
    text-decoration: none;
}

#disclaimer-dialog  .disclaimer-text h2 {
    text-transform: uppercase;
    border-bottom: 1px solid #4D4D4E;
    padding-bottom: 20px;
    line-height: 1.2em;
}

@media only screen and (max-width: 600px),
only screen and (max-height: 900px) {
    h1 {
        margin: 50px 0 0 0;
    }

    #testWrapper {
        width: 100%;
        display: block;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        border: none;
    }

    #disclaimer-dialog {
        max-height: 100%;
        max-width: 100%;
    }

    #startStopBtn {
        margin-bottom: 40px;
    }
    #disclaimer {margin-top: 20px;}
    #test {margin: 0;}
    #ipArea {height: 40px; margin: 10px 30px;}
    h1 {margin: 40px 40px 16px 40px;}
    img.header-image {
        margin-top: 30px;
    }
}