@font-face{font-family:'Yekan';
    src:url('/assets/fonts/Yekan.ttf');
}

html,body{
    border:none; padding:0; margin:0;
    background:#FFFFFF;
}
body{
    text-align:center;
    font-family:sans-serif;
}
h1{
    color:#404040;
    font-size: 20px;
    padding-top: 15px;
    font-family:'Yekan'
}
#startStopBtn {
    display: inline-block;
    margin: 0 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: 8em;
    height: 2.7em;
    line-height: 2.2em;
    cursor: pointer;
    box-shadow: 0 0 0 rgba(0,0,0,0.1), inset 0 0 0 rgba(0,0,0,0.1);
    font-size: 15px;
    margin-bottom: -10px;
}
#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{
    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.testName{
    position:absolute;
    top:-15px; left:0;
    width:100%;
    font-size:1.4em;
    font-family:'Yekan';
    z-index:9;
    margin-bottom: 20px;
}
div.meterText{
    position:absolute;
    bottom:1.55em; left:0;
    width:100%;
    font-size:2.5em;
    z-index:9;
    font-family: sans-serif;
    color: black;
}
div.meterText:empty:before{
    content:"0.00";
    font-family: sans-serif;
}
div.unit{
    position:absolute;
    bottom:2em; left:0;
    width:100%;
    z-index:9;
    font-family: 'Yekan'
}
div.testArea canvas{
    position:absolute;
    top:0; left:0; width:100%; height:100%;
    z-index:1;
}
div.testGroup{
    display:inline-block;
    width: 100%;
}
#shareArea{
    width:95%;
    max-width:40em;
    margin:0 auto;
    margin-top:2em;
}
#shareArea > *{
    display:block;
    width:100%;
    height:auto;
    margin: 0.25em 0;
}
#server {
    margin-bottom: 30px;
    direction: rtl; 
}
@media all and (max-width:65em){
    body{
        font-size:1.5vw;
    }
}
@media all and (max-width:40em){
    body{
        font-size:0.8em;
    }
    div.testGroup{
        display:block;
        margin: 0 auto;
    }
}



.selectserver a{
    color: #d10015;
    padding: 0;
}
.sla {
    background: #d10015;
    color: #FFF;
    font-family: tahoma;
    font-size: 11px;
    direction: rtl;
    padding: 4px;
    border-radius: 4px;
    margin: 20px 0px 0px 30px;
    float: left;
    width: 180px;
}
.sla a{
    color: #FFF;
}
.black a,.black{
    color: #000;
}
.selectserver {
    text-align: right;
    background: #e0e0e0;
    color: #000;
    font-family: tahoma;
    font-size: 11px;
    direction: rtl;
    padding: 4px;
    border-radius: 4px;
    margin: 25px 30px 0px 0px;
    float: right;
}
.header {
    /* display: flex;
    flex-direction: row-reverse;
    justify-content: center; */
    width: 100%;
    background: #9a031e;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    padding: 10px;
}
div#shareArea p {
    direction: rtl;
    background: #1972f5;
    width: fit-content;
    margin: 0 auto;
    border-radius: 3px;
    margin-top: -20px;
    padding: 3px 15px;
    color: #FFF;
    font-size: 15px;
}

.content_main {
    direction: rtl;
    text-align: justify;
    width: 80%;
    margin: 50px auto;
    padding: 15px;
    font-size: 14px;
    font-family: 'Yekan';
    color: #FFFFFF;
}

.access-error-card {
    color: #FFFFFF;
    background-color: #f0715f!important;
    text-align: right;
    font-family: 'Yekan';
}

.access-error-card p {
    font-size: 17px;
}


.info-container {
    display: none;
    direction: rtl;
    font-family: 'Yekan';
    margin-top: 60px;
    margin-bottom: 60px;
    margin-left: auto;
    margin-right: auto;
    width:70%;
    text-align: right;
}

.info-container th {
    text-align: right;
}

.info-container #ipp {
    font-weight: bold;
    font-size: 15px;
}

.info-container #download {
    background-color:  #7d3c98 ;
}

.info-container #upload {
    background-color: green;
}

.info-container #ping {
    background-color: rgb(0, 0, 136);
}

.info-container #jitter {
    background-color:  #d16f6c ;
}


#startStopBtn {
    margin-bottom: 50px;
    font-family: 'Yekan';
}

.alert{
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    font-size: 12px
}

.alert_info{
    background-color: #0830b4;
    border: 2px solid #0830b4
}

button.close{
    -webkit-appearance: none;
    padding: 0;cursor: pointer;
    background: 0 0;border: 0
}

.close{
    font-size: 20px;
    color: #fff;
    opacity: 0.9;
    font-weight: normal
}

.alert_success{
    background-color: #09c97f;
    border: 2px solid #09c97f
}

.alert_warning{
    width:80%;
    margin: 30px auto;
    text-align: right;
    background-color: #3d5ec8;
    border: 2px solid #3d5ec8;
    font-family: 'Yekan';
    font-size: 15px;
}

.alert_warning ul {
    list-style-type: none;
}

.alert_error{
    background-color: #f95668;
    border: 2px solid #f95668
}

.fade_info{
    background-color: #d9e6fb;
    border: 1px solid #0830b4
}

.fade_info .close{
    color: #0830b4
}

.fade_info strong{
    color: #0830b4
}

.fade_success{background-color: #c9ffe5;border: 1px solid #09c97f}

.fade_success .close{color: #09c97f}

.fade_success strong{color: #09c97f}

.fade_warning{background-color: #fff0cc;border: 1px solid #f8b15d}

.fade_warning .close{color: #f8b15d}

.fade_warning strong{color: #f8b15d}

.fade_error{background-color: #ffdbdb;border: 1px solid #f95668}

.fade_error .close{color: #f95668}

.fade_error strong{color: #f95668}

#loading , #serverArea {
    font-family: 'Yekan';
    direction: rtl;
}