@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto/Roboto-Regular.eot?#iefix') format('embedded-opentype'),
    url('../fonts/roboto/Roboto-Regular.woff') format('woff'),
    url('../fonts/roboto/Roboto-Regular.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto Medium';
    src: url('../fonts/roboto/Roboto-Medium.eot?#iefix') format('embedded-opentype'),
    url('../fonts/roboto/Roboto-Medium.woff') format('woff'),
    url('../fonts/roboto/Roboto-Medium.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Slab';
    src: url('../fonts/RobotoSlab-Regular.eot');
    src: local('../fonts/Roboto Slab Regular'), local('RobotoSlab-Regular'),
    url('../fonts/RobotoSlab-Regular.eot?#iefix') format('embedded-opentype'),
    url('../fonts/RobotoSlab-Regular.woff') format('woff'),
    url('../fonts/RobotoSlab-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    line-height: 1.4;
    font-family: Roboto , Arial, sans-serif;
    margin: 0;
    font-size: 1.1rem;
}



/*common*/
h1, h2, h3, h4, h5, h6 {
    margin: 0;
}
h1 {
    font-size: 26px;
}
h2 {
    font-size: 24px;
}
h3 {
    font-size: 22px;
}
h4 {
    font-size: 20px;
}
h5 {
    font-size: 18px;
}
h6 {
    font-size: 16px;
}
a:hover {
    color: #048bcd;
}
img.icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}
i.material-icons {
    color: #000;
}
img {
    max-width: 100%;
}
.page-title{
    font-size: 18px;
}
.row {
    margin-bottom: 0;
}
.btn, .btn-large, .btn-small {
    background-color: rgba(0,0,0,0.3);
}
.alert {
    padding: 10px 15px;
    margin-bottom: 7px;
    border: 1px solid transparent;
    border-radius: 0;
}
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
button.close {
    display: none;
}
.collection a.collection-item {
    color: #000;
}
.form-control {
    height: 2rem !important;
}
.help-block {
    margin: 0 0 7px;
    font-size: 12px;
}
.dashed {
    display: inline-block;
    border-bottom: 1px dashed #1358b8;
}
.d-flex {
    display: flex;
}
.f-aic {
    display: flex;
    align-items: center;
}
.f-jca {
    display: flex;
    justify-content: space-around;
}
.align-items-center {
    align-items: center;
}
.btn-load {
    margin: .75rem;
    display: inline-block;
}
.drag-target {
    width: 20px;
}
.content img {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
    margin: 1rem 0;
}
.content, .content p {
    font-size: 1.2rem;
    line-height: 1.5;
}
.card-item__desc.content a {
    color: #039be5 !important;
}
.content ul:not(.browser-default)>li {
    list-style-type: inherit;
    margin-bottom: 7px;
}
.content ul:not(.browser-default) {
    padding-left: 15px;
    list-style-type: inherit;
}
.column-content {
    margin: 0 auto;
    max-width: 600px;
}
.color-primary {
    color: #000;
}
.pagination li.active {
    background-color: #2196f3;
}
::placeholder {
    color: #c0c4cc;
    font-size: 14px;
}
.page-scroll-indicator {
    width: 100%;
    height: 3px;
    background: #10b9e4;
}
.progress-line {
    width: 0%;
    height: 3px;
    background: #ffc006;
}



/*post list*/
.card-item {
    padding: 15px 20px;
    margin: 10px 0;
    box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
}
.card-item-sm {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
}
.card-item__row {
    padding: 7px 0;
}
.card-item__header {
    padding: 10px 0;
}
.card-item__title {
    font-family: 'Roboto Medium', Arial, sans-serif;
    display: block;
    font-weight: 500;
    font-size: 19px;
    line-height: 1.3;
}
.card-item__intro {
    line-height: 1.2;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}
.card-item__title h2{
    font-size: 1.5rem;
}
.card-item__footer {
    padding: 10px 0;
}
.card-item__info {
    font-weight: 500;
    display: flex;
    align-items: center;
    margin-right: 15px;
}
.card-item__info i {
    font-size: 18px;
    margin-right: 5px;
}
.card-item__img {
    width: 100%;
}

/*layout*/
.container-fluid {
    padding: 0 15px;
}
.layout-top {
    background: rgb(243, 226, 255);
    position: fixed;
    left: -1px;
    right: -1px;
    top: -1px;
    height: 70px;
    z-index: 998;
    box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
}
.layout-middle {
    margin-top: 74px;
    margin-bottom: 50px;
}
.layout-bottom {
    position: fixed;
    left: -1px;
    right: -1px;
    bottom: -1px;
    -webkit-box-shadow: 0 -2px 6px 2px rgba(0,0,0,.06);
    -moz-box-shadow: 0 -2px 6px 2px rgba(0,0,0,.06);
    box-shadow: 0 -2px 6px 2px rgba(0,0,0,.06);
}
.d-layout-top {
    position: fixed;
    top: 0;
    z-index: 3;
    right: 0;
    left: 0;
}
.d-layout-middle {
    display: flex;
    justify-content: center;
    margin: 70px auto 0;
}
.d-layout-center {
    margin: 0 auto;
    width: calc(100% - 500px);
    padding: 15px 0;
    min-width: 400px;
    max-width: 1020px;
}
.d-layout-left {
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
    overflow-y: auto;
    border-right: 1px solid rgba(0,0,0,.07);
}
.d-layout-left__bottom {
    margin-top: auto;
}
.developer {
    font-size: 12px;
}
.d-layout-right {
    padding-left: 10px;
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: calc(100vh - 70px);
    position: sticky;
    top: 80px;
    overflow-y: auto;
    border-left: 1px solid rgba(0,0,0,.07);
}
.d-layout-right__bottom {
    margin-top: auto;
}
.d-layout-bottom {
    height: 30px;
}
.social-list__title {
    font-size: 12px;
    padding: 7px 0;
}
.social-links {
    margin-bottom: 10px;
    display: flex;
}
.social-links a:last-child img {
    width: 35px;
}
.social-links a {
    display: flex;
    margin-right: 15px;
}
.social-links a img{
    width: 25px;
}
.mobile-social-links.social-links {
    padding: 10px 20px;
}


/*header*/
img.h__logo {
    max-height: 38px;
    margin-top: 5px;
}
.sidenav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.sidenav__bottom {
    margin-top: auto;
}
.sidenav li>a {
    padding: 0 20px;
    height: 40px;
    line-height: 40px;
    display: flex;
    align-items: center;
}
.sidenav li>a.menu-tag__item {
    height: 36px;
    line-height: 36px;
    display: flex;
    align-items: center;
}
.menu-tag__icon {
    width: 20px;
    margin-right: 10px;
}
.slide-menu__icon {
    width: 25px;
    height: 25px;
    margin-top: 5px;
}
img.dh__logo {
    max-height: 40px;
    margin-top: 5px;
}

.mh-actions span.ic-search{
    width: 25px;
    height: 25px;
    margin: 0 5px;
}
.mh-actions .icon {
    width: 25px;
    height: 25px;
}
.d-header__menu {
    margin: 7px 0;
    display: flex;
}
.d-header__menu li a {
    display: flex;
    align-items: center;
}
.d-header__menu li a span.ic-user, .h-notify span.ic-notify, .d-header__menu li a .icon{
    width: 25px;
    height: 25px;
    margin-left: 15px;
    margin-right: 7px;
}
.h-notify {
    position: relative;
    display: inline-block;
}
.h-notify__badge {
    position: absolute;
    top: -7px;
    right: 2px;
    display: inline-block;
    background-color: #e62e3b;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    min-width: 12px;
    padding: 2px 5px;
}
#dropdown-notify {
    width: 350px;
    position: absolute;
    background: #fff;
    padding: 10px;
    font-size: 13px;
    right: 0px;
}


