body {
    margin: 0px;
    padding: 0px;
    font-family: Arial;
}

@media screen and (orientation: portrait){

    #topwrapper {
        max-width: 340px;
        margin: 0px auto;
    }

    #appinfo {
        width: 95%;
        margin: 10px auto 0px auto;
        border: 1px solid #dc5939;
        background: #fcfcfc;
        border-radius: 3px;
        display: none;
    }                

    #appinfo span {
        font-weight: bold;
        color: #dc5939;
        font-size: 15px;
    }

    #meter {
        width: 290px;
        height: 316px;
        margin: 10px auto 0px auto;
        background: url('../images/mini/meter.png') no-repeat center center; 
        background-size: contain;
        position: relative;
    }

    #results {
        width: 95%;
        max-width: 340px;
        height: 70px;
        margin: 10px auto 20px auto;
    }

    #ping {
        float: left;
        width: 30%;
        height: 70px;
        border: 1px solid #dfdfdf;
        background: #fcfcfc;
        border-radius: 3px;
        margin-right: 3%;
    }

    #download {
        float: left;
        width: 30%;
        height: 70px;
        border: 1px solid #dfdfdf;
        background: #fcfcfc;
        border-radius: 3px;
        margin-right: 3%;
    }

    #upload {
        float: left;
        width: 30%;
        height: 70px;
        border: 1px solid #dfdfdf;
        background: #fcfcfc;
        border-radius: 3px;
    }

}

@media screen and (orientation: landscape){

    #topwrapper {
        max-width: 450px;
        margin: 0px auto;
    }

    #appinfo {
        width: 290px;
        margin: 32px auto 0px auto;
        border: 1px solid #dc5939;
        background: #fcfcfc;
        border-radius: 3px;
        display: none;
        float: left;
    }                

    #appinfo span {
        font-weight: bold;
        color: #dc5939;
        font-size: 15px;
    }

    #meter {
        width: 290px;
        height: 316px;
        margin: 10px auto 0px auto;
        background: url('../images/mini/meter.png') no-repeat center center; 
        background-size: contain;
        position: relative;
        float: left;
    }

    #results {
        width: 100px;
        margin: 10px auto 0px auto;
        float: right;
    }

    #ping {
        width: 100px;
        height: 70px;
        border: 1px solid #dfdfdf;
        background: #fcfcfc;
        border-radius: 3px;
        margin-top: 22px;
    }

    #download {
        width: 100px;
        height: 70px;
        border: 1px solid #dfdfdf;
        background: #fcfcfc;
        border-radius: 3px;
        margin-top: 10px;
    }

    #upload {
        float: left;
        width: 100px;
        height: 70px;
        border: 1px solid #dfdfdf;
        background: #fcfcfc;
        margin-top: 10px;
    }

}                                        

#results .h {
    font-size: 13px;
    color: #000000;
    line-height: 18px;
    text-align: center;
    padding: 3px 0px;
}

#results .r {
    font-size: 26px;
    color: #008cd2;
    line-height: 18px;
    font-weight: bold;
    text-align: center;
    padding: 3px 0px;
}

#results .l {
    font-size: 12px;
    color: #000000;
    line-height: 18px;
    text-align: center;
    padding: 3px 0px;
}

#isp {
    width: 290px;                
    margin: 0px auto 0px auto;
    text-align: center;
}

#indicator {
    display: none;
}

#indicator-line {
    width: 4px;
    height: 180px;
    background: url('../images/mini/line.png') no-repeat top center; 
    position: absolute;
    top: 50px;
    left: 144px;
    transform: rotate(-122deg);
}

#indicator-cover {
    width: 30px;
    height: 30px;
    background: url('../images/mini/cover.png') no-repeat center center; 
    position: absolute;
    top: 125px;
    left: 130px;
}

#speedtest-logo {
    width: 119px;
    height: 41px;
    background: url('../images/mini/speedtest.png') no-repeat center center; 
    position: absolute;
    top: 214px;
    left: 85px;
    opacity: 0.7;
    cursor: pointer;
}

#speedtest-logo:hover {
    opacity: 1;
}

#start {
    width: 79px;
    height: 79px;
    background: url('../images/mini/start.png') no-repeat center center; 
    position: absolute;
    top: 102px;
    left: 105px;
    display: none;
    z-index: 5000;
    cursor: pointer;
    opacity: 0.9;
}

#start:hover {
    opacity: 1;
}

#progress {
    width: 138px;
    height: 27px;
    background: url('../images/mini/progress.png') no-repeat center center; 
    position: absolute;
    top: 216px;
    left: 80px;  
    display: none;
}

#indicator-circle {
    width: 9px;
    height: 9px;
    background: url('../images/mini/circle.png') no-repeat center center; 
    position: absolute;
    top: 10px;
    left: 24px;
    display: none;
} 

.clear {
    clear: both;
}

.fleft {
    float: left;
}

.fright {
    float: right;
}

.hidden {
    display: none;
}