*, *::before, *::after{
     margin: 0;
     padding: 0;
     box-sizing: border-box; 
  }

:root{
    /** www.nordtheme.com **/
    /* Polar Night (Dark accents for text/borders) */
    --nord0: #2e3440;
    --nord1: #3b4252;
    --nord2: #434c5e;
    --nord3: #4c566a;

    /* Snow Storm (Light backgrounds) */
    --nord4: #d8dee9;
    --nord5: #e5e9f0;
    --nord6: #eceff4;

    /* Frost (Ice/Blue accents) */
    --nord7: #8fbcbb;
    --nord8: #88c0d0;
    --nord9: #81a1c1;
    --nord10: #5e81ac;

    /* Aurora (Highlight colors) */
    --nord11: #bf616a; /* Red */
    --nord12: #d08770; /* Orange */
    --nord13: #ebcb8b; /* Yellow */
    --nord14: #a3be8c; /* Green */
    --nord15: #b48ead; /* Purple */

  /* Theme Mapping */
    /*
      --bg-color: var(--nord6);
      --card-bg: var(--nord5);
      --text-color: var(--nord0);
      --border-color: var(--nord4);
      --accent-color: var(--nord10);
   */    
    --header-main: var(--nord0); 
    --nav-text: var(--nord5);
    --nav-text-hover: var(--nord8);  
    --nav-dropdown-hover: var(--nord2);  
    --main-background: var(--nord6);
    --footer-background: var(--nord6);
    --links: #a04e56;     /* #a84f57 ; #994a52 darkest */
    --horizontal-rule: var(--nord4);
    --blue-table-header: var(--nord14); 
    --table-background-cal: var(--nord5); 
    --body-text: var(--nord0);
    --table-background-hwtable: var(--nord4);   /* #e5e9f0; */ 
    --today-cal-color: var(--nord4);
}
  
html {
    font-size: 18px;
    overflow-y: scroll; /* Adds scrollbar to all screen. 
			   Prevents content shifting on screens w/o scrollbar */
}

body{ 
    margin: 0;
    font-family: "STIX Two Text";
    text-underline-offset: 3px;
    color: var(--body-text);
}

.flex-wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
/*  justify-content: flex-start; */
}


header {
    top: 0; /* needed for sticky position */
    position: sticky;
    /*! border-top: 4px solid var(--header-border); */
/*    min-height: 64px;*/
    background-color: var(--header-main);
  /*  box-shadow: 0 -5px 0 0 var(--header-border-light) inset; */
    z-index: 1000;
}

.wrapper-header {
/*    max-width: 860px; */
    margin: 0 auto;
    padding: 0px 40px 0px 40px;
}

/* Navbar container */
.navbar {
  /*  overflow: hidden; */
    font-family: "Source Sans 3", sans-serif;
}
   

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.try {
    font-size: 1.2rem;
    font-weight: 400;
    font-family: "Source Sans 3", sans-serif;
    flex-grow: 1;
    text-align: left;
    color: var(--nav-text);
}

.navbar-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* column-gap: 60px; */
    flex-wrap: wrap;
    /*    min-width: 100px; */
    gap: 0;
}

.navbar-right > a, .dropdown {
    box-sizing: border-box;
    padding: 10px 30px 10px 30px;
}

/* Links inside the navbar */
.navbar a {
  font-size: .9rem; /* 1.0 rem */
  font-weight: 500;
  text-align: center;
/*  text-decoration: none; */
  color: var(--nav-text);
}

/* The dropdown container */
.dropdown {
    position: relative;
}

/* Dropdown button */
.dropdown .dropbtn {
    font-size:.9rem; /* 1rem */
    font-weight: 500;
    border: none;
    outline: none;
    color: #000000;
    padding: 0px 0;
    background-color: inherit;
    font-family: inherit; /* Important for vertical align on mobile phones */
    margin: 0; /* Important for vertical align on mobile phones */
    color: var(--nav-text);
    /*! position: absolute; */
}

/* Underline navbar links on hover */
.navbar-right > a:hover, .dropdown:hover, .dropdown:hover .dropbtn {
  /*  border-bottom-color: var(--blue-nav-letters); */ /* Creates the
						     underline effect */
    display: inline; /* Ensures the element wraps its content correctly */
    text-decoration: none;
    font-weight: 500;
    color: var(--nav-text-hover); /* hsl(16 100% 100% / .6) */
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
   /* top: 108%; */
    left: 0px;
    right: -25px;
    border-radius: 0px;
    margin: 0;
    background-color: var(--header-main);
    min-width: 120px;
   /* border: 1px solid black; */
    overflow: hidden;
    margin-top: 9.5px;
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
    font-weight: 900;
  color: var(--nav-text);
  margin: 0px;
  border-radius: 0px;
  padding: 5px 11.2px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-weight: 650;
  font-size: .7rem; /* .8rem */
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
    text-decoration-line: none;
    color: white; /* var(--nav-text); */
    background-color: var(--nav-dropdown-hover);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
  /*  border-bottom: 5px solid var(--blue-nav-letters); */
    border-bottom-left-radius: 8px; 
    border-bottom-right-radius: 8px; 
} 

.wrapper-main {
    max-width: 710px; /* 860 px */
    /* display: inline-flex; */
    margin: 0 auto;
    padding: 0 30px 60px 30px;
}

h1 { 
    font-size: 1.7rem; /* 2.2 rem */
    margin: 50px 0 50px 0;
    font-family: "STIX Two Text", sans-serif;
    font-weight: 500;
    text-align: center;
}

h2 { 
    font-size: 1.2rem; /* 2.2 rem */
    margin: 0 0 0px 0;
   /* font-family: "Source Sans 3", sans-serif;*/
    font-weight: 600;
    text-align: center;
}


