/* ========================================
   MAT336 Spring 2026 - Cleaned CSS
   ======================================== */

/* ========================================
   BASIC PAGE STRUCTURE
   ======================================== */

BODY {
	font-family: Arial, Helvetica, sans-serif;
	background: rgba(42, 122, 164, 0.783) no-repeat fixed top center;
	background-size: cover;
	font-size: 16px; /* Base font size */
}

/* Links */
a {
	text-decoration: none;
}

a:link, a:visited {
	text-decoration: none;
}

a:active, a:hover {
	color: red;
	background-color: yellow;
	text-decoration: underline;
}

/* Lists */
li {
	margin-top: 1ex;
}

/* ========================================
   MAIN CONTENT CONTAINER
   ======================================== */

div.content {
	border-radius: 2ex;
	margin: 2ex 0.5em 1ex 0.5em;
	padding: 0pt 0.75em 0.5ex 0.5em;
	color: black;
	text-align: justify;
	background-color: white;
	opacity: 0.95;
	filter: alpha(opacity=95);
	border: thick ridge grey;
}

/* ========================================
   HEADER SECTIONS
   ======================================== */

div.head {
	text-align: center;
	line-height: normal;
	font-family: Arial, Helvetica, sans-serif;
}

div.head h1 {
	letter-spacing: 0.04em;
	font-weight: bold;
	font-size: 175%;
	color: black;
}

div.head h2 {
	font-size: 140%;
	font-weight: normal;
}

/* ========================================
   ENTRY/CONTENT SECTIONS
   ======================================== */

div.entry {
	position: relative;
	margin: 0;
	clear: both;
}

div.entry h1 {
	letter-spacing: 0.04em;
	font-weight: bold;
	font-size: 150%;
	color: black;
	margin: 1em 0 0.5em 0;
}

div.entry h2 {
	letter-spacing: 0.04em;
	font-weight: bold;
	font-size: 130%;
	color: black;
	margin: 0.8em 0 0.4em 0;
}

div.entry h3 {
	letter-spacing: 0.04em;
	font-weight: normal;
	font-size: 110%;
	padding: 0.1em 0.4em;
	background: #A0D0F0;
	margin: 0.8em 0 0.4em 0;
}

div.entry h4 {
	letter-spacing: 0.04em;
	font-weight: normal;
	font-size: 100%;
	padding: 0.1em 0.4em;
	background: #e6f9ff;
	margin: 0.6em 0 0.3em 0;
}

/* ========================================
   FOOTER
   ======================================== */

div.foot {
	margin-left: 40%;
	text-align: right;
	color: black;
	font-size: small;
}

/* ========================================
   NAVIGATION TABLE
   ======================================== */

.nav-table {
	max-width: 90%;
	margin: 20px auto;
	border-collapse: collapse;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-table th {
	background-color: #f0f8ff;
	color: #333;
	font-weight: bold;
	padding: 12px 15px;
	text-align: left;
	border-bottom: 2px solid #4682B4;
}

.nav-table td {
	padding: 10px 15px;
	border-bottom: 1px solid #ddd;
	font-size: 14px;
}

.nav-table tr:nth-child(even) {
	background-color: #fafafa;
}

.nav-table tr:hover {
	background-color: #e6f3ff;
}

.nav-table a {
	color: #4682B4;
	text-decoration: none;
	font-weight: bold;
}

.nav-table a:hover {
	color: #2c5aa0;
	text-decoration: underline;
}

/* ========================================
   RUBRIC TABLES
   ======================================== */

.rubric-table-container {
	overflow-x: auto;
	margin: 20px 0;
}

.rubric-table {
	min-width: 800px;
	border-collapse: collapse;
	margin-top: 1em;
	font-size: 14px;
	table-layout: auto;
}

.rubric-table-5col {
	table-layout: fixed;
	width: 100%;
}

.rubric-table th,
.rubric-table td {
	border: 1px solid #666;
	padding: 0.6em;
	vertical-align: top;
	text-align: left;
	font-size: 14px;
}

.rubric-table th {
	background-color: #f0f8ff;
	font-weight: bold;
	text-align: center;
	font-size: 14px;
}

/* Make performance columns equal width for 5-column rubrics */
.rubric-table-5col th:nth-child(1),
.rubric-table-5col td:nth-child(1) {
	width: 12%;
}

.rubric-table-5col th:nth-child(2),
.rubric-table-5col td:nth-child(2) {
	width: 8%;
}

.rubric-table-5col th:nth-child(3),
.rubric-table-5col th:nth-child(4),
.rubric-table-5col th:nth-child(5),
.rubric-table-5col td:nth-child(3),
.rubric-table-5col td:nth-child(4),
.rubric-table-5col td:nth-child(5) {
	width: 26.67%;
}

.rubric-table tr:nth-child(even) {
	background-color: #fafafa;
}

.rubric-table tr:nth-child(odd) {
	background-color: #ffffff;
}

/* ========================================
   SCHEDULE TABLE
   ======================================== */

.schedule-table {
	max-width: 85%;
	margin: 20px auto;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 14px;
}

.schedule-table th,
.schedule-table td {
	border: 1px solid #666;
	padding: 0.4em 0.5em;
	vertical-align: top;
	text-align: left;
	word-wrap: break-word;
	font-size: 14px;
}

.schedule-table th {
	background: #d8edf5;
	color: #222;
	font-weight: bold;
}

/* Alternating row colors */
.schedule-table tbody tr:nth-child(odd) {
	background-color: #ffffff;
}

.schedule-table tbody tr:nth-child(even) {
	background-color: #f8fbfd;
}

/* Column widths for 5-column schedule */
.schedule-table th:nth-child(1),
.schedule-table td:nth-child(1) {
	width: 5%;
	text-align: center;
}

.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
	width: 10%;
}



.schedule-table th:nth-child(3),
.schedule-table td:nth-child(3) {
	width: 32%;
}

.schedule-table th:nth-child(4),
.schedule-table td:nth-child(4) {
	width: 28%;
}

.schedule-table th:nth-child(5),
.schedule-table td:nth-child(5) {
	width: 25%;
}

/* ========================================
   GRADE BREAKDOWN TABLE (id="customers")
   ======================================== */

#customers {
	max-width: 800px;
	margin: 20px auto;
	border-collapse: collapse;
	font-size: 14px;
}

#customers th,
#customers td {
	border: 1px solid #666;
	padding: 10px 15px;
	text-align: left;
	vertical-align: top;
}

#customers th {
	background-color: #f0f8ff;
	font-weight: bold;
	color: #333;
}

#customers tbody tr:nth-child(odd) {
	background-color: #ffffff;
}

#customers tbody tr:nth-child(even) {
	background-color: #fafafa;
}



div.mybox {
   background-color: #e6ffff;
  width: 80%;
  border: 5px solid lightblue;
  padding: 5px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
Box 
   ======================================== */
* {
  box-sizing: border-box;
}

.row {
  display: flex;
}


/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 480px) {
	.schedule-table th:nth-child(4),
	.schedule-table td:nth-child(4) {
		display: none;
	}
}