#top span{
    display: block;
    padding: 0 7px;
}
#top {
    display: block;
    background: #10b9e4;
    font-size: 11px;
    height: 16px;
    line-height: 16px;
}
.mh-search-box {
    display: none;
    margin-top: -1px;
    background: #fff;
    padding: 7px 10px;
    -webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
}
.mh-search-box.search-box-card {
    display: block;
}
input[type=text].search__input {
    outline: none !important;
    padding: 0 10px;
    border: 1px solid #d4d4d4 !important;
    border-radius: 5px;
    width: calc(100% - 50px);
    margin-bottom: 0;
    height: 2rem;
}
.search-menu__icon {
    height: 25px;
}
.search__input-close {
    width: 20px;
    display: inline-block;
    padding: 0;
    text-align: center;
}
.search__submit {
    display: inline-block;
    margin-left: 2px;
}
.search__input-close img {
    width: 15px;
}
.search__submit-icon {
    width: 20px;
}
form.search-form {
    position: relative;
}
.dh-search input[type=text].search__input  {
    background: #1A71A7; /*rgb(236, 209, 255);*/
}
.dh-search .search__submit {
    position: absolute;
    right: 35px;
    top: 5px;
}
.search-page .search__submit {
    position: absolute;
    top: 5px;
    right: 0px;
}



