/* general styles  */

html {
	min-height: 100%;
	background-color: #f9f9f9;
	font-size: 1rem;
}

body {
	margin: 0;
	font-family: Montserrat,Helvetica,Arial,sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	text-align: left;
	background-color: #f9f9f9;
	min-height: 100%;
}

/* less obscuring */
dialog {
	backdrop-filter: blur(0.8px);
}

#error {
	color: #c20000;
	padding: .5rem;
}

/* text */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
	font-family: Montserrat,Helvetica Neue,Helvetica,Arial,sans-serif;
	font-weight: 500;
	line-height: 1.2;
	color: #706d73;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
	margin-bottom: .5rem;
	font-family: Montserrat,Helvetica Neue,Helvetica,Arial,sans-serif;
	font-weight: 500;
	line-height: 1.2;
	color: #706d73;
}
h6 {
	font-size: .9rem;
	font-weight: 400;
}

.mini-profile h4.title {
	font-size: 2.7vw;
}

.text-muted,.text-muted a {
	color: #6c757d !important;
}
.text-gray-dark,.text-gray-dark a {
	color: #555 !important;
}
a:hover .text-muted,
a.text-muted:hover,
.text-muted a:hover,
a:hover .text-gray-dark,
a.text-gray-dark:hover,
.text-gray-dark a:hover {
	color: #474c52 !important;
	background-color: transparent !important;
}

.small, small {
	font-size: 80%;
	font-weight: 400;
}

/* Links */
a,[itemprop="mention"],[itemprop="tag"] {
	text-decoration: none;
	color: #d36854;
	cursor: pointer;
}
a:hover,[itemprop="mention"]:hover,[itemprop="tag"]:hover {
	color: #791300;
}

a.highlight-link {
	color: #d36854 !important;
}

#spinner {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
	padding: 2rem;
}

/* Navigation */

body > header.is-fixed-above-lg,header nav li,.nav-item,.nav-item a,.nav-item details.dropdown summary:not([role]) {
	height: 2.5rem;
	vertical-align: middle;
}

body > header.is-fixed-above-lg {
	z-index: 2;
	position: sticky;
	top: 0;
	transition: border-top-color .4s ease-in-out,box-shadow .4s ease-in-out;
	background-color: hsla(0,0%,100%,.95);
	border-bottom: 1px solid #ddd;
	padding: 0;
	height: 2.5rem;
	margin-bottom: 1.5rem;
}

nav li [role=button],
nav li [type=button],
nav li button,
nav li select {
	padding:.0rem;
}

header nav li {
	padding: .1rem .3rem;
}
#pnut.zzz::after {
	content: '💤';
	position: relative;
	top: -0.5em;
	font-size: 80%;
}

.nav-item {
	padding: 0;
	border-right: 1px solid #ddd;
	border-left: 1px solid #ddd;
	margin: 0;
	margin-right: -1px;
}
.nav-item a {
	color: rgba(0, 0, 0, 0.5);
	margin: 0;
	padding: .4rem .8rem;
}
.nav-item a:hover {
	color: rgb(33, 37, 41);
}
.nav-item details.dropdown summary:not([role]) {
	border-radius: 0;
	margin-right: -1px;
	margin-left: -1px;
	font-size: .8rem;
}
nav details.dropdown {
	margin: 0;
}

.header-title {
	color: #898d90;
	font-weight: 400;
	vertical-align: middle;
}

.navbar-brand {
	font-size: 1.25rem;
	white-space: nowrap;
}
.navbar-brand:hover {
	text-decoration: none;
}
.navbar-brand img {
	margin-right: .5rem;
}



main {
	min-height: 400px;
	display: flex;
/*	flex-wrap: wrap;*/
}
main.single-column {
	flex-direction: column;
}

.column-nav {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 210px;
	height: 100%;
	border-right: 1px solid #ddd;
	margin-right: 1rem;
	line-height: 1.2;
	font-size: .85rem;
}
.column-nav ul:last-of-type {
	margin-right: 0;
}
.column-nav ul {
	margin-left: 0 !important;
}
.column-nav a {
	color: #495057;
	padding: .75rem 1rem;
	border-radius: 0;
}
.column-nav a:hover {
	text-decoration: none;
}
.column-nav a:hover:not(.active):not(.h5) {
	background-color: #eee;
}
.column-nav li:not(:last-child) a {
	border-bottom: 1px solid #eee;
}
.column-nav li a.active {
	color: #fff;
	background-color: #999;
	border-color: #999;
}
.active-arrow {
	float: right;
	display: none;
}
.column-nav li a.active .active-arrow {
	display: inline-block;
}

/* padding for accordion within menu */
.column-nav summary {
	padding-top: .75rem;
	padding-right: 1rem;
}
.column-nav details {
	margin-bottom: 0;
}



