html,
body {
  height: 100%;
}

body {
  font-family: sans-serif;
  text-align: center;
  margin: 0;
  background-color: #161923;
  color: #bcbdd0;
  display: flex;
  flex-direction: column;
}

nav {
  position: fixed;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  padding: 0px;
  background-color: #2a2e3b;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}
nav ul {
  padding: 0px;
  overflow-x: auto;
}

.main-logo {
  display: flex;
  align-items: center;
  margin-left: 5px;
}
.main-logo h2 {
  margin: 5px;
  margin-left: 0;
}
.main-logo img {
  height: 40px;
  margin: 5px;
}

.nav-sections {
  margin: 0px;
  padding-right: 5px;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow-x: auto;
}
.nav-sections li {
  display: inline-block;
  margin: 0 11px;
}

@media only screen and (max-width: 410px) {
  .main-logo h2 {
    display: none;
  }
}
@media only screen and (min-width: 768px) {
  .main-logo {
    background-color: #161923;
  }
}
@media only screen and (min-width: 1025px) {
  .main-logo {
    background-color: #2a2e3b;
  }
}
#contact {
  background-color: rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 50px;
  width: 90%;
  height: 90%;
  justify-content: center;
  align-items: center;
  padding: 0 5% 5% 5%;
}
#contact #content {
  background-color: #2a2e3b;
  max-width: 500px;
  max-height: 80vh;
  margin: 0 auto;
  margin-top: 5vh;
  overflow: auto;
  border-radius: 10px;
  padding: 5px;
  position: relative;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}
#contact table {
  margin: 10px;
}
#contact tr {
  max-height: 80px;
}
#contact tr p {
  text-align: left;
}
#contact img {
  width: 70px;
  height: 70px;
}
#contact p {
  margin-left: 20px;
  margin-right: 20px;
}

.contact-icons {
  list-style: none;
}
.contact-icons li {
  display: inline-block;
}
.contact-icons img {
  filter: brightness(0%) invert(91%) sepia(95%) saturate(7467%) hue-rotate(314deg) brightness(105%) contrast(113%);
  height: 25px;
  margin: 5px;
}
.contact-icons img:hover {
  filter: brightness(0%) invert(100%);
}

#featured {
  position: relative;
  max-width: 1025px;
  margin: 0 auto;
}
#featured .title {
  color: #ffdd55;
}
#featured .description {
  text-align: center;
}
#featured .featuredItem {
  overflow: hidden;
}
#featured .left,
#featured .right {
  width: 96%;
  height: 330px;
  margin: 0 2%;
  position: relative;
}
#featured img {
  transition: opacity 0.3s ease-in-out;
  width: 100%;
  height: 330px;
  object-fit: cover;
}
#featured .left .container {
  float: left;
}
#featured .right .container {
  float: right;
}
#featured .container {
  position: relative;
  width: 95%;
}
#featured .container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#featured .left .container::after {
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #161923);
}
#featured .right .container::after {
  background: linear-gradient(to left, rgba(255, 255, 255, 0), #161923);
}
#featured .overlay {
  position: absolute;
  top: 50%;
  left: 5%;
  width: 90%;
  height: 30%;
  box-sizing: border-box;
  transition: transform 0.4s ease-in-out;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}
#featured .left .overlay {
  right: -100%;
  transform: translateX(120%);
}
#featured .right .overlay {
  right: 100%;
  transform: translateX(-120%);
}
#featured .left:hover .overlay {
  transform: translateX(0);
}
#featured .right:hover .overlay {
  transform: translateX(0);
}
@media (hover: none) {
  #featured .left .overlay,
  #featured .right .overlay {
    transform: translateX(0);
  }
}

.reader-container {
  margin-left: -15px;
  margin-right: -15px;
}

.reader {
  max-height: 100%;
  overflow: hidden;
  width: auto;
}

.carousel-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
}
.carousel-header button {
  margin: 0 10px;
  padding: 5px 10px;
  background-color: #2a2e3b;
  color: #bcbdd0;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none !important;
}
.carousel-header button:disabled {
  background-color: #161923;
  cursor: pointer;
}

.fit-screen {
  width: 100vw;
  height: 100vh; /* Full viewport height */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999; /* Ensure it stays on top */
  background-color: rgba(0, 0, 0, 0.6);
  margin-left: 0px;
  margin-right: 0px;
  padding-top: 10px;
}
.fit-screen .carousel-images img {
  max-height: calc(100vh - 14pt - 34px) !important;
}

#toggle-fit {
  position: absolute;
  align-self: flex-end;
  right: 10px;
}
#toggle-fit img {
  height: 14pt;
  filter: invert(92%) sepia(6%) saturate(165%) hue-rotate(177deg) brightness(90%) contrast(87%);
}

