body {
	/* background: #fff; */
	color: #6c7980;
	background-color: #ecf0f1;
}

@keyframes slideFromBottom {
	0% {
		top: 0;
	}
	20% {
		top: 0;
	}
	100% {
		top: -90px;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

#main-content {
	/*padding-top: 56px !important;*/
	width: 95%;
	margin: 0 auto;
	position: relative;
	transition: all .5s ease 0s;
	top: 0;
	min-height: 500px;
}

body:not(.body-index) #main-content {
	opacity: 0;
	animation: slideFromBottom 1s, fadeIn .8s;
	animation-fill-mode: forwards;
	margin-bottom: -60px;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	border-radius: 20px;
}

body.body-index.sticky-header #main-content {
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	border-radius: 20px;
	top: -90px;
	margin-bottom: -60px;
	animation: fadeIn .5s;
	animation-fill-mode: forwards;
}

.no-margin {
	margin: 0 !important;
}

.green {
    color: green;
}

.red {
    color: red;
}

.vote-form {
	display: inline-block;
}

.vote-submit {
	background: transparent;
	border: 0;
	cursor: pointer;
	height: 40px;
	font-size: 16px;
    outline: none !important;
    position: relative;
}

.top-border {
	border-top: 1px solid lightgray;
}

.bottom-border {
	border-bottom: 1px solid lightgray;
}

.lh-30 {
	line-height: 30px;
}

.lh-50 {
	line-height: 50px;
}

.forum-bar {
	background: #fff;
}

#categories,
#posts {
	width: 100%;
}

#posts {
	padding-top: 0;
}

#posts table {
	border-collapse:separate;
}

#posts .selectors {
	width: 100%;
}

#posts .selectors a.selector {
	display: inline-block;
	padding: 10px 25px;
	border-radius: 0;
	border-bottom: 3px solid #fff;
	/*border-radius: 20px 0 0 20px;*/
	background: transparent;
	color: rgba(0, 0, 0, .8);
	text-decoration: none;
	position: relative;
}

#posts .selectors a.selector::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0%;
	height: 3px;
	background: rgb(57,80,212);
	transition: all .4s;
}

#posts .selectors a.selector:hover::after,
#posts .selectors a.selector.active::after {
	width: 100%;
}

#posts .selectors li.nav-item:nth-child(2) a.selector::after {
	/*border-radius: 0 20px 20px 0;*/
	left: 0;
	right: auto;
}

#posts .selectors a.selector.active,
#posts .selectors a.selector:hover {
	/* background: #28a745;
	color: #fff; */
	text-decoration: none;
}

#posts .tab-pane {
	padding: 0;
	background: transparent;
	border-left: none;
}

#categories article,
#posts article {
	/* border-bottom: 1px solid #eaeaea; */
	margin-top: 20px;
}

#posts article,
article.category {
  background: #fff;
  border-radius: 5px;
  -webkit-box-shadow: 0px 0px 10px -7px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 0px 10px -7px rgba(0,0,0,0.75);
  box-shadow: 0px 0px 10px -7px rgba(0,0,0,0.75);
}

article.category {
	padding: 15px;
}

#posts article:hover,
article.category:hover {
  -webkit-box-shadow: 0px 0px 10px -3px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 0px 10px -3px rgba(0,0,0,0.75);
  box-shadow: 0px 0px 10px -3px rgba(0,0,0,0.75);
}

#posts article.post .image {
	min-width: 80px;
	flex: 0 0 10%;
}

#posts article.post .title {
	flex: 0 0 70%;
}

#posts article.post .info {
	flex: 0 0 20%;
}

#posts article.post .image,
#posts article.post .title {
	padding: 20px;
}

#posts article.post .image {
	padding-top: 10px;
	width: 100%;
}

#posts article.post .image img {
	height: auto;
	border-radius: 50%;
    object-fit: cover;
    width: 50px;
    height: 50px;
}

#posts article.post .title h4,
article.category .title h4 {
	padding: 10px 0;
}

article.category .title h4 {
	margin-bottom: 0
}

