
/* Global elements */
body {
    padding-top: 6rem;
    background-color: rgb(252, 249, 246);
    /* font-family: 'Raleway', sans-serif; */
    font-family: "Nunito", "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

.nav-pills .nav-link {
    font-family: 'Montserrat', sans-serif;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: #000;
    background-color: #fff;
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.1);
}

pre {
    background-color: #F9F2F4;
    padding: .3rem;
    border: 1px solid #EAEAEA;
}
code {
    background-color: #F9F2F4;
    border: 1px solid #EAEAEA;
}

@media (min-width: 576px) {
    body {
        padding-top: 3.5rem;
    }
}

@media all and (max-width:480px) {
    .btn-xs-block { width: 100%; display:block; }
}   


a {
    color: #000;
}

.not-black, .element-title, .element-title a {
    color: #303030;
}

a:hover {
    color: #ffc289;
    text-decoration: none;
}


.element-title {
    font-weight: 600;
}

.company-link, .company-link a {
    color: #6c757d;
    font-size: .9rem;
    font-weight: 300;
}

.company-link a:hover {
    color: #ffc289;
    text-decoration: none;
}

.box {
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.4s, -webkit-box-shadow 0.4s;
    /* box-shadow: 0 7px 19px 0 rgba(68, 88, 144, 0.1); */
}

.tab-box {
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
    border-top-right-radius: 6px;
    background-color: #fff;
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.4s, -webkit-box-shadow 0.4s;
    /* box-shadow: 0 7px 19px 0 rgba(68, 88, 144, 0.1); */
}


.nav-tabs {
    border-bottom: 0;
}

.nav-tabs .nav-link {
    border: 0;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

.nav-tabs .nav-link.active{
    box-shadow: 0 -5px 10px 0 rgba(0, 0, 0, 0.15);
}

.badge {
    padding-top: .18rem;
    padding-bottom: .1rem;
    border-radius: .2rem;
}

.badge-outline {
    color: #6c757d;
    transition: 0.4s;
    /* font-family: 'Montserrat', sans-serif; */
    /* font-family: "Open Sans", "Segoe UI", sans-serif; */
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.08);
    /* box-shadow: 0 3px 5px 0 rgba(68, 88, 144, 0.1); */
    /* box-shadow: 0 7px 19px 0 rgba(68, 88, 144, 0.1); */
    /* border: 1px solid #999; */
    background-color: #fff;
}

.badge-outline.badge-secondary {
    border-color: #6c757d;
}

.btn-group-xs>.btn, .btn-xs {
    padding: .25rem .4rem;
    font-size: .8rem;
    line-height: .5;
    border-radius: .2rem;
}

.clearfix::after {
    clear: both;
    display: block;
}

.vote-btn, .meta-btn, .nav-btn {
    background-color: #fff;
    /* box-shadow: 0 3px 5px 0 rgba(68, 88, 144, 0.1); */
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.08);
    color: #6c757d;
    /* border-color: rgb(171, 182, 194); */
}

.havola-btn {
    background-color: #fff;
    /* background-color: #a39d97; */
    /* border-color: #ffc289; */
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.08);
    color: #ffa34d;
}

.havola-btn:hover {
    background-color: #ffc289;
    /* background-color: #a39d97; */
    border-color: #ffc289;
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.08);
    color: #fff;
}

.element-edit-btn {
    visibility: hidden;
}

.element-detail:hover .element-edit-btn, .company-detail:hover .element-edit-btn {
    visibility: visible;
}

.btn-primary {
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.08);
    border-color: #ffc289;
    background-color: #ffc289 !important;
}

.btn-secondary {
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.08);
    /* border-color: #ffc289; */
    /* background-color: #ffc289 !important; */
}

.btn-primary:hover {
    border-color: #dfa269;
    background-color: #dfa269 !important;
}

.my-shadow {
    box-shadow: 0 7px 19px 0 rgba(68, 88, 144, 0.1);
    /* box-shadow: 0 3px 5px 0 rgba(68, 88, 144, 0.1); */
}

