#speedtest * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: MS Trebuchet, sans-serif;
}

#speedtest a {
    text-decoration: none;
    cursor: pointer;
}

#speedtest {
    position: relative;
    display: none;
    overflow: hidden;
    margin: 0 auto;
    width: 596px;
    height: 213px;
    border: solid 1px #09305d;
    border-radius: 10px;
    background-color: #09305d;
}

noscript .no-js-message, .bad-browser-message {
    padding: 20px;
    border-top: solid 1px #09305d;
    background-color: #09305d;
}

.bad-browser-message {
    display: none;
}

.interface {
    overflow: hidden;
    text-align: left;
}

#speedtest .area1 {
    overflow: hidden;
    height: 94px;
    background: url("images/bg.png");
}

#speedtest .area2 {
    padding: 10px 15px 10px 15px;
    height: 38px;
    background-image: -o-radial-gradient(circle, #11182d, #17213d, #1d2b4d, #22355e, #274070, #2b477b, #2f4e86, #335592, #375999, #3c5ea1, #4062a8, #4567b0);
    background-image: radial-gradient(circle, #11182d, #17213d, #1d2b4d, #22355e, #274070, #2b477b, #2f4e86, #335592, #375999, #3c5ea1, #4062a8, #4567b0);
}

#speedtest .area3 {
    padding-top: 15px;
    padding-right: 15px;
    padding-left: 15px;
    height: 81px;
}

#speedtest .area3 p {
    margin: 0;
}

#speedtest #start-button {
    position: relative;
    top: 18px;
    left: 15px;
    z-index: 10;
    display: inline-block;
    padding: 14px 23px;
    width: 190px;
    height: 58px;
    border-radius: 12px;
    background: #2ea992;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 21px;
}

#speedtest #start-button:hover {
    background: #299782;
}

#speedtest #start-button.stop {
    background: indianred;
}

#speedtest #share-button {
    position: absolute;
    top: 27px;
    left: 50%;
    z-index: 10;
    display: none;
    margin-left: -70px;
    padding: 4px 12px 4px 30px;
    width: 141px;
    height: 30px;
    border: solid 3px #ffffff;
    border-radius: 10px;
    background: url(images/share.png) 8px 4px no-repeat;
    color: #ffffff;
    font-size: 14px;
}

#speedtest #share-button:hover {
    background-color: #09305d;
}

#speedtest #logo {
    position: absolute;
    top: 25px;
    right: 20px;
    z-index: 10;
    display: block;
    width: 135px;
    height: 47px;
    background: url("../logo.svg") no-repeat center;
    background-size: 100% auto;
}

#speedtest #logo:hover {
    opacity: .8;
}

#speedtest .counter-title {
    color: #fdfdfd;
    text-shadow: 1px 2px 0 rgba(0, 0, 0, .3);
    font-weight: 700;
}

#speedtest .counter-title.left {
    float: left;
}

#speedtest .counter-title.right {
    float: right;
}

#speedtest .counter-wrap.left {
    float: left;
    text-align: left;
}

#speedtest .counter-wrap.right {
    float: right;
    text-align: right;
}

#speedtest .counter-wrap.center {
    padding-top: 20px;
    text-align: center;
}

#speedtest .counter .val {
    color: #ffffff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .3);
    font-weight: 600;
    font-size: 34px;
}

#speedtest .counter-wrap.center .val {
    font-size: 32px;
}

#speedtest .counter-wrap .caption, #speedtest .counter-latency-caption {
    position: relative;
    margin-top: -6px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

#speedtest .counter-wrap.center .caption {
    position: relative;
    margin-top: -4px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

#speedtest .counter-wrap .ico.download {
    display: block;
    float: right;
    margin-left: 10px;
    width: 36px;
    height: 36px;
    background: url(images/download-pass.png) 0 0 no-repeat;
    position: relative;
    top: 3px;
}

#speedtest .counter-wrap .ico.download.active {
    background: url(images/download-act.png) 0 0 no-repeat;
}

#speedtest .counter-wrap .ico.upload {
    display: block;
    float: left;
    margin-right: 10px;
    width: 36px;
    height: 36px;
    background: url(images/upload-pass.png) 0 0 no-repeat;
    position: relative;
    top: 3px;
}

