/* Define EB Garamond regular font-face */
@font-face {
    font-family: 'EB Garamond';
    src: url('./EBGaramond-VariableFont.ttf') format('truetype');
    font-weight: 100 600;
    font-style: normal;
}

/* Define EB Garamond italic font-face */
@font-face {
    font-family: 'EB Garamond';
    src: url('./EBGaramond-Italic-VariableFont.ttf') format('truetype');
    font-weight: 100 600;
    font-style: italic;
}

/* Define Monaco font-face for monospace usage */
@font-face {
    font-family: 'Monaco';
    src: url('./Monaco.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Style for body: set default font and padding */
body {
    font-family: 'EB Garamond', serif;
    padding-top: 20px;
}

/* Preformatted text container styling for proper code layout */
pre {
    margin: auto;
    overflow-x: auto;
    text-align: left;
}

/* Code block styling: use Monaco and adjust font size and border */
pre code {
    font-family: 'Monaco', monospace !important;
    font-size: 13px;
    border-radius: 8px;
}

/* Responsive container settings */
.responsive-container {
    width: 90%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: width 0.5s ease-in-out;
    padding-bottom: 80px;
    padding-top: 60px;
}

/* Media query for widths 720px and above: adjust container width */
@media (min-width: 720px) {
    .responsive-container {
        width: 70%;
    }
}

/* Media query for widths 1024px and above: adjust container width */
@media (min-width: 1024px) {
    .responsive-container {
        width: 50%;
    }
}

/* New: center h1 elements within the markdown container */
#markdown h1 {
    font-weight: 550;
    text-align: center;
}

/* New: center h2 elements within the markdown container */
#markdown h2 {
    font-weight: 500;
}

#markdown h3 {
    font-size: 22px;
    font-weight: 450;
    margin-bottom: -4px;
}

#markdown strong{
    font-weight: 540;
}

/* New: Increase default paragraph font size */
#markdown p {
    font-size: 18px;
    font-weight: 300;
}

#markdown li {
    font-size: 18px;
    font-weight: 300;
}

#markdown blockquote {
    background-color: rgba(245, 245, 245, 0.5);
    border-left: 5px solid #ccc;
    padding: 4px 12px;
    margin: 1em 0;
}

#markdown a {
    color: #3B86C7;
    text-decoration: none;
}

#markdown a:hover {
    color: #3B86C7;
    text-decoration: underline;
}

#markdown table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
}

.katex {
    font-size: 1em !important; 
}

.loader {
    height: 50px;
    aspect-ratio: 2;
    border: 10px solid #fff;
    box-sizing: border-box;
    background: 
      radial-gradient(farthest-side,#000 98%,#fff0) left/20px 20px,
      radial-gradient(farthest-side,#000 98%,#fff0) left/20px 20px,
      radial-gradient(farthest-side,#000 98%,#fff0) center/20px 20px,
      radial-gradient(farthest-side,#000 98%,#fff0) right/20px 20px,
      #fff;
    background-repeat: no-repeat;
    filter: blur(4px) contrast(10);
    animation: l14 1s infinite;
  }
  @keyframes l14 {
    100%  {background-position:right,left,center,right}
  }

.navbar {
    top: 0;
    text-align: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 16px;
}

.nav-list li {
    display: inline;
    margin: 0 25px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s
}

.nav-list a:hover {
    color: #3B86C7;
}