.column-nav h3 {
	margin-top: .9rem;
	margin-bottom: 0;
	padding-bottom: .3rem;
	border-bottom: 1px solid rgb(221, 221, 221);
	font-size: .9rem;
	font-weight: 350;
	color: #706d73;
}

#main-menu-button {
	margin-right: .8rem;
	cursor: pointer;
}

#main-menu.right-side {
	order: 2;
}
#main-menu.right-side .column-nav {
	margin-left: 1rem;
	margin-right: 0;
	border-right: 0;
}


.view-toggle-buttons {
	margin-bottom: 1rem;
}


/* Posts */

.list-group.posts li {
	display: flex;
	flex-direction: column;
}
.list-group.posts li .post-content {
	display: flex;
	flex-direction: row;
}
avatar.small {
	flex-shrink: 0;
	margin: .1rem;
	margin-right: 1rem;
}
.rounded-circle img {
	border-radius: 50%;
}
footer {
	margin-top: 1rem;
	font-size: .75rem;
}
footer ul {
	display: flex;
	flex-direction: row;
	justify-content: left;
	padding-left: 0;
	margin-bottom: 0;
}
footer ul li {
	margin-right: .35rem;
	margin-bottom: 0;
	visibility: hidden;
}
.focused-item footer ul li {
	visibility: visible;
}
.avatar-list {
	padding-left: .8rem;
	flex-wrap: wrap;
	display: flex;
}
.item-images {
	flex-wrap: wrap;
}
.item-images li {
	height: 86px;
	background-color: #f4f4f4;
	border: 1px solid #ccc;
	margin: .25rem;
	padding: 0;
	flex-direction: row !important;
}
.item-images a {
	padding: 2px;
	text-align: center;
	margin: 0 auto;
}
.item-images img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: 80px;
}

/* Profile */

card.profile {
	min-height: 5rem;
	margin-bottom: 2rem;
}

.profile .name {
	margin-top: -40px;
	margin-left: 20px;
}
.profile .name h4 {
	display: inline;
	position: relative;
	top: 20px;
	left: -0.5rem;
	font-size: 2.7vw;
}


/* Mini profile on hover */

card.mini-profile {

}


/* Composer */

.composer {
	margin-top: 1rem;
}
.composer textarea {
	font-size: .8rem;
}
.reply-composer {
	transition: max-height 0.3s ease-out;
}
.collapse-close {
	transition: max-height 0.3s ease-out;
	max-height: 0;
	overflow: hidden;
}
.submit-buttons {
	width: auto;
}
.submit-buttons button {
	width: auto;
	border-radius: 54px;
	padding: .375rem .75rem;
	margin-bottom: 0;
}

.anno-tab {
	display: none;
}
.composer-anno-group {
	display: flex;
	justify-content: right;
	margin-bottom: 0;
}
.composer-anno-group button,.pill-btn {
	border-radius: 10px;
	padding: .3rem .5rem;
	margin-left: .5rem;
	margin-bottom: 0;
}
.composer-recent-files {
	max-height: 20rem;
	overflow: auto;
	padding-left: .5rem;
}
.composer-recent-files li {
	display: flex;
	justify-content: space-between;
}
.composer-recent-files button {
	padding: .2rem .4rem;
	margin-bottom: .2rem;
	width: auto;
}
.files-for-post {
	margin-bottom: .5rem;
}
.files-for-post button {
	margin-bottom: .2rem;
}

/* Standard list sections */

section {
	max-width: 100%;
	width: 100%;
	font-size: 10pt;
	margin: 0 auto;
}
ul.list-group {
	display: flex;
	flex-direction: column;
	padding-left: 0;
}
ul.list-group > li {
	position: relative;
	display: block;
	padding: .75rem 1.25rem;
	background-color: #fff;
	border-left: 1px solid rgba(0,0,0,.125);
	border-right: 1px solid rgba(0,0,0,.125);
	border-bottom: 1px solid rgba(0,0,0,.125);
	margin-bottom: 0;
}
/* channels need more breathing room in lists */
ul.list-group > li.channel {
	padding: 1.5rem;
	padding-right: 2rem;
}
/* make footer li items visible on hover over parent li */
ul.list-group > li:hover footer li,ul.list-group > li:active footer li {
	visibility: visible;
}
.visible {
	visibility: visible !important;
}
ul.list-group:first-child {
	border-top: 1px solid rgba(0,0,0,.125);
}
ul.list-group li + section ul.list-group li {
	margin-top: -1px;
	border-top-width: 1px;
}
ul.list-group > li:hover {
	background-color: #eee;
}
ul.list-group li item span {
	word-break: break-word;
	white-space: pre-wrap;
}
card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	word-wrap: break-word;
	background-color: #fff;
	background-clip: border-box;
	border: 1px solid rgba(0,0,0,.125);
	border-radius: 0;
}
card-body {
	flex: 1 1 auto;
	min-height: 1px;
	padding: 1rem;
}
.card-title {
	margin-bottom: .75rem;
}

