/*
Dawn of a New 4chan (4chan.org) by Zixaphir
Made in Notepad++ using Firebug

This text is free. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, Version 2, as published by Sam Hocevar. See
http://sam.zoy.org/wtfpl/COPYING for more details.
*/
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("boards.4chan.org") {
	img {
		max-width: 850px;
		height : auto !important;
	}
}

@-moz-document domain("4chan.org"), domain("7chan.org") {
/*
-------------------
| Cleanup
-------------------
*/
	div.logo img, div#logo, div#announce, #ft, .yui-g, #navtopr, .warnicon,
	.doubledash, small, td.rules, #rules, td[style="padding: 10px 7px 7px 7px;"],	td[style="padding: 18px 7px 18px 7px;"],
	td[style="padding: 10px 7px 7px;"], td[style="padding: 18px 7px;"],
	.postarea input[type="file"] > input[type="button"],
	.reply input[type="file"] > input[type="button"], #recaptcha_tagline,
	td[style="padding: 4px 7px 12px;"], td[style="padding: 4px 7px 12px 7px;"],
	.refreshBtn, body>br, #nl, img[src*="http://static.4chan.org/"],
	html body div.logo>br:nth-of-type(1), a[title="Failure"], #adminbar,
	.notice, a[href="https://www.7chan.org/news.php?p=faq#xchan"], .replymode {
		display: none !important;
	}
	
/*
-------------------
| Spoiler Image Fix
-------------------
*/
img[src="http://static.4chan.org/image/spoiler-v.png"] {
	display: block !important;
}

/*
-------------------
| Defaults
-------------------
*/
	html, body {
		background-color: #dAbf58 !important;
		background-image: url("http://img140.imageshack.us/img140/4572/dawnf.png") !important;
		background-attachment: fixed !important;
		background-repeat: no-repeat !important;
		background-position: right bottom !important;
		padding: 0 !important;
		margin: 0 !important;
		font-size: 10pt;
		color: #6e3c10 !important;
	}

	* {
		font-family: "Calibri", "DejaVu Sans", "Verdana" !important;
		text-decoration: none !important;
	}

	hr {
		border: none !important;
		border-top: 0 transparent solid;
		padding: 0 !important;
		height: 0;
		width: 100% !important;
	}

	h1, h2, h3, h4, h5, h6, .boxbar h2 {
		color: #6e3c10 !important;
		background-color: transparent !important;
	}

	a, a:visited  {
		color: #9e6c40 !important;
	}

	a:hover {
		color: #6e3c10 !important;
	}

	a:active {
		color: #6e3c10 !important;
	}

	input, input[type="submit"], input[type="button"], select, button {
		-moz-appearance: none;
		-webkit-appearance: none !important;
		background: transparent;
		border: 1px #dabf58 solid !important;
		color: #6e3c10;
	}

	input:hover, input[type="submit"]:hover, input[type="button"]:hover {
		background-color: #dabf58;
	}

	input[type="checkbox"] {
		-moz-appearance: none !important;
		-webkit-appearance: none !important;
		background: rgba(255,201,155,.4) !important;
		border: 1px solid rgba(255,201,155,.3) !important;
		height: 10px !important;
		width: 10px !important;
		-moz-border-radius: 2px !important;
		-webkit-border-radius: 2px !important;
		border-radius: 2px !important;
	}

	.reply input[type="checkbox"] {
		border: 1px solid #dabf58 !important;
	}

	input[type="checkbox"]:checked {
		background: rgba(255,201,155,.4) !important;
	}

	td {
		font-size: 10pt;
		margin: 0;
	}

	.deletebuttons br {
		display: none;
	}

	.filesize, .filesize a, a.linkmail, a.quotejs, .omittedposts, .abbr {
		font-size: 8pt !important;
		color: #310  !important;
	}

	span.filetitle, .replytitle {
		color: #420 !important;
	}

	.postername, .commentpostername {
		color: #49280b !important;
	}

	.postertrip, .subject {
		color: #310 !important;
	}

/*
-------------------
| Post Successful
-------------------
*/
	table[style="font-family:times,serif;font-size:36pt;text-align:center;width:100%;height:300px;"]>tbody>tr>td>b {
		font-size: 40pt !important;
		text-shadow: -3px 0 1px rgba(255,255,255,0.5), 0 3px 1px rgba(255,255,255,0.5), 3px 0 1px rgba(255,255,255,0.5), 0 -3px 1px rgba(255,255,255,0.5);
	}

/*
-------------------
| Front Page
-------------------
*/
	#doc {
		margin-top: 200px !important;
	}

	#boards, #disclaimer-dialog, #bd {
		background-color: transparent !important;
		border: 0 !important;
		-moz-border-radius: 3px;
		-webkit-border-radius: 3px;
		border-radius: 3px;
	}

	.boxbar, .hd {
		background-color: transparent !important;
	}

	.top-box .menubutton {
		background-image: none !important;
	}

	.warning {
		color: #000 !important;
	}