.btn-clicked {
    color: #fff;
    border-color: #ffc289;
    background-color: #ffc289;
}

.form-control::-webkit-input-placeholder {
    /* Edge */
    color: #aaa;
}

.form-control:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #aaa;
}

.form-control::placeholder {
    color: #aaa;
}

.form-control {
    background-color: #ededef !important;
    border: 1px solid #ededef !important;
    /* border: 0 !important; */
}

.form-control:focus {
    outline: 0 !important;
    border: 1px solid #c7c1c1 !important;
    /* border-color: initial; */
    box-shadow: none;
}

.dropdown-menu {
    box-shadow: 0 2px 12px rgba(0,0,0,0.175);
    border: 0;
}


/* Navbar elements */

#header.header-scrolled {
    transition: all 0.5s;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.3);
}

#global-search {
    /* background-color: #f5f8fd; */
    position: relative;
    /* border-color: rgb(171, 182, 194) !important; */
    /* border: #aaa !important; */
    /* border-width: 2px !important; */
}

.global-search-div .form-control {
    padding-left: 2.375rem;
}

.global-search-div .global-search-icon {
    position: absolute;
    z-index: 2;
    display: block;
    width: 2.375rem;
    height: 2.375rem;
    line-height: 2.375rem;
    text-align: center;
    pointer-events: none;
    color: #aaa;
}

.autocomplete-suggestions {
    /* border: 1px solid rgb(222, 226, 230); */
    border-radius: 4px;
    border-top: 0;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.175);
    /* box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.15); */
    overflow: auto;
}

.autocomplete-suggestion {
    padding: 2px 5px;
    white-space: nowrap;
    overflow: hidden;
}

.autocomplete-selected {
    background: #ebebeb;
}

.autocomplete-suggestions strong {
    font-weight: normal;
    color: #3399FF;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;

}

.jumbotron {
    background-color: #F7F4ED;
}

/**********************
* Main menu elements 
**********************/
.tabs-menu {
    font-family: 'Montserrat', sans-serif;
    /* font-family: "Open Sans", "Segoe UI", sans-serif; */
    font-size: 15px;
    font-weight: 500;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.tabs-menu::-webkit-scrollbar {
    display: none;
}

.tabs-menu .nav-link {
    white-space: nowrap;
    color: #6C757D !important;
}

.tabs-menu .nav-link:hover {
    color: #ffc289 !important;
}

.tabs-menu .nav-link.active {
    /* border-bottom: 4px solid #6c757d; */
    color: #ffc289 !important;
}

.category-item {
    font-weight: 400;
    border-radius: 5px;
    padding-left: 8px;
    padding-right: 8px;
    margin-right: .15rem;
    margin-left: .15rem;
    line-height: 1.2;
}


/* Element list */
#element-sort-btn {
    position: absolute;
    right: 1rem;
}


.element-item .box:hover {
    /* -webkit-transform: scale(1.01); */
    /* transform: scale(1.01); */
    /* background-color: #f9f9f9; */
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.3);
}




@media (min-width: 576px) {

    .element-item-meta {
        position: absolute;
        bottom: .8rem;
    }

    .element-item .box .element-item-last-content {
        padding-bottom: 1.4rem;
        margin-bottom: .2rem;
        transition: all .3s ease-out;
    }
}


.element-item-category {
    font-size: .9rem;
    font-weight: 300;
    line-height: 1.2;
    margin-top: .2rem;
    margin-bottom: .2rem;
}

.element-item-category a {
    color: #757575;
    text-decoration: none;
}

.element-item-category a:hover {
    color: #000;
    text-decoration: none;
}

.element-item .element-sh-desc {
    font-size: .9rem;
    font-weight: 300;
    color: #505050;
    display: block;
    /* line-height: 1.2; */
    margin-top: .2rem;
    margin-bottom: .2rem;
}


.element-item-logo {
    width: 75px;
    max-height: 75px;
    font-size: 35px;
}


