.md-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .md-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #333;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  

  .chevron {
    font-size: 24px; /* Adjust size of the Material Icons chevron */
  }
  
  .md-nav__item--active > .md-nav > .md-nav__list {
    display: block;
  }
  
  .md-nav__item .mdi {
    padding:0.2em;
    background-color: #83aba349;
    border-radius: 0.5em;
  }
  .md-nav__item .mdi:hover {
    background-color: #83ab8a3f;
  }
  
  .md-nav__item--active > .md-nav {
    display: block; /* Show active submenu */
  }
  /* Optional: Add styles for collapsed/expanded states if needed */
/* Light mode colors */
:root {
    --md-primary-fg-color:        #9fd0c7;
    --md-primary-fg-color--light: #a6e8ce;
    --md-primary-fg-color--dark:  #83aba3;
  }

/* Dark mode with high contrast */
[data-md-color-scheme="slate"] {
    --md-primary-fg-color:        #9fd0c7;
    --md-primary-fg-color--light: #a6e8ce;
    --md-primary-fg-color--dark:  #83aba3;

    /* High contrast background */
    --md-default-bg-color:        #0a0a0a;
    --md-default-fg-color:        #e0e0e0;
    --md-default-fg-color--light: #b0b0b0;
    --md-code-bg-color:           #1a1a1a;
  }
  .md-grid{
    max-width: 75rem;
  }
.text-icon{
    width:1em;
    position: relative;
    top: 0.14em;
}
.tip{
  padding: 1em;
    background-color: rgba(127, 255, 212, 0.305);
    border-radius: 1em;
    position: relative;
  margin-top: 1em;
  margin-bottom: 1em;
}
.warning{
  padding: 3em;
  background-color: rgba(240, 111, 106, 0.58);
  border-radius: 1em;
  position: relative;
}
.tip .mdi, .warning .mdi {
    position: absolute;
    left: 0;
    top: 0;
    padding-left: 0.3em;
    padding-right: 0.3em;
    margin: 0.6em;
    border-radius: 0.8em;
    display: flex;
    justify-content: space-around;
    font-size: x-large;
}
.tip .mdi {
  background: aquamarine;
}
.warning .mdi {
  background-color: rgba(255, 14, 14, 0.58);
}
.tip span:not(.mdi){
    display: flex;
    align-items: center;
    padding: 1em;
    font-style: italic;
    border-radius: 1em;
    position: relative;
    top:0.5em;
  margin-top: 1em;
}
.main-content-img-container {
    background: aliceblue;
    display: flex;
    align-items: center;
    border-radius: 2em;
}
.main-content-img-container img:not(.text-icon) {
    display: flex;
    border-radius: 0.3em;
    background-color: #333;
    margin: 3em;
    margin-left: auto;
    margin-right: auto;
}
.md-header__topic:first-child {
    font-weight: 300;
}
.code-block {
  background-color: #2d2d2d;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 90%;
  max-width: 600px;
  margin-top: 1em;
  margin-bottom: 1em;
}
.code-header {
  background-color: #1e1e1e;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.code-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
}
.code-language {
  color: #999999;
  font-size: 12px;
}
.code-block pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
}
.code-block code {
  font-family: 'Courier New', Courier, monospace;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
background:none;
}

.info-box, .tip-box {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  margin: 20px 0;
}

.info-box {
  background-color: #e7f3fe;
  border-left: 5px solid #2196F3;
}

.tip-box {
  background-color: #e7ffe7;
  border-left: 5px solid #4CAF50;
}

.screenshot {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  margin: 20px 0;
}

.screenshot img {
  max-width: 100%;
  height: auto;
}

.screenshot p {
  text-align: center;
  font-style: italic;
  margin-top: 10px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  color: var(--md-default-fg-color--light);
  line-height: 1.3;
  margin: 1.25em 0 1.25em;
  font-weight: 400;
  letter-spacing: -.01em;
  text-transform: none;
  padding-bottom:0.5em;
  border-bottom: solid 1px #ddd;
}