/*
-------------------
| Status
-------------------
*/
	#header, #header-wrapper {
		border: none !important;
	}

	#wrap2 {
		background-color: rgba(255,201,155,0.5) !important;
		-moz-border-radius: 3px;
		-webkit-border-radius: 3px;
		border-radius: 3px;
		padding: 10px !important;
	}

	.widget-content {
		color: #49280b !important;
	}

	.up {
		color: #7e4c20 !important;
	}

	.down, .post-author, .description {
		color: #000000 !important;
	}

/*
-------------------
| Board Logo
-------------------
*/
	div.logo {
		position: fixed;
		-moz-transform: rotate(-28deg);
		right: 20px;
		top: 20px;
		border: 10px #ffd9ba solid;
		-moz-border-radius: 90px / 70px;
		-webkit-border-radius: 90px 70px;
		border-radius: 90px / 70px;
		background-color: rgba(255,201,155,0.2);
		width: 140px !important;
		padding: 10px;
		vertical-align: middle !important;
		text-align: center !important;
	}

	div.logo a {
		color: #7e4c20 !important;
	}

/*
-------------------
| Posting Mode
-------------------
*/
	html body table[width="100%"] {
		width: 120px !important;
		float: left;
		position: fixed;
		bottom: 0;
		right: 0;
		background-color: rgba(255,201,155,0.5) !important;
		border: 1px solid #dabf58 !important;
		border-width: 1px 0 0 1px !important;
		z-index: 1;
	}

	html body table[width="100%"] th[bgcolor="#e04000"] {
		border: none !important;
		background-color: transparent !important;
	}

	html body table[width="100%"] th[bgcolor="#e04000"] font {
		color: #49280b !important;
	}

	td {
		font-size: 10pt;
		margin: 0;
		padding: 0;
	}

/*
-------------------
| Navigation
-------------------
*/
	#navtop, .navbar:nth-of-type(1) {
		position: fixed;
		top: 0;
		z-index: 9;
		font-size: 0 !important;
		color: transparent !important;
		text-align: center;
		width: 100% !important;
		border-bottom: 2px solid #dabf58 !important;
		background: #dabf58 !important;
		opacity: 0;
		-webkit-transition: opacity .3s linear;
		-moz-transition: opacity .3s linear;
		-o-transition: opacity .3s linear;
	}

	#navtop:hover, .navbar:nth-of-type(1):hover {
		opacity: 1;
	}

	#navbot, #navbotr, .navbar:nth-of-type(2) {
		font-size: 0 !important;
		color: transparent !important;
		text-align: center;
		width: 100% !important;
		background: #dabf58 !important;
	}

	#navtop a, #navbot a, #navbotr a, .pages a, #paging a, .navbar:nth-of-type(1) a {
		display: inline-block;
		font-size: 10pt !important;
		min-width: 15px;
		text-align: center;
		margin: 0 1px;
		color: #49280b !important;
		-webkit-transition: background-color .1s linear;
		-moz-transition: background-color .1s linear;
		-o-transition: background-color .1s linear;
		-moz-border-radius: 9px;
		-webkit-border-radius: 9px;
		border-radius: 9px;
	}

	#navtop a:hover, #navbot a:hover, #navbotr a:hover, .pages a:hover, #paging a:hover, .navbar:nth-of-type(1) a:hover {
		background: rgba(255,201,155,1) !important;
		color: #49280b !important;
	}

	.pages b {
		display: inline-block;
		font-size: 10pt !important;
		min-width: 15px;
		text-align: center;
		margin: 0 1px;
	}

	.pages, .pages table, .pages tr, .pages td {
		border-style: none solid !important;
		background-color: #dabf58 !important;
		border: none !important;
	}

	.pages td, #paging td {
		color: #49280b !important;
		border: none;
		padding: 1px 5px;
		text-align: center;
	}

	td.deletebuttons {
		text-align: center !important;
	}

	#footer {
		clear: both;
		padding-top: 10px;
	}

	#navtop, #navbot {
		float: left;
		left: 0;
	}

	#navtopr, #navbotr {
		display: block;
		float: right;
		right: 0;
		text-align: right;
	}