#posts article.post .title h4 a,
article.category .title h4 a {
	color: #68686f;
}

#posts article.post .title h4 a:hover,
article.category .title h4 a:hover {
	color: #8e8d91;
}

#posts article.post .title p {
	color: #cccccc;
	font-size: 14px;
}

#posts article.post .info {
	width: 200px;
	border-left: 1px solid #f6f6f6;
}

#posts article.post .info {
	padding: 5px 0;
}

#posts article.post .info span.comments {
	position: relative;
	display: block;
	line-height: 40px;
	width: 60px;
	margin: 5px auto 15px;
	background: #bac2c9;
	text-align: center;
	color: #fff !important;
	border-radius: 3px;
}

#posts article.post .info span.comments:after {
	content: '';
	display: block;
	position: absolute;
	transform: rotate(45deg) translateX(-50%);
	background: #bac2c9;
	width: 15px;
	height: 15px;
	bottom: -10px;
	left: 60%;
}

#posts article.post span {
	color: #6c7980;
}

#posts article.post i {
	font-size: 14px
}

#posts article.post p {
	margin: 0;
}

#posts article.post .arrows span {
    margin-left: 10px;
}

#posts article.post hr {
	margin: 5px 0;
	border-top: 1px solid #f6f6f6;
}

#posts article.post .info {
	font-size: 12px;
}

#posts article.post .arrows,
#posts article.post .comments,
#posts article.post .freshness {
    font-size: 20px;
    text-align: right;
}

#posts article.post .freshness {
	font-size: 14px;
}

.category-status-selector .btn.active,
.category-status-selector .btn:hover {
    background: #3950d4;
    color: #fff;
}

#top-rated .post {
	padding: 5px;
	border-bottom: 1px solid #eaeaea;
}

#top-rated .post a {
	color: #999;
}

#top-rated .post a:hover {
	color: #000;
	text-decoration: none;
}

.card {
	margin: 20px 0;
	background: #fff;
	border-radius: 10px;
    border: none;
	box-shadow: 0 1px 2px #c9cccd;
	overflow: visible;
}

.card p.comment-body {
    margin-bottom: 5px !important;
}

.card .user-info {
	position: relative;
	width: 100%;
	padding: 20px 0 15px 15px;
	text-align: left;
    font-size: 1.2rem;
}

.card.comment .user-info {
    padding: 20px 0 5px 15px;
    font-size: 1rem;
}

/* .card.comment .user-info {
	width: 8%;
} */


.card .user-info img {
	width: 50px;
    height: 50px;
	border-radius: 50%;
    object-fit: cover;
}

.card.comment .user-info img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.card .user-info .karma {
    font-size: .7rem;
}

.card .user-info .user-image {
    width: 65px;
    max-width: 65px;
    box-sizing: border-box;
    padding: 0 0 0 20px !important;
    position: relative;
}

.card.comment .user-info .user-image {
    width: 55px;
    max-width: 55px;
    padding: 0 0 0 15px !important;
}

.card .user-info .user-name {
    display: inline-block;
}

.card .user-info .user-name a {
    color: #363644;
}

.card .user-info .post-badge {
	position: absolute;
	top: -10px;
	left: 0px;
	width: 40px;
	height: 40px;
}

.card .user-info .posted {
    font-size: .8rem;
    color: #aaaaaa;
}

.card .card-content {
	width: 100%;
	padding: 10px 15px;
}

.card.post .card-options > a {
	color: #fff;
}

#post h2.title {
    border-bottom: none;
    margin-bottom: 0;
}

#post .status,
.post-status {
	color: #fff;
	padding: 0 100px 0 20px;
	min-height: 40px;
	line-height:40px;
	font-size: 20px;
	box-sizing: border-box;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    top: 0;
}

#post .post-attachment-link img.post-attachment{
	width: 50px;
	margin-right: 10px;
}

#post-edit div.post-attachment {
	display: inline-block;
	width: 90px;
	margin-right: 10px;
	position: relative;
}

#post-edit div.post-attachment img {
	width: 100%;
}

