/* Responsive design */
#wrap {
	width: auto;
	min-width: 300px;
}

.attachbox {
	max-width: 95.5%;
}

select {
	max-width: 450px;
}

@media only screen and (max-width: 700px), only screen and (max-device-width: 700px)
{
	.site-description span, #search-box, #colour_palette td:nth-child(2n), li.header dd.mark, dd.posts, dd.responsive, th.mark, th.responsive, td.responsive, .statistics, .birthday {
		display: none;
	}

	#page-body, #simple-wrap, .footer, .post .postbody {
		padding: 5px;
	}

	.rside, .rside.author, .postprofile {
		width: 140px;
	}

	.lside {
		margin-right: 140px;
	}

	.rtl .lside {
		margin-left: 140px;
		margin-right: 0;
	}

	dd.moderation {
		width: 37%;
	}

	.postprofile img, .attachbox {
		max-width: 93.5%;
	}

	.column1, .column2, fieldset.fields2 dl {
		float: none;
		width: 99.5%;
	}

	fieldset.forum-selection {
		margin: 0 5px;
	}

	div.forum-selection fieldset.jumpbox {
		margin: 5px;
	}

	dd img {
		max-width: 280px;
	}

	.autowidth {
		width: 85% !important;
	}

	#format-buttons, fieldset.quickmod {
		margin-top: 0;
	}

	#message-box textarea {
		height: 14em;
	}

	#cp-main .buttons {
		margin-bottom: 1px;
	}
}

@media only screen and (max-width: 500px), only screen and (max-device-width: 500px)
{
	.headerbar, .footer, .simple-footer, h3.panel-header span.rside, div.rside, dt.responsive, span.responsive, .forum-image, .status, .permissions, .whosonline span, .rank-img, .info, dd.lastpost, dd.time, #tabs, #navigation, #cp-menu li.cp-options, .signature img, .avatar, .postprofile img, .postprofile br {
		display: none;
	}

	h2 {
		margin: 5px 0;
	}

	#cp-main h2 {
		margin: 5px;
	}

	li.header dd.moderation {
		white-space: nowrap;
	}

	span.rside.author {
		float: right;
		width: auto;
		margin-right: 0;
	}

	.rtl span.rside.author {
		float: left;
		margin-left: 0;
	}

	.site-description, .main-menu {
		padding: 0;
	}

	.main-menu li a {
		padding: 0 5px;
	}

	.sub-menu, .panel {
		padding: 5px;
	}

	.link-menu li ul {
		padding-top: 5px;
	}

	.lside {
		width: 98%;
	}

	.postprofile, .rtl .postprofile {
		float: none;
		width: 100%;
		min-height: 60px;
		overflow: auto;
		margin: 0;
		padding: 5px;
		border: none;
		border-bottom: 1px solid #D8DCE5;
	}

	.postprofile dt, .postprofile dd, .panel p, .content p, ul.navlinks li {
		margin: 0;
	}

	th.name {
		width: 30%;
	}

	.responsive-tabs li {
		float: left;
		padding: 6px 0;
		position: relative;
		list-style: none;
		background-color: #EAEDF4;
		border-right: 1px solid #D8DCE5;
	}

	.responsive-tabs li span {
		display: block;
		padding: 0 18px 0 10px;
		line-height: 16px;
		background: url("./images/icons_16x16.png") 100% 0 no-repeat;
		font-size: 1.2em;
		text-decoration: none;
	}

	.rtl .responsive-tabs li span {
		background-image: url("./images/icons_16x16_rtl.png");
	}

	.responsive-tabs li span:hover {
		cursor: default;
	}

	.responsive-tabs li ul, .responsive-tabs li ul li  {
		width: 15em;
		padding: 0;
		background: none;
		border: none;
	}

	.responsive-tabs li ul {
		position: absolute;
		top: 28px;
		left: 0;
		visibility: hidden;
		z-index: 1;
		box-shadow: 2px 2px 2px 0 rgba(35, 35, 35, 0.1);
	}

	.responsive-tabs li:hover ul {
		visibility: visible;
	}

	.responsive-tabs li ul li a {
		display: block;
		padding: 5px 10px;
		border-right: none;
		border-bottom: 1px solid #f9f9f9;
		background-color: #EAEDF4;
		font-size: 1.2em;
	}

	.responsive-tabs li ul li:last-child a {
		border-bottom: none;
	}

	.responsive-tabs li ul, .responsive-tabs li ul li:last-child a {
		border-bottom-left-radius: 5px;
		border-bottom-right-radius: 5px;
	}

	.responsive-tabs li ul li a:hover {
		background-color: #536DA5;
		text-decoration: none;
		color: #fff;
	}

	.responsive-tabs {
		background: #fff url("./images/bg_row.png") 0 100% repeat-x;
		border-bottom: 1px solid #D8DCE5;
	}

	fieldset dt, .rtl fieldset dt, fieldset.fields1 dt, .rtl fieldset.fields1 dt, fieldset.polls dt, .rtl fieldset.polls dt, dl.details dt, .rtl dl.details dt {
		float: none;
		width: auto;
	}
	
	dl.details dt {
		text-align: left;
	}

	.rtl dl.details dt {
		text-align: right;
	}

	fieldset dd, fieldset.fields1 dd, fieldset.polls dd, dl.details dd {
		margin-left: 0;
	}

	.rtl fieldset dd, .rtl fieldset.fields1 dd, .rtl fieldset.polls dd, .rtl dl.details dd {
		margin-right: 0;
	}

	fieldset.polls dd {
		width: 20%;
	}

	dd label, fieldset.display-options label, fieldset.display-actions {
		white-space: normal;
	}

	fieldset.polls dd.resultbar {
		width: 65%;
		padding: 0;
	}

	.pm-panel-header ul.linklist {
		overflow: visible;
	}

	select {
		max-width: 280px;
	}

	#message-box textarea {
		height: 9em;
	}

	.responsive-tabs, #tabs.options-tabs {
		display: block;
	}
}