/*
-------------------
| Return Button
-------------------
*/
	html body span[style="left: 5px; position: absolute;"] {
		position: fixed !important;
		background-color: rgba(255,201,155,0.5) !important;
		border: 1px solid #dabf58 !important;
		height: 29px;
		padding-top: 12px;
		border-radius: 30px;
		bottom: 15px;
		left: 15px !important;
		color: transparent;
		z-index: 2;
	}

	html body span[style="left: 5px; position: absolute;"] a, html body span[style="left: 5px; position: absolute;"] a:visited  {
		color: #49280b !important;
	}

	html body span[style="left: 5px; position: absolute;"] a:hover {
		color: #fff !important;
	}

/*
-------------------
| Post Form
-------------------
*/
	.postarea form {
		padding-left: 5px;
		background-color: rgba(255,201,155,0.5);
	}

	#postform form {
		padding: 0 !important;
		background-color: rgba(255,201,155,0.5);
	}

	.postarea form:first-child, #postform form {
		position: fixed;
		top: auto;
		right: 0;
		left: auto;
		bottom: 40px;
		z-index: 5;
		margin-right: -332px;
		-webkit-transition: margin .3s linear;
		-moz-transition: margin .3s linear;
		-o-transition: margin .3s linear;
	}

	#postform ol {
		margin: 0 !important;
		padding: 0 !important;
	}

	.postarea form:first-child:hover, #postform form:hover {
		margin-right: -50px;
	}

	.postblock, #postform label {
		background: none !important;
		border: 0 !important;
		padding: 0 !important;
		padding-left: 9px !important;
		width: 52px !important;
		vertical-align: top;
		font-family: Tahoma !important;
		font-size: 7pt !important;
		font-weight: 200 !important;
		line-height: 20px;
		color: #49280b !important;
	}

	.postblock b, #postform label {
		font-family: Tahoma !important;
	}

	div.postarea form table tbody>tr:nth-of-type(5) td.postblock, #qr form table tbody>tr:nth-of-type(5) td.postblock, #quickrep form table tbody>tr:nth-of-type(5) td.postblock {
		padding-top: 61px !important;
	}

	.postarea input[type=text], .postarea input[type=password], .postarea input[type=file], .reply input[type=text], .reply input[type=file], .reply input[type=password],
	#postform input[type=text], #postform input[type=password], #postform input[type=file] {
		-moz-appearance: none;
		background: transparent;
		border: 1px #dabf58 solid !important;
		height: 17px !important;
		width: 302px !important;
		margin-left: -59px !important;
		margin-right: 2px;
		padding: 1px 0 1px 0 !important;
		z-index: 1;
		color: #49280b;
	}

	.postarea input[name="sub"], .reply input[name="sub"] {
		width: 250px !important;
	}

	#com_submit {
		width: 50px !important;
		padding: 0 !important;
	}

	.postarea input[type=file] > input[type=text], .reply input[type=file] > input[type=text] {
		margin: -1px !important;
	}

	html body div.postarea form table tbody tr:nth-of-type(3) td:nth-of-type(3) {
		width: 300px !important;
	}

	textarea.inputtext, textarea#message {
		-moz-appearance: none;
		background: transparent;
		border: 1px #dabf58 solid !important;
		width: 302px;
		margin: 1px 0 0 -59px !important;
		z-index: 1;
		color: #49280b;
	}

	textarea#message {
		width: 300px !important
	}

	.postarea input[type=submit], .reply input[type=submit] {
		-moz-appearance: none;
		background: transparent;
		border: 1px #dabf58 solid !important;
		color: #49280b;
	}

	.postarea input:focus, .postarea textarea.inputtext:focus, .reply input:focus, .reply textarea.inputtext:focus,
	#postform input[type=text]:focus, #postform input[type=password]:focus, #postform input[type=file]:focus, textarea#message:focus {
		background-color: #dabf58;
	}

	.postarea td, .reply td {
		z-index: 0;
		padding: 0 !important;
	}

