@font-face {
  font-family: main;
  src: url("https://cdn.croomssched.tech/fonts/SegUIVar.woff2");
}

:root {
  --main-font: Georgia, "Times New Roman", serif;
  --background-color: #eeeeee;
  --system-accent-color: #dddddd;
  --system-translucent-color: #dddddd99;
  --system-hover-color: #cccccc;
  --body-color: #000000;
  --accent-color: #0078d4;
  --hover-color: #2098f4;
  --accent-hover-color: #ffffff;
  --gold-color: #6d5c00;
  line-height: 1.18;
  overflow: hidden;
  height: 100vh;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #111111;
    --system-accent-color: #222222;
    --system-translucent-color: #22222288;
    --system-hover-color: #333333;
    --body-color: #ffffff;
    --accent-color: gold;
    --hover-color: goldenrod;
    --accent-hover-color: #000000;
    --gold-color: gold;
  }

  html,
  body,
  main,
  div#chapter-list {
    scrollbar-color: #444444 #222222;
  }
}

.hidden {
  display: none !important;
}

*::selection {
  background-color: var(--accent-color);
  color: var(--accent-hover-color);
}

body {
  background-color: var(--background-color);
  color: var(--body-color);
  font-family: main, "Segoe UI Variable", "Segoe UI", system-ui;
  cursor: default;
  margin: 0;
  height: 100%;
  overflow-x: hidden;
  padding-top: 30px;
  padding-bottom: 23px;
}

.no-bottom {
  margin-bottom: 0;
}

a:link {
  color: var(--accent-color);
}

a:visited {
  color: var(--system-hover-color);
}

a:link:hover {
  text-decoration: none;
}

header {
  background-color: var(--system-accent-color);
  width: 100%;
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  user-select: none;
}

button {
  background-color: var(--accent-color);
  color: var(--accent-hover-color);
  font-family: main, "Segoe UI Variable", "Segoe UI", system-ui;
  transition: all 0.3s ease;
  border: none;
  border-radius: 5px;
  padding: 8px 10px;
}

main button {
  font-family: var(--main-font);
}

header div div button {
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 0px;
  transition: all 0.3s ease;
  background-color: var(--system-accent-color);
}

button:hover {
  background-color: var(--hover-color);
}

header div div button:hover {
  background-color: var(--accent-color);
}

header div div button i {
  font-size: 20px;
  padding: 5px 8px;
  transition: all 0.3s ease;
  color: var(--body-color);
  user-select: none;
}

header div div button i:hover {
  color: var(--accent-hover-color);
}

#titleCard #titleCardTitle {
  font-weight: 900;
  background-color: var(--system-accent-color);
  position: relative;
  z-index: 99;
}

#titleCard #moreButtonTitle {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s;
  font-size: 10pt;
  margin-left: 8px;
  padding: 2px 5px;
  border-radius: 5px;
}

#titleCard:hover #moreButtonTitle {
  opacity: 1;
  transform: translateX(0);
}

#titleCard #moreButtonTitle:hover {
  background: var(--system-hover-color);
}

#account-trigger {
  height: 30px;
}

#account-trigger button {
  height: 30px;
}

#profPic {
  width: 20px;
  height: 20px;
  padding: 5px 8px;
  border-radius: 100%;
  user-select: none;
}

#fullMenubar {
  background-color: var(--system-accent-color);
  position: fixed;
  top: 0;
  left: 33.5px;
  z-index: 100;
  padding-left: 5px;
  transition: all 0.1s;
  transform: translateY(-100%);
  width: calc(100vw - 33.5px - 72px - 5px);
}

#fullMenubar.active {
  transform: translateY(0);
}

#fullMenubar > div span.label {
  padding: 4.5px 8px;
  display: block;
}

#fullMenubar div.menuitem:hover {
  background-color: var(--system-hover-color);
}

#fullMenubar > div.menuitem > span.label:active {
  background-color: var(--accent-color);
  color: var(--accent-hover-color);
}

#fullMenubar > div.menuitem > div.submenu {
  padding: 0;
  position: absolute;
  z-index: 98;
  display: none;
  background-color: var(--system-accent-color);
}

#fullMenubar > div.menuitem > div.submenu div {
  position: relative;
  z-index: 98;
  padding: 4.5px 8px;
  background-color: var(--system-accent-color);
}

#fullMenubar > div.menuitem > div.submenu hr {
  margin: 0;
  padding: 0;
}

#fullMenubar > div.menuitem > div.submenu div:hover {
  background-color: var(--system-hover-color);
}

#fullMenubar > div.menuitem > div.submenu.active {
  display: block;
}

#profile-card {
  padding: 10px;
  display: block;
  position: fixed;
  z-index: 98;
  top: 30px;
  right: 36px;
  background: var(--system-accent-color);
  width: 450px;
  height: 150px;
  transform: translateY(-170px);
  transition: all 0.1s;
}

#profile-card.active {
  transform: translateY(0);
}

#profile-card .hidden {
  display: none;
}

#authenticated {
  display: flex;
}

#card-profPic {
  width: 150px;
  height: 150px;
  border-radius: 100%;
  user-select: none;
}

#card-name {
  font-size: 2em;
  font-weight: 900;
  margin-left: 15px;
}

#card-links {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

#card-links button {
  font-family: main, Arial, sans-serif;
}

