/* responsive */
* {
  box-sizing: border-box;
}

/* Fonts */

/* Styles */
p, div
{
	margin-left:0in;
	font-size: calc(12px + 0.5vw);
	font-family:"Times New Roman",serif;
	color:black;
	padding:0%;
	margin-top:0px;
	margin-bottom:calc(6px + 0.25vw);
}

li
{
	font-size: calc(12px + 0.5vw);
	font-family:"Times New Roman",serif;
	color:black;
}

img {
  max-width: 100%;
  height: auto;
}

video {
  max-width: 100%;
  height: auto;
}

/* Lists */
ul
{
	margin-bottom:0in;
}

/* Tables */
table
{
	font-size: calc(12px + 0.5vw);
	font-family:"Times New Roman",serif;
	color:black;
}

th
{
	padding-top: 1px;
	padding-bottom: 1px;
	padding-left: 11px;
	padding-right: 11px;
    border:none;
    font-weight: normal;
	text-align: center;
}

td 
{
	padding-top: 1px;
	padding-bottom: 1px;
	padding-left: 11px;
	padding-right: 11px;
  	text-align: center;
	vertical-align: middle;
}

tr
{
	vertical-align: middle;
}

/* table.tbl */
table.tbl
{
	border-top:2px solid black;
	border-bottom:2px solid black;
	border-collapse: collapse;
	margin-left: auto;
	margin-right: auto;
	margin-bottom:3pt;
	text-align:center;
}

th.tbl
{
	padding-top: 1px;
	padding-bottom: 1px;
	padding-left: 11px;
	padding-right: 11px;
    border-left:none;
	border-bottom:1px solid black;
	border-right:none;
    font-weight: normal;
	text-align: center;
}

td.tbl 
{
	padding-top: 1px;
	padding-bottom: 1px;
	padding-left: 11px;
	padding-right: 11px;
  	text-align: center;
	vertical-align: middle;
}

tr.tbl
{
	vertical-align: middle;
	border-bottom:1px solid black;
}

tr:hover
{
	background-color: coral;
}

tr.tblmid
{
	vertical-align: middle;
	border-top:4px solid black;
	border-bottom:4px double;
}

td.atomLabel1
{
	column-count: 2;
	text-align: left
}

td.atomVect1
{
	column-count: 5;
	text-align: left
}

/* table.prob1 */
table.prob1
{
	border-top:2px solid black;
	border-bottom:2px solid black;
	border-collapse: collapse;
	margin-left: 0;
	margin-right: auto;
	margin-bottom:3pt;
	text-align:center;
}


tr.prob1
{
	vertical-align: middle;
	border-bottom:1px solid black;
}

tr:hover
{
	background-color: coral;
}

/* table.proba */
table.proba
{
	border-top:2px solid black;
	border-bottom:2px solid black;
	border-collapse: collapse;
	margin-left: 0.25in;
	margin-right: auto;
	margin-bottom:3pt;
	text-align:center;
}


tr.proba
{
	vertical-align: middle;
	border-bottom:1px solid black;
}

.no-sel:hover {
    background-color: inherit; /* Overrides the generic tr:hover */
}

p.title
{
	margin-top:0in;
	margin-right:0in;
	margin-top:0.0pt;
	margin-bottom:0.0pt;
	margin-left:0in;
	font-style:italic;
	font-size:calc(11px + 0.32vw);
}


#grad_top {
  	height: 30px;
	background-image: linear-gradient(rgb(125, 223, 19),white);
	margin-bottom: 1px;
}
#grad_bottom {
  	height: 30px;
	background-image: linear-gradient(white,rgb(125, 223, 19));
 	padding-top: 34px;
}

p.noteslinks, li.noteslinks, div.noteslinks
{
	margin-top:0in;
	margin-right:0in;
	margin-top:0.0pt;
	margin-bottom:11.0pt;
	margin-left:0in;
	line-height:200%;
	font-size:11.0pt;
}

div.nav
{
	border: none;
    padding : 7pt;
    appearance: none;   
    background-color: inherit;
    cursor: pointer;
	margin-top:0pt;
	margin-bottom:0pt;
	padding-top:0pt;
	padding-bottom:0pt;
}


p.sec
{
	margin:0in;
	page-break-after:avoid;
	font-weight:bold;
	text-decoration:none;
	margin-left:0;
	text-indent:0; 
}

