/*
// ------------------------------------
// Global settings
// ------------------------------------
*/
html, body, div, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, ol, jul, jli, form, fieldset, legend, label, jtable, header, footer, nav, section, jtr, td
{ 
	margin: 0; 
	padding: 0;
	border: 0;
}

html
{
	background-color:rgb(0,0,0);
	height:100%;
	min-height:100%;
	
	font-weight:normal;
	font-family:Graphik, sans-serif;
	jcolor:rgb(255,255,255);
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */	
}

body
{
	/* These aren't needed if we set the content to use "100vh" */
	jheight:100%;	/* Don't do this unless you know the content will never overflow. It effectively makes all the "scrolled content" overflow which can get cutoff when using AcgAlert. */
	min-height:100%;
}

a
{
	/* text-decoration: none; */
	color:inherit;
}
/*
Including this causes anchor tag button rollovers to darken.
a:hover, a:focus
{
	jcolor:#008dd4;
	color:inherit;
	jtext-decoration:underline;
}
*/
.acg a.url
{
	word-break:break-word;	/* iOS long URLs don't break at hyphens or slashes */
}

img
{
	/*
	On iOS, this setting prevents images from showing if the container has no size (like a table cell with nothing other than an image)
	max-width: 100%;
	*/
	height: auto;
	border: 0;
	outline: 0;
}

.acg
{
	min-height:100vh;
	jmin-height:calc(100vh - 321px);	/* Forces our content to take up the whole viewport if the content is small (148 = 85 (header) + 236 (footer) */
}

/*
// Note: This caused a problem with the AcgOnScroll library since <p> tags using it would get wrapped, become "last", and therefore have no margin between.
.acg p:not(:last-child)
{
	margin-bottom:1em;
}
*/
.acg p
{
	margin-bottom:1em;
}

.acg ul
{
	list-style-type:disc;
	margin:1em 0 1em 1em;
	list-style:outside;
}
.acg li:not(:last-child)
{
	margin-bottom:0.5em;
}

/*
The following CSS changes the appearance of the scrollbar shown when content overflows.
Note that by including ".acg", we are only changing the scrollbars within the ACG content (like "popups") which generally benefits from a smaller scrollbar.
If you remove the ".acg", then the browser scrollbar will also be affected.
*/
/*
*/
.acg ::-webkit-scrollbar {
    j-webkit-appearance: none;
    width: 7px;
    height: 7px;
    background-color: rgba(0,0,0,.8);
}
.acg ::-webkit-scrollbar-thumb {
    jborder-radius: 4px;
    background-color: rgba(255,255,255,.8);
    j-webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}

/* Including "input" causes the jquery progressbar used by the DocWriter status dialog to get funky. Why did we include it? */
/* .acg div, input */
.acg div:not([class*="ui-"]), input
{
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box; 
	box-sizing: border-box;
}
