/* STRUCTURE */

.container {
  position: relative;
  width: 100%;
  top: 100px;
  /* overflow-x: auto; */
}

.math-wrapper,
.math-inline {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
}

.math-inline {
  display: inline-block;
}

.notes-bg {
  width: 100%;
  min-height: 200px;
  position: relative;
  grid-column: 2;
  grid-row: 2;
}

.notes-box {
  width: 80%;
  /* overflow-x: auto; */
}

ol {
  padding: 0px 30px;
}

/* NOTE */

.qed {
  display: block;
  text-align: right;
  font-size: 35px;
}

/* mjx-container[jax="CHTML"][display="inline"] {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  vertical-align: middle; 
} */

mjx-math {
  white-space: normal !important;
}

/* BANNNER */

.notes-banner {
  display: grid;
  grid-template-rows: 100%;
  grid-template-columns: 4fr 1fr;
  width: 100%;
  height: 100%;
  position: relative;
  background-color: rgba(136, 136, 109, 0.462);
  grid-column: 2;
  padding: 10px 0px;
}

.banner-title {
  display: flex;
  justify-content: left;
  align-items: center;
  font-size: 1.5rem;
}

/* DOWNLOAD BUTTON */

.download-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  width: 120px;
  background-color: rgb(255, 103, 27);
  font-family: "Schibsted Grotesk", sans-serif;
  color: white;
  border-radius: 5px;
}

.download-btn:hover {
  cursor: pointer;
  background-color: rgb(210, 79, 13);
}

#download-icon {
  display: none;
}

#download-text {
  color: white;
}

.download-btn-container {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-content: right;
  margin-right: 5px;
}

/* NOTES LIST */

.notes-list {
  background-color: rgba(134, 128, 12, 0.6);
  text-align: left;
  padding: 10px;
  height: 30px;
  transition: height 0.3s ease;
  overflow: auto;
  display: flex;
  gap: 10px;
}

.notes-list-title {
  font-size: 1.2rem;
}

.notes-list-title > p {
  cursor: pointer;
  min-width: 170px;
}
.notes-list-title p {
  display: inline-block;
}
#notes-title {
  margin: 0;
}

.notes-arrow {
  position: relative;
  top: 3px;
  display: inline-block;
  font-size: 1.4rem;
  margin-left: 5px;
  margin-top: 0px;
}
.notes-arrow.rot {
  transform: rotate(90deg);
}
.maths-list {
  margin-left: 10px;
  list-style: none;
}

.notes-list-item {
  color: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}
.notes-list-item:hover {
  color: rgba(0, 0, 0);
}
.notes-list-item::before {
  content: "- ";
}
.notes-menu {
  display: none;
  position: absolute;
  background-color: rgb(226, 224, 185);
  z-index: 1;
  font-size: 17px;
}
.notes-menu > a {
  display: block;
  padding: 5px 0px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.555);
}

.notes-menu > a:hover {
  color: black;
}
.notes-list-title:hover > .notes-menu {
  display: block;
}