.page-count {
  align-content: center;
}

.carousel {
  position: relative;
  width: auto;
  overflow: hidden;
  border: 2px solid #bcbdd0;
  border-radius: 10px;
  background-color: #2a2e3b;
}

.carousel-images {
  display: flex;
  transition: transform 0.3s ease;
}
.carousel-images img {
  max-height: max-content !important;
}

.markdown-body .carousel-images img {
  object-fit: contain; /* Ensure images fit within the container while maintaining aspect ratio */
  width: auto;
  height: auto;
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
}

button.prev,
button.next {
  position: absolute;
  top: 0;
  width: 10%;
  height: 100%;
  background-color: transparent;
  border: none;
  z-index: 1;
}

button.prev {
  left: 0px;
}

button.next {
  right: 0px;
}

button.prev:hover,
button.next:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Mobile styles */
@media only screen and (min-width: 768px) {
  button.prev,
  button.next {
    width: 50%;
    cursor: pointer;
  }
  button.prev:hover,
  button.next:hover {
    background-color: rgba(0, 0, 0, 0);
  }
}
.markdown-body {
  margin: 0 auto;
  max-width: 900px;
  padding: 20px;
  transition: 0.5s;
}
.markdown-body img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  max-height: 400px;
}
.markdown-body h2 img, .markdown-body h3 img, .markdown-body h4 img {
  max-height: 100%;
}
.markdown-body h3 {
  text-align: left;
  margin: 0 20px;
  margin-top: 40px;
  padding-left: 20px;
  border-bottom: 1px solid #737480;
}
.markdown-body li {
  text-align: left;
}
.markdown-body strong {
  font-weight: inherit;
  color: #ffdd55;
}
.markdown-body pre {
  background-color: #2a2e3b;
  padding: 10px;
  font-size: large;
  margin: auto;
  border-radius: 5px;
  overflow-x: auto;
  max-width: 80%;
}
.markdown-body pre code {
  font-family: monospace;
  text-align: left;
}
.markdown-body blockquote {
  border-left: 5px solid #2a2e3b;
  margin-left: 30px;
  margin-right: 30px;
}
.markdown-body blockquote p {
  padding: 0 10px;
}
.markdown-body iframe {
  display: block;
  max-width: 100%;
  border: 3px solid rgba(115, 116, 128, 0.4);
  border-radius: 5px;
}
.markdown-body iframe:focus {
  border: 3px solid #ffdd55;
}

footer {
  position: relative;
  clear: both;
  height: 81px;
  margin-top: 40px;
  background-color: #2a2e3b;
  color: #737480;
  padding: 5px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  transition: 0.5s;
}
footer .contact-icons {
  padding-left: 0px;
  margin: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}
footer p {
  margin: 5px;
  font-size: small;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  margin: 0;
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
  display: block;
  max-width: 900px;
}

.yt {
  aspect-ratio: 16/9;
}

mjx-container {
  white-space: pre;
}

.hidden {
  display: none;
}

.fade-toggle {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.fade-in {
  opacity: 1;
}

.fade-out {
  opacity: 0;
}

a {
  text-decoration: none;
  color: #bcbdd0;
  transition: 0.2s;
}
a:hover {
  color: #ffdd55;
}

button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
  text-decoration: none;
  color: #bcbdd0;
  transition: 0.2s;
}
button:hover {
  color: #ffdd55;
}
button:disabled:hover {
  color: #bcbdd0;
  cursor: default;
}

#main {
  flex: 1;
  margin-top: 50px;
}
#main h1 {
  margin-top: 20px;
  margin-bottom: 20px;
}
#main .description {
  padding: 0;
  margin: 10px;
  text-align: center;
  color: #737480;
}
#main h2 {
  padding: 10px;
  margin: 30px 0 20px;
  background-color: #2a2e3b;
}
#main p {
  padding-left: 20px;
  padding-right: 20px;
  text-align: left;
  line-height: 1.5em;
}
#main p a {
  text-decoration: underline;
}

.closebtn {
  font-size: large;
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  color: white;
  border: none;
}

input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #737480;
  border-radius: 4px;
  background: #161923;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  margin: 0px;
  margin-left: 2px;
  margin-right: 2px;
  margin-top: 5px;
}
input[type=checkbox]:hover {
  border-color: #bcbdd0;
}
input[type=checkbox]:checked {
  background-color: #ffdd55;
  border-color: #ffdd55;
}
input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid #161923;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}
input[type=checkbox]:focus {
  outline: none;
  box-shadow: 0 0 4px #ffdd55;
}

/*# sourceMappingURL=style.css.map */
