@-moz-document domain("www.anandtech.com") {
/*
 * AnandTech - Minus Garbage Plus Width (May 2017)
 *
 * Author      : voltaek
 * Updated     : May 20, 2017
 * Description : Removes the right column, widens the content, and removes ads
 * Usage       : Use with the Stylish extension for Chrome or Firefox (http://userstyles.org/)
 *               or copy to your Firefox userContent.css file
 */

/* NO ADS */
/* ads that are almost always present */
.header_ad, #header_ad,
#side_ad, #side_ad2, #side_ad3,
.home_middle_ad, #home_middle_ad,

/* used for full-page ad backgrounds */
#ctMediaContainer, #ctMedia, #ctBoc, .ct_image,

/* forum had these, but listing here to future proof */
.footer_ad, #footer_ad, 

/* mid article ads */
.sidepadding.review div[style="float: right; margin: 13px 0px 15px 15px;"],
.ntShoppingWidget,

/* article bottom ad */
.main_cont div[style="margin: 0px auto 10px; width: 300px;clear:both;"],

/* article bottom 'from the web' */
#rcjsload_anandtechba,

/* podcasts page ad */
.main_cont div.home_theater div[style="float: right; margin: 0 0 0 25px;"],

/* this generic rules hides most ads, but doesnt remove their container from
page flow; should prevent new ad locations from displaying their ads until this
style gets updated to remove the remaining empty area from page flow */
[id^="google_ads_"] {
    display: none !important;
}
/* lock background to prevent it changing for full-page ads */
html > body {
    background-color: #f6f6f6 !important;
    background-image: none !important;
}
/* undo full-page-ad-background-specific styling */
.ct_wallpaper .main_cont {
    padding-left: 0;
}
.ct_wallpaper .breadcrumb {
    margin-left: 0;
}

/* OVERALL LAYOUT */
.sidebar {
	display: none !important;
}
/* most of the site */
section.content > section.main_cont,
/* 'tags' blogroll */
section.content > section.main_cont > section.main_cont {
	width: 100% !important;
}
/* pagination */
nav.page_nav {
 	text-align: center;   
}
nav.page_nav ul li {
 	float: none;
    display: inline-block;
    width: 9.7%;
    margin-right: 0% !important;
}
nav.page_nav ul li:not(:last-child) {
    margin-right: 0.3% !important;
}
/* all bench carousels */
div.bench_box > div.bench_titleBox > span {
    width: calc(100% - 200px) !important;
}

/* BLOGROLL ("tablet" size) center the first of the lead 3 stories */
@media (min-width: 768px) and (max-width: 1023px) {
	section.content > section.main_cont > .featured_banner:first-child + .sponsored_add.fl-lt.hide_resp2 {
		float: none !important;
		margin: 0 auto;
	}
}

/* The rest of the changes are only necessary for "desktop" size,
 * as their "tablet" size already drops the sidebar
 */
@media (min-width: 1024px) {
	/* BLOGROLL */
    div.featured_banner {
        margin-left: auto !important; 
        margin-right: auto !important;
    }
    /* puts 3 top stories on same row by hiding clearfix-ing div */
    section.content > section.main_cont > div.fl-rt.home_middle_ad + div.clear {
        display: none !important;
    }
    /* evenly space middle top 3 from left one */
    div.sponsored_add.fl-lt.cb {
        margin-left: 5px !important;
    }
    div.pipeline {
        padding-right: 28px !important;   
    }
    div.pipeline_cont {
        width: 100% !important;
    }
    div.pipeline_cont ul li span {
        width: auto !important; 
    }
    /* stretch article preview text on blogroll */
    div.cont_box1_txt {
        width: calc(100% - 310px) !important;
        padding-left: 10px !important;
        float: left !important;
    }
    /* front page bench carousel */
    div.bench_box div.bench_carousel {
        text-align: center;   
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    div.bench_box div.bench_carousel ul li {
        width: 15% !important;
        display: inline-block;
        vertical-align: top;
        float: none;
        margin-right: 0;
    }
    div.bench_box div.bench_carousel ul li:not(:last-child) {
        margin-right: 1%;
    }

    /* ARTICLES */
    nav.breadcrumb { width: 100% !important; }
    div.blog_top_left { width: calc(100% - 70px) !important; }
    div.thumbTagContainer {
        float: none !important;
        margin-left: auto !important;
        margin-right:auto !important;
        padding-bottom: 5px !important;
    }
    /* center tables and restrict width (they look ridiculous stretched) */
    div.articleContent > table {
        width: 680px !important;
        margin-left: auto !important;
        margin-right:auto !important;
    }
    /* fix quotes */
    div.articleContent > p[style="margin-left: 40px;"] {
        margin-right: 40px !important;
    }
	/* overcome hardcoded list widths */
	div.articleContent > ul,
	div.articleContent > ol {
		width: auto !important;
	}
    /* center images */
    /* normal articles */
    div.sidepadding.review img,
    /* for print version */
    div.articleContent img,
    /* for leading image in print version (outside articleContent) */
    div.review_blog + img  {
        display: block !important;
        margin-left: auto !important;
        margin-right:auto !important;
    }
    /* center youtube video and stretch to 960 * 540 (16:9) */
    div.articleContent p iframe {
        width: 960px !important;
        height: 540px !important;
        display: block !important;
        margin-left: auto !important;
        margin-right:auto !important;
    }
    /* center flash videos */
    div.articleContent > div[style="height: 349px; width: 620px;"] {
        display: block !important;
        margin-left: auto !important;
        margin-right:auto !important;
    }
    /* stretch page nav links */
    div.article_links > a {
        width: 48% !important;
    }

    /* BENCH */
    /* bench page top carousel */
    div.bench_box_inside .carousel_holder,
    div.bench_box_inside .carousel_holder .bx-wrapper {
        max-width: none !important;
    }
    div.bench_box_inside .carousel_holder ul li {
        width: 120px !important;
    }
    /* stretch benchmark dropdowns */
    div.cpu_bechmark_area .cpu_benchmarks {
        width: 49%;
    }
    div.cpu_bechmark_area .cpu_benchmarks .benchmarks_form {
        padding-right: 15px;   
    }
    div.cpu_bechmark_area .cpu_benchmarks .benchmarks_form select {
        width: 100%;
    }
  
	/* center bench graph bars (no way to stretch because bar lengths are inline'd) */
	
	/* all products and single product */
    #benches > .rating_list > .rating_value:first-child {
        margin-left: calc((100% - 645px) / 2);
    }
	
	/* compare two products */
    #benches > .rating_list > .rating_bench:first-child {
		text-align: right;
		margin-left: 0;
		padding-right: 10px;
		width: 50%;
	}
	#benches > .rating_list > .rating_value:not(first-child) {
        margin-left: 50%;
    }

	/* GALLERY (anandtech.com/Gallery) */
	/* more thumbnails across */
	section.main_cont > div.gallery > ul > li {
		width: 15.5% !important;
		margin: 0 0.5% 10px 0.5% !important;
	}
}

}

@-moz-document domain("forums.anandtech.com") {
/* FORUMS CLEANUP */

/* HIDE ADS & CLUTTER */

/* header ad area */
#content > .pageWidth > .pageContent > .sectionMain.funbox:first-child,

/* footer ad area */
#footer_leaderboard,

/* right column top ad */
#rightcol_top,

/* in-thread 'similar threads' area */
.similarthreadsplus_blueLine,
.similarthreadsplus,

/* hide sidebar */
.uix_mainSidebar {
	display: none !important;
}

/* account for lack of sidebar */
.mainContent {
	margin-right: 0 !important;
}

}