/**
 *
 * @package phpBB Extension - mChat
 * @copyright (c) 2016 dmzx - http://www.dmzx-web.net
 * @copyright (c) 2016 kasimi - https://kasimi.net
 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
 *
 */

#mChat {
	position: absolute;
	visibility: hidden;
}

.mchat-wrapper li.header dd {
	width: 0;
}

#mchat-body {
	overflow: hidden;
	width: 100%;
}

#mchat-main {
	position: relative;
}

.icon-mchat {
	background-image: url("./images/icon_mchat.png");
}

.mchat-ucp fieldset hr:first-child, .mchat-ucp fieldset hr:last-child, .mchat-ucp fieldset hr + hr {
	display: none;
}

#mchat-confirm textarea {
	width: 100%;
	height: 100px;
}

#mchat-messages:not(.mchat-messages-static) {
	overflow-y: scroll;
}

#mchat-messages.mchat-messages-static {
	height: auto !important;
}

.mchat-message-wrapper {
	overflow: hidden;
}

.mchat-message-header > a {
	font-size: 1.2rem;
	display: block !important;
	text-align: center;
	float: left;
}

.mchat-time {
    font-size: 10px;
    color: #005868;
    text-align: center;
	padding-bottom: 1px;
	float: left;
	padding-top: 2px;
	padding-left: 10px;
}

.mchat-message {
	padding: 1px 10px 2px;
	overflow: hidden;
}

.mchat-message .postimage {
    max-width: 100%;
    max-height: 100px;
}

.mchat-message-flash {
	animation-name: flash-message;
	animation-duration: .4s;
	animation-timing-function: ease-out;
}

@keyframes flash-message {

	0% {
		background-color: #FFD070;
		opacity: 0;
	}

	100% {
		background-color: transparent;
		opacity: 1;
	}

}

.mchat-avatar {
	float: left;
	width: 40px;
	margin-right: 5px;
}

.mchat-avatar a, .mchat-avatar img {
	display: block;
}

.mchat-wrapper .mchat-buttons li {
	opacity: .3;
}

.mchat-wrapper li:hover .mchat-buttons li {
	opacity: .6;
}

.mchat-wrapper li:hover .mchat-buttons li:hover {
	opacity: 1;
}

.mchat-wrapper .mchat-buttons {
	float: right;
	list-style: none;
	padding-top: 0;
}

.mchat-wrapper .mchat-buttons > li {
	float: left;
	margin: 0 3px;
}

.mchat-wrapper .mchat-buttons .fa {
	font-size: 12pt;
}

.mchat-wrapper .mchat-buttons span {
	display: block;
	height: 0;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.mchat-icons-black .mchat-icon:before {
	background-image: url("./images/message_icons_black.png");
}

.mchat-icons-white .mchat-icon:before {
	background-image: url("./images/message_icons_white.png");
}

.mchat-icon:before {
	content: '';
	background-repeat: no-repeat;
	width: 16px;
	height: 16px;
	display: block;
	float: right;
}

.mchat-icon-mention:before		{ background-position: -2px -2px; }
.mchat-icon-edit:before			{ background-position: -22px -2px; }
.mchat-icon-pm:before			{ background-position: -42px -2px; }
.mchat-icon-quote:before		{ background-position: -62px -2px; }
.mchat-icon-like:before			{ background-position: -82px -2px; }
.mchat-icon-delete:before		{ background-position: -102px -2px; }
.mchat-icon-permissions:before	{ background-position: -122px -2px; }
.mchat-icon-ip:before			{ background-position: -142px -2px; }

.mchat-text {
	overflow: hidden;
	clear: both;
	max-width: 100%;
	padding: 4px 10px;
	min-height: 25px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	margin-top: 1px;
	margin-bottom: 2px;
	text-align: justify;
	display: flex;
	align-items: center;
}

.mchat-notification-message .mchat-message-header {
    padding: 1px 0;
}

.mchat-notification-message .mchat-time {
    display: none;
}

.mchat-notification-message .mchat-text {
    background-color: transparent;
    font-family: 'Oswald';
	clear: none;
    padding: 0 10px;
    min-height: auto;
    margin-top: -4px;
}

.mchat-notification-message .mchat-buttons {
    padding-top: 4px;
}

.mchat-text strong {
	font-weight: bold !important;
}

.mchat-text li {
	display: list-item !important;
	list-style-type: inherit !important;
	list-style-position: inside;
}

.mchat-text ul, .mchat-text ol {
	list-style-position: inside;
}

.mchat-text ul {
	list-style-type: disc;
}

.mchat-text ol {
	list-style-type: decimal;
}

.mchat-text ul ul {
	list-style-type: circle;
}

.mchat-text blockquote, .mchat-text .codebox, .mchat-text ul, .mchat-text ol {
	margin-bottom: 5px;
	margin-left: 1em;
}

.mchat-mention strong {
	color: inherit !important;
}

.mchat-mention {
	cursor: pointer;
	width: 16px;
	height: 16px;
}

#mchat-no-message {
	font-size: 1.2em;
}

#mchat-character-count.invisible {
	visibility: hidden;
}

#mchat-panel {
	text-align: center;
	max-height: initial;
	overflow: hidden;
	padding: 0 5px 5px 5px;
	margin: 0;
	border-radius: 0;
	background-color: #e5e5e5;
	border: none;
}

