code {
  background-color: #c1b7ff;
}
.padding { padding:5px;}
.code {
  font-family: monospace;
  background-color: #c1b7ff;
  margin: 0 10px;
  padding-left: 5px;
  padding-right: 5px;
}

a.replit {
  margin: 0 0 0 10px;
  padding: 0;
  font-size: 0.8em;
  color: #ada4e5;
  font-style: italic;
  text-decoration: none;
}

kbd.key {
  border-radius: 3px;
  padding: 1px 2px 0;
  border: 1px solid black;
  background-color: cornsilk;
  color: black;
  text-transform: uppercase;
}

div.code ul {
  list-style-type: none;
  margin: 5px 0;
  padding: 0;
}

div.code ul li {
  padding-left: 20px;
  text-indent: -20px;
}

.center {
  text-align: center;
  font-family: monospace;
}

.keyword {
  color: maroon;
  font-family: monospace;
  background-color: #c1b7ff;
}

.function {
  color: yellow;
  font-family: monospace;
  background-color: #c1b7ff;
}

.property {
  color: green;
  font-family: monospace;
  background-color: #c1b7ff;
}

.object {
  color: cornflowerblue;
  font-family: monospace;
  background-color: #c1b7ff;
}

.comment {
  color: dimgray;
  font-family: monospace;
  background-color: #c1b7ff;
}

.string {
  color: black;
  font-family: monospace;
  background-color: #c1b7ff;
}

iframe {
  border: solid 1px #c1b7ff;
}

body {
  background-color: #cdc5ff;
  color: slateblue;
  font-family: "Corbel", "Verdana", "Helvetica", sans-serif;
}

button {
  width: auto;
  min-height: 30px;
  border-radius: 10px;
  text-decoration: none;
}

header, footer {
  width: 100%;
  background-color: black;
  color: orange;
  font-family: "Lucida Console", Monaco, monospace;
  font-variant: small-caps;
  text-align: center;
  padding: 10px;
}

header {
  font-size: 2.1em;
}

footer {
  font-size: 0.9em;
  clear: both;
}

h1, h2, h3, h4, h5, h6 {
  color: #2f2475;
}

h2 {
  margin-top: 40px;
}

h4 {
  margin-top: 32px;
}

table {
  width: 90%;
  margin: 0 5%;
  border: #c1b7ff solid 2px;
  table-layout: fixed;
  min-width: 300px;
}

table.ctr {
  text-align: center;
}

table.mid td {
  vertical-align: middle;
}

td {
  border: #c1b7ff dashed 1px;
  vertical-align: top;
}

tr.header, td.header {
  text-align: center;
  background-color: #8470ff;
  vertical-align: middle;
  color: cornsilk;
  font-weight: bold;
  font-size: 1.1em;
}

.sidenote {
  background-color: moccasin;
  max-width: 40%;
  font-size: smaller;
  float: right;
  padding: 7px;
  margin: 5px;
}

.sidenoteimage {
  max-width: 30%;
  float: left;
  text-wrap: normal;
  margin: 1px;
}

div.sidenote div.code {
  margin-left: 30%;
  margin-right: 0;

}

div.sidenote div.code.override {
  margin-left: 0;
  margin-right: 0;
}

.width100 {
  width: 100%;
  height: 300px;
}

.big-button {
  width: 150px;
  height: 150px;
  border-radius: 100%;
  font-size:1.5em;
  line-height: 150px;
  text-align:center;
  background-color: #8470ff;
  border-color: orange;
  color: orange;
  box-shadow: 4px 4px 10px black;
  text-shadow: 2px 2px 4px black;
  margin-left: 35%;
}

.divider {
  width: 90%;
  height: 1px;
  border-bottom: 1px solid #8470ff;
  box-shadow: 2px 2px 8px black;
  margin: 50px auto;

}

/******************/
/*styling for flex*/
/******************/
.flex-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.flex2 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}


.flex-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
div.legend-box {
  border: 2px solid #8470ff;
  font-size: 0.9em;
}

div.legend-box h4 {
  padding: 0;
  margin: 0;
  text-align: center;
  border-bottom: 1px solid #8470ff;
  width: 100%;
}

div.legend-flex {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
}

div.legend div {

}

.columnwide {
  flex-grow: 2;
  flex-basis: content;
  width: 75%;
}

.columnnarrow {
  flex-shrink: 2;
}

.flexparent {
  display: flex;
  height: 100%;
}

.flexchild {
  width: auto;
  height: auto;
  margin: auto; /* Magic! */
}

#pagebookmarks {
  display: flex;
  font-size: 0.7em;
  flex-wrap: wrap;
}

#pagebookmarks h4 {
  text-align: center;
}

div#imgzoom {
  position: fixed;
  display: none;
  min-width: 100%;
  min-height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(74, 62, 142, 0.95);
  z-index: 20;
  cursor: pointer;
  overflow: auto;
}

div#imgzoom img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  margin-top: 30px;
}

