/* Hide native phpbb BBCode buttons */
#imgurAnchor, /* flat boots */
#format-buttons,
#core-bbcode-buttons,
#custom-bbcode-buttons {
	display: none;
}

/* ABBC3 BBCode buttons */
#abbc3_buttons {
	margin: 15px 0 2px;
}

#abbc3_buttons select {
	vertical-align: middle;
	background-color: #ffffff !important;
	border: 1px solid #b4bac0;
	color: #000000 !important;
	height: 24px;
	margin: 4px;
	padding: 0 0 0 3px;
}

.abbc3_button {
	font-size: 11px;
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
	background: transparent no-repeat center;
	background-size: 22px;
	border: 1px solid transparent;
	display: inline-block;
	min-width: 22px;
	height: 22px;
	margin: 4px 0;
	padding: 0;
	-ms-touch-action: manipulation;
	touch-action: manipulation;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.abbc3_button:hover {
	background-color: #ffffff;
	border: 1px solid #bc2a4d;
	cursor: pointer;
}

.abbc3_buttons_row {
	text-align: left;
	background: #4c3f32 -moz-linear-gradient(to top,rgba(255,255,255,.25) 0,rgba(255,255,255,0) 100%);
	background: #4c3f32 linear-gradient(to top,rgba(255,255,255,.25) 0,rgba(255,255,255,0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#312A21', endColorstr='#4c3f32',GradientType=0 );
	border-color: #625040;
	border-style: solid;
	display: block;
	width: 80%;
	min-height: 30px;
	max-height: 30px;
	margin: 0 !important;
	padding: 0 0 0 4px;
}

.abbc3_buttons_row:first-child {
	border-width: 1px 1px 0 1px;
	border-radius: 2px 2px 0 0;
}

.abbc3_buttons_row:last-child {
	border-width: 0 1px 1px 1px;
	border-radius: 0 0 2px 2px;
}

.rtl .abbc3_buttons_row {
	text-align: right;
}

/* tweaks for subsilver styles */
form td .abbc3_buttons_row {
	width: 98%;
}

/* tweaks for ACP bbcode editor */
#main #abbc3_buttons {
	margin-left: 96px;
}

#main #abbc3_buttons .abbc3_buttons_row {
	width: 95%;
}

/* BBCode wizard */
#bbcode_wizard {
	font-size: 0.625rem;
	background: #ffffff;
	border: 5px solid #12a3eb;
	border-radius: 11px;
	box-shadow: 2px 2px 4px #555555;
	position: fixed;
	z-index: 500;
	top: 50%;
	left: 50%;
	display: none;
	width: 500px;
	margin-top: -100px;
	margin-left: -250px;
	padding: 5px;
}

/* responsive design */

@media only screen and (max-width: 700px), only screen and (max-device-width: 700px) {
	#abbc3_buttons select { display: none; }
	.abbc3_buttons_row { width: auto; }
}

@media only screen and (max-width: 500px), only screen and (max-device-width: 500px) {
	#bbcode_wizard {
		width: 300px !important;
	}
}