.show-sm,.show-md {
	display: none;
}
@media (min-width: 1536px) {
	.container {
		max-width: 75%;
	}
}
@media (min-width: 768px) {}
@media (max-width: 767px) {
	.hide-md {
		display: none;
	}
	.show-md {
		display: block;
	}
	#main-menu {
		overflow: hidden;
	}
	#main-menu-button {
		display: inline-block;
	}
	.force-show-md {
		display: block;
		position: fixed;
		top: 2.5rem;
		left: 0;
		z-index: 999;
		background-color: #f9f9f9;
	}
	.force-show-md .column-nav {
		margin-right: 0;
		border-bottom: 1px solid #ddd;
		padding-left: 1rem;
	}
}
@media (max-width: 576px) {
	#content {
		margin-left: calc(0px - var(--pico-spacing));
		margin-right: calc(0px - var(--pico-spacing));
	}
	.hide-sm {
		display: none;
	}
	.show-sm {
		display: block;
	}
	#main-menu-button {
		display: inline-block;
	}
	/* always show footer buttons on mobile */
	ul.list-group > li footer li {
		visibility: visible;
	}
	/* don't show chevron on toggle menu item */
	details.dropdown summary::after, details.dropdown > a::after, details.dropdown > button::after {
		display: none;
	}
}


/* Utility/status */

.nsfw summary,.spoiler summary {
	font-weight: bold;
	font-style: italic;
}

.post-new {
	transition: max-height 1s linear,color 6s;
	max-height: 0px;
/*	background-color: #FFF5F3 !important;*/

	color: #000 !important;
}
.post-new .time {
	transition: color 4s linear;
	color: #000 !important;
}

.post-expand {
	transition: max-height 1s linear,background-color 6s,color: 6s;
	background-color: inherit;
	max-height: 1000px;
	color: inherit;
}
.post-expand .time {
	transition: color: 6s;
	color: inherit;
}

.text-truncate span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap !important;
}

.text-uppercase {
	text-transform: uppercase !important;
}

.deleted {
	opacity: 0.7;
	background-color: #eee !important;
}

.focus-color {
	color: #d36854 !important;
	font-weight: bold;
}

.channel h6 {
	margin-bottom: 1rem;
}
.channel-title {
	color: #111 !important;
	padding: .2rem;
	border-radius: .2rem;
}
ul.list-group > li:hover .channel-title {
	background-color: #fff !important;
}
.channel-description {
	font-style: italic;
	font-size: 90%;
}

.unread {
	background-color: #fff3f0 !important;
}

.mention {
	background-color: #ffffd9 !important;
}

.focused-item {
	background-color: #f2f9ff !important;
}

iframe,.youtube-still-frame {
	max-width: 100%;
}
.youtube-still-frame {
	cursor: pointer;
}

/* search input */

input:not([type=checkbox],
[type=radio],
[type=range],
[type=file])[type=search] {
	padding-inline-start:1.8rem;
	background-position:.5rem;
	background-size:.9rem auto;
	border-radius: 0;
	font-size: 10pt;
}

#nav-search-button {
	display: none;
}
#nav-search {
	/*width: 6rem;*/
	text-overflow: ellipsis;
}
#nav-search:focus ~ #nav-search-button,#nav-search-form:focus-within #nav-search-button,#nav-search-button:focus {
	display: block;
}
#nav-search-advanced {
	display: none;
	padding: 1rem;
	background-color: #13171f;
	border-bottom: 1px solid #333;
}


/* Polls */
.poll-options li {
	padding: .2em;
}
.poll-options li div {
	font-size: .8em;
}
.your-poll-response span {
	color: blue;
	font-style: italic;
}
.winning-response span {
	font-weight: bold;
}


/* Files */

#files {
	visibility: hidden;
	position: fixed;
}

.files-dropzone {
	text-align: center;
	padding: 1rem;
	border: 3px dashed #666;
	border-radius: 10px;
	margin-top: 5px;
	font-size: 15px;
	user-select: none;
	cursor: pointer;
}

.page-dropzone.active-red {
	border-color: red;
}

.page-dropzone {
    position: fixed;
    z-index: 9999999999;
    width: 90%;
    height: 90%;
    background-color: rgba(50,50,80,.9);
    top: 5%;
    left: 5%;
	padding: 8rem;
	text-align: center;
	border: 3px dashed #b7b7b7;
	border-radius: 10px;
	margin-top: 5px;
	font-size: 15px;
	user-select: none;
	text-align: center;
	color: #fff;
	transition: visibility 175ms, opacity 175ms;
}

.file-details {
	display: flex;
	justify-content: space-around;
}
.file-image-frame {
	max-width: 50%;
	max-height: 400px;
	border: 1px solid #1e1e1e;
	padding: 2px;
	margin: 2rem;
	margin-top: 0;
	background-color: #393939;
}

#bar-holder p {
	margin: .5rem;
}
progress {
	margin-bottom: 1rem;
}