span.sec
{
	margin:0in;
	page-break-after:avoid;
	font-weight:bold;
	text-decoration:underline;
	margin-left:0;
	text-indent:0; 
}

p.eqn
{
	margin-top:0in;
	margin-right:0in;
	margin-left:.25in;
}

p.eqn.prob1
{
	margin-left:.5in;
}

p.eqn.proba
{
	margin-left:.5in;
}

img.fig
{
	display: block;
	max-width: min(100%, 600px);
	max-height: 80vh;
	min-height: 100px;
	width: auto;
	height: auto;
	margin-top:0in;
	margin-right:auto;
	margin-bottom:8.0pt;
	margin-left:auto;

}

/*Lists: tbl.caption*/
ol.tbl.caption
{
	list-style-position: outside;
	list-style-type: none;
	margin-top:0in;
	margin-bottom:0in;
	padding: 0; 
}

li.tbl.caption
{
	margin-top:0in;
	margin-right:0.5in;
	margin-bottom:1pt;
	margin-left:0.5in;
	text-align:center;
	text-indent:0in;
}

li.tbl.caption:before
{
	content: "Table " attr(chnum) '.' attr(value) '. ';
	padding-left: 0px;
	text-decoration:none;
	border-bottom:none;
}

li.tbl.caption.iso:before
{
	content: "Table " attr(value) '. ';
}

div.probs
{
	margin-top:0in;
	margin-right:0in;
	margin-bottom:8.0pt;
	margin-left:0in;
	border-top: double;
	border-bottom: double;
	line-height:107%;
}

/*A marker between prob1's*/
div.prob
{	
	margin-top:0pt;
	margin-right:0in;
	margin-bottom:0pt;
	margin-left:-0.25in;
	line-height:107%;
	border-top:1px solid black;
}
/* Links */
.nav a
{
	width:auto;
}

/* Links */
.nav img
{
	vertical-align: middle;
	height: calc(32px + 0.4vw);
	width:auto;
	margin-top:1pt;
	margin-left:1pt;
	margin-bottom:1pt;
	margin-right:1pt;
}
.nav img:hover
{
	scale: 1.1;/*attr(hoverscale);*/
}

/* Lists: prob1 */
ol.prob1
{
	list-style-position: outside;
	list-style-type: none;
  	counter-reset: prob1;
	margin-top:0in;
	margin-bottom:0in;
	padding: 0;
}

li.prob1
{
	margin-top:3pt;
	margin-left:0.3in;
	text-indent:-0.3in;
}

li.prob1:before {
  content: attr(title) counter(prob1) ". ";
  counter-increment: prob1;
	font-weight:normal;
}

p.prob1 /*unnumbered text within a prob1*/
{	
	margin-left:0.25in;

}

/* Lists: prob1a*/
ol.prob1a
{
	list-style: outside;
  	counter-reset: prob1a;
	padding: 0;
	margin-left:0.1in;

}

li.prob1a {
	margin-top:3pt;
	display:inline-block;
 	padding-right: 20px;
	margin-left:0.4in;
	text-indent:-0.2in;
}

li.prob1a:before
{
  	content: counter(prob1a, lower-alpha) ". ";
  	counter-increment: prob1a;
	padding-left: 0px;
	font-weight:normal;
}

/* Lists: prob1ai*/
ol.prob1ai
{
	list-style-position: outside;
	list-style-type: none;
  	counter-reset: prob1ai;
	margin-left:0.25in;
	padding: 0;
	padding-bottom: 3px;
}

li.prob1ai {
  margin-top:3pt;
}

li.prob1ai:before
{
  	content: counter(prob1ai, lower-roman) ". ";
  	counter-increment: prob1ai;
	padding-left: 0px;
	font-weight:normal;
	font-style: normal;
}

/* Lists: prob1aiA*/
ol.prob1aiA
{
	list-style-position: outside;
	list-style-type: none;
  	counter-reset: prob1aiA;
	margin-left:0.25in;
	padding: 0;
	padding-bottom: 3px;
}

li.prob1aiA {
  margin-top:3pt;
}

li.prob1aiA:before
{
  	content: counter(prob1aiA, upper-alpha) ". ";
  	counter-increment: prob1aiA;
	padding-left: 0px;
	font-weight:normal;
	font-style: normal;
}

/*Lists: sec*/
ol.sec
{
	list-style-position: outside;
	list-style-type: none;
  	counter-reset: sec1;
	margin-top:0in;
	margin-bottom:0in;
	margin-left:0in;
	padding: 0;
	text-indent: 0in;
}

