pre.math {
  background-color: inherit;
  border: 0px;
  text-align: center;
}

em {
  background-color: yellow;
}

.navbar {
  min-width: 576px;
  height: 54px;
}

#search-form #search-text {
  width: 300px;
}

#search-form #timepicker {
  width: 150px;
}

#main {
  transition: 0.3s;
  padding: 30px 16px;
  z-index: 0;
  margin-left: 310px;
  position: absolute;
  top: 54px;
  overflow: visible;
  width: calc(100vw - 310px);
  min-width: 576px;
  height: calc(100vh - 54px);
}

#mySidebar {
  transition: 0.3s;
  width: 310px;
  z-index: 3;
}

@media screen and (max-width: 1200px) {
  #main {margin-left: 0; width: 100vw;}
  #mySidebar {width: 0;}
}

.openbtn {
  font-size: 25px;
  background-color: #818181;
  position: absolute;
  top: 10px;
  margin-left: 10px;
  padding: 0 10px;
  cursor: pointer;
  z-index: 2;
}

.sidebar {
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  background-color: white;
  overflow-x: hidden;
  overflow-y: hidden;
  padding-top: 15px;
}

.sidebar a h1 {
  padding: 8px;
  color: #080;
  cursor: pointer;
}

.sidebar a h2 {
  margin: 10px 0;
  padding: 0 30px;
  color: #4183C4;
  border-bottom: none;
  cursor: pointer;
}

.sidebar a {
  text-decoration: none;
  max-width: max-content;
  display: block;
}

.sidebar .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  color: #818181;
}

.datepicker-days table tr {
  border-top: 0px;
  background-color: white;
  margin: 0;
  padding: 0;
}

.datepicker-days table tr th {
  border: 0px;
  text-align: center;
  background-color: #f8f8f8;
  font-weight: bold;
  margin: 0;
  padding: 0;
  width: 40px;
  height: 20px;
}

.datepicker-days table thead tr:nth-child(3) th:nth-child(1) {
  background-color: #ffccff;
}

.datepicker-days table thead tr:nth-child(3) th:nth-child(7) {
  background-color: #0ff;
}

.datepicker-days table tr td:nth-child(1) {
  background-color: #ffccff;
}

.datepicker-days table tr td:nth-child(7) {
  background-color: #0ff;
}

.contents {
  text-align: left;
  height: 40vh;
  overflow-x: visible;
  overflow-y: auto;
}

.contents ul,
li {
  margin: 15px 0;
}

.contents ul,
ol {
  padding-left: 30px;
}

.contents ul :first-child,
ol :first-child {
  margin-top: 0;
}

.contents ul :last-child,
ol :last-child {
  margin-bottom: 0;
}

.contents li p.first {
  display: inline-block;
}

/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
  height: 89vh;
  overflow-x: visible;
  overflow-y: auto;
}

.inline-img {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.inline-img img {
  max-width: 150px;
  max-height: 200px;
}

#modal-container {
  display: none;
  position: fixed;
  background: rgba(0, 0, 0, 0.6);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
}

#modal-container>div {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

#modal-container>div>img {
  max-width: calc(100vw - 30px);
  max-height: calc(100vh - 30px);
}

img.popup {
  cursor: pointer;
}

.content {
  padding: 6px 12px;
  height: 89vh;
  overflow-x: visible;
  overflow-y: auto;
}
