/**
 *
 * @package phpBB Extension - mChat Rooms Addon
 * @copyright (c) 2016 kasimi - https://kasimi.net
 * @license proprietary
 *
 */

.mchat-wrapper-rooms {
	display: -webkit-box;
	   display: -ms-flexbox;
	        display: flex;
	-webkit-box-flex: 1;
	    -ms-flex: 1;
	        flex: 1;
	width: 100%;
}

.mchat-wrapper-rooms.hidden {
	display: none;
}

.mchat-wrapper-rooms #mchat-body {
	-webkit-box-flex: 1;
	    -ms-flex: 1 1 auto;
	        flex: 1 1 auto;
}

#mchat-body.collapsible[style*="display: none"] + .mchat-rooms-body {
	display: none;
}

#notification_list {
	z-index: 5;
}

#mchat-rooms hr {
	margin: 1px 12px;
}

.mchat-rooms-body {
	display: -webkit-box;
	    display: -ms-flexbox;
	        display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	-webkit-box-flex: 0;
	    -ms-flex: 0 0 280px;
	        flex: 0 0 280px;
	min-height: 100%;
	max-height: 305px;
	max-width: 180px;
	overflow: hidden;
	padding: 5px 10px;
	margin: 12px 15px 12px 0;
/*	z-index: 1; */
	box-shadow: 0 0 4px white;
	border-radius: 10px;
}

.mchat-fixed-wrapper .mchat-rooms-body {
	-webkit-box-flex: 0;
	    -ms-flex: 0 0 auto;
	        flex: 0 0 auto;
}

.mchat-fixed-wrapper .mchat-wrapper-rooms #mchat-body {
	-webkit-box-ordinal-group: 2;
	    -ms-flex-order: 1;
	        order: 1;
}

.mchat-fixed-wrapper .mchat-wrapper-rooms {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-flow: column;
	        flex-flow: column;
	-webkit-box-flex: 1;
	    -ms-flex: 1 1 auto;
	        flex: 1 1 auto;
}

.mchat-fixed-wrapper-collapsed .mchat-wrapper-rooms {
	display: none;
}

.mchat-rooms-header {
	text-align: center;
}

.mchat-rooms-header h3 {
	font-size: 13px;
	margin: 0;
	text-transform: none !important;
	border-bottom: none !important;
}

.mchat-rooms-header a {
	font-size: 0.85em;
}

.mchat-rooms-header .icon {
	font-size: 12px;
}

.mchat-rooms-header-menu li {
	display: inline-block;
}

.mchat-rooms-header-menu li:not(:first-child)::before {
	content: '\2022\A';
}

#mchat-rooms {
	-webkit-box-flex: 1;
	    -ms-flex: 1 1 auto;
	        flex: 1 1 auto;
}

#mchat-rooms .sortable-placeholder {
	border: 2px dashed #0076B1;
}

.mchat-room.sortable:hover {
	border-left: 2px dashed #0076B1;
	padding-left: 5px !important;
}

.mchat-room.entered.sortable:hover {
	padding-left: 6px !important;
}

.mchat-room {
	padding: 5px 5px 5px 7px !important;
	cursor: pointer;
	font-size: 1.2em;
	border-left: 2px solid #777;
	border-right: 2px solid #777;
	border-radius: 16px;
}

#mchat-rooms li.row {
	border-top-color: #777 !important;
	border-bottom-color: #777 !important;
}


#mchat-rooms li.active.row {
	border-top-color: #eac712 !important;
	border-bottom-color: #eac712 !important;
}

.mchat-room.active .mchat-room-name {
	color: #eac712;
}

.mchat-room .mchat-rooms-new-messages {
	margin-left: 5px;
	top: 0;
}

.mchat-room .mchat-rooms-new-messages.badge {
	color: #FFF;
	padding: 2px 6px;
	font-weight: bold;
}

.mchat-room.entered {
	border-left: 3px solid darkgrey;
	border-right: 3px solid darkgrey;
	padding: 4px 5px 4px 6px !important;
}

.mchat-room.active {
	border-left: 3px solid #eac712;
	border-right: 3px solid #eac712;
}

.mchat-room.entered .mchat-rooms-button-leave {
	display: block;
}

.mchat-room .badge {
	float: none;
}

.mchat-room-protected .icon,
.mchat-room-private .icon {
	text-shadow: .5px .5px 1px grey;
	margin: 0 5px;
}

.mchat-room-protected .icon {
	color: #F6CD71;
}

.mchat-room-private .icon {
	color: #78BD78;
}

@-webkit-keyframes mchat-rooms-flash {
	0%	{ opacity: 1; }
	33%	{ opacity: 0.2; }
	66%	{ opacity: 1; }
}

@keyframes mchat-rooms-flash {
	0%	{ opacity: 1; }
	33%	{ opacity: 0.2; }
	66%	{ opacity: 1; }
}

