/* IMAS SideBar */

code {
  border: 1px solid #00000030;
  border-radius: 2px;
  padding: 0 5px;
}

.toc.toc-responsive {
  background-color: lightskyblue;
    padding: 1.5rem 0.2em;
    border: 2px solid #ffa500ab;
    border-radius: 10px;
}

@media (max-width: 767px) {
  .toc toc-responsive {
    display: none; /* Hide the caption on smaller screens */
  }
}

  /* code {
    background: #d3d3d34a;
    border: 2px black;
    border-radius: 2px;
  } */

.toc a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.toc-filter img {
  border: 4px solid coral;
}

.toc-filter p u {
  color: blue;
  font-weight: bold;
}

.reference-color {
  color: darkblue;
}

.imasContentBlock div#block-iterindia-content {
  /* overflow-x: scroll;
  overflow-y: scroll;
  height: 60em; */
  padding: 0 5px;
}

/* Top-level TOC items */
.toc > li {
  font-size: 18px;
}

/* Second-level TOC items */
.toc > li > ol > li {
  font-size: 16px;
}

/* Third-level TOC items */
.toc > li > ol > li > ol > li {
  font-size: 14px;
}

/* Fourth-level TOC items */
.toc > li > ol > li > ol > li > ol > li {
  font-size: 12px;
}


/* Hint Block Style */
div.hint-block {
  background-color: #e7f3fe;
  border-left: 4px solid #2196F3;
  padding: 15px 15px 15px 40px; /* Adjust padding for the icon */
  margin: 10px 0;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  position: relative;
  color: #333;
}

/* Style the First Line as Heading */
div.hint-block::before {
  /* content: "💡"; Unicode symbol for hint */
  position: absolute;
  left: 15px;
  font-size: 20px;
  color: #2196F3;
  top: 28%;
  transform: translateY(-50%);
}

div.hint-block > p:first-child {
  font-size: 18px;
  font-weight: bold;
  color: #2196F3;
  margin: 0 0 8px 0; /* Adjust margin as needed */
}

.hint-block.imasIntro {
  background-color: #4f8e8e;
  border-left: none;
  box-shadow: 5px 5px;
}

/* Warning Block Style */
div.warning-block {
  background-color: #FFF9C4;
    border-left: 4px solid #ffc107;
    padding: 15px 15px 15px 40px;
    margin: 10px 0;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    position: relative;
    color: #424242;
}

/* Style the First Line as Heading */
div.warning-block::before {
  /* content: "⚠️"; Unicode symbol for warning */
  position: absolute;
  left: 15px;
  font-size: 20px;
  color: #f44336;
  top: 20%;
  transform: translateY(-50%);
}

div.warning-block > p:first-child {
  font-size: 18px;
  font-weight: bold;
  color: #ffc107;
  margin: 0 0 8px 0; /* Adjust margin as needed */
}

.toc-filter h4 strong {
  color: #1c5084;
}

.toc-filter h5 strong {
  color: blueviolet;
}

.toc-filter h6 strong {
  color: brown;
}

.toc ol.none {
  padding: 0 1em;
}

.toc strong {
  font-weight: bold;
  color: black;
}

.toc strong:hover {
  color: blue;
}

.imasContentBlock {
  background-color: #e9ecef;
}

.language-python, .language-fortran, .language-matlab, .language-cpp, .language-plaintext, .language-makefile, .language-xml, .language-bash {
  background-color: #90ee904d;
}

.toc-filter .imas-heading {
  color: #0000f9;
}

.text-align-left {
  text-align: left;
  color: #ffc107 !important;
  font-size: 1.1em;
}

.imasIntro p.text-align-left {
  font-size: 22px !important;
  color: #ffd042 !important;
}

/* div#block-iterindia-tableofcontents {
  padding-right: 0;
} */

.toc ol.none {
  padding: 0 0.5em 0 1em;
}

/* .toc-filter a.back-to-top {
  display: none;
} */

.toc-filter table caption strong {
  color: darkmagenta;
    font-size: 20px;
    background-color: moccasin;
    padding: 10px;
    border-radius: 10px;
}

.toc-filter caption {
  text-align: center;
}

.imasContentBlock h1.title {
  text-align: center;
  padding: 0;
  border: 2px solid;
  margin: 2px 0;
  background-color: lightgreen;
  border-radius: 10px;
}

.toc-filter a.ext {
  color: darkmagenta;
  text-decoration: none;
}

.toc-filter a.ext:hover {
  color: blue;
  text-decoration: underline;
}

.toc li > ol,
.toc li > ul {
    display: none;
    margin-left: 1em;
    padding-left: 0;
}
.toc li.expanded > ol,
.toc li.expanded > ul {
    display: block;
}
.toc li.has-children {
    position: relative;
    /* padding-left: 1.5em; */
}
.toc .toc-toggle {
    position: absolute;
    left: -1.15rem;
    top: 0.2em;
    width: 1em;
    height: 1em;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-weight: bold;
    color: currentColor;
    font-size: 1em;
    line-height: 1em;
}
.toc .toc-toggle::before {
    content: "+";
}
.toc li.expanded > .toc-toggle::before {
    content: "−";
}
.toc .toc-toggle:focus {
    outline: 2px solid #007ACC;
    outline-offset: 2px;
}
