@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
@font-face {
  font-family: "Stanford";
  src: url("https://www-media.stanford.edu/assets/fonts/stanford.woff") format("woff"), url("https://www-media.stanford.edu/assets/fonts/stanford.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

:root {
  --md-text-font: 'Source Sans 3', sans-serif; /* Sets the variable with fallback */
  --md-primary-fg-color:               #820000
  --md-primary-fg-color--light:        #b1040ddc;
  --md-primary-fg-color--dark:         #820000;
  --md-accent-fg-color:                #b00009;
  --md-accent-fg-color--transparent:   #b1040e0a;
}

.md-typeset h1 { 
  font-weight: 600;
  color:  #2E2D29;
}
.md-grid {
  max-width: 68rem;
}

.md-typeset h2 {
  font-weight: 400;
}

/* Accessibility Requirement */
.md-typeset a {
    border-bottom: .05rem solid #006CB8;
    color: #006CB8; /* Link color */
}
.md-typeset a:hover {
  border-bottom: .05rem solid #000000;
  color: #000000;
}

/* Header */
.md-header-nav__button img {
  width: auto;   /* Maintain aspect ratio */
}
.md-header__button.md-logo {
  padding-top: 15px;
}
.md-header__button.md-logo img, .md-header__button.md-logo svg {
  height: auto;
  width: 150px;
}
.md-header {
  background-color: white;
  color: black;
  /* position: relative; */
  box-shadow: 10px 5px 10px rgba(36, 36, 36, 0.1);
}

a.toclink {
  color: #2E2D29 !important;
  border-bottom: .05rem dotted #2E2D29;
}

/* Search Bar */
.md-search__form {
  transition: background-color 0.3s;
  transition: color 0.3s;
  background-color: white;
  border-radius: 20px;
  color: black;
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 1);
}
.md-search__form:hover {
  background-color: #9c9c9c40; 
}
.md-search {
  padding: 0px;
}
.md-search__inner {
  padding: 0px;
}
.md-search__input::placeholder {
  color: gray;
  opacity: 1;
}
.md-search__scrollwrap {
  height: auto;
}
.md-search__icon svg {
  fill: #B1040E;
}
#searchForm1 {
  background-color: #c4c4c4;
  position: absolute; 
  z-index: 999; 
  color: black;
}


/* Site Title */
.md-header__title {
  font-family: Source Sans Pro, sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: black;
}
.md-header__title .md-ellipsis:after {
    content: ''; /* prevent text clipping */
    padding: 1px;
}
.md-header__topic .md-ellipsis:first-child {
  line-height: 20px;
  padding-top: 10px;
  padding-bottom: 8px;
}
@media (max-width: 1220px) { 
  #header-vertical-line {
    display: none;
  }
  .md-ellipsis-sub {
    display: none;
  }
}
.md-header__topic:first-child { 
  font-weight: 500;
  color: black;
}
.md-header__topic {
  display: block;
  text-align: left;
}
.md-header__title.md-header__title--active{
  margin-top: 10px;
}
.md-ellipsis-sub {
  font-size: 0.9rem;
  line-height: 1.1rem;
  position: absolute;
}
@media (max-width: 500px) {
  .md-ellipsis {
    font-size: calc(3.5vw + 0.35rem);
  }
}
@media (max-width: 1220px) {
    .md-header__topic .md-ellipsis:first-child {
        margin-top: 3px;
    }
    .md-header__title.md-header__title--active{
      margin-top: 0px;
    }
}
#header-vertical-line {
  border-left: 1px solid rgb(62, 62, 62); 
  height: 45px; 
  margin-left: 5px;
  margin-top: 10px;
}

/* Navigation Bar */
.md-tabs__item {
  position: relative;  
  transition: all 0.3s ease; 
  margin-left: 0px;
}
.md-tabs__item .md-tabs__link {
  color: #000000; 
  font-weight: 500;
  font-size: 18px;
  display: block; 
  transition: color 0.3s ease; 
  padding-bottom: 10px;
}
.md-tabs__item--active .md-tabs__link { 
  color: #B1050E;
}
.md-tabs__item:hover .md-tabs__link,
.md-tabs__item--active .md-tabs__link { 
  color: #B1050E; 
}
.md-tabs__item:hover::after,
.md-tabs__item--active::after {
  opacity: 1; 
}
.md-tabs__list {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 0px;
  list-style: none;
  margin: 0px;
}
.md-tabs__list li {
  margin-right: 10px;
}
.md-tabs__list li:last-child {
  margin-right: 0;
}
.md-tabs__list {
  margin-left: 0;
}
[dir=ltr] .md-tabs__list {
  margin-left: 0rem;
  margin-top: -20px;
}

/* Cookie consent link */
.md-footer-meta.md-typeset .consent {
    color: var(--md-footer-fg-color--lighter);
}


/* Removing word-breaks from code */
.md-typeset code { word-break: keep-all; }


/* Sherlock admonition */
.md-typeset .admonition.sherlock,
.md-typeset details.sherlock {
  border-color: #8c1515;
}
.md-typeset .sherlock > .admonition-title,
.md-typeset .sherlock > summary {
  background-color: #82000010;
  border-color: #8c1515;
}
.md-typeset .sherlock > .admonition-title::before,
.md-typeset .sherlock > summary::before {
  background-color: #8c1515;
  -webkit-mask-image: var(--md-admonition-icon--sherlock);
          mask-image: var(--md-admonition-icon--sherlock);
}

/* Additional styles */
.chk_yes  { color: darkgreen; }
.chk_no   { color: darkred;   }
.fl_left  { float: left;      }
.fl_right { float: right;     }
.sw_mpi       { color: darkblue;  font-weight: bold; }
.sw_mpi:after { content: "mpi" }
.sw_gpu       { color: darkgreen; font-weight: bold; }
.sw_gpu:after { content: "gpu" }
.sw_lic       { color: darkred;   font-weight: bold; }
.sw_lic:after { content: "lic" }
.sw_def       { color: gray;      font-weight: bold; }
.sw_def:after { content: "def" }
.number {
    font-size: 1.2rem;
    color: var(--md-primary-fg-color);
}
.number_desc {
    font-size: 0.8em;
    margin-top: -1em !important;
    color: var(--md-default-fg-color--light);
}


/* Pulsate Animation */
@keyframes pulsate {
  0%, 40%, 80%, 100% {
    transform: scale(1);
  }
  20%, 60% {
    transform: scale(1.15);
  }
}
.pulsate {
  color: #dd2e44;
  animation: pulsate 1000ms infinite;
}

/* Rotate */
@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

.rotate {
  animation: rotation 2s infinite linear;
}

/* Identity-Bar */ 
.identity-bar-container {
  position: relative;
  z-index: 0;
  width: 100%;
}

.identity-bar {
  position: relative;
  width: 100%;
  padding-left: 20px;
  padding-top: 5px;
  padding-bottom: 1px;
  background-color: transparent;
  z-index: 1; 
}

.identity-bar-fw-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #8c1515; 
  z-index: 0;
}

#identity-bar-logo {
  text-decoration: none;
  color: white; 
  font-size: 20px;
  font-family: "Stanford";
  line-height: 1;
}
.logo:hover, .logo:focus {
  text-decoration: none;
}

/* Media query for applying medium-specific padding */
@media (min-width: 768px) { /* Adjusts breakpoint for medium devices */
  .md:pl-30 {
    padding-left: 30px;
  }
}

