/* Reduce font size */
@media only screen and (min-width: 40.0625em) {
	h1 { font-size: 2.2em;}
	h2 { font-size: 1.8em;}
	h3 { font-size: 1.6em;}
	h4 { font-size: 1.4em;}
	h5 { font-size: 1.5em;}
	h6 { font-size: 1.6em;}
}
table.ambox-notice {
    width:auto;
}
/* Width 100% as requested */
.row {
    max-width: 95%;
}

p {
    margin-bottom: .25em;
    line-height: 1.4;
}

img {
    margin-bottom: 1em;
}
.ambox img {
    margin-bottom: initial;
}
h1,h2,h3,h4,h5,h6 {
    margin-bottom: .25em;
    margin-top: 1em;
}
.mw-bodytext h2 {
    border-bottom: 1px solid #a2a9b1;
    display: block;
    overflow: hidden;
    line-height: 1.2;
}
.toctitle h2 {
    border-bottom: none;
    display: inline;
}
.reflist ul li {
    font-size: .9rem;
}
.mw-content-ltr ul, .mw-content-rtl .mw-content-ltr ul,
.mw-content-ltr ol, .mw-content-rtl .mw-content-ltr ol {
    margin-bottom: 1em;
    margin-top: .75em;
}
#mw-content-text ul li,
#mw-content-text ol li {
    margin-bottom: .1em;
    line-height: 1.5;
}
#toc ul li {
    margin-bottom:0;
}
#toc ul {
    margin-bottom: 0;
}
#banner {
    overflow: initial !important;
}
.thumbinner {
    max-width: 100%;
}
/* Wikitable Reset to Strip out Foundation 5 */
table { width: auto; }
td.mw-label { width: 0; }
td.smwpropname, th.smwpropname, td.smwspecname { text-align: inherit; }
table tbody tr td, table tr td { line-height: inherit; }
table { background: transparent; margin-bottom: 1.25em; border: 0; }
table thead, table tfoot { background: 0; font-weight: normal; }
table thead tr th, table thead tr td, table tfoot tr th, table tfoot tr td { padding: 0; font-size: 100%; color: inherit; text-align: inherit; }
table tr th, table tr td { padding: 0; font-size: 100%; color: inherit; }
table tr.even, table tr.alt, table tr:nth-of-type(even) { background: transparent; }
table thead tr th, table tfoot tr th, table tbody tr td, table tr td, table tfoot tr td { display: table-cell; line-height: inherit; text-align: inherit; }

/* wikitable classes reset */
table.wikitable {
  margin: 1em 0;
}
table.wikitable > tr > th,
table.wikitable > * > tr > th {
  text-align: inherit;
}

/* wikitable classes add */
table.wikitable > tr > th,
table.wikitable > tr > td,
table.wikitable > * > tr > th,
table.wikitable > * > tr > td {
  border: 1px #aaa solid;
  padding: 0.2em;
}

/* Custom h* styles (blue headings) */
.wikitable td.hl3,
.wikitable th.hl3 {
	background-color: #8da7d6;
}
.wikitable td.hl1,
.wikitable th.hl1 {
	background: #c5d8fc;
}
.wikitable td.hl2,
.wikitable th.hl2 {
	background: #a7c1f2;
}

/* Make entire table valign=top, to replace the |valign=top| on every cell. */
.vatop tr,
tr.vatop,
.vatop td,
.vatop th {
	vertical-align: top;
}
/* Tables in responsive and other breaks */
@media only screen and (max-width: 768px) {
	table {overflow-x: auto; overflow-y: hidden; display: block; width: auto;}
	table.wikitable {background-color: transparent; border: none;}
	/* Give user a method to style a x-axis scrollable table without wrapping cell text */
	.scrollable {overflow: scroll; overflow-y: hidden;}
	.scrollable table {white-space: nowrap; border: 1px solid #eee; border-collapse: separate;}
	a {word-wrap: break-word;}
	input {max-width: 100%;}
}

/* Make MW table output readable on small screens */
@media only screen and (max-width: 640px) {
	table.mw-specialpages-table td {
		display: inline; padding: 0;
	}

	#mw-pages table td,
	#mw-subcategories table td {
		display: inline; padding: 0;
	}
}
/* After Content for Approved Revisions - Make readable with swipe right */
@media only screen and (max-width: 768px) {
	#mw-data-after-content {
	    overflow-x: auto;
	    overflow-y: hidden;
	    display: block;
	    width: auto;
	}
}

/* Test Code Container */
textarea.codeBoxAreaNew:hover, textarea.codeBoxArea:focus {
    border-color: rgb(0, 157, 255);
    box-shadow: 2px 3px 2px rgba(0, 157, 255, 0.59);
    cursor:text;
    resize:none;
}
textarea.codeBoxAreaNew {
    min-height: unset;
}

