/** Add your extra/custom CSS classes below */
@font-face {
    font-family: "Jacquarda Bastarda 9 Charted";
    src: url("../fonts/JacquardaBastarda9Charted-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Advine Pixel";
    src: url("../fonts/AdvinePixel-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
  }
@font-face {
    font-family: "PF Pixelscript Pro";
    src: url("../fonts/PFPixelscriptProRegular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
  }

  .md-tabs,
  .md-tabs__link,
  .md-nav__link {
    font-family: "Advine Pixel", monospace !important;
    font-size: x-large;
  }

  .md-header {
    font-family: "PT Mono", monospace !important;
    font-size: small;
  }
  
  .md-content {
    margin: 0 auto;      /* center the content */
    max-width: 90%;      /* keep it inside the page */
    padding: 0 40px;     /* space left/right so text doesn’t touch edges */
    box-sizing: border-box;
  }

/* Headings font */
.md-content h1, .md-content h2, .md-content h3, .md-content h4, .md-content h5, .md-content h6 {
    font-family: "Jacquarda Bastarda 9 Charted", serif; /* Headings font */
    font-weight: normal; /* Adjust as needed */
    color: #d55858; /* Optional color for headings */
}
/* Regular body text */
.md-typeset {
    font-size: 0.8rem; /* default is ~16px, increase to 1.1rem for ~18px */
    line-height: 1.6; /* spacing between lines */
}

/* Headings inside the main content area */
main .md-typeset h1 {
    font-size: 2.5rem; /* ~40px */
    color: rgb(92, 24, 4);
}
/* Headings inside the main content area */
main .md-typeset h2 {
    font-size: 1.6rem; /* ~40px */
    color: rgb(178, 36, 23);
}
/* Headings inside the main content area */
main .md-typeset h3 {
    font-size: 1.4rem; 
    color: rgb(178, 36, 23);
}
body {
    background-image: url("../images/home/background-dot2.jpg"); /* adjust path */
    background-size: cover;      /* scale to fill */
    background-repeat: no-repeat;
    background-attachment: fixed; /* makes it stay while scrolling */
    background-position: center;
    margin: 0;
  }

  @media (max-width: 768px) {
    body {
      background-size: contain;     /* fit entire image */
      background-repeat: no-repeat; /* no tiling */
      background-attachment: scroll;
      background-position: top center;
    }
  }
/* Assignments page */
.assignments-grid .row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1em;
}
.assignment-link{
    position: relative;
    width: 32%;
    background-size: cover;
    background-position: center;
    min-height: 200px;
}
.assignment-link:hover{
    opacity: 0.7;
}
.assignment-link img{
    width: 100%;
}
.assignment-link span{
    position: absolute;
    left: 0;
    padding: 6px;
    bottom: 0;
    width: 100%;
    font-weight: lighter;
    color: white;
    background: #472a2a61;
}
/* Hide the left sidebar (site navigation) */
.md-sidebar--primary {
    display: none !important;
  }
  
  /* Hide the right sidebar (table of contents) */
  .md-sidebar--secondary {
    display: none !important;
  } 

  .scramble {
    font-family: "Advine Pixel", sans-serif; /* or whatever font you like */
    font-size: 2em;
    transition: color 3s;
  }
  
  .scramble:hover {
    color: #bf3535; /* change color on hover if you want */
  }

  code {
    background: #EDFFDF;
    padding: 10px;
    display: block;
    border-radius: 8px;
    font-family: monospace; /* semicolon added */
    white-space: pre; /* ensures spacing is preserved */
    color: #7C3636; /* text color */
  }

  .toc {
    position: fixed;
    top: 95px;          /* lowered from 100px → moves it closer to the top */
    right: 20px;
    width: 200px;
    padding: 8px;       /* slightly smaller padding */
    background: #ffffffa4;
    border: 0px solid #ddd;
    border-radius: 7px;
    font-size: 12px;
    overflow-y: auto;
    max-height: 80vh;
  }
  
  .toc h3 {
    font-size: 10px;    /* smaller title text */
    margin: 0 0 6px 0;  /* less space above and below */
    padding: 0;
  }
  
  .toc ul {
    list-style: none;   /* removes bullets */
    padding-left: 0;
  }
  
  .toc li {
    margin-bottom: 4px; /* tighter spacing between items */
  }
  
  .toc a {
    text-decoration: none;
    color: #1c7319;
  }
  
  .toc a:hover {
    text-decoration: underline;
  }
  
  .toc-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;          /* slightly tighter gap */
  }
  
  .toc-cards a {
    display: block;
    padding: 6px 10px; /* smaller padding inside cards */
    background: #ffe8e8b8;
    border-radius: 6px;
    border: 0px solid #ddd;
    color: #333;
    text-decoration: none;
  }
  
  .toc-cards a:hover {
    background: #e5e5e5;
  }

@media (max-width: 768px) {
  .toc {
    display: none;
  }
}

:root > * {
  --md-code-hl-string-color: #0FF1CE;
}

.md-typeset .tabbed-labels > label {
  background-color: #ffffff;     /* tab color */
  color: #5c0c0c;                /* text color */
  font-family: "Advine Pixel", monospace; 
  font-size: 1em;
  
}

.md-typeset .tabbed-content {
  background-color: #631a1a00;     /* background inside tab */
  border-radius: 0px;
  padding: 0em;
  border: 1px solid #ffffff00;
}