@media screen and (max-width: 505px) {
  #profile-card {
    left: 0px;
  }
}
@media screen and (max-width: 469px) {
  #profile-card {
    width: 100%;
    max-width: 469px;
    height: 90px;
    grid-template-columns: 110px 1fr;
    transform: translateY(-110px);
  }
  #card-links {
    right: 20px;
  }
  #card-name {
    font-size: 1.5em;
  }
  #profCard-signout {
    display: none;
  }
  #card-profPic {
    width: 90px;
    height: 90px;
  }
}

div.menu-panel {
  margin: 0;
  height: 100%;
  background: var(--system-accent-color);
  position: fixed;
  top: 30px;
  user-select: none;
  transition: all 0.15s;
  z-index: 100;
}

div.menu-panel h1,
div.menu-panel h2,
div.menu-panel h3,
div.menu-panel p {
  margin-top: 0;
}

#left-menu-panel {
  left: 0;
  width: 306px;
  transform: translate(-306px);
}

#left-menu-panel.active {
  transform: translate(0);
}

div#chapter-list {
  overflow-x: hidden;
  overflow-y: auto;
  height: calc(100vh - 31px - 58px - 36px - 58px);
}

div#chapter-list ol {
  list-style: none;
  margin-top: 0;
  padding: 0;
}

div#chapter-list ol li {
  padding: 10px;
  font-size: 16px;
}

div#chapter-list ol li:hover {
  background-color: var(--system-hover-color);
  transition: all 0.3s ease;
}

#share-button {
  transition: all 0.3s ease;
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 8px;
  border-radius: 5px;
}

#share-button:hover {
  background-color: var(--system-hover-color);
}

#right-menu-panel {
  right: 0;
  width: 366px;
  transform: translate(366px);
}

#right-menu-panel.active {
  right: 0;
  transform: translate(0);
}

#infopop {
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  position: fixed;
  width: 100%;
  top: 40px;
  z-index: 101;
}

#infopop div {
  padding: 12px 16px;
  border-radius: 7px;
}

#infopop div p {
  margin: 0px;
}

#infopop div p button {
  margin-left: 24px;
  border: 0;
  outline: 0;
  padding: 0;
  border-radius: 0px;
  background-color: transparent;
}

#infobox {
  background-color: #0078d4;
  color: #ffffff;
  display: none;
}

#infobox p i {
  color: #ffffff;
}

#infopop div div button {
  border: 0;
  outline: 0;
  color: white;
  background-color: transparent;
}

#infopop div div button:hover {
  border: 0;
  outline: 0;
  background-color: #ffffff11;
}

#welcomebox {
  background-color: #0a6600;
  color: #ffffff;
  display: none;
}

#welcomebox p i {
  color: #ffffff;
}

#screenbox {
  background-color: gold;
  color: #000000;
  display: none;
}

#screenbox p i {
  color: #000000;
}

main {
  position: fixed;
  top: 30px;
  width: 100%;
  z-index: 1;
  height: calc(100% - 30px);
  overflow-y: auto;
  scrollbar-width: thin;
}

#main {
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  max-width: 640px;
  height: calc(100% - 30px);
  font-family: var(--main-font);
}

#main article {
  width: 100%;
}

#main article h1 {
  text-align: center;
  user-select: none;
  margin-top: 30px;
  margin-bottom: 0px;
}

#main article p {
  text-align: justify;
  text-indent: 35px;
  margin-top: 5px;
}

#main article img {
  text-align: center;
  user-select: none;
  margin-bottom: 8px;
  width: 100%;
}

input {
  background-color: var(--system-accent-color);
  accent-color: var(--accent-color);
}

.gold {
  color: var(--gold-color);
}

hr.dividing-line {
  margin-top: 0px;
  border: 0px hidden var(--system-accent-color);
}

#small {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  user-select: none;
}

@media screen and (max-width: 365px) {
  #wrapper, #welcomeModal {
    display: none;
  }
  #small {
    display: block;
  }
}

@media screen and (max-height: 319px) {
  #wrapper, #welcomeModal {
    display: none;
  }
  #small {
    display: block;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

context-menu {
  z-index: 101;
  position: absolute;
  border-radius: 10px;
  background-color: var(--system-accent-color);
  box-shadow: 0px 2.5px 7.5px var(--system-hover-color);
  user-select: none;
  display: none;
}

context-menu ul {
  margin: 0px;
  padding: 0px;
  list-style: none;
}

context-menu ul li {
  padding: 7px 10px;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

context-menu ul li:hover {
  background-color: var(--system-hover-color);
}

#aboutModal, #welcomeModal {
  background: var(--system-translucent-color);
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 102;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}

#aboutModal > div, #welcomeModal > div {
  background: var(--system-accent-color) !important;
  user-select: none;
  padding: 1em;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  border-width: thin;
  border-style: solid;
  border-color: #e5e5e5;
  box-shadow: 0px 25.6px 57.6px rgb(0 0 0 / 14%), 0px 0px 16.4px rgb(0 0 0 / 12%);
}

#welcomeModal > div > h2 {
  margin: 0;
}

#welcomeModal > div > p {
  margin-top: 0;
}

@media screen and (prefers-color-scheme: dark) {
  #aboutModal > div, #welcomeModal > div {
    background-color: #181818a8;
    border-color: #1a1a1a1a;
  }
}

.flex {display: flex;}
.flex.row {flex-direction: row;}
.flex.row.reverse {flex-direction: row-reverse;}
.flex.column {flex-direction: column;}
.flex.column.reverse {flex-direction: column-reverse;}
.flex.center {align-items: center;}
.flex.space-between {justify-content: space-between;}