/* sidebar */
.left-sidebar ul li .divider {
    margin: 10px 0 10px 10px;
}
.left-sidebar .card-item {
    padding: 15px;
}
.left-menu__item-icon {
    width: 20px;
    height: 20px;
    margin-right: 7px;
}
.collection {
    border: none;
}

.collection .collection-item.left-menu__item {
    background: transparent;
    font-size: 13px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 7px 15px 7px 10px ;
    border-bottom: none;
}



/*tags*/
a.collection-item.tag-item {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    color: #000;
    padding: 10px;
    margin-bottom: 2px;
}
.tag-item__icon {
    width: 25px;
    margin-right: 10px;
}
.tags-carousel {
    overflow-x: scroll;
    display: flex;
    background: 0 0!important;
    padding: 10px 5px;
}
.tag-slide-item {
    flex: 0 0 auto;
}
.tags-carousel-wrap {
    background: #fff;
    margin: 10px 0;
    box-shadow: 0 1px 0 0 #d7d8db, 0 0 0 1px #e3e4e8;
    overflow: hidden;
    max-height: 40px;
}
.tag-slide-item a {
    font-size: 14px;
    display: flex;
    align-items: center;
    color: #000;
    margin-right: 15px;
}
.tag-slide-item img {
    width: 20px;
    margin-right: 5px;
}



/*footer*/
.bottom-nav {
    display: flex;
    display: -webkit-flex;
    height: 44px;
}
.bottom-nav a {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;
}
.bottom-nav__item span{
    display: block;
    width: 1.5rem;
    height: 1.5rem;

}
/*.bottom-nav__item:first-child span{*/
/*    background: url("/svg/home.svg") no-repeat;*/
/*    background-size: contain;*/
/*}*/
/*.bottom-nav__item.active:first-child span{*/
/*    background: url("/svg/home-b.svg") no-repeat;*/
/*    background-size: contain;*/
/*}*/
/*.bottom-nav__item:nth-child(2) span{*/
/*    background: url("/svg/menu.svg") no-repeat;*/
/*    background-size: contain;*/
/*}*/
/*.bottom-nav__item.active:nth-child(2) span{*/
/*    background: url("/svg/menu-b.svg") no-repeat;*/
/*    background-size: contain;*/
/*}*/
/*.bottom-nav__item:nth-child(3) span{*/
/*    background: url("/svg/bookmark.svg") no-repeat;*/
/*    background-size: contain;*/
/*}*/
/*.bottom-nav__item.active:nth-child(3) span{*/
/*    background: url("/svg/bookmark-b.svg") no-repeat;*/
/*    background-size: contain;*/
/*}*/
/*.bottom-nav__item:last-child span{*/
/*    background: url("/svg/account.svg") no-repeat;*/
/*    background-size: contain;*/
/*}*/
/*.bottom-nav__item.active:last-child span{*/
/*    background: url("/svg/account-b.svg") no-repeat;*/
/*    background-size: contain;*/
/*}*/
.bottom-nav__item img {
    width: 1.5rem;
}