/*
-------------------
| CAPTCHA
-------------------
*/
	.recaptchatable, .recaptchatable * {
		color: #fff !important;
	}

	.postarea  td.recaptcha_image_cell, #quickrep td.recaptcha_image_cell,  td[style="padding-left: 7px;"] {
		padding: 0 !important;
	}

	#recaptcha_image img {
		opacity: 0.8;
	}

	.recaptcha_input_area {
		padding: 3px 0 0 0 !important;
	}

	#recaptcha_image, #quick_recaptcha_image {
		margin-left: -59px !important;
	}

	tr[height="73"], tr[height="73"] td {
		height: 59px !important;
	}

/*
-------------------
| Replies
-------------------
*/
	form[name="delform"], form#delform, div.thread {
		max-width: 900px;
		background-color: #ffc99b;
		padding: 10px 0 10px 0 !important;
	}

	div.thread {
		display: block;
		clear: left;
		width: 100% !important;
		border: solid #dabf58 !important;
		border-width: 4px 0 0 !important;
		padding: 10px 0 0 !important;
	}

	form[name="delform"], form#delform {
		margin: 0 40px 0 0 !important;
	}

	form[name="delform"] table, div.thread table {
		width: 100% !important;
	}

	form[name="delform"]>a>img, div.thread>a>img {
		margin: 20px !important;
	}

	.omittedposts {
		clear: both;
		padding-left: 20px;
		display: block;
		width: 100%;
	}

	td.reply, td.replyhl {
		width: 100% !important;
		border: 0 !important;
		color: #49280b !important;
	}

	.post {
		background-color: transparent !important;
	}

	.reply {
		background-color: #dabf58 !important;
	}

	.replyhl, .highlight {
		background-color: #d8b843 !important;
	}

	blockquote {
		font-size: 10pt;
	}

	.postername, .commentpostername {
		background: inherit;
		color: #117743;
		font-weight: 800;
	}

	input[value="Delete"] {
		margin-right: 3px;
	}

/*
-------------------
| Quick Reply
-------------------
*/
	#qr, .chanchimp {
		margin-top: 10px !important;
		background-color: rgba(255,201,155,0.5) !important;
		-webkit-box-shadow: none !important;
		border: none !important;
	}

	#qr form {
		margin-left: 10px;
	}

/*
-------------------
| Footer
-------------------
*/
	form table tbody>tr:nth-of-type(2) td[align="right"] {
		display: none;
	}

