html {
  /*for side nav*/
  height: auto;
}

.main-wrapper {
  margin: 1rem;
  padding: 0.5rem;

  max-width: 89ch;
  height: 100%;
}

.table-wrapper {
  margin: 1rem;
  padding: 0.5rem;

  table {
    margin: 0;
  }
}

h1 {
  text-decoration: underline;
  text-transform: uppercase;
  text-align: left;
  font-family: Arial;
  font-size: 2rem;
  font-weight: bolder;
  letter-spacing: -0.05rem;
  color: var(--black);
}

h2 {
  text-decoration: underline;
  font-size: 1.7rem;
  font-weight: bolder;
  font-family: "Times New Roman", Times, serif;
  margin: 10px;
  color: var(--black);
}

h3 {
  font-size: 1.15rem;
  font-style: italic;
  font-weight: bold;
  padding: 0.7rem;
  color: var(--black);
  font-family: "Times New Roman", Times, serif;
}
h4 {
  font-weight: bold;
  color: var(--black);
  font-family: "Times New Roman", Times, serif;
}
strong {
  color: var(--black);
}

sup {
  vertical-align: super;
  font-size: smaller;
}

p {
  line-height: 2.4rem;
  font-family: serif;
  font-size: 1.2rem;
  margin: 10px;
  text-align: justify;
  color: var(--black);
}

.square {
  text-align: right;
}

/*Math jax configuration*/
.MJX-TEX {
  font-size: 1.2rem;
  z-index: 0 !important;
  color: var(--black);
}

.has-jax {
  overflow-x: auto;
  overflow-y: hidden;
}

/*Tables*/
table {
  margin: 0 auto;
}

table,
th,
td {
  border: 1px solid var(--dark-grey-shade);
  width: auto;
}
strong {
  font-size: 2rem;
  font-style: italic;
  font-weight: bolder;
  font-family: "Times New Roman", Times, serif;
}

th {
  background-color: var(--th-bg-color);
  font-size: 1rem;
  line-height: 22px;
}

th,
td {
  /*Space around a cell in table */
  padding: 1rem;
}

tr:nth-child(odd) > td {
  background-color: var(--tr-bg-color);
}

.no-border-table {
  width: 100%;
  border-collapse: collapse; /* Merge adjacent cells, eliminating double borders */
  font-family: Arial, sans-serif; /* Modern font */

  /* Remove all borders initially */

  th,
  td {
    border: none;
  }

  /* Add a subtle border to the bottom of the header cells */
  th {
    padding: 10px;
    text-align: left;
    font-weight: bold;
    color: var(--th-bg-color);
  }

  /* Add padding and background color to cells */
  td {
    padding: 10px;
    color: var(--td-bg-color);
  }

  /* Optional: Add striped rows for better readability */
  tr:nth-child(even) td {
    color: var(--off-white);
  }
}

/*.xScrollable {
  max-width: 100vw;
  overflow-x: scroll;
  position: relative;
  overflow: visible;
}*/

.xScrollable {
  max-width: 100vw; /* Ensure the div doesn't exceed the viewport width */
  overflow-x: auto; /* Allow horizontal scrolling if content overflows */
  overflow-y: visible; /* Keep vertical overflow visible */
  position: relative; /* Maintain the relative position */
}

/*.xScrollable table {
  display: inline-block; blocks 
  max-width: 100%; 
} */
ul,
ol {
  margin-left: 2rem;
  color: var(--black);
}

ul {
  list-style: disc;
  color: var(--black);
}
ul > li > ul {
  list-style: circle;
  color: var(--black);
}
ol {
  list-style: decimal;
  color: var(--black);
}
ol > li > ol {
  list-style: lower-alpha;
  color: var(--black);
}

@media (min-width: 768px) {
  table {
    max-width: none;
    width: auto; /* Let the table size itself based on content */
  }
}

/*displays print icon*/

.print-icon {
  visibility: visible !important;
}

/*side navigator styling*/

.side-navigator {
  height: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  padding-bottom: 50px;
  padding-top: 1rem;
  width: 16rem;
  bottom: 0;
  top: 0;
  left: 0;
  position: absolute;
  /* background-color: var(--odd-th-color); */
  padding-top: 50px;
  background-color: var(--side-nav-bg);
  flex-direction: column;
  display: block;
  z-index: 0;
  box-shadow: 0 1px 2px var(--transparent-black);
}

.side-navigator a {
  padding: 0.8rem 1rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-family: "Roboto Mono", monospace;
  color: var(--side-nav-link);
  display: block;
  position: static;
}

.side-navigator a:hover {
  background-color: var(--accent-color);
  opacity: 0.5;
  color: var(--white);
  border-radius: 6px;
}

.submenu {
  display: none;
  padding-left: 20px;
}

.submenu a {
  opacity: 0.8;
  font-size: 1rem;
}

.submenu.open {
  display: block;
}

/*images*/
.zeichnungen-small {
  max-width: 15rem;
  max-height: 15rem;

  display: block;

  margin-left: auto;
  margin-right: auto;
  width: 30%;
}

.zeichnungen {
  max-width: 20rem;
  max-height: 20rem;

  display: block;

  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.zeichnungen-big {
  max-width: 80%;
  max-height: 25rem;
  display: block;

  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.zeichnungen-bigger {
  max-width: 100%;
  max-height: 25rem;
  display: block;

  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/*scroll button*/

.scrollButton {
  padding: 0.5rem;
  margin: 0 auto;
}

.scrollButton > a {
  text-decoration: none;
  color: var(--accent-color);
  padding: 10px;
  font-weight: bolder;
  font-size: large;
}

.scrollButton > a:hover {
  color: var(--default-link-color-hover);
}

/*print settings*/

@media print {
  nav {
    display: none;
  }
  .side-navigator {
    display: none;
  }
  .scrollButton {
    display: none;
  }
  a {
    text-decoration: none;
    color: var(--black);
  }
}

/*Responsive design*/
@media only screen and (min-width: 250px) {
  .main-wrapper {
    margin: 5px 15px;
  }

  .side-navigator {
    display: none;
  }
}

@media only screen and (min-width: 550px) {
  .main-wrapper {
    margin: 5px 35px;
  }
}

@media only screen and (min-width: 890px) {
  .main-wrapper {
    margin: 5px 50px;
    margin-left: 18rem !important;
  }

  .table-wrapper {
    margin: 5px 50px;
    margin-left: 18rem !important;
  }

  .side-navigator {
    display: inherit;
  }
  .scrollButton > a {
    margin-left: 18rem;
  }
}
