
html {
  scroll-behavior: smooth;
}


body {
  width: 1000px;
  margin: auto;
}

.toc {
  position: fixed;
  left: 20px;
  top: 20px;
  border: 3px solid;
  border-radius: 10px;
  padding: 15px;
  font-size: 20px;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
}

.toc ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.toc a {
  box-shadow: inset 0 0 0 0 rgba(86, 62, 123, 0.25);
  color: black;
  transition: color .3s ease-in-out, box-shadow .3s ease-in-out
}

.toc a:link, a:visited {
  color: black;
  text-decoration: none;
}

.toc a:hover {
  box-shadow: inset 300px 0 0 0 rgba(86, 62, 123, 0.25);
  color: black;

}

@media (max-width: 1450px) {
  .toc {
    display: none;
  }
}

h1 {
  text-align: center;
}

h2 {
  text-align: center;
}

h3 {
  margin-bottom: 5px;
  margin-top: 1.5em;
}

.block {
  border-radius: 10px;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
  margin-bottom: 2em;
}

.collapsible {
  background-color: #777;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  font-weight: bold;
  outline: none;
  font-size: 16px;
}

.collapsible:first-of-type {
  border-radius: 10px 10px 0px 0px;
}
.collapsible:last-of-type {
  border-radius: 0px 0px 10px 10px;
}
.collapsible:first-of-type:last-of-type {
  border-radius: 10px 10px 10px 10px;
}
.content:last-of-type {
  border-radius: 0px 0px 10px 10px;
}

.collapsible:hover {
  /*background-color: #555;*/
  box-shadow: inset 0 0 100px 100px rgba(255,255,255,0.2);
}

.collapsible:after {
  content: '\002B';
  color: white;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
}
.collapsible:last-of-type.active {
  border-radius: 0px 0px 0px 0px;
}
.collapsible:first-of-type:last-of-type.active {
  border-radius: 10px 10px 0px 0px;
}

.content {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  background-color: #f1f1f1;
}

/*Table Styling*/
tr:nth-child(even) {
  background-color: rgb(220,220,220);
}
tr:hover {
  box-shadow: inset 0 0 100px 100px rgba(100,0,100,0.1);
}
tr {
  height: 1.5em;
}
table {
  width: 100%;
  border-top: 2px solid;
  border-bottom: 2px solid;
  margin-top: 1em;
  margin-bottom: 1em;
}

h3 + table {
  margin-top: 0em;
}

/*Pre Code Blocks*/
pre {
  background-color: rgb(230,230,230);
}

h3 + pre {
  margin-top: 0em;
}



/*Section Gradients*/
.basic-syntax {
  background: linear-gradient(90deg, #000000 0%, #526F17 100%);
}
.common-funcs {
  background: linear-gradient(90deg, #000000 0%, #7C1338 100%);
}
.string-funcs {
  background: linear-gradient(90deg, #000000 0%, #56407F 100%);
}
.pgl-funcs {
  background: linear-gradient(90deg, #000000 0%, #336C77 100%);
}
.list-funcs {
  background: linear-gradient(90deg, #000000 0%, #7E4B0F 100%);
}
.dict-funcs {
  background: linear-gradient(90deg, #000000 0%, #7F7348 100%);
}
.set-funcs {
  background: linear-gradient(90deg, #000000 0%, #527017 100%);
}


/*Code Styling*/
.pseudo {
  font-family: serif;
  font-style: italic;
}
.kw {
  font-weight: bold;
}



/*For SVG Image*/
#desc_prec,
#desc_group,
#desc_width,
#desc_sign,
#desc_align,
#desc_fill,
#desc_type {
  display: block;
}

#desc_fill:hover + #fill,
#desc_align:hover + #align,
#desc_sign:hover + #sign,
#desc_width:hover + #width,
#desc_group:hover + #group,
#desc_prec:hover + #precision,
#desc_type:hover + #type {
  filter: drop-shadow(0px 0px 1px #56407F);
}

svg {
  margins: auto;
}
