﻿body {
    font-size: 16px;
    /*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/
    font-family: 'Roboto', sans-serif;
    padding-bottom: 16px;
    background: #fafafa;
}
.ads-margin {
    margin-left: 16px;
    margin-right: 16px;
}
.hide-box{

}
.container {
    width: 1080px;
    /*padding: 16px;*/
    margin: 0 auto;
    background: #ffffff;
    margin: auto;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    box-sizing: border-box;
}

header {
    position: relative;
    height: 60px;
    border-bottom:1px solid #ddd;
    /*box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;*/
}

    header div.title {
        cursor: pointer;
        font-size: 24px;
        position: absolute;
        left: 16px;
        text-align: center;
        font-weight: bold;
        color: hotpink;
        top: 50%;
        transform: translateY(-50%);
    }

 #q {
        position: absolute;
        right: 64px;
        width:calc(100% - 350px);
        padding: 8px 12px;
        border: 1px solid hotpink;
        outline: none;
        border-radius: 5px;
        top: 50%;
        display:none;
        transform: translateY(-50%);
    }
#logo {
    height: 44px;
    width: 160px;
    position: absolute;
    left: 16px;
    background: url(images/ic_logo_thiep.png) no-repeat left center;
    overflow: hidden;
    color: initial;
    text-indent: -300px;
    top: 50%;
    transform: translateY(-50%);
}
.toggle.search {
    background: url(images/ic_search_black_36dp.svg) no-repeat;
    opacity: .87;
    cursor: pointer;
    height: 36px;
    width: 36px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    right: 16px;
}
.toggle.menu {
    background: url(images/ic_menu_black.png) no-repeat;
    opacity: .87;
    cursor: pointer;
    height: 36px;
    width: 36px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    left: 16px;
    display:none;
}
header.search .toggle.search {
    background: url(images/ic_close_black.png) no-repeat;
}
header.search ul.tags{
    display:none;
}
header.search #q {
    display: block;
}
.navigation {
    margin-left: 0;
    padding-left:8px;
    border-bottom:1px solid #ddd;
    /*width: 625px;*/
    /*box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;*/
    background: white;
}
.navigation li{
    display:inline-block;
    padding:16px 16px 16px 0;
    
}
    .navigation li a{
        color:#757575;
    }
    .overlay {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: black;
        opacity: 0.6;
        display: none;
    }
.tag-title {
    text-align: left;
    margin-top: 16px;
    line-height:1.6;
}

    .tag-title h1 {
        color: black;
        font-size: 18px;
        font-weight: 600;
    }

    .tag-title hr {
        margin: 0;
        padding: 0;
        margin-right: 16px;
        margin-top: 16px;
        margin-bottom: 16px;
    }

.box-ads {
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 16px;
    display:none;
}
a:hover {
    color: #ff4500 !important;
}
#content {
    margin-left: 16px;
    margin-right: 16px;
    display: inline-block;
    width: calc(100% - 32px);
}

    #content .box-left {
        float: left;
        width: calc(100% - 338px);
        text-align: center;
    }

    #content .box-right {
        float: left;
        width: 336px;
        border-radius: 5px;
    }

ul.tags {
    list-style: none;
    position: absolute;
    top: 50%;
    left: 208px;
    transform: translateY(-50%);
    /*margin-top: 8px;*/
    /*text-align: center;*/
}
ul.navigation.more li:nth-child(-n+6) {
    display: none;
}
    ul.tags li {
        display: inline-block;
        /*padding: 8px 12px;*/
        margin-right: 16px;
        margin-top: 8px;
        cursor: pointer;
        vertical-align:middle;
        /*border: 1px solid #c51162;*/
        /*background: #c51162;*/
        /*border-radius: 16px;*/
    }

        ul.tags li a {
            color: #757575;
            text-decoration: none;
        }