.mchat-room .mchat-buttons {
	margin-top: 0;
}

.phpbb_alert .mchatrooms-type {
	margin-bottom: 10px;
}

.phpbb_alert .mchatrooms-type-description {
	margin: 5px 0 0 39px;
	max-width: 170px;
}

.phpbb_alert .mchatrooms-type span {
	vertical-align: -1px;
}

.phpbb_alert #mchatrooms-confirm textarea {
	resize: vertical;
	min-height: 100px;
	color: #333;
}

.phpbb_alert #mchatrooms-confirm label {
	padding: 0;
	margin: 0 10px 0 0;
	display: inline;
	cursor: pointer;
}

.phpbb_alert #mchatrooms-confirm input[type="radio"] {
	vertical-align: text-bottom;
}

.phpbb_alert .mchat-rooms-users {
	list-style: none;
}

ul.topiclist li.hidden {
	display: none;
}

.mchat-rooms-dropdown {
	float: left;
}

.mchat-rooms-dropdown > * {
	vertical-align: middle;
}

#mchat-messages {
	width: 100%;
	-webkit-box-flex: 1;
	    -ms-flex-positive: 1;
	        flex-grow: 1;
}

#rooms[credits]:hover::after {
	content: attr(credits);
	position: absolute;
	top: 47.0%;
	background-color: rgba(30,30,30,0.3);
	border: 1px solid #777;
	border-radius: 4px;
	color: #eac712;
	font-weight: bold;
	font-size: 10px;
	padding: 0 5px 2px;
}

#rooms-image {
	scale: 0;
	transform: rotateZ(-90deg);
	height: 122px;
	max-width: 156px;
	background: #444;
	border: 1px solid #777;
	border-radius: 20%;
	box-shadow: 0px 0px 2px 2px #aaa;
	-webkit-animation: zoomInOut 10s;
	animation: zoomInOut 10s;
}

/* zoomInOut keyframe: Zooms out the current image and zooms in the new image with a 90deg rotation. */
@keyframes zoomInOut {
	  0% { scale: 0;transform: rotateZ(-90deg); }
	 15% { scale: 1;transform: rotateZ(0deg); }
	 87% { scale: 1;transform: rotateZ(0deg); }
	100% { scale: 0;transform: rotateZ(90deg); }
}

@-webkit-keyframe zoomInOut {
	  0% { scale: 0;transform: rotateZ(-90deg); }
	 15% { scale: 1;transform: rotateZ(0deg); }
	 87% { scale: 1;transform: rotateZ(0deg); }
	100% { scale: 0;transform: rotateZ(90deg); }
}

/* flipInOut keyframe: Image closes with a horizontal flip and opens with a vertical flip. */
@keyframes flipInOut {
	  0% { transform: rotateY(90deg); }
	 24% { transform: rotateY(0deg); }
	 85% { transform: rotateY(0deg); }
	100% { transform: rotateY(-90deg); }
}

@-webkit-keyframe flipInOut {
	  0% { transform: rotateX(90deg); }
	 24% { transform: rotateX(0deg); }
	 85% { transform: rotateY(0deg); }
	100% { transform: rotateY(-90deg); }
}

/* spinOut keyframe: Rotates the image to the left a little and spins it to the right 9 times real fast then the new image opens. */
@keyframes spinOut {
	  0% { transform: rotateZ(0deg); }
	 92% { transform: rotateZ(0deg); }
	 97% { transform: rotateZ(-90deg); }
	100% { transform: rotateZ(-3555deg); }
}

@-webkit-keyframe spinOut {
	  0% { transform: rotateZ(0deg); }
	 92% { transform: rotateZ(0deg); }
	 97% { transform: rotateZ(-90deg); }
	100% { transform: rotateZ(-3555deg); }
}

@media only screen and (max-width: 699px), only screen and (max-device-width: 699px) {
	.mchat-rooms-body {
		display: none;
	}
}


@media only screen and (max-width: 700px), only screen and (max-device-width: 700px) {
	.mchat-wrapper-rooms {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		    -ms-flex-flow: column;
		        flex-flow: column;
		-webkit-box-ordinal-group: 3;
		    -ms-flex-order: 2;
		        order: 2;
	}

	.mchat-rooms-body {
		-webkit-box-flex: 0;
		    -ms-flex: 0 0 100%;
		        flex: 0 0 100%;
		border: none;
	}

	#mchat-body {
		-webkit-box-flex: 0;
		    -ms-flex: 0 0 100%;
		        flex: 0 0 100%;
		-webkit-box-ordinal-group: 3;
		    -ms-flex-order: 2;
		        order: 2;
	}

	#mchat-messages {
		-webkit-box-ordinal-group: 3;
		    -ms-flex-order: 2;
		        order: 2;
	}
}