/*main posts*/
.main-post__list-title {
    margin-bottom: 15px;
}
.main-post-item {
    display: flex;
    margin-bottom: 10px;
}
.main-post-item__date {
    width: 40px;
    margin-right: 10px;
}
.main-post-item__title {
    width: calc(100% - 50px);
}
.main-post-item__date span {
    font-size: 12px;
    display: block;
}
.main-post-item__title a {
    color: #000;
}
.main-post-item__title a:hover {
    color: #048bcd;
}
.post-sort-list {
    display: flex;
    margin: 0;
}
.post-sort-list li a {
    text-transform: inherit;
    color: #000;
}
.post-sort-list li a.active {
    background: #fff;
    -webkit-box-shadow: 0px 1px 4px rgba(0,0,0,0.15);
    box-shadow: 0px 1px 4px rgba(0,0,0,0.15);
    border-radius: 10em;
}


.slick-arrow {
    width: 20px;
    z-index: 1;
}
.slick-arrow:last-child {
    position: absolute;
    right: 0;
    top: 45%;
}
.slick-arrow:first-child {
    position: absolute;
    left: 0;
    top: 45%;
}



/*post-detail*/
.post-detail__wrap {
    padding: 0;
    margin: -10px auto 0;
}
.post-detail__title {
    font-size: 1.75rem;
}
.author-info__photo {
    border-radius: 10em;
    width: 50px;
    max-height: 50px;
    margin-right: 1rem;
    border: 1px solid #eee;
}
.author-info .card-item__row {
    display: flex;
    align-items: center;
}
.related-post__item {
    padding: 5px 0;
}
.related-post__item a {
     border-bottom: 1px dashed;
     line-height: 1.5;
    font-size: 1.2rem;
 }

.post-tags__item {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid;
    border-radius: 5px;
    margin: 3px 5px 3px 0;
    font-size: 13px;
}
.post__bookmark:hover {
    cursor: pointer;
}
.post__bookmark.active{
    background: url("/svg/bookmark-f.svg") no-repeat;
    background-size: contain;
}
.post__bookmark {
    width: 18px;
    height: 18px;
}
.post-btn-vote{
    display: inline-block;
    padding: 3px 20px;
    border-radius: 5px;
    margin: 3px;
    font-size: 13px;
    cursor: pointer;
}
.post-btn-vote.like {
    border: 1px solid;
}
.post-btn-vote.dislike {
    background-color: #039be5;
    border: 1px solid #039be5;
    color: #fff;
}
.post-btn-vote.dislike:hover, .post-btn-vote.dislike:focus {
    color: #fff;
}


/*auth*/
.column-content.auth-page {
    padding: 1rem;
}
.auth-links a {
    display: block;
    margin-top: 7px;
}
.btn.btn-default.js-fileapi-wrapper {
    max-width: 100px;
    float: left;
}
#authModal {
    max-width: 400px;
    z-index: 9999 !important;
    max-height: 80%;
}
span.modal-close {
    font-size: 24px;
    position: absolute;
    top: 10px;
    right: 10px;
}
#authModal .modal-content {
    padding: 3rem 3rem 2rem;
}

/*profile*/
a.collection-item.profile-menu__item{
    display: flex;
    align-items: center;
}
a.collection-item.profile-menu__item i{
    width: 20px;
    margin-right: 15px;
}


