* {
    margin: 0;
    box-sizing: border-box;
    font-family: "Google Sans", Verdana, Geneva, Tahoma, sans-serif
}

body {
    display: flex;
    flex-direction: column;
    padding: 8px;
    align-items: center;
}

ul {
    padding-left: 20px;
}

li {
    text-indent: -5px;
}

.main-container {
    max-width: 800px;
}

.smol {
    font-size: x-small;
    font-weight: lighter;
}


.flexbox-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.navbar {
    background-color: black;
    padding: 8px;
    height: 32px;
    color: white;
    font-family: "Montserrat", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-item {
    color: white;
    text-decoration: none;
}

.navbar-item:hover {
    color: white;
}

.header {
    font-family: "Montserrat", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.top-space {
    margin-top: 4px;
}

.big-top-space {
    margin-top: 8px;
}

.indent {
    margin-left: 1rem;
}

.card {
    background-color: rgb(5, 5, 5);
    color: rgb(255, 255, 255);
    margin: 1rem;
    padding: 2rem;
    border-radius: 10px;
    width: 120px;
}

.bold {
    font-weight: bold;
}

.start-p::before {
    content: "\2022  ";
    color: black;
}

.lesson-border {
    margin: 4px;
    padding: 8px;
    border: black solid;
    border-radius: 10px;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.space-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}


#core-function{
    background-color: black;
    border-radius: 3px;
    color: white;
}

/* table */

/* --- Minimal B&W Table Styles (Scaled with .text-content) --- */
.bw-table-container {
  width: 100%;
  max-width: 800px;
  margin: 1rem 0;
  color: #000000;
}

.bw-table-header {
  margin-bottom: 0.75em;
}

.bw-table-subtitle {
  font-size: 0.8em;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: #666666;
  text-transform: uppercase;
}

.bw-table-title {
  font-family: "Montserrat", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5em;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 0.1em;
  line-height: 1.2;
}

.bw-table-caption {
  font-size: 0.9em;
  color: #555555;
  margin-top: 0.25em;
  font-style: italic;
}

.bw-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75em;
  font-size: 1em; /* Inherits directly from .text-content */
}

.bw-table th {
  text-align: left;
  font-weight: bold;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6em 0.5em;
  border-bottom: 2px solid #000000;
}

.bw-table td {
  padding: 0.75em 0.5em;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

.bw-table tr:last-child td {
  border-bottom: 2px solid #000000;
}

.col-gen {
  width: 25%;
}

.gen-num {
  font-weight: bold;
}

.gen-year {
  font-size: 0.85em;
  color: #666666;
  margin-left: 0.4em;
  font-weight: normal;
}

.col-hw {
  width: 30%;
}

.col-sw {
  width: 45%;
}

/* table style end */

/* New Table */
/* --- Minimal Grid Table Styles (Scales with .text-content) --- */
.text-content .grid-table-container {
  width: 100%;
  max-width: 800px;
  margin: 1rem 0;
  color: #000000;
}

.text-content .grid-table-header {
  margin-bottom: 1em;
}

.text-content .grid-table-subtitle {
  font-size: 0.8em;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: #666666;
  text-transform: uppercase;
}

.text-content .grid-table-title {
  font-family: "Montserrat", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5em;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 0.1em;
  line-height: 1.2;
}

.text-content .grid-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 8px; /* Creates the card-like gaps between cells */
  margin-top: 0.5em;
}

.text-content .grid-table td {
  background-color: #ffffff;
  border: 1px solid #000000;
  padding: 1em;
  text-align: left;
  font-weight: bold;
  font-size: 0.95em;
  border-radius: 4px;
  width: 33.33%;
}

/* Featured cell matching the image accent (swapped to solid black for B&W theme) */
.text-content .grid-table td.highlight {
  background-color: #000000;
  color: #ffffff;
}
/* TABLE END */

.button {
  font-weight: bolder;
  text-decoration: none;
  color: black;
  border: #000000 solid;
  border-radius: 16px;
  padding: 4px 8px;
}

.button:hover {
  color: white;
  background-color: #000000;
  cursor: pointer;
}

@media screen and (max-width: 600px) {
    .text-content {
        font-size: 0.8rem;
    }
    h1.header {
        font-size: 1.5rem;
    }
    h2.header {
        font-size: 1rem;
    }
    h3.header{
        font-size: 0.8rem;
    }
    .text-content .grid-table, 
    .text-content .grid-table tbody, 
    .text-content .grid-table tr, 
    .text-content .grid-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
  
    .text-content .grid-table tr {
        margin-bottom: 0;
    }
}