:root {
  --sidebar-width: 250px;
  --page-links-height: 80px;
}

* {
  box-sizing: border-box;
}

body {
    background-color: rgb(25, 28, 39);
    font-family: 'Palatino', "Times New Roman", serif;
    line-height: 1.4;
}

h1, h2, h3, h4, nav a {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    background: rgb(223, 189, 138);
    text-align: center;
    font-size: large;
    font-weight: 100;
    border-right: 8px double black;
    border-left: 8px double black
}

.sidebar h2 {
    color: rgb(113, 13, 13);
    font-size: 2em;
}

.sidebar nav a {
    text-align: center;
    display: block;
    width: 95%;
    text-decoration: none;
    font-size: 1.5em;
    color: black;
    background-color: rgb(255, 236, 183);
    transition: background-color 0.1s; 
    margin: 0 auto;
    border: 3px outset beige;
}

.sidebar nav a:hover {
  background-color:  rgba(255, 236, 183, 0.562);
}

.page-links {
    background: rgb(0, 0, 0);
    height: var(--page-links-height);
    width: calc(100vw - var(--sidebar-width));
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    padding: 20px;

    display: flex;
    align-items: center;    
    overflow-x: auto;     /* horizontal scrolling when too small */
    overflow-y: hidden;
    white-space: nowrap;    
}

.page-links nav {
    margin: 0 auto;
    display: inline-flex;
    gap: 1rem
    
}

.page-links nav a {
    text-decoration: none;
    font-size: 1.5em;
    color: black;
    background-color: rgb(255, 236, 183);
    transition: background-color 0.1s; 
    border: 2px outset beige;
    padding: 6px;
}

.page-links nav a:hover {
  background-color:  rgba(255, 236, 183, 0.562);
}

body.with-page-links .content {
    margin-top: var(--page-links-height); /* Shift content down when top-bar present */
}

body.with-page-links .content [id]{
    scroll-margin-top: var(--page-links-height); /* Fix scroll location when pressing button*/
}

.content {
    margin-left: calc(var(--sidebar-width) + 5%);
    margin-right: 5%;
    padding: 20px;
}

.content a:link {
  color: pink;
  background-color: transparent;
}

.content a:visited {
  color: rgb(255, 96, 123);
  background-color: transparent;
}

.content h2 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-align: center;
}

.content h3 {
    font-size: 2em;
}

.content p {
    margin-top: 5px;
}

.list{
    padding-left: 0;
}

ul.list li{
    font-family: monospace, serif;
    font-weight: bold;
    list-style: none;
    font-size: 1em;
    padding-top: 8px;
    margin-bottom: 0;
    display: grid; 
    grid-template-columns: 1fr auto; 
    grid-template-rows: auto auto;
}

.caption{
    font-style: italic;
    font-weight: normal;
    font-family: "Verdana", serif;
    font-size: 0.87em;
    padding-left: 30px;
}

.side {
    float: right;
}

.tab{
    padding-left: 90px;
}

section {
    /* background-color: white; */
    color: rgb(255, 255, 255);
    font-size: 120%;
    /* text-align: center; */
    padding:0px;
    margin: 0px;
}

h1 {
    color: white;
    font-size: 5em;
    text-align: center;
    padding-bottom:10px;
    margin: 0px;
}


img {
    max-width: 75%;
    height: auto;
    display: block;
    margin: auto;
    padding: 0px;
}

.wrap {
    float: right; 
    width: 40%; 
    border: 4px rgb(191, 37, 37);
    margin: 5px 20px;
    border-style: solid;
}

.h2rule {
    width: 80%;
    color: white;
    margin: auto;
}

#portrait {
    max-width: 250px;
    width: 100%;
    height: auto;
    display: block;
    margin: 5px 20px;
    border: 4px solid rgb(113, 13, 13);
}