[data-md-color-scheme="slate"] .container, /* overwriting the text color in dark mode */
[data-md-color-scheme="slate"] .container * {
    color: rgba(255, 255, 255, 0.8) !important; /* 0.8 is opacity, otherwise it is poking the eyes */
    border-color: rgba(255, 255, 255, 0.8) !important; 
}

/* changing website wide font to system specific as oep */
*,
*::before,
*::after {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    box-sizing: border-box;
}

/* code blocks takes Roboto Mono font */
code, pre {
    font-family: 'Roboto Mono', 'Courier New', Courier, monospace !important;
}

.md-header {
    background-color: #3b77a0;
}

a.md-header__button.md-logo img {
    height: 30px;
    width: 30px;
}

.md-main__inner.md-grid {
    margin-top: 0px !important;
}

.md-content__inner.md-typeset {
    padding-top: 0px !important
}

.md-footer-meta{
    height: 178px;
    background-color: #3b77a0;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.footer-title {
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 600;
}

.footer-link {
    font-weight: 200;
    font-size: 14px;
    color: #83A2B6;
}

@media (max-width: 860px) {
    .container .grid-container {
        grid-template-columns: 1fr !important; 
        gap: 20px !important; 
    }

    .md-nav__title {
        background-color: #3b77a0 !important;
    }
}

@media screen and (max-width: 76.1875em) {
    .md-header__title .md-header__topic {
      display: none;
    }
}

.grid-item {
    width: 398px; 
    height: 433px; 
    padding: 24px; 
    border-radius: 12px; 
    border: 1.8px solid #294456;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}


p {
    font-size: 14px;
}

h1 {
  margin-top: 0.5rem;
  margin-bottom: 1rem !important;
  padding-bottom: 0;
  line-height: 1.2;
}

h1 + p, h1 + div, h1 + .md-typeset > p {
  margin-top: 0.5rem !important;
}