@media screen and (max-device-width: 480px){
body{
    -webkit-text-size-adjust:none;
    font-size: 13px;
    margin:0px; padding:0px;
}               
        
    div.article_rating div.middle_text {
        float: left;
        font-weight: bold;
        line-height: 48px;
        text-align: center;
        width: 100%;
    }     
    
    div.article_rating div.like_button {
        left: 0;
        position: absolute;
        top: 0;
    }         
    
    div.article_rating div.unlike_button {
        right: 0;
        position: absolute;
        top: 0;
    } 
}

@media screen and (max-device-width: 640px) {
body{
    -webkit-text-size-adjust:none;
    font-size: 13px;
    margin:0px; padding:0px;
}            
        
    div.article_rating div.middle_text {
        float: left;
        font-weight: bold;
        line-height: 48px;
        text-align: center;
        width: 100%;
    }     
    
    div.article_rating div.like_button {
        left: 0;
        position: absolute;
        top: 0;
    }         
    
    div.article_rating div.unlike_button {
        right: 0;
        position: absolute;
        top: 0;
    } 
}

@media screen and (max-device-width: 320px){ /* u.a. iphone 4 portrait */
body{
    -webkit-text-size-adjust:none;
    font-size: 13px;
    margin:0px; padding:0px; 
}         
        
    div.article_rating div.middle_text {
        float: left;
        font-weight: bold;
        line-height: 48px;
        text-align: center;
        width: 100%;
    }     
    
    div.article_rating div.like_button {
        left: 0;
        position: absolute;
        top: 0;
    }         
    
    div.article_rating div.unlike_button {
        right: 0;
        position: absolute;
        top: 0;
    }
}

@media screen and (min-device-width: 640px) {  /* u.a. desktop */
body{
    -webkit-text-size-adjust:none;
    font-size: 17px;
    margin:0px; padding:0px;
}         
        
    div.article_rating div.middle_text {
        float: left;
        font-weight: bold;
        line-height: 48px;
        text-align: center;
        width: 100%;
    }     
    
    div.article_rating div.like_button {
        left: 0;
        position: absolute;
        top: 0;
    }         
    
    div.article_rating div.unlike_button {
        right: 0;
        position: absolute;
        top: 0;
    } 
} 

/**iPhone 5 */
@media only screen 
    and (device-height : 568px) 
   and (device-width : 320px) 
   and (-webkit-min-device-pixel-ratio: 2) { 
    body {
        -webkit-text-size-adjust:none;
        font-size: 13px;
        margin:0px; padding:0px;
    }       
        
    div.article_rating div.middle_text {
        float: left;
        font-weight: bold;
        line-height: 48px;
        text-align: center;
        width: 100%;
    }     
    
    div.article_rating div.like_button {
        left: 0;
        position: absolute;
        top: 0;
    }         
    
    div.article_rating div.unlike_button {
        right: 0;
        position: absolute;
        top: 0;
    }
} 

/**iPhone 6 portrait */
@media only screen 
    and (min-device-width : 375px) 
    and (max-device-width : 667px) 
    and (orientation : landscape) 
    and (-webkit-min-device-pixel-ratio : 2) { 
    body {
        -webkit-text-size-adjust:none;
        font-size: 14px;
        margin:0px; padding:0px;
    }     
        
    div.article_rating div.middle_text {
        float: left;
        font-weight: bold;
        line-height: 48px;
        text-align: center;
        width: 100%;
    }      
    
    div.article_rating div.like_button {
        left: 0;
        position: absolute;
        top: 0;
    }         
    
    div.article_rating div.unlike_button {
        right: 0;
        position: absolute;
        top: 0;
    }
}    

/**iPhone 6 portrait */
@media only screen 
    and (min-device-width : 375px) 
    and (max-device-width : 667px) 
    and (orientation : portrait) 
    and (-webkit-min-device-pixel-ratio : 2) { 
    body {
        -webkit-text-size-adjust:none;
        font-size: 14px;
        margin:0px; padding:0px;
    }        
        
    div.article_rating div.middle_text {
        float: left;
        font-weight: bold;
        line-height: 48px;
        text-align: center;
        width: 100%;
    }      
    
    div.article_rating div.like_button {
        left: 0;
        position: absolute;
        top: 0;
    }         
    
    div.article_rating div.unlike_button {
        right: 0;
        position: absolute;
        top: 0;
    } 
}  

@media screen and (device-width: 320px) and (device-height: 640px) and (-webkit-device-pixel-ratio: 3) { 
    body {
        -webkit-text-size-adjust:none;
        font-size: 12px;
        margin:0px; padding:0px;
    }        
        
    div.article_rating div.middle_text {
        float: left;    
        font-size: 12px;
        font-weight: bold;
        line-height: 48px;
        text-align: center;
        width: 100%;
    }      
    
    div.article_rating div.like_button {
        left: 0;
        position: absolute;
        top: 0;
    }         
    
    div.article_rating div.unlike_button {
        right: 0;
        position: absolute;
        top: 0;
    } 
}

div.article_rating {
    background: #cfcfcf;
    color: #fff;
    font-family: arial, verdana, helvetica; 
    font-size: 1em;
    height: 48px; 
    overflow: hidden;
    position: relative;
    width: 100%;
}

        div.article_rating div.like_button a {
            display: block;
            float: left;
            margin-left: 5px;
        }  
        
            div.article_rating div.like_button img {
                border: none;
                height: 35px;
                padding-top: 6px;
            }
        
        div.article_rating div.like_count_text {
            display: block;
            float: left;          
            margin-left: 5px;
        }
        
            div.article_rating div.like_count_text span {
                font-weight: bold;
                line-height: 48px;
            }
    
        div.article_rating div.unlike_button a {
            display: block;
            float: right;   
            margin-right: 5px;
        }  
        
            div.article_rating div.unlike_button img {
                border: none;
                height: 35px;
                padding-right: 0px;
                padding-top: 8px;
                text-align: right;
            }
        
        div.article_rating div.unlike_count_text {
            display: block;
            float: right;
        }
        
            div.article_rating div.unlike_count_text span {
                font-weight: bold;
                line-height: 48px;
                padding-right: 5px;
            }
        
.clear {
  clear: both;
  height: 0;
  font-size: 0;
  line-height: 0;
}