/* Context Menus */
.context-menu {
	display: block;
	background-color: #fff;
	min-width: 206px;
	max-width: 206px;
	box-sizing: border-box;
	padding: 3px 0;
	position: absolute;
	border: 1px solid #ccc;
}

.context-menu--active {
	display: block;
}

.context-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.context-menu ul li {
	display: block;
	margin-bottom: 4px;
	padding: 6px 24px;
	color: #363636;
	cursor: pointer;
	font-size: 12px;
	text-decoration: none;
}
.context-menu ul li:hover {
	color: #fff;
	background-color: #4281f4;
}

.context-menu ul li:last-child {
	margin-bottom: 0;
}

.editor-wrap {
	display: flex;
	flex-direction: row;
}

.editor-wrap > .editor-avatar {
	width: 50px;
	margin: 25px 15px 0 0;
}
.editor-wrap > .editor-avatar > img {
	border-radius: 50%;
}

.editor-wrap > .editor-contents {
	display: block;
	width: 100%;
	margin: 10px 0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	background: #f9f9f9;
	padding: 0;
	position: relative;
	border-radius: 6px;
}

.editor-wrap > .editor-contents > .editor-thread-options.flairs {
	display: none;
}
.editor-wrap > .editor-contents > .editor-thread-options.flairs.open {
	display: block;
}
.editor-wrap > .editor-contents > .editor-thread-options.flairs > .flair-item {
	display: inline-block;
	cursor: pointer;
	font-size: 14px;
	margin: 3px;
	padding: 4px 5px;
	border-radius: 3px;
	border: 1px solid #ccc;
}

.editor-wrap > .editor-contents > .editor-area > .editor-saved {
	position: absolute;
	bottom: 5px;
	right: 5px;
	pointer-events: none;
	opacity: 0;
	transition: .3s;
}

.editor-wrap > .editor-contents > .editor-area > .editor-saved.done {
	opacity: 1;
}

.editor-wrap > .editor-contents > .editor-optional-title {
	padding: 10px 10px 0 10px;
	display: flex;
}
.editor-wrap > .editor-contents > .editor-optional-title > *:nth-child(2) {
	margin-left: 5px;
	width: 85%;
}

.editor-wrap > .editor-contents > .editor-optional-title > input,
.editor-wrap > .editor-contents > .editor-thread-options > .option {
	padding: 10px;
	border-radius: 3px;
	font-size: 16px;
	background: #fff;
	display: flex;
	justify-content: center;
	border: 1px solid #ccc;
}

.editor-wrap > .editor-contents > .editor-thread-options {
	padding: 10px 10px 5px 10px;
	display: flex;
}
.editor-wrap > .editor-contents > .editor-thread-options > .option {
	display: inline-flex;
	cursor: pointer;
	user-select: none;
	padding: 9px;
	border-radius: 3px;
	font-size: 12px;
	flex: 1;
	margin: 0px 5px;
	background-color: #fff;
}
.editor-wrap > .editor-contents > .editor-thread-options > .option:last-of-type {
	margin-right: 0;
}
.editor-wrap > .editor-contents > .editor-thread-options > .option:first-of-type {
	margin-left: 0;
}
* {
	--editorhighlightcolor: #b9ebc3;
}
@keyframes optionUpdated {
	from {
		background-color: var(--editorhighlightcolor);
	}
	to {
	}
}
.editor-wrap > .editor-contents > .editor-thread-options > .option.flair {
	font-weight: bold;
}
.editor-wrap > .editor-contents > .editor-thread-options > .option.updated {
	animation: optionUpdated 1.5s normal forwards ease-in-out;
}
.editor-wrap > .editor-contents > .editor-thread-options > .option > span.txt {
	width: 90%;
}
.editor-wrap > .editor-contents > .editor-thread-options > .option.left > span.txt {
	margin-right: 5px;
}
.editor-wrap > .editor-contents > .editor-thread-options > .option.right > span.txt {
	margin-left: 5px;
}
.editor-wrap > .editor-contents > .editor-thread-options > .option > span.icon {
	width: 10%;
	min-width: 14px;
	font-size: 14px;
}





.editor-wrap > .editor-contents > .editor-optional-title > input,.editor-wrap > .editor-contents > .editor-optional-title > select {
	width: 100%;
	padding: 10px;
	border-radius: 3px;
	font-size: 16px;
	background: #fff;
}
.editor-wrap > .editor-contents > .editor-optional-title > *:nth-child(2) {
	margin-left: 5px;
	width: 85%;
}

.editor-wrap > .editor-contents > .editor-header {
	margin: 10px 0 0 0;
	height: 40px;
	position: relative;
	border-bottom: 1px solid #ccc;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
}

.editor-wrap > .editor-contents > .editor-header > .editor-buttons {
	position: absolute;
	right: 0;
	top: -3px;
	bottom: 0;
	padding: 10px;
	opacity: 1;
	transition: .3s;
}

.editor-wrap > .editor-contents > .editor-header > .editor-buttons > span {
	cursor: pointer;
	margin: 0 4px;
	width: 16px;
	height: 16px;
	font-size: 16px;
	position: relative;
}