.md-typeset h1 { font-size: 2.0em; }
.md-typeset h2 { font-size: 1.8em; }
.md-typeset h3 { font-size: 1.6em; }
.md-typeset h4 { font-size: 1.4em; }
.md-typeset h5 { font-size: 1.2em; }
.md-typeset h6 { font-size: 1.1em; }

/* Underline all links */
.md-typeset a {
  text-decoration: underline;
}

.md-typeset a:hover {
  text-decoration: underline;
}

/* Accessibility notice styling */
.accessibility-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #e7f3fe;
  border-left: 5px solid #2196F3;
  border-radius: 5px;
  padding: 1em 1.5em;
  margin: 1.5em 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accessibility-notice .mdi {
  color: #2196F3;
  font-size: 1.5em;
}

.accessibility-notice button.dismiss-notice {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3em;
  margin-left: 1em;
  color: #666;
  font-size: 1.2em;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accessibility-notice button.dismiss-notice:hover {
  color: #2196F3;
}

.accessibility-notice button.dismiss-notice .mdi {
  font-size: 1em;
}

/* Dark mode accessibility notice */
[data-md-color-scheme="slate"] .accessibility-notice {
  background-color: #0a2a3a;
  border-left: 5px solid #4CAF50;
  color: #e0e0e0;
}

[data-md-color-scheme="slate"] .accessibility-notice .mdi {
  color: #4CAF50;
}

[data-md-color-scheme="slate"] .accessibility-notice button.dismiss-notice {
  color: #b0b0b0;
}

[data-md-color-scheme="slate"] .accessibility-notice button.dismiss-notice:hover {
  color: #4CAF50;
}

/* Dark mode specific styles for custom elements */
[data-md-color-scheme="slate"] .md-header {
  background-color: #1a3d36;
  border-bottom: 1px solid #2a5a4a;
}

[data-md-color-scheme="slate"] .md-header__button {
  color: #e0e0e0;
}

[data-md-color-scheme="slate"] .md-header__topic {
  color: #e0e0e0;
}

[data-md-color-scheme="slate"] .md-nav__link {
  color: #e0e0e0;
}

[data-md-color-scheme="slate"] .md-nav__item .mdi {
  background-color: #2a5a5a;
}

[data-md-color-scheme="slate"] .md-nav__item .mdi:hover {
  background-color: #3a6a6a;
}

[data-md-color-scheme="slate"] .tip {
  background-color: rgba(0, 100, 80, 0.4);
  border: 1px solid #4CAF50;
}

[data-md-color-scheme="slate"] .tip .mdi {
  background: #2a7a6a;
}

[data-md-color-scheme="slate"] .warning {
  background-color: rgba(139, 0, 0, 0.5);
  border: 1px solid #ff4444;
}

[data-md-color-scheme="slate"] .warning .mdi {
  background-color: #8b0000;
}

[data-md-color-scheme="slate"] .main-content-img-container {
  background: #1a1a1a;
  border: 1px solid #333;
}

[data-md-color-scheme="slate"] .info-box {
  background-color: #0a2a3a;
  border-left: 5px solid #2196F3;
  color: #e0e0e0;
}

[data-md-color-scheme="slate"] .tip-box {
  background-color: #0a2a0a;
  border-left: 5px solid #4CAF50;
  color: #e0e0e0;
}

[data-md-color-scheme="slate"] th {
  background-color: #1a1a1a;
  color: #e0e0e0;
  border-color: #333;
}

[data-md-color-scheme="slate"] td {
  border-color: #333;
}

[data-md-color-scheme="slate"] .md-typeset h1,
[data-md-color-scheme="slate"] .md-typeset h2,
[data-md-color-scheme="slate"] .md-typeset h3,
[data-md-color-scheme="slate"] .md-typeset h4,
[data-md-color-scheme="slate"] .md-typeset h5,
[data-md-color-scheme="slate"] .md-typeset h6 {
  border-bottom-color: #333;
}