main a {
    color: var(--links);
}

main a:hover {
  /* On hover, transition seamlessly back to your dark text color */
  color: var(--body-text); 
  text-decoration-color: var(--body-text);
}

main{
    flex: 1;
    line-height: 1.6rem;
    background-color: var(--main-background);
}

footer { 
    border-top: 2px solid var(--horizontal-rule); 
    background-color: var(--footer-background);
}

.wrapper-footer {
/*    max-width: 860px; */
    margin: 0 auto;
    padding-top: 0px;
    padding: 2px 30px 2px 30px;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    min-height: 1.4rem;
}

footer span {
    font-family: "Source Sans 3", sans-serif;
    font-size: .74rem;
/*    line-height: 1.7rem; */
    font-weight: 300;
/*    padding: 30px 0;*/
/*    padding: 1.6px .8px 1.6px .8px; */
/*    background-color: yellow; */
    }

/* 
.ftright {
    font-size: .769rem;
}
*/


section:first-of-type {
    padding-top: 2.5rem;
    border-top: 2px solid var(--horizontal-rule);
}

section {
    border: .26em;
    margin: 1.2rem 0em .26em 0em; 
}

/*
p, ul { max-width: 70ch; }
*/


p {
    margin: 0 0 14px 0;
   /*  padding: 0.44rem 0.44rem 0.44rem 0rem; */
}


#sylldata {
    padding: 0 .9rem 2.3rem 0rem ;
    margin: 0 0 2.6rem 0;
    font-size: 1rem;
    font-family: "STIX Two Text";
/*    font-family: "Times New Roman", Times, serif;*/
/*    border-top: 4px groove; */
    border-bottom: 2px solid var(--horizontal-rule);
}

#sylldata ul {
   list-style-type: none;
    border: 0em; 
    margin: 0em;
    padding: 0em;    
}



a { text-decoration: none; color: #000000; }
a:hover { text-decoration: underline; }




.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.6rem;
}

.links > section {    
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

p, h4, ul, ol { font-size: 1rem; }

ol {
    /* list-style-type: none; */
    border: .26em; 
    margin: 1.2rem .5em 1.6rem .5em;
    padding: 0em 0em 0em 0em;
    list-style-position: inside; /* forces numbers to not be in the margin */
}

ul {
    list-style-type: none;
    border: .26em; 
    margin: 0.26em 0em;
    padding: 0em 0em 0em 0em;
}

ol br {
    margin-bottom: .4em;
}

ol li { 
    color: #333; 
/*    border: .24rem .24rem 1rem .24rem;*/
    margin: .24rem .24rem 1rem .24rem;
}

.nested-list {
  list-style-type: none; /* Hollow circular bullets */
  margin: 0 1.2rem 0 1.2rem;
}

.nested-list ol {
    counter-reset: mycounter;
}

ol.nested-list>li {
    border: 0;
    margin: 0 0 .3rem 0;
    display: block;
    counter-increment: mycounter;
}

ol.nested-list>li:before {
    content: "(" counter(mycounter, lower-alpha) ") ";
   /* counter-increment: mycounter; */
}

ul li { 
    color: #333; 
    border: .24em;
    margin: .24em;
}

.res {
    margin: .7em;
}

li.res{
    margin: .64em 0em;
}

li.res:first-of-type {
    margin: 0 0 .64em 0;
}


hr {
    margin: .44em 0em 1.76em 0em;
}


.cent {
    width: 100%;
}

hr.thin {
    height: 1px; 
    border : 0;
    padding : 0;
    margin: 0;
    color: lightgray;
    background-color : lightgray; 
} 

.syll hr {
    margin: .88em;
}

.homework-exercises {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 11px 0 0 0;
    border-bottom: 1px solid black;
}

.homework ul {
    margin: 0 0 0 2em;
}

.homework h2 {
    margin: 3.1rem 0 2.8rem 0;
}

.homework section{
    margin: 0rem;
}

.homework p {
    margin: 0;
}

.homework section:first-of-type {
    padding-top: 0;
    border-top: 0;
}    


/* Remove header and footer from printouts */    
@media print{
    @page{
	size: Letter portrait;
	margin: .7in;
    }   

    .homework h2 {
	margin: 2.6rem 0 2.1rem 0;
    }
    
    p, li, body {
	font-size: 15px;
	line-height: 1.3rem;
    }

    header, footer { 
	display: none
    }

    .theorem, .definition, .lemma, .notation {
        break-inside: avoid;
        page-break-inside: avoid; /* for older browsers */
    }

    .stdg section {
	break-before: page;
	page-break-before: always; /* for older browsers */
    }

    .stdg section:first-child {
	break-before: avoid; /* Prevents a page break
				before the very first section */
        page-break-inside: avoid; /* for older browsers */
    }
}


/* The rest of this file is for tables */
    
table {
  border-collapse: collapse;
  border: 2px solid rgb(140 140 140);
  font-size: 0.7rem;
  table-layout: auto;
  width: 100%;
  color: inherit;
}

caption {
    font-size: 1rem;
  padding: 1rem 0 1.5rem 0;
  font-weight: bold;
}

thead,
tfoot {
  background-color: var(--blue-table-header);
}

th, td {
  border: 1px solid rgb(160 160 160);
  padding: 8px 10px;
}

th {
    font-weight: bold;
}
    
/*
td:last-of-type {
  text-align: center;
}
*/

td:nth-child(4) { text-align: left;
}

tbody > tr:nth-of-type(even) {
    background-color: var(--table-background-hwtable);
    /* rgb(237 238 242)*/
}


/*
tfoot th {
  text-align: right;
}

tfoot td {
  font-weight: bold;
}
*/