/*sidebar posts widget*/
.right-sidebar {
}
.sidebar-posts__item {
    display: flex;
    align-items: flex-start;
    padding: 5px 0;
    font-size: 12px;
}
.sidebar-posts__item-img {
    width: 70px;
    margin-right: 10px;
}
.popular-posts-list {
    min-height: 300px;
    max-height: calc((90vh - 70px)/2) ;
    overflow: hidden;
    overflow-y: scroll;
}

/*share*/
ul.social-share {
    display: flex;
    display: -webkit-flex;
    min-height: 30px;
}
ul.social-share li{
    display: flex;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;
}
ul.social-share li i {
    color: #fff;
    font-size: 18px;
}
ul.social-share li a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-share li:first-child a{
    background-color: #385694;
}
.social-share li:nth-child(2) a{
    background-color: #1c9cea
}
.social-share li:nth-child(3) a{
    background-color: #4e7db2;
}
.social-share li:nth-child(4) a{
    background-color: #2ba0d9;
}
.social-share li:nth-child(5) a{
    background-color: #24cc63;
}


/*comments*/
textarea.comments-textarea{
    border-radius: 4px;
    border: 1px solid #c4c4c4;
    height: 5rem;
    margin-bottom: 5px;
}
.comments .comment-content {
    padding: 10px;
}
.comment-action-buttons a {
    font-size: 12px;
}
.comments .comment-date {
    font-size: 12px;
}
.comments .comment-details {
    padding-left: 60px;
}
.comments .comment-author-avatar img {
    border: 1px solid #e2e2e2;
    border-radius: 10em;
}
.comments .comments-list {
    margin-top: 2rem;
}
.comments .comment-author-avatar {
    width: 50px;
}
.comment-body {
    overflow: hidden;
}

/*free page*/
.free-page {
    font-family: 'Roboto Slab', sans-serif;
    max-width: 800px;
    margin: 0 auto;
}
.free-item {
    align-items: center;
    margin: 1rem 0;
    display: flex;
    flex-direction: row;
}
.free-item__title {
    margin-bottom: 2rem;
}
.free-item__col {
    padding: 1rem;
}
.free-item__left {
    width: 55%;
}
.free-item__right {
    width: 45%;
    text-align: center;
}
.free-item__img {
    max-height: 250px;
}

.free-item__info {
    display: flex;
    align-items: center;
}
.free-item__info-img {
    width: 50px;
    margin-right: 15px;
}
.free-item__form {
    max-width: 400px;
    padding: 2rem;
    margin: 2rem 0 0;
    border-radius: 10px;
}
.left-menu__item-free {
    border-radius: 3px;
}

/*voting*/
.voting-options-wrap {
    position: relative;
}
.voting-title {
    font-size: 22px;
}
.voting-item {
    position: relative;
}
.voting-progress {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(255,255,255,.75);
    display: flex;
    align-items: center;
    justify-content: center;
}
.voting-option {
    padding: 7px 10px;
    border-radius: 3px;
    background-color: rgba(238,238,238,.95);
    margin-bottom: 10px;
    cursor: pointer;
}
.voting-option:hover {
    background-color: rgba(238,238,238,.65);
}
.voting-result {
    margin: 20px 0;
}
.voting-result__txt {
    float: left;
}
.voting-result__percent {
    float: right;
    font-weight: bold;
}
.voting-result__bar {
    clear: both;
    background-color: rgba(238,238,238,.95);
    height: 5px;
    margin: 7px 0;
}
.voting-result__bar__inner {
    background-color: #2196F3;
    height: 5px;
}
.voting-result__count {
    font-size: 12px;
    color: #888;
}
.voting-result__info {
    clear: both;
    overflow: hidden;
}
.voting-desc {
    padding: 1rem 0;
}

.ic-light-switch {
    background: url(/svg/light.svg) no-repeat;
    background-size: contain;
    display: inline-block;
}
.ic-dark-switch {
    background: url(/svg/night.svg) no-repeat;
    background-size: contain;
    display: inline-block;
}