.hide-box{
    display:none;
}
.more-tags {
    /*color: #757575 !important;*/
    background: url(images/down_black.png) no-repeat;
    opacity: .87;
    cursor: pointer;
    height: 24px;
    width: 24px;
    opacity:0.6
}
    .more-tags.up {
        background: url(images/up_black.png) no-repeat;
    }
    ul.templates {
        list-style: none;
        display: inline-block;
        width: 100%;
        text-align: left;
    }

    ul.templates li {
        float: left;
        padding: 8px;
        margin-right: 16px;
        margin-top: 16px;
        height: 191px;
        min-width:120px;
        width: calc(100% / 4 - 34px);
        border: 1px solid #ddd;
        background: white;
        text-align: center;
        border-radius: 10px;
        /*box-shadow: 1px 1px 1px 2px #ddd;*/
        box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    }

        ul.templates li img {
            max-width: 100%;
            max-height: 100px;
            border-radius: 3px;
        }

        ul.templates li span {
            margin-top: 8px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            line-height: 1.6;
            -webkit-line-clamp: 3; /* number of lines to show */
            -webkit-box-orient: vertical;
        }

        ul.templates li a {
            color: black;
            text-decoration: none;
        }

        ul.templates li.box-ads {
            width: calc(100% - 34px);
            margin: 0;
            margin-right: 16px;
            margin-top: 16px;
        }

        ul.templates li.not-item {
            text-align: center;
            cursor: auto;
            border: none;
            height: auto;
            margin: 0;
            padding: 0;
            margin-top: 16px;
            width: 100%;
        }

        ul.templates li.more-data {
            text-align: center;
            cursor: auto;
            border: none;
            height: auto;
            margin: 0;
            padding: 0;
            width: 100%;
        }

a.more-data {
    background-color: dodgerblue;
    color: white;
    text-align: center;
    border: 1px solid dodgerblue;
    border-radius: 3px;
    padding: 8px 12px;
    cursor: pointer;
    outline: none;
    margin-top: 16px;
    display: inline-block;
}

ul.templates li.more-data button:hover {
    background-color: green;
}

.box-populars {
    margin-top: 16px;
    border: 1px solid hotpink;
}

    .box-populars .title {
        border-bottom: 1px solid hotpink;
        padding: 12px 12px;
        text-align: center;
        color: #c51162;
        font-weight: 600;
    }

a {
    text-decoration: none;
}

.populars li {
    display: inline-block;
    margin: 8px 12px;
    width: calc(100% - 24px);
    position: relative;
}

    .populars li img {
        width: 35px;
        max-height: 38px;
        float: left;
    }

    .populars li p {
        /*width:calc(100% - 43px);
        float:left;*/
        position: absolute;
        left: 43px;
        top: 50%;
        transform: translateY(-50%);
        /*bottom:0;*/
        color: black;
        font-size: 14px;
        /*margin-left: 8px;*/
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* number of lines to show */
        -webkit-box-orient: vertical;
        line-height: 1.6;
    }

@media only screen and (max-width: 768px) {
    .navigation{
        margin-left:0;
    }
        .navigation li{
            display:block;
        }
        .toggle.menu {
            display: block;
        }
    ul.tags{
        display:none;
    }
    .container {
        width: 100%;
    }

    #content .box-left {
        width: 100%;
        margin: 0;
    }

    #content .box-right {
        clear: both;
        width: 100%;
        margin: 0;
    }

    ul.tags {
        text-align: left;
        margin-left: 16px;
        margin-right: 16px;
    }

    ul.templates li {
        width: calc(100% / 2 - 34px);
    }

    header {
        height: 44px;
    }

        header #logo {
            left:50%;
            transform:translate(-50%,-50%);
        }

        header #q {
            width: 210px;
            border:1px solid hotpink;
        }
        header.search .toggle.search {
            background: url(images/ic_close_black.png) no-repeat;
        }
        header.search .overlay {
            display: none;
        }
        header.search #logo{
            display:none;
        }
        .tag-title hr {
            margin-left: 0;
            margin-right: 0;
        }
}