@media (max-width:480px) {
    .element-item-logo {
        width: 60px;
        max-height: 60px;
        font-size: 28px;
    }
}

/* .element-item .media-body {
    padding-bottom: 1.4rem;
} */


.element-item-meta, .vote-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
}

.element-item-meta span {
    margin-left: 8px;
}

.element-item-tags .tag-item {
    font-size: .7rem;
    font-weight: 400;
    /* font-family: "Open Sans", "Segoe UI", sans-serif; */
    padding: .2rem .45rem;
    /* line-height: .5; */
    display: inline-block;
    margin-top: .2rem;
    /* margin-right: .4rem; */
    text-decoration: none;
    color: #6a6a6a;
    background-color: #f2f2f2;
    border-radius: .2rem;
}

.element-item-tags .tag-item:hover {
    color: #000;
}


.element-item-language, .element-item-language:hover {
    font-weight: 500; 
    font-size: .8rem; 
    line-height: .5;
    padding: .43rem .3rem; 
    margin-left: 0 !important; 
    border-radius: .2rem; 
    color: #87929b; 
    border: 1px solid #8d9399; 
    background-color: #f2f2f2;
}


/* Element detail */

.element-detail.box {
    position: relative;
}

.element-detail-vote .vote-count {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
}

@media (max-width: 575px) {
    .element-detail-logo-div { width: 100%;}
    .element-detail-votes {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}

.element-detail-logo {
    width: 90px;
    max-height: 90px;
    font-size: 40px;
}

.element-detail-language {
    font-weight: 700; 
    font-size: .8rem; 
    padding: .2rem .4rem; 
    border-radius:4px; 
    color: #6c757d; 
    border: 1px solid #8d9399; 
    background-color: #f2f2f2;
}


.element-inline-item-language {
    margin-top: .3rem;
    font-weight: 700; 
    font-size: .7rem; 
    line-height: .5;
    padding: .1rem .2rem; 
    margin-left: 0 !important; 
    border-radius: .2rem; 
    color: #87929b; 
    border: 1px solid #8d9399; 
    background-color: #f2f2f2;
}

.element-detail-description {
    font-size: 14px;
}

.element-detail-meta {
    font-size: .8rem;
}



.element-detail-info {
    font-size: 12px;
}

.element-detail-info span {
    color: #A09996;
}

.comment-item {
    font-size: 14px;
}

.comment-item p {
    margin-bottom: .5rem;
}

.comment-item-meta {
    font-size: 12px;
}


/* Article list */

.link-preview {
    background-color: #f8f9fa;
}

.link-preview:hover {
    background-color: #f3f3f3;
}

.article-sh-desc {
    font-size: 1rem;
    font-weight: 300;
    color: #505050;
    display: block;
    /* line-height: 1.2; */
    margin-top: .2rem;
    margin-bottom: .2rem;
}


.link-preview-photo-div {
    background-position: center; 
    background-size: 100px; 
    background-repeat: no-repeat; 
    background-image: url('/static/img/image-placeholder.png');
}

.link-preview-photo {
    background-color: white;
    width:100%; 
    min-height: 87px; 
    max-height: 90px; 
    object-fit: cover;
}

@media (max-width: 480px) {
    .link-preview-photo {
        max-height:200px;
    }
}


.link-preview-content h6{
    font-size: 14px; 
    font-weight: 600; 
    text-overflow: ellipsis; 
    overflow: hidden; 
    width: 100%; 
    white-space: nowrap;
}

.link-preview-content div {
    font-size: 14px; 
}

.link-preview-content p {
    color: #000; 
    text-overflow: ellipsis; 
    overflow: hidden;
    width: 100%; 
    white-space: nowrap;
}

.link-preview-content span, .link-broken-content span{
    color: #969696;
    word-break: break-all;
}

/* Article detail */

figure.image img{
    max-width:100%;
    height: auto;
    object-fit: contain;
}

blockquote {
    border-left: 5px solid #757575;
    padding-left: 5px;
    padding-top: 5px;
    padding-top: 2px;
    margin: 0;
    font-style: italic;

}


.article-detail-description a {
    color: #609;
}


/* Article form */

.ck-editor__editable {
    max-height: 80vh;
}

/* Element form */

.element-form label {
    font-size: .8rem;
}

.image-preview-div {
    height: 130px;
    width:100%;
    border-radius: 4px;
    border: 2px dashed #808080;
}

.image-upload-input {
    width: 0px;
    height: 0px;
    overflow: hidden;
}



/* Company detail */

.company-detail.box {
    position: relative;
}

.company-detail-vote .vote-count {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
}

@media (max-width: 575px) {
    .company-detail-logo-div { width: 100%;}
    .company-detail-votes {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}

.company-detail-logo {
    width: 90px;
    max-height: 90px;
    font-size: 40px;
}

.company-detail-description {
    font-size: 14px;
}


.company-detail-info {
    font-size: 12px;
}

.company-detail-info span {
    color: #A09996;
}




/* User profile */
.user-profile-photo {
    object-fit: cover;
    object-position: 50% 50%;
}

.user-profile.box {
    position: relative;
}

@media (max-width: 575px) {
    .user-profile-photo-div { width: 100%;}
    .user-profile-votes {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}

.user-stacks {
    line-height: 1.2;
    padding-bottom: .1rem;
}

/* Users list */


.user-item .box:hover {
    /* -webkit-transform: scale(1.01); */
    /* transform: scale(1.01); */
    /* background-color: #f9f9f9; */
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.3);
}



.user-item-photo {
    width: 75px;
    object-fit: cover;
    object-position: 50% 50%;
    height: 75px;
    font-size: 35px;
}

@media (max-width:480px) {
    .user-item-photo {
        width: 60px;
        object-fit: cover;
        object-position: 50% 50%;
        height: 60px;
        font-size: 28px;
    }
}

.user-item-username {
    font-size: .9rem;
    font-weight: 300;
    line-height: 1.2;
    margin-top: .2rem;
    margin-bottom: .2rem;
}

.user-item-sh-desc {
    font-size: .9rem;
    font-weight: 300;
    color: #636363;
    word-break: break-all;
    display: block;
    /* line-height: 1.2; */
    margin-top: .2rem;
    margin-bottom: .2rem;
}

.user-item-status {
    margin-top: .3rem;
    font-size: .8rem;
    padding-bottom: .18rem;
    font-weight: 300;
}

.user-item-status span span{
    font-size: .7rem;
}
.user-item-contributions {
    display: inline-block;
    font-size: .7rem;
    padding: .05rem .3rem;
    color: #6a6a6a;
    background-color: #f2f2f2;
    border-radius: .2rem;
}


/* jquery tag-it */
ul.tagit {
    background-color: #ededef;
    border: 1px solid #ededef;
    border-radius: .25rem;
}

ul.tagit:hover {
    border: 1px solid #c7c1c1 !important;
    box-shadow: none;
}

.ui-widget {
    font-size: .8rem;
}

.note-editable {
    font-size: 14px;
}


#toTop {
    position: fixed;
    display: none;
    background: #ffc289;
    color: #fff;
    width: 44px;
    height: 44px;
    text-align: center;
    line-height: 1;
    font-size: 16px;
    border-radius: 50%;
    right: 15px;
    bottom: 15px;
    z-index: 11;
    padding-top: 12px;
}

.btn-facebook {
    background-color: #3B5999;
    color: #fff;
}

.btn-facebook:hover {
    background-color: rgb(52, 77, 129);
    color: #fff;
}

.btn-github {
    background-color: #444444;
    color: #fff;
}

.btn-github:hover {
    background-color: #292929;
    color: #fff;
}

.btn-google {
    background-color: #DF4A32;
    color: #fff;
}

.btn-google:hover {
    background-color: rgb(189, 64, 45);
    color: #fff;
}