/* Font: Baskervville */
@import url('https://fonts.googleapis.com/css2?family=Baskervville&display=swap');

body {
  max-width: 1100px;
  margin: 0 auto;
  background-color: #e9eef3; /* soft blue-gray background */
  font-family: 'Baskervville', serif;
  line-height: 1.6;
  padding: 1rem;
  color: #222;
}

/* Headings */
h1 {
  font-family: 'Baskervville', serif;
  font-size: 36px;
  color: #111;
}

h2 {
  font-family: 'Baskervville', serif;
  color: #0645AD;
  font-size: 28px;
}

h3 {
  font-family: 'Baskervville', serif;
  color: #0645AD;
  font-size: 22px;
}

/* Text */
p, li, td, th, a {
  font-family: 'Baskervville', serif;
  font-size: 18px;
  color: #222;
}

/* Notes container */
.notes {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Definition / Example / Remark boxes */
.definition, .example, .remark {
  border-left: 4px solid #0645AD;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  background-color: #f5f7fa;
  border-radius: 5px;
}

.label {
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: block;
}

/* Table of contents */
.toc {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background-color: #dce6f0;
  border-radius: 6px;
  display: inline-block;
}

.toc a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: #0645AD;
}

.toc a:hover {
  text-decoration: underline;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

th, td {
  border: 1px solid #888;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #0645AD;
  color: white;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* =========================
   Top Navigation Bar
   ========================= */

.topnav {
  background-color: black;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

/* Nav links and dropdown button */
.topnav a,
.dropbtn {
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Hover effects */
.topnav a:hover,
.dropdown:hover .dropbtn {
  background-color: gray;
  color: white;
}

.topnav a.active {
  background-color: #ddd;
  color: black;
}

/* Dropdown container */
.dropdown {
  position: relative;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Dropdown links */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}