#post-edit div.post-attachment .delete {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 25px;
	height: 25px;
	line-height: 22px;
	text-align: center;
	font-size: 14px;
	box-sizing: border-box;
	padding: 0;
	border: none;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
}

#post-edit #add-photos{
	background: #f4f5f6;
	border: 1px solid #ced4da;
	display: block;
	width: 100%;
	padding: 10px 20px;
	color: #6c7980;
}

#post-edit #add-photos:after {
	content: '+';
	position: absolute;
	display: block;
	right: 30px;
	top: 50%;
	transform: translateY(-50%);
}

#post .post-attachment-link:nth-last-child(1) .post-attachment {
	margin-right: 0;
}

#post .when {
	padding-right: 10px;
}

.card .top,
.card .bottom {
	overflow: hidden;
}

.card .bottom {
	border-top: 1px solid #f6f6f6;
}

.card .bottom-text {
	width: 100%;
	padding: 7px 10px;
}

.card.comment .bottom-text {
    padding: 0 10px;
}

.comment-selectors a {
	display: block;
	padding: 15px 20px;
	border-radius: 5px;
	color: #3950d4;
	border: 1px solid #e2e2e2;
}

.comment-selectors a.selected {
	color: #fff;
	background-color: #3950d4;
}

.comment-selectors a:not(.selected):hover {
	color: #fff;
	background-color: #5d74d4;
}

.card.comment {
	width: 100%;
	border-radius: 5px;
}

.card.comment.for {
    border-bottom: 3px solid green;
    border-top: 3px solid green;
}

.card.comment.against {
	border-bottom: 3px solid red;
    border-top: 3px solid red;
}

.card.comment .card-content {
	padding: 0 15px 0 15px;
}

.card.comment .comment-author {
	margin-bottom: 5px;
}

.card.comment .comment-body textarea {
	width: 100%;
	border: 1px solid gray;
}

.card.new-comment .locked {
	position: absolute;
	z-index: 99;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background-color: #000;
	opacity: 0.4;
	text-align: center;
	font-size: 100px;
	color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
}

.card.new-comment .card-content {
	padding: 0 20px 20px 20px;
}

.card.new-comment .new-comment-wrapper {
	color: #989c9e;
	background: #f1f1f1;
	padding: 15px;
	margin-bottom: 10px;
}

.card.new-comment .new-comment-wrapper p {
	color: #bdc3c7;
}

.card.new-comment .comment-form textarea {
	width: 100%;
	height: 80px;
	border-radius: 3px;
	border: none;
	background: transparent;
	color: inherit;
}

.card .card-options {
	position: absolute;
	top: 8px;
	right: 10px;
}

.card .card-options .dropdown-menu {
	left: auto !important;
	right: 0 !important;
}

/************************
*************************
		CATEGORIES
*************************
************************/

	#categories .category {
		padding: 10px 10px;
		margin: 0;
	}

	#categories .cat-icon {
		height: 60px;
		width: 60px;
		line-height: 60px;
		text-align: center;
		font-size: 30px;
		color: #fff;
		-webkit-border-radius: 50%;
		-moz-border-radius: 50%;
		border-radius: 50%;
	}

    #categories .category-icon {
        max-width: 60px;
        margin-right: 10px;
    }

	#categories .subtitle,
	#categories .activity {
		color: #a6aeb2;
	}

	#categories .counter {
		font-size: 28px;
		display: block;
	}

	#categories .activity {
		font-size: 12px;
	}


@media screen and (max-width: 992px) {

    #posts article.post .image {
        display: none;
    }

    #posts article.post .title {
        flex: 0 0 100%;
    }

    #posts article.post .info {
        display: none;
    }

    #post .status,
    .post-status {
        font-size: 15px;
    }

    #categories .cat-icon {
        height: 50px;
        width: 50px;
        line-height: 50px;
        text-align: center;
        font-size: 26px;
        color: #fff;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        border-radius: 50%;
    }

    #categories .category-icon {
        max-width: 50px;
    }

    #categories .category-name h4 {
        font-size: 1.1rem;
    }

}