.editor-wrap > .editor-contents > .editor-header > .editor-buttons > span > .tooltiptext {
	pointer-events: none;
	visibility: hidden;
	width: 80px;
	background-color: rgba(0, 0, 0, 0.6);
	color: #fff;
	text-align: center;
	padding: 10px 5px;
	position: absolute;
	z-index: 1;
	top: -5px;
	right: 125%;
	margin-left: -40px;
	opacity: 0;
	font-size: 11px;
	font-family: Arial, Helvetica, sans-serif;
	transition: opacity .2s;
}

.editor-wrap > .editor-contents > .editor-header > .editor-buttons > span > .tooltiptext::after {
	content: "";
	position: absolute;
	bottom: 50%;
	left: 100%;
	margin-top: -7px;
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent transparent rgba(0, 0, 0, 0.6);
}

.editor-wrap > .editor-contents > .editor-header > .editor-buttons > span:hover > .tooltiptext {
	visibility: visible;
	opacity: 1;
}

.editor-wrap > .editor-contents.previewing > .editor-header > .editor-buttons {
	opacity: 0;
	pointer-events: none;
}

.editor-wrap > .editor-contents.previewing > .editor-header > .editor-buttons > span {
	cursor: default;
}

.editor-wrap > .editor-contents > .editor-header > .editor-nav {
	margin: 0 10px;
}

.editor-wrap > .editor-contents > .editor-header > .editor-nav > span.tab {
	height: 40px;
	padding: 10px 16px;
	display: inline-block;
	cursor: pointer;
	border-left: 1px solid transparent;
	border-right: 1px solid transparent;
	border-top: 1px solid transparent;
	transition: .3s;
}
.editor-wrap > .editor-contents > .editor-header > .editor-nav > span.tab > img {
	height: 17px;
	pointer-events: none;
	margin-top: -2px;
}

.editor-wrap > .editor-contents > .editor-header > .editor-nav > span.tab.active {
	background: #fff;
	border-color: #ccc;
	border-radius: 3px 3px 0 0;
	cursor: default;
}


.editor-wrap > .editor-contents > .editor-preview {
	background: #fff;
	padding: 20px;
	word-wrap: break-word;
}


.editor-wrap > .editor-contents > .editor-preview .image > img {
	max-width: 100%;
}

.editor-wrap > .editor-contents.editing > .editor-preview,
.editor-wrap > .editor-contents.tenor > .editor-preview,
.editor-wrap > .editor-contents.upload-img > .editor-preview {
	display: none;
}

.editor-wrap > .editor-contents > .editor-area {
	background: #fff;
	padding: 0;
	position: relative;
}

.editor-wrap > .editor-contents.previewing > .editor-area {
	display: none;
}

.editor-wrap > .editor-contents.editing > .editor-tenor,
.editor-wrap > .editor-contents.previewing > .editor-tenor,
.editor-wrap > .editor-contents.upload-img > .editor-tenor {
	display: none;
}


.editor-wrap > .editor-contents.editing > .editor-upload-img,
.editor-wrap > .editor-contents.previewing > .editor-upload-img,
.editor-wrap > .editor-contents.tenor > .editor-upload-img {
	display: none;
}

.editor-wrap > .editor-contents.upload-img > .editor-upload-img {
	transition: opacity 0.3s;
}
.editor-wrap > .editor-contents.upload-img > .editor-upload-img.uploading {
	pointer-events: none;
	opacity: 0.4;
}

.editor-wrap > .editor-contents.upload-img > .editor-upload-img > label {
	display: block;
	background: #0f4c75;
	color: #fff;
	padding: 20px;
	max-width: 300px;
	margin: 10px auto;
	text-align: center;
	text-transform: uppercase;
	font-size: 11px;
	font-weight: bold;
	cursor: pointer;
}
.editor-wrap > .editor-contents.upload-img > .editor-upload-img > label > * {
	pointer-events: none;
}
.editor-wrap > .editor-contents.upload-img > .editor-upload-img > input {
	display: none;
}

.editor-wrap > .editor-contents > .editor-tenor > input {
	width: 100%;
	border: none !important;
	border-bottom: 1px solid #ccc !important;
	padding: 10px;
	font-size: 14px;
}
.editor-wrap > .editor-contents > .editor-tenor > textarea {
	border-top: 1px solid #ccc !important;
}
.editor-wrap > .editor-contents > .editor-tenor > .TenorElement {
	padding: 10px;
}
.editor-wrap > .editor-contents > .editor-area > textarea {
	width: 100%;
	border: none;
	outline: none;
	padding: 20px;
	resize: vertical;
	display: block;
	min-height: 30vh;
	box-sizing: border-box;
}

.editor-wrap > .editor-contents > .editor-submission {
	border-top: 1px solid #ccc;
	padding: 10px;
	text-align: right;
}

@media (max-width: 900px) {
	.editor-wrap > .editor-contents > .editor-header > .editor-buttons {
		overflow-x: scroll;
		max-width: 35vw;
		white-space: nowrap;
	}
	.editor-wrap > .editor-contents > .editor-thread-options {
		overflow-x: scroll;
		max-width: 100%;
		white-space: nowrap;
	}
	.editor-wrap > .editor-avatar {
		display: none;
	}
}
