/* Century Schoolbook font is very similar to Computer Modern Math: cmmi */
.MATH    { font-family: "Century Schoolbook", serif; }
.MATH I  { font-family: "Century Schoolbook", serif; font-style: italic }
.BOLDMATH { font-family: "Century Schoolbook", serif; font-weight: bold }
SPAN.MATH { display:inline-block; }	/* don't stretch spaces inside eqn */

DIV.author_info { text-align:center; } /* latex centers author */

.LEFT    { text-align:left; }
.FLOATLEFT    { float:left; }
.CENTER  { text-align:center; }
.CENTER > * { margin:auto; }
.RIGHT   { text-align:right; }
.FLOATRIGHT   { float:right; }
.TOP     { vertical-align:top; }
.MIDDLE  { vertical-align:middle; }
.BOTTOM  { vertical-align:bottom; }

IMG.LEFT    { float:left; }
IMG.RIGHT   { float:right; }
IMG.TOP     { vertical-align:top; }
IMG.BOTTOM  { vertical-align:baseline; }

/* captions for latex tables and figures appear at bottom */
CAPTION { caption-side:bottom; }

DL.COMPACT > dt { float:left; padding-right: 1em; }

/* pgadey.ca style colors */
BODY {
  font-size: 100%;
  font-family: serif;
  margin:40px auto;
  max-width:650px;
  line-height:1.6;
  font-size:18px;
  color:#444;
  background-color: #EEEEEE;
  padding:0 10px;
}

/* pgadey.ca style hr */
HR { 
	background-color: #444;
	height: 1px; 
	border: 0; 
}

/* implement both fixed-size and relative sizes */
.XTINY		{ font-size : xx-small }
.TINY		{ font-size : x-small  }
.SCRIPTSIZE	{ font-size : smaller  }
.FOOTNOTESIZE	{ font-size : small    }
.SMALL		{ font-size : small    }
.LARGE		{ font-size : large }
.XLARGE		{ font-size : large    }
.XXLARGE		{ font-size : x-large  }
.HUGE		{ font-size : larger   }
.XHUGE		{ font-size : xx-large }

/* heading styles */
H1		{  }
H2		{  }
H3		{  }
H4		{  }
H5		{  }

/* mathematics styles */
DIV.displaymath { text-align:center; margin-top:1em; margin-bottom:1em; }
	/* math displays: margins for \abovedisplayskip \belowdisplayskip */
TD.eqno			{ width:0; }	/* equation-number cells */
TABLE.PAD TD	{ padding:3px; }
TABLE.BORDER TD	{ border:1px solid black; }
TABLE.equation	{ width:100%; }	/* place eq nos at right/left edge */
TABLE.equation > *	{ vertical-align:baseline; }
TABLE.equation TD	{ white-space:nowrap; padding-bottom:5px; }
TABLE		{ border-collapse: collapse; }

/* document-specific styles come next */
DIV.LaTeX		{   }
DIV.logo-LaTeX		{   }
DIV.navigation		{   }
DIV.quote		{   }
SPAN.arabic		{   }
SPAN.textit		{ font-style: italic  }

/* darkmode support */

@media (prefers-color-scheme: dark) {

	img[src$=".svg"], img[src$=".png"] {
	  filter: invert(53%) sepia(90%) saturate(2000%) hue-rotate(10deg);
	}

	body {
	      background-color:#000;	
	      color:#FF7E00;
	}

	body a {
	      color: #E00;
	}

	blockquote {
	  margin-top: 10px;
	  margin-bottom: 10px;
	  margin-left: 50px;
	  padding-left: 15px;
	  border-left: 5px solid #FF8E00;
	}


	  li > code,
	  p > code {
	    font-family: monospace;
	    color: #FFAE42;  
	     
	     
	  }

	  pre code {
	    display: block;
	    background: #1A0A00;  
	    color: #FFAE42;  
	    white-space: pre;
	    overflow-x: scroll;
	    max-width: 100%;
	    min-width: 100px;
	    padding: 10px;
	    border-radius: 5px;
	  }

	hr { 
		background-color: #FF7E00;
		height: 1px; 
		border: 0; 
	}
}