#mchat-form {
	clear: both;
}

#mchat-input {
	cursor: text;
	width: 80% !important;
	min-width: 80% !important;
	font-size: 1.1em;
	padding: 5px 5px 4px;
	margin: 5px auto;
	font-family: "Source Sans Pro";
}

textarea#mchat-input {
	min-height: 2.6rem;
	margin: 0;
	vertical-align: top;
}

#mchat-buttons {
	margin: 5px 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

#mchat-buttons > .button-simple {
	min-width: 33.33%;
}

#mchat-buttons > #mchat-add {
	min-width: 20%;
}

#mchat-buttons > .button:hover {
	background-color: #f9f9f9 !important;
}

#mchat-buttons > #mchat-add {
	background-color: #f9f9f9;
}

#mchat-buttons > .button .icon {
	font-size: 1.3em !important;
}

#mchat-bbcodes {
	padding: 0 5px;
	display: none;
}

#mchat-bbcodes #format-buttons {
	margin: 0 0 5px;
}

#mchat-bbcodes #colour_palette label {
	display: none;
}

#mchat-bbcodes #colour_palette table {
	margin: 0 auto 5px;
}

#mchat-bbcodes #colour_palette td a.remember-color {
	box-shadow: 0 0 0 1px #F00;
}

#mchat-smilies {
	padding: 0;
}

#mchat-status-ok {
    visibility: hidden;
}

#mchat-status-icons {
	position: relative;
	display: inline-block;
	vertical-align: text-top;
}

#mchat-status-icons i {
	top: 0;
	left: 0;
	width: 16px;
	height: 16px;
	float: left;
}

#mchat-status-icons i.fa {
	font-size: 12pt;
}

#mchat-status-error {
	display: none;
}

.mchat-status-error {
	background-image: url("./images/error.gif");
}

#mchat-status-ok {
	display: none;
}

.mchat-status-ok {
	background-image: url("./images/ok.gif");
}

#mchat-status-load {
	display: none;
	cursor: wait;
}

.mchat-status-load {
	background-image: url("./images/load.gif");
}

.mchat-status-paused {
	background-image: url("./images/paused.gif");
}

.mchat-footer li {
	display: inline;
	white-space: nowrap;
	color: #005868 !important;
	font-family: 'Oswald';
	font-size: 1.2rem;
}

#mchat-user-sound {
	margin: 0;
}

#mchat-user-sound + label {
	padding-right: 0;
	padding-left: 5px;
}

#mchat-legend {
	clear: both;
}

.mchat-static, #mchat-stats, #mchat-whois, #mchat-refresh, #mchat-legend {
	padding: 5px 0 0;
	text-align: left;
	font-size: 1.1em;
}

#mchat-panel > #mchat-whois {
	float: left;
}

.mchat-copyright {
	position: relative;
	top: 1px;
	font-weight: bold;
	font-size: 1.1em;
}

.mchat-static {
	padding: 5px 5px 7px !important;
}

#mchat-colour {
	display: none;
}

@media only screen and (min-width: 480px) {

	#mchat-input {
		width: 90% !important;
		min-width: 90% !important;
	}
	
	#mchat-buttons > #mchat-add {
		min-width: 10%;
	}

}

@media only screen and (min-width: 700px) {

	#mchat-input {
		width: 50% !important;
		min-width: 50% !important;
		max-width: 50%;
		margin-bottom: 0px;
		
	}
	
	#mchat-buttons > .button {
		min-width: 7%;
	}
	
	#mchat-buttons > #mchat-add {
		min-width: 7%;
	}
}

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

	#mchat-body {
		overflow: visible;
	}
	
	#mchat-buttons {
		justify-content: left;
	}
	
	#mchat-buttons > :nth-child(n+2) {
		text-align: center;
		margin: 0;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
		display: inline-block;
	}
	
	#mchat-buttons > :nth-child(n+3) {
		min-height: 4rem;
	}

}

@media only screen and (min-width: 580px) {
	.mchat-message-header {
		float: left;
		width: 150px;
		background-color: #ddd;
	}
	
	.mchat-message-header > a {
		float: none;
		font-size: 1.4rem;
	}
	
	.mchat-time {
		float: none;
		padding-top: 0;
		padding-left: 0;
	}
	
	.mchat-text {
		padding: 0px 10px;
		min-height: 32px;
		margin-left: 6px;
		max-width: calc(100% - 290px);
		float: left;
		clear: none;
		margin-top: 0;
		margin-bottom: 0;
	}
	
	.mchat-notification-message .mchat-text {
		margin-top: 0;
	}
	
	.mchat-wrapper .mchat-buttons {
		padding-top: 10px;
	}
	
	.mchat-notification-message .mchat-buttons {
		padding-top: 2px;
	}
}

/* Compatibility with Advanced BBCode Box extension */

#mchat-panel #abbc3_buttons {
	margin: 0 !important;
	padding-bottom: 5px;
}

#mchat-panel #abbc3_buttons .abbc3_buttons_row {
	margin: 0 auto !important;
}

/* Compatibility with Collapsible Categories extension */

.mchat-category {
	display: none;
	height: 0;
}

.mchat-collapse {
	display: none;
	line-height: 0;
}

.hidden-category + .forabg #mchat-body .topiclist.forums {
	display: block;
}