#speedtest .counter-wrap .ico.upload.active {
    background: url(images/upload-act.png) 0 0 no-repeat;
}

#speedtest .counter-wrap .ico {
    margin-top: 2px;
}

#speedtest .counter .val.counter-green {
    color: #2ea992;
}

#speedtest .counter .val.counter-yellow {
    color: #f9ff4e;
}

#speedtest .counter .val.counter-red {
    color: indianred;
}

#speedtest .gauges-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

#speedtest #gauge1 {
    position: relative;
    margin: 0 auto -54px auto;
    width: 360px;
    height: 270px;
}

#speedtest #gauge1 svg {
    z-index: 9;
}

#speedtest .gauge-bg {
    position: absolute;
    bottom: -140px;
    left: 50%;
    margin-left: -140px;
    width: 280px;
    height: 280px;
    border-radius: 100%;
    background: #3e6ab0;
}

#speedtest .gauge-bg-inner {
    position: absolute;
    bottom: -80px;
    left: 50%;
    margin-left: -80px;
    width: 160px;
    height: 160px;
    border-radius: 100%;
    background: #09305d;
    line-height: 1.1;
}

#speedtest .gauge-bg-inner p {
    margin: 0;
}

#speedtest #gauge2 {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 11;
    margin-top: -145px;
    margin-left: -100px;
    width: 200px;
    height: 200px;
}

#speedtest #dialog-message {
    display: none;
}

.ui-dialog {
    border: none !important;
    background: #3c3e48 !important;
    box-shadow: 2px 2px 5px #3c3e48;
}

.ui-dialog-titlebar {
    border: none;
    background: #4567b0;
    color: #ffffff;
}

#dialog-message button {
    position: relative;
    display: inline-block;
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: #33b351 none repeat scroll 0 0;
    box-shadow: 0 -4px 0 rgba(0, 0, 0, .3) inset;
    color: #ffffff;
    text-shadow: 1px 2px 0 rgba(0, 0, 0, .3);
    font-weight: 500;
    font-size: 14px;
}

#dialog-message button:hover {
    background: #38c65a;
}

#dialog-message input[type=text] {
    height: 30px;
    color: #3c3e48;
    font-size: 16px;
}

.ui-dialog-titlebar-close, .ui-dialog-titlebar-close:hover {
    border: none !important;
}

#gauge2.no-stroke svg path {
    stroke: #4567b0;
}

@media (max-width: 767px) {
    #speedtest {
        width: 300px;
        height: auto;
    }

    .interface {
        padding-bottom: 100px;
    }

    #speedtest .area1 {
        height: 130px;
        text-align: center;
    }

    #speedtest #start-button {
        position: static;
        display: inline-block;
        margin-left: 10px;
        padding: 0;
        width: 150px;
        height: 50px;
        vertical-align: middle;
        font-size: 17px;
        line-height: 50px;
    }

    #speedtest .start-button-active {
    }

    #speedtest #logo {
        position: static;
        margin: 10px auto;
    }

    #speedtest #gauge1 {
        margin-left: -30px;
    }

    #speedtest #share-button {
        position: static;
        margin-right: 10px;
        margin-left: 0;
        padding: 9px 10px 0 40px;
        width: 120px;
        height: 50px;
        background-position: 12px 13px !important;
        vertical-align: middle;
        text-align: left;
        font-weight: bold;
        font-size: 13px;
        line-height: 1;
    }

    #speedtest .share-button-active {
        display: inline-block !important;
    }

    #speedtest .area3 {
        padding-top: 10px;
        height: 100px;
    }

    .share-button-active {
    }

    #speedtest .area2 {
        background: #3e6ab0;
    }
}

/*---------------------------*/
.ui-dialog {
    min-height: 0 !important;
    max-width: 300px !important;
}
#dialog-message {
    text-align: center;
}
#dialog-message #share-results-link {
    width: 95%;
}
#dialog-message #share-results-copy-link {
    display: block;
    margin: 0 auto;
    margin-top: 10px;
}