li.sec:before
{
	content: attr(title) counter(sec1) ". ";
	counter-increment: sec1;
	padding-left: 0px;
	text-decoration:none;
	border-bottom:none;
	font-weight:bold;

}

/*(un-numbered) sections, no chapter prefix*/
li.usec:before
{
	content: counter(sec1) ". ";
	counter-increment: sec1;
	padding-left: 0px;
	text-decoration:none;
	border-bottom:none;
	font-weight:bold;

}

/*p.subsec*/
p.subsec
{
	margin:0in;
	page-break-after:avoid;
	font-weight:normal;
	font-style: italic;
	font-weight:bold;
	text-decoration:underline;
	margin-left:0in;
	text-indent: 0in; 
}

/*p.subsubsec*/
p.subsubsec
{
	margin:0in;
	page-break-after:avoid;
	font-weight:normal;
	font-style: italic;
	text-decoration:underline;
	margin-left:0in;
	text-indent: 0in; 
}
/*Lists: chap*/
ul.chap
{
	list-style-position: outside;
	list-style-type: none;
	margin-top:0.08in;
	margin-bottom:0in;
	padding: 0; 
}

li.chap
{
	margin-top:0in;
	margin-right:0in;
	margin-bottom:8.0pt;
	margin-left:0in;
	line-height:107%;
	font-weight:bold;
	font-style:oblique;
	font-size: calc(14px + 0.6vw);
}

li.chap:before
{
	content: attr(chnum) '. ';
	padding-left: 0px;
	text-decoration:none;
	border-bottom:none;
}

li.chap.iso:before
{
	content: '';
}

span.chap, p.chap
{
	text-decoration:underline;
	font-weight:bold;
	font-style:oblique;
	font-size: calc(14px + 0.6vw);
}

/*Lists: fig.caption*/
ol.fig.caption
{
	list-style-position: outside;
	list-style-type: none;
	margin-top:0in;
	margin-bottom:0in;
	padding: 0; 
}

li.fig.caption
{
	margin-top:0in;
	margin-right:0.5in;
	margin-bottom:10.0pt;
	margin-left:0.5in;
	text-align:center;
	text-indent:0in;
}

li.fig.caption:before
{
	content: "Fig. " attr(chnum) '.' attr(value) '. ';
	padding-left: 0px;
	text-decoration:none;
	border-bottom:none;
}

li.ufig.caption:before
{
	content: "Fig. " attr(value) '. ';
	padding-left: 0px;
	text-decoration:none;
	border-bottom:none;
}
/* Lists: notesprob1a*/
table.notesprob1a
{
	margin-left: -0.25in;
	margin-right: auto;
	margin-bottom:3pt;
 	text-align: left;
	color:black;
	font-family:"Times New Roman",serif;
}

tr.notesprob1a
{
	margin-left: 0;
	text-indent: 0in; 
 	text-align: left;
 	padding-left: 0px;
}

td.notesprob1a
{
	margin-left: 0;
	text-indent: 0in; 
 	text-align: left;
 	padding-left: 0px;

}

.button {
    border: none;
    padding : 20px;
    height: 54px; 
    appearance: none;   
    background-color: inherit;
    cursor: pointer;
}

button:hover{
    transform: scale(1.1, 1.1);
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    body {
        padding: 0 10px;
        overflow-x: hidden;
    }

    /* Reduce margins on mobile */
    p.eqn {
        margin-left: 5%;
        margin-right: 5%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Make figure captions more readable */
    li.fig.caption {
        margin-left: 5%;
        margin-right: 5%;
        font-size: calc(11px + 0.6vw);
    }

    /* Better spacing for sections */
    li.sec {
        margin-bottom: 8px;
    }

    /* Ensure MathJax equations can scroll if too wide */
    .MathJax_Display {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Improve problem section readability */
    div.probs {
        padding: 10px;
    }

    li.prob1 {
        margin-left: 0.15in;
        text-indent: -0.15in;
    }

    /* Better touch targets for navigation links only */
    .nav a {
        padding: 4px;
        min-height: 44px;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 390px) {
    p.eqn {
        margin-left: 2%;
        margin-right: 2%;
        font-size: calc(10px + 0.5vw);
    }

    li.fig.caption {
        margin-left: 2%;
        margin-right: 2%;
    }
}