div#imgzoom img.zoom {
  max-width: none;
  max-height: none;
}

#buttonfloat {
  position: fixed;
  z-index: 25;
  display: block;
  left: 0;
  top: 0;
  font-size: 13px;
  padding: 0;
  background-color: #8470ff;
  color: #cdc5ff;
  border: none;
  border-collapse: collapse;
  border-radius: unset;
  outline: none;
  max-height: 30px;
  min-width: 65px;
  text-align: center;
  margin: 0;
}

body.noScroll { /* ...or body.dialogShowing */
  overflow: hidden;
}

/********************/
/*styling for images*/
/********************/
img {
  /*width: 100%;*/
  width: auto;
  height: auto;
  max-width: 100%;
  min-width: 75px;
}

.imgsmall {
  width: auto;
  height: auto;
  max-width: 100%
}

.imgfloater25 {
  width: auto;
  height: auto;
  max-width: 25%;
  float: right;
}

.imgfloater {
  max-width: 50%;
  float: right;
}

.max150px {
  max-width: 150px;
}

.imgfloaterb {
  max-width: 55%;
  float: right;
  margin: 0;
}

.imgwrapper {
  width: 100%;
}

.imgwrapperhalf {
  max-width: 50%;
  min-width: 100px;
}

figure {
  margin: 10px;
  padding: 5px;
  border-left: solid 5px #c1b7ff;
}

figcaption {
  font-size: smaller;
  font-style: italic;
}

figure table.figuretable tr.header {
  color: cornsilk;
}

figure table.figuretable tr td {
  text-align: center;
}

/*************************************/
/* styling for the previous/next nav */
/*************************************/

#prevnext table {
  border: none;
  border-collapse: collapse;
}

#prevnext table td {
  border: 0;
  vertical-align: middle;
}

#prevnext table td a {
  text-decoration: none;
  /*min-width: 100px;*/
  font-size: 0.9em;
}

#prevnext table td.central {
  min-width: 10px;
  width: 5%;
}

#prevnext table td.left {
  margin-left: 1px;
  text-align: left;
  min-width: 100px;
}

#prevnext table td.right {
  text-align: right;
  min-width: 100px;
  margin-right: 1px;
}

.fixed {
  width: 40px;
  min-width: 40px;
}

#triangle-left {
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-right: 40px solid #8470ff;
  border-bottom: 20px solid transparent;
}

#triangle-right {
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-left: 40px solid #8470ff;
  border-bottom: 20px solid transparent;
}




/**************************************/
/* styling for the navigation sidebar */
/**************************************/

#body { /* page body wrapper so nav bar floats correctly */
  margin-left: 150px;
  padding: 10px;
}

#nav-note { /* on small screen, note appears to scroll down */
  display: none;
}

.navhead { /* headings in nav */
  text-align: center;
  color: orange;
}

nav {
  background-color: black;
  font-size: 0.9em;
  float: left;
  min-width: 150px;
  max-width: 150px;
}

nav > ul {
  list-style-type: none;
  margin: 5px;
  padding: 5px;
}

nav > ul > li > a > button {
  width: 100%;
  background-color: slateblue;
  color: cornsilk;
  margin: 2px 0;
}

nav > ul > li.selected > a > button /* current page button highlight */
{
  background-color: orange;
  color: black;
}

nav > ul > li.subcategory.selected > a > button /* current page button highlight */
{
  background-color: orange;
  color: black;
  width: 80%;
  font-size: 0.8em;
  margin-left: 10%;
}

nav > ul > li.subcategory > a > button {
  width: 80%;
  background-color: #8470ff;
  font-size: 0.8em;
  margin-left: 10%;
}

nav > ul > li > a > button:hover {
  color: darkorange;
  background-color: #8470ff;
}

/*********************/
/* styling for print */
/*********************/
@media print {

  h1, h2, h3, * {
    color: black;
  }

  nav, nav#nav, nav#navList {
    height: 0;
    display: none;
  }

  body {
    font-size: 12pt;
    background-color: white;
    color: black;
  }

  #body {
    margin-left: 0;
    padding: 10px;
  }
}

#culprit
{
  width:675px;
  height:505px;
}

/******************************/
/* styling for smaller screen */
/******************************/
@media screen and (max-width: 400px) {

  #body {
    margin-left: 0;
    padding: 10px;
  }

  .max150px {
    max-width: 150px;

  }

  nav {
    float: none;
    max-width: 100%;
    width: 100%;
  }

  #nav-note {
    display: block;
    font-size: 0.8em;
    background-color: orange;
    color: black;
    text-align: center;
  }

  #nav-note a {
    text-decoration: none;
  }

  header {
    font-size: 1.5em;
  }

  .imgwrapperhalf, .columnwide, .columnnarrow {
    max-width: 100%;
  }

  .flex-container, .flex2 {
    flex-wrap: wrap;
  }

  .flex2.rev {
    flex-direction: column-reverse;
  }

  .small-hide {
    display: none;
  }
}