/* Pure CSS solution to NO JS Actions menu */
.client-nojs ul#actions.f-dropdown {
    display:none;
    position: absolute;
    left: unset;
    right: 16px;
    top: 43px;
}
.client-nojs .f-dropdown:before,
.client-nojs .f-dropdown:after {
    display: none;
}
.client-nojs ul#actions.f-dropdown:hover {
    display:block;
}
.client-nojs a#actions-button {
    position:relative;
    display:inline-block;
}
.client-nojs a#actions-button:hover + .f-dropdown {
    display:block !important;
}
/* END NO-JS Solution */

.mw-cookiewarning-container {
    background-color: #333333;
}

.mw-cookiewarning-text {
    opacity: 1;
    padding: 5px 5px;
    color: #333333;
}

/* Move top bar */
/* Whonix HOME DOWNLOAD DOCS FAQ HELP CONTRIBUTE NEWS */
/*
.top-bar {
	top: 40px;
}
*/
/* Start CSS By Faai for spacing fix */
 /* Removing top margin from red donate bar */
div#page-content {
    margin-top: 0px;
}

/* Adjusting red donate bar */
div#page-content > div.row:nth-child(1) {
    margin-left: 0px;
    max-width: 100%;
}

/* Adjusting red donate bar's inner width */
div#page-content > div.row:nth-child(1) > div.large-12.columns > div#siteNotice > div#localNotice > div#banner > a:nth-child(1) > div#banner-logo{
    width: 99% !important;
}

/* Removing extra space after red donate bar */
div#page-content > div.row:nth-child(1) > div.large-12.columns {
    margin: 0;
    padding: 0;
}

/* There was white space around the red donate bar which is removed*/
div#page-content > div.row:nth-child(1) > div.large-12.columns > div#siteNotice > div#localNotice > div#banner {
    margin-top: 0px !important;
    border: 0.1mm solid #d03232;
}

/* Terms and conditions section moved a little bit upward to maintain the spacing */
div#page-content > div.row > div#p-cactions > div#content > div#bodyContent > div#mw-content-text > div.mw-parser-output > div#toc {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

/* Removing extra margin from bottom of all paragraphs */
p{
    margin-bottom: 0 !important;
}

/* Removing footer's extra margin from top */
div#page-content > footer.row {
    margin-top: 15px;
}

/* Removing top-margin after page title */
div#page-content > div.row > div#p-cactions > div#content > div#bodyContent > div#mw-content-text > div.mw-parser-output > div#toc {
    margin-top: 0px;
    margin-bottom: 5px;
}

/* Removing <br> to eliminate extra space under top heading */
.mw-parser-output br:first-child {
    display: none;
}

/* Removing top-margin after table of content and other headings extra spacing*/
h1,h2,h3,h4,h5 {
    margin-top: 10px;
}
/*********************/

/* Removing Blockquote spaces top and bottom */
blockquote {
    white-space: inherit !important;
}

/* Fixing footer spacing between "The personal opinions of moderators" AND "By using this website, you acknowledge you have read," */
fieldset.flaggedrevs_reviewform.noprint {
    margin-bottom: -20px;
}

/* fixing horizontal scroll */
@media only screen and (max-width: 500px) {
	code {
	    overflow-wrap: break-word;
	}
	html, body{
	overflow-x: hidden;
	}

	/* center aligning the box on phone */
	.mw-parser-output>div{
		    margin-left: auto !important;
	    margin-right: auto !important;
	}

	/* Top menu items spacing fix on phone */
	#p-Menu > ul.dropdown > li > a {
	    font-size: 0.7rem;
	    padding: 0 0.25rem;
	}

	/* Top menu items to take more space from top and bottom, fix on phone */
	li#p-Menu {
	    height: 50px;
	    padding: 11px 0;
	    top: -4px;
	     text-align: center;
	}

	/* Blockquote spacing fixes */
	blockquote pre {
	    font-family: inherit;
	    background-color: inherit;
	    color: inherit;
	    font-size: inherit;
	}
	blockquote span {
	   white-space: pre;
	   font-size: 14px;
	}
	blockquote span p {
	    display: inline-block;
	}
	/* END CSS By Faai for spacing fix */
}

/* disable numbering in table of contents */
/* re-enabled by Patrick */
.tocnumber { display: none; }

/* mediawiki default footer */
/* Not for Template:Footer */
/* useful for special pages that cannot use Template:Footer */
/* footer links next to each other */
/* no more new line for each footer entry */
/* re-enabled by Patrick */

#footer-left li {
	display: inline-block;
	padding: 0.3em;
}

#footer-left li:first-child {
	display: block;
}