@font-face { font-family: 'digit';
             src: url('digit.ttf') format('truetype'); }

@font-face { font-family: 'retron';
             src: url('retron.ttf') format('truetype'); }

.digit {
    font-family: digit;
}

.gray {
    color: #808080;
}
.bold {
    font-weight: bold;
}

#speedtest {
    width: 100%;
    position: relative;
    top: -20px;
    padding: 50px 0 20px 0;
    border-radius: 20px; 
}

#alert-box-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(100,100,100,.6);
    z-index: 10000;
}

#alert-box {
    position: fixed;
    top: 50%;
    left: 50%;
    padding: 40px 50px;
    transform: translate(-50%, -50%);
    width: 500px;
    border: 2px solid #343434;
    border-radius: 15px;
    background-color: #dfdfdf;
    box-shadow: 5px 5px 5px rgba(0,0,0,.5);
}

#alert-box-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
}

#alert-box-close:hover {
    cursor: pointer;
}

#speedtest-rating {
    width: 220px;
    margin: -30px 10px -30px auto;
}

#widget {
    
}

#widget svg {
    width: 100%;
    max-height: 250px;
    margin: auto;
}

#button {
    display: block;
    width: auto;
    height: 60px;
    margin: auto;
    line-height: 50px;
    border: 5px solid #e2e2e2;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    padding: 0 20px; /* <- Das hier hinzufügen */
    
    transition: all ease-in-out .1s;
}

#button:hover {
    cursor: pointer;
    text-shadow: 0px 0px 4px #FFFDFF;
    box-shadow: 0px 0px 7px #808080;
}

.button-active {
    background-color: #d12c3b;
}

.button-inactive {
    background-color: #9cca39;
}

#current {
    margin-top: -70px;
    text-align: center;
}

#current-value {
    padding: 3px;
    font-family: digit;
    font-size: 45px;
    line-height: 40px;
}

#current-unit {
    padding: 3px;
    font-size: 16px;
    color: #808080;
}

#log-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    max-width: 380px;
    height: 40px;
    background-color: #383838;
    margin: 10px auto;
    color: white;
    padding: 12px 10px 12px 10px;
    font-size: 16px;
    font-family: retron;
    box-sizing: border-box;
} 

#scale {
    font-size:24px;
}

#result-wrapper {
    display: none;
}

.graph-label {
    position:absolute;
    font-family: arial;
}

#graphs {
    display: flex;
}
.graphs {
    margin: 20px 5px;
    flex: auto;
    width: 30%;
    height: 150px;
    background-color: #ececec;
    display: inline-block;
    justify-content: space-between;
    
}

.graphs svg {
    height: 100%;
    width: 100%;
    border: 1px solid lightgrey;
}

.scale {
    position:absolute;
    right:0px;
}

.client-info {
    width: 100%;
    background-color: #383838;
    padding: 10px 0px;
}

.client-info table, .results table {
    width: 100%;
}

.client-info th, .client-info td {
    padding: 1px 15px;
}

.client-info th {
    color: #e1454a;
    text-align: left;
}

.client-info td {
   color: white;
}

.results {
    margin-top: 20px;
}

.results td, .results th {
    text-align: center;
    vertical-align: top;
    padding: 10px;
}

.results th {
    color: #e1454a;
    font-size: 22px;
}

.results td {
    font-size: 18px;
    width: 25%;
    line-height:40px;
}

.row-average {
    color: #808080;
}

.result-value {
    font-size: 45px;
}

#quote-flex-container {
    display: flex;
    flex-direction: row;
    width:100%;
    height: 163px; 
    background-color: #e4e4e4;
    margin-bottom: 20px;
}

#quote-wrapper img {
    height: 100%;
}

#quote {
    padding: 20px;
    font-size: 16px;
    line-height: 1.3;
}

#quote-links {
    margin-bottom: 20px;
}

#quote-links ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

#quote-links ul li {
    list-style-type: none;
}

#quote-links a {
    color: #fc091b;
}

#quote a {
    font-size: 16px;
    line-height: 1.2;
}

.left {
    text-align: left;
}

#evaluation {
    display:none;
}

#share {
    margin-top:20px;
}

#share-flex-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

#share-image-wrapper {
    max-width: 389px;
    max-height:165px;
}

#share-code {
    width: 50%;
}

#share-code label {
    line-height: 1.5;
    font-weight: bold;
}

#share-code input {
    width: 100%;
    height: 32px;
    font-size: 16px;
    font-family: courier;
    border:1px solid #e4e4e4;
}

.copy-button {
    display: inline-block;
    background-color: #1ba5e0;
    color: white;
    width: 0px;
    overflow: hidden;
    font-size: 16px;
    text-align: center;
    padding:8px 0px;
    box-sizing: border-box;
    
    transition: all linear 0.2s;
}

#share-code input:hover + .copy-button, .copy-button:hover {
    width: 100px;
}

.copy-button:hover {
    cursor: pointer;
}

.share-code-flex-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

#social-buttons {
    justify-content: flex-end;
}

.desktop {
    display: block;
}
    
.mobile {
    display: none;
}

.wbr {
    display: none;
}

@media only screen and (max-width: 770px) {
    #alert-box {
        width: 340px;
    }
    
    #speedtest-rating {
        width: 220px;
        margin: -30px auto 0px 10px;
    }
    
    .desktop {
        display: none;
    }
    
    .mobile {
        display: block;
    }
    
    .client-info {
        padding: 0;
    }
    
    .client-info th, .client-info td{
        padding: 15px;
    }
    
    .client-info th, .client-info td, .results th, .results td {
        text-align: center;
        width: 50%;
    }
    
    #button {
        margin-top: 20px;
    }
    
    #quote-wrapper img {
        width: auto;
        height:auto;
        max-height: 170px;
    }
    
    #quote-flex-container {
        height: auto;
    }
    
    #share-flex-container {
        display: block;
        width: 100%;
    }
    
    #share-image-wrapper {
        width:100%;
        margin:auto;
    }
    
    #share-code {
        width: 100%;
    }
    
    .copy-button {
        width: 100px;
    }
    
}
@media only screen and (max-width: 450px) {
    #alert-box {
        width: 200px;
    }
    
    #log{
        font-size: 12px;
    }
    
    #quote-wrapper img {
        max-height: 70px;
    }
    
    #quote-links ul {
        display: block;
    }
    
    #quote-links ul li {
        padding: 10px 0;
    }
    
    .wbr {
        display: inline;
    }
}