/*
-------------------
| Extensions
-------------------
*/
	div[style="width: 100%; font-size: 4px; background-color: rgba(224,64,0,1);"] {
		display: none !important;
	}

	.chanchimp .inputtext {
		margin: 0 !important;
	}

	.chanchimp #recaptcha_image {
		margin-left: 125px !important;
	}

	#cc-dragpopup {
		background-color: rgba(255,201,155,1)!important;
	}

	#cc-showpostarea {
		right: 125px !important;
	}

	form[name="delform"]>div:nth-of-type(1)>label {
		position: fixed;
		background-color: rgba(255,201,155,0.5) !important;
		border: 1px solid #dabf58;
		width: 44px !important;
		height: 38px;
		padding: 3px;
		padding-top: 9px;
		border-radius: 30px;
		bottom: 10px;
		left: 75px !important;
		color: #49280b;
		z-index: 2;
		text-align: center;
		text-decoration: underline;
	}

	form[name="delform"]>div:nth-of-type(1)>label:hover {
		color: #49280b;
	}

	form[name="delform"]>div:nth-of-type(1)>label input[type="checkbox"] {
		display: none;
	}

	form[name="delform"]>div:nth-of-type(1)>select {
		display: none;
	}

	form[name="delform"]>img[src="chrome-extension://pinelipedelckihohgdlpcclgocodhjj/expand.png"] {
		clear: right;
	}

	#autonoko {
		z-index: 2 !important;
		margin-left: -70px !important;
		vertical-align: middle;
	}

	#backwash_tooltip, .reflinkpreview {
		background-color: #dabf58 !important;
		border: 2px #ffc99b solid !important;
		max-width: 800px;
	}

	span.navlinks {
		right: auto !important;
		left: 860px;
		padding-top: 15px;
	}

	#boardsMenu {
		background-color: rgba(104,106,153,0.7) !important;
		border: 2px solid #585882 !important;
		-webkit-box-shadow: #686a99 0px 0px 4px !important;
	}

	#crntboard {
		border-right: 2px solid #585882 !important;
		-webkit-box-shadow: #686a99 1px 0px 4px;
	}

	#navbar {
		background-color: #dabf58 !important;
		border: 1px #ffc99b solid !important;
		border-bottom: 0 !important;
		-webkit-box-shadow: #686a99 0px 0px 4px !important;
	}

	#popup {
		background-color: #dabf58 !important;
		border: 2px #ffc99b solid !important;
		max-width: 800px;
		-webkit-box-shadow: none !important;
		-webkit-border-radius: 0 !important;
		border-radius: 0 !important;
	}

	#popup tbody, #popup tr, #popup td, #popup table {
		background-color: transparent !important;
	}

	#popup .reply {
		background-color: #dabf58 !important;
	}

	.new {
		background-color: #dabf58 !important;
		-moz-border-radius: 5px;
		-webkit-border-radius: 5px;
		border-radius: 5px;
	}

	#quickrep {
		padding: 2px 0 20px 80px !important;
		background-color: rgba(255,201,155,0.5) !important;
		-webkit-box-shadow: none !important;
	}

	#quickrep textarea.inputtext {
		margin-left: -61px !important;
		margin-bottom: -16px !important;
	}

	#quickrep div[style="float: left; padding: 2px 0px 0px 20px; font-size: 15px; width: 400px; height: 18px; cursor: move"] {
		width: 300px !important;
	}

	#thread_filter {
		position: fixed;
		right: 45% !important;
		bottom: 0 !important;
		top: auto !important;
		left: auto !important;
		padding: 3px;
		background-color: rgba(255,201,155,0.5) !important;
		border: 1px solid #dabf58 !important;
		border-bottom: 0 !important;
		-moz-border-radius: 10px 10px 0 0 / 20px 20px 0 0;
		-webkit-border-radius: 10px 10px 0 0 / 20px 20px 0 0;
		border-radius: 10px 10px 0 0 / 20px 20px 0 0;
	}

	#updater {
		position: fixed !important;
		padding: 3px;
		top: auto !important;
		left: auto !important;
		bottom: 340px !important;
		right: 0 !important;
		background-color: rgba(255,201,155,0.5) !important;
		border: 1px solid #dabf58 !important;
		border-right: 0 !important;
		-moz-border-radius: 20px 0 0 20px / 10px 0 0 10px;
		-webkit-border-radius: 20px 0 0 20px / 10px 0 0 10px;
		border-radius: 20px 0 0 20px / 10px 0 0 10px;
		color: #49280b !important;
	}

	#updater input[type="text"] {
		width: 75px !important;
	}

	#watcher {
		position: fixed !important;
		padding: 3px;
		top: 160px !important;
		left: auto !important;
		bottom: auto !important;
		right: 0 !important;
		background-color: rgba(255,201,155,0.5) !important;
		border: 1px solid #dabf58 !important;
		border-right: 0 !important;
		-moz-border-radius: 20px 0 0 20px / 10px 0 0 10px;
		-webkit-border-radius: 20px 0 0 20px / 10px 0 0 10px;
		border-radius: 20px 0 0 20px / 10px 0 0 10px;
		color: #49280b !important;
	}

	#watcher a, #watcher a:visited, #thread_filter a, #thread_filter a:visited   {
		color: #49280b !important;
	}

	#watcher a:hover, #thread_filter a:hover  {
		color: #fff !important;
	}
}

