main{
    background: white;
    padding: 20px;
    padding-top: 80px;
}

a{
    color: #1e73be;
}

.pagination{
    margin: 30px 0px 5px 0px;
}

.pagination a{
    padding: 5px 10px;
    margin: 0px 2px;
    background-color: white;
    transition-duration: 500ms;
    box-shadow: 0px 0px 2px 1px gray;
    border-radius: 3px;
    font-size: .9em;
}

.pagination a:hover{
    background-color: #1e73be;
    color: white;
}

.pagination .active{
    background-color: #1e73be;
    color: white;
}

.trending{
    box-shadow: 0px 0px 4px 0px gray;
    border-radius: 5px;
    width: 100%;
}

.trending img{
    height: 200px;
    width: 30%;
    float: left;
    margin-right: 10px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.latest-cont{
    margin-top: 35px;
    border-top: 1px solid gray;
    padding-top: 10px;
    display: block;
    margin-bottom: 30px;
}

.latest-cont h2{
    margin: 10px 5px 20px 0px;
}

.latest{
    box-shadow: 0px 0px 4px 0px gray;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    margin-top: 10px;
    margin-right: 10px;
    width: 350px;
    display: inline-block;
}

.latest img{
    height: 200px;
    width: 100%;
    float: left;
    margin-right: 10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

main .btn{
    margin-top: 5px;
}

main p{
    margin-top: 5px;
}

main i{
    margin-top: 5px;
    font-family: 'lora', 'dosis';
}

.latest p{
    margin: 5px;
}

.latest i{
    margin: 5px;
}

.latest p a{
    display: block;
    width: max-content;
    padding: 10px 20px;
    color: white;
    background-color: #1e73be;
    margin: 10px 0px;
    border-radius: 3px;
    font-size: .8em;
    transition: 500ms;
}

.latest p a:hover{
    color: #1e73be;
    border: 1px solid #1e73be;
    background-color: white;
}

.latest h3{
    margin: 5px;
}

.bottom{
    box-shadow: 0px 0px 0px 0px;
    border-radius: 0px;
    border-top: 1px solid gray;
    padding: 20px 0px;
}

.bottom img{
    height: 200px;
    width: 30%;
    float: left;
    margin-right: 10px;
    border-radius: 0px;
}

.username{
    font-size: .9em;
    font-family: 'lora', 'dosis';
    text-transform: capitalize;
}

.single{  
    width: 80%;
    max-width: 950px;
}

.single p{
    font-size: 18px;
    margin: 10px 0px;
    padding: 0px 10px;
}

.single p i{
    text-transform: capitalize;
}

.single h1{
    margin-bottom: 20px;
}

.single img{
    display: block;
    margin: 5px 0px;
    width: 100%;
    max-height: 400px;
}

.comments{
    width: 100%;
    max-width: 850px;
    margin-top: 40px;
}

.comment-box{
    background: white;
    padding: 10px 10px;
    border-radius: 3px;
    border: 1px solid #e6e6e6;
    position: relative;
    margin: 10px 0px;
}

.comments .text-input{
    display: block;
    margin: 10px 0px;
    width: calc(100% - 20px);
    padding: 15px 10px;
    border: 1px solid #e6e6e6;
}

.comments .btn{
    display: block;
    padding: 10px 20px;
    background: #e6e6e6;
    color: black;
    border: 0px;
    border-radius: 2px;
    position: absolute;
    right: 7px;
    bottom: 5px;
    transition: 500ms;
}

.comments .btn:hover{
    background: gray;
    color: white;
}

.comment-box p{
    margin: 0px 0px 5px 0px;
    font-size: 15px;
}

.comment-box p:first-child{
    font-weight: bold;
}

.comment-box p:first-child span{
    font-size: 10px;
    font-weight: normal;
}

#comment-response{
    display: block;
    font-size: 16px;
    text-align: center;
}

#comment-btn{
    display: block;
    padding: 10px 20px;
    background: #e6e6e6;
    color: black;
    border: 0px;
    border-radius: 2px;
    transition: 500ms;
}

#comment-btn:hover{
    background: gray;
    color: white;
}

@media only screen and (max-width: 1200px){
    main{
        padding-top: 10px;
    }
}

@media only screen and (max-width: 800px){
    .latest-cont{
        display: block;
    }

    .latest{
        border-radius: 5px;
        width: 100%;
        display: block;
        border-top-left-radius: 5px;
        border-top-right-radius: 0px;
        border-bottom-left-radius: 5px;
        min-height: 200px
    }

    .latest img{
        height: 200px;
        width: 30%;
        float:left ;
        margin-right: 10px;
        border-top-left-radius: 5px;
        border-top-right-radius: 0px;
        border-bottom-left-radius: 5px;
    }
    
    .latest .btn{
        display: block;
    }

    .latest p a{
        display: none;
    }
    
    .single{
        width: 100%;
    }
}


@media only screen and (max-width: 580px){
    main{
        padding: 20px 10px;
    }
    .trending{
        box-shadow: 0px 0px 3px 0px gray;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
        border-top-right-radius: 5px;
    }
    
    .trending img{
        width: 100%;
        float: none;
        height: 170px;
        border-bottom-left-radius: 0px;
        border-top-right-radius: 5px;
    }
    
    .latest{
        min-height: 150px;
    }
    
    .latest img{
        height: 150px;
    }
    
    main .btn{
        display: block;
    }
    
    main p{
        font-size: 13px;
        margin: 5px;
    }
    
    main i{
        font-size: 11px;
        margin: 5px;
    }
    
    main h3{
        font-size: 15px;
        margin: 5px;
    }
    
    .bottom{
        box-shadow: 0px 0px 0px 0px gray;
        border-radius: 0px;
    }
    
    .bottom img{
        width: 20%;
        float: right;
        height: 100px;
        border-radius: 0px;
    }
    
    .bottom .btn{
        display: none;
    }

    .bottom p:last-child{
        display: none;
    }

    .single h1{
        font-size: 20px;
    }
}

@media only screen and (max-width: 480px){
    .latest p{
        display: block;
    }
    
    .latest{
        min-height: 100px;
        border-radius: 0px;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        padding-bottom: 5px;
    }

    .latest img{
        height: 200px;
        width: 100%;
        border-radius: 0px;
        border-top-right-radius: 4px;
        border-top-left-radius: 4px;
    }
    
    .latest h3{
        font-size: 15px;
        margin-top: 10px;
    }

    .latest p a{
        display: block;
        margin: 10px 0px;
    }
}