@media only screen and (min-device-width : 200px) and (max-device-width : 1000px) {
	
	/* hide stuff */
	.nomagic-switcher, .hidemobile, .search, .navbar, .mobile_checkbox_hide,
	#settings-settings-button, #settings-styles-button {
		display: none;
	}
	.de-btn-hide, .de-btn-expthr, .de-btn-fav-sel,
	.de-btn-fav, .de-btn-src, .de-btn-rep {
		display: none !important;
	}
	.styles_mobile, .boards_mobile {
		display: block;
		margin-top: 10px;
		margin: 5px;
		float: right;
	}
	.nomagic{
		left: 26% !important;
	}
	.logo {
		margin-bottom: 0 !important;   
	}
	.postername {
		margin: 3px; 
	}
	.reply {
		min-width: 100% !important;
		position: relative;
		border: none;
	}
	.overlay-content {
		min-width: 400px;
	}
	.nomagic {
		width: ebola!important;
	}
}

@media screen and (max-width: 1000px) {
	body {
		margin: 0!important;
		padding: 4px;
	}
	.post-body blockquote {
		margin: 8px 1em 0 1em;
	}
	.psttable {
		 width: 100%!important;
	 }
	.file .thumb {
		max-width: 200px;
		max-height: 200px;
		width: auto!important;
		height: auto!important;
	}
	.mobile_file_download {
		display: none;
	}
	.filesize > a[download]:before {
		content: "⇣";
		font-size: 14px;
		padding: 0px 2px;
		margin-left: 2px;
	}
}

@media screen and (max-width: 700px) {
	body {
		margin: 0!important;
		padding: 0 1px;
		font-size: 14px;
	}
	.post-body blockquote {
		margin: 4px 5px 0 5px;
	}
	.file .thumb {
		max-width: 150px;
		max-height: 150px;
		width: auto!important;
		height: auto!important;
		margin: 1px 10px;
	}
	.mobile_filename_hide > span {
		display: inline-block;
		text-overflow: ellipsis;
		max-width: 50px;
		overflow: hidden;
		white-space: nowrap;
		vertical-align: text-bottom;
	}
	.mobile_date {
		display: none;
	}
	.short_date {
		display: inline;
	}
}

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

	/* Mobile modal controls: keep close button clear of gallery search / API label */
	.modal__inner {
		width: calc(100% - 20px);
		height: calc(100% - 20px);
		padding: 3.4em 10px 1em;
	}
	.modal__close {
		right: 10px;
		top: 10px;
		z-index: 10;
	}
	.modal__r {
		top: 3.4em;
		left: 10px;
		right: 10px;
	}
	#passcode_search, #dbsearch {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	#versdb {
		text-align: right;
	}
	#settings-settings-button {
		display: inline-block !important;
	}
	#settings-main, #settings-styles {
		left: 10px !important;
		right: 10px !important;
		width: calc(100vw - 20px) !important;
		min-width: 0 !important;
		max-width: calc(100vw - 20px) !important;
		max-height: calc(100vh - 60px) !important;
		overflow-y: auto;
	}
}