/*
-------------------
| 7chan.org fixes
| (that would break 4chan.org)
-------------------
*/
@-moz-document domain("7chan.org") {
	#paging {
		width: 100% !important;
		max-width: 896px;
		text-align: center;
		border: 0 !important;
		background-color: #dabf58 !important;
	}

	#paging ul {
		border: 0 none transparent !important;
		text-align: center;
	}

	#thread_controls {
		float: left !important;
		width: 100% !important;
		max-width: 896px;
		text-align: center;
		background-color: #dabf58 !important;
		border: 0 !important;
		margin-bottom: 10px;
	}

	#postform form {
		margin-right: -283px;
	}

	#postform ol {
		margin: 0 !important;
		padding: 0 !important;
	}

	.postarea form:first-child:hover, #postform form:hover {
		margin-right: 0px;
	}


	.ui-wrapper[style="overflow: hidden; position: relative; width: 309px; height: 93px; top: 0px; left: 0px; margin: 4px 0px 0px; padding: 0px;"] {
		margin: 0 0 0 -59px !important;
	}


	textarea#message {
		margin-left: 0 !important;
	}

	#postform input[type=text], #postform input[type=password], #postform input[type=file] {
		padding: 0 !important;
	}

	ol>li>input#subject[type="text"] {
		width: 249px !important;
	}

	ol>li>input[type="submit"] {
		width: 50px !important;
		padding: 0 !important;
	}

	input#file {
		display: block !important;
		clear: right !important;
	}

	#postform input[type=file] > input[type=text] {
		width: 289px !important;
	}

	#postform input#file {
		width: 286px !important;
	}

	.reply {
		margin: 4px 2px 0px 2px !important;
	}

	div.thread, form#delform {
		border: 0 none transparent !important;
		padding: 2px 0 4px 0 !important;
		-moz-border-radius: 3px;
		-webkit-border-radius: 3px;
		border-radius: 3px;
	}

	.subject {
		font-size: 10pt !important;
	}

	.content {
		background-color: rgba(255,201,155,0.5);
	}

	.newssub, .current {
		color: #1e1f3d !important;
	}

	a[id^="expandall"] {
		position: fixed !important;
		background-color: rgba(255,201,155,0.5) !important;
		border: 1px solid #6e3c10 !important;
		width: 48px !important;
		height: 47px;
		padding: 3px;
		padding-top: 3px;
		border-radius: 30px;
		bottom: 10px;
		left: 10px !important;
		color: #b4c0d5 !important;
		z-index: 2;
		text-align: center;
		text-decoration: underline;
	}

	a[id^="expandall"]:hover {
		color: #1e1f3d !important;
	}

	div[id^="replies"] {
		margin-top: 20px !important;
	}

	body>ul, body>div>ul {
		background-color: rgba(255,201,155,0.5);
	}

	.plus {
		background-color: rgba(255,255,255,0.5) !important;
		border: 0 !important;
	}

	a.boardlink:hover {
		background-color: #ffc99b !important;
	}
}

@-moz-document url("7chan.org/menu.php"), url("www.7chan.org/menu.php") {
	body, html {
		background-image: none !important;
	}
}