


html {
    scroll-behavior: smooth;
    
  }
  
  * {
    scroll-behavior: inherit;
  }
  


  .hero-container {
    overflow: hidden;
    border-radius: 15px; 
    height: 50vh;
    position: relative;
    width: 98%;
    margin: auto;
    margin-top: 10px;
}


.hero-content {

    width: 100%;
    color: var(--color-darker-dark);
    text-align: left;
}

.hero-content h1 {
    font-size: 2rem;
    margin: 10px;
    background-color: var(--color-darker-alpha);
    padding: 15px 10px; /* Adjusted padding for better mobile experience */
    border-radius: 10px;
    position: absolute;
    bottom: 0;
}

  .page-container {
    padding: 1rem;
  }

  .notes {
    font-size: 0.7rem;
    line-height: 1.8;
    width: 100%;
  }
  
  .notes article .title {
    font-size: 2rem;
  }
  
  

  .notes article section > * {
    background-color: var(--color-primary);
    margin-bottom: 40px;
  }
  
  .notes article section header {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 3.5rem;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    margin: 0;
    padding: 0;
    position: -webkit-sticky;
    position: sticky;
  }
  
  .notes article section header > * {
    font-size: inherit;
  }
  
  .notes article section > header {
    /* border-bottom: 0.5px solid var(--color-darker); */
    background-color: var(--color-darker-dark);
    padding-left: 10px;
    font-size: .85rem;
    top: 0rem;
    z-index: 6;
    line-height: 1.5;

  }

  
  .notes article section section:target {
    scroll-margin-top: 3rem;
  }
  
  .notes article section section > header {
    /* border-bottom: 0.5px solid var(--color-darker); */
    background-color: var(--color-secondary-lighter);
    font-size: .85rem;
    top: 3.5rem;
    z-index: 5;
    line-height: 1.5;
  }
  
  .notes article section section section:target {
    scroll-margin-top: 6rem;
  }
  
  .notes article section section section > header {
    /* border-bottom: 0.5px solid var(--color-darker); */
    background-color: var(--color-secondary-lightest);
    font-size: .8rem;
    top: 6.4rem;
    z-index: 4;
    line-height: 1.5;
  }

  #last-modified {
    font-family: var(--font-family-tertiary);
  }
 
  #top {
    background-color: var(--color-primary);
    margin: 0;
    padding: 0;
  }

  .notes h2 {
    margin: 0;
    padding: 0;
  }

  .notes header a{
    color: var(--color-darker);
    text-decoration: none;
  }



/* Style for the custom table of contents */
.custom-toc {
  list-style: none;
}

/* Style for Level 2 (h3) headings */
.custom-toc > li > ol > li {
  list-style: none; /* Hide Level 2 ordered list markers */
}

/* Style for Level 3 (h4) headings */
.custom-toc > li > ol > li > ol > li {
  list-style: none; /* Hide Level 3 ordered list markers */
}

.custom-toc a {
  text-decoration: none;
  position: relative;
}

/* Dotted underline for the links */
.custom-toc a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px dotted ; 
}


.outline2 input[name^=control], .contents {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 20px 30px;
  border: 0;
  font-family: var(f);
}

.outline2 input[id^=show]:checked + label[for^=show] ~ .contents {
  position: static !important;
  clip: auto;
  height: auto;
  width: auto;
  overflow: aut
}



.outline2 .contents {
  transition: 0.2s ease-in;
  opacity: 0;
  background-color: var(--color-darker-dark);
  color: var(--color-darker);
  border-radius: 7px;
  line-height: 2;
  margin-bottom: 30px;

}

.outline2 .contents a{
  color: var(--color-darker);
}

.outline2 label {
  display: inline-block;
  width: 150px;
  padding: 10px;
  text-align: center;
  border-radius: 7px;
  z-index: 10;
  font-family: var(--font-family-quartenary);
}
.outline2 label[for^=show] {
  background: var(--color-darker);
  color: #ddd;
  font-weight: 600;
}
.outline2 input[id^=show]:checked + label[for^=show] {
  display: none;
}
[for^=show]:checked ~ input[id^=show]:checked + label[for^=show] {
  display: none;
}
.outline2 input[id^=show]:checked + label[for^=show] ~ .contents {
  margin-top: 10px;
  opacity: 1;
}
.outline2 label[for^=hide] {
  background: var(--color-darker);
  color: #fff ;
  display: none;
  font-weight: 600;
}
.outline2 input[id^=show]:checked ~ label[for^=hide] {
  display: inline-block;
  width: 150px;
}
.outline2 label:hover {
  cursor: pointer;
  background-color: var(--color-secondary);
  color: var(--color-darker);
}
.outline2 input[id^=show]:focus + label {
  background: orange;
}
.outline2 input[id^=hide]:focus + label {
  background: var(--color-secondary);
}





/*                end of new outline               */
figcaption {
  font-size: .65rem;
}

.tips-card {
  border: 1px solid var(--color-darker);
  padding: .5rem 1rem;
}

.tips-card-subtitle {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.tips-card-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 19px;
  font-weight: 600;
}
.tips-card-content {
  margin: 0;
  font-size: .7rem;
  line-height: 15px;
  font-weight: 400;
}

.tips-card ul {
  list-style-type: '◾'; 
}

.tips-card ul li{
  padding-left: 4px;
}

.drugs-list {
  list-style-type: '💊'; 
}



.contact {
  font-size: 0.65rem;
}



.msg {
  font-style: normal;
}

.msg a{
  font-style: normal;
}


@media (min-width: 700px) {
figure img {
    width: 60%;
    display: block;
    margin: auto;
    height: auto;
  }

}

/* tables */




.note-table {
  border-collapse: collapse;
  width: 100%;
  border: 2px solid var(--color-ash);
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}


.note-table th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}
.note-table th {
  background-color: #f2f2f2;
}

.note-table tr td {
  padding-left: 15px ;
}
 

@media (max-width:600px) {
  th, td {
    padding: 4px;
    font-size: 0.7rem;
  }
}


/* Style for image container */
.image-container {
  display: inline-block;
  width: 50%;
  height: auto;
  margin: 10px 25%;
  border: 1px solid var(--color-darker);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  margin: 4% auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
}

.close {
  color: white;
  border-radius: 10px;
  padding: 0 .5rem 0 .5rem;
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.caption {
  text-align: center;
  margin-top: 10px;
  color: white;
  background-color: var(--color-darker);
  padding: 5px;
  font-size: 0.6rem;
}

#caption {
  position: absolute;
  bottom: 3%;
}

#progress-container {
  height: 5px;
  background-color: transparent;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

#progress-bar {
  height: 100%;
  width: 0;
  background-color: var(--color-secondary);
  border-radius: 0 5px 5px 0;;
}


  /* Overlay to grey out the rest of the screen */
  #special-notes-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  /* Pop-up container */
  #special-notes-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    width: 80%;
    max-width: 400px;
  }

  /* Close button inside the pop-up */
  #special-notes-close {
    display: block;
    margin: 10px auto 0;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
  }

  #special-notes-close:hover {
    background-color: #0056b3;
  }

  /* Button to trigger the pop-up */
  #special-notes-trigger {
    padding: 10px 20px;
    background-color: #1e1e1e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 1em 0 1em 0;
  }

  #special-notes-trigger:hover {
    background-color: #218838;
  }


    /* Centered floating button */
    .floating-toc-button {
      position: fixed;
      bottom: 0.5rem;
      left: 50%;
      transform: translateX(-50%);
      background-color: var(--color-darker);
      color: #fff;
      padding: 10px 15px;
      border-radius: 5px;
      cursor: pointer;
      z-index: 90;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      text-align: center;
      font-size: 0.75rem;
      font-weight: bold;
  }
  
  /* TOC panel styles */
  .toc-panel {
      position: fixed;
      bottom: 3.5rem;
      left: 50%;
      transform: translateX(-50%);
      width: 300px;
      max-height: 0;
      overflow: hidden;
      background: var(--color-primary-dark);
      border-radius: 5px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      transition: max-height 0.3s ease;
      z-index: 900;
      font-size: 0.7rem;


  }
  
  .toc-panel.expanded {
      max-height: 300px;
      overflow-y: auto;
  }
  
  #toc-panel-content {
      padding: 15px;
  }
  
  #dynamic-toc {
    list-style: none;
    padding: 0;
    font-size: 0.6rem; /* Smaller text */
}

#dynamic-toc li {
    margin: 3px 0;
}

#dynamic-toc a {
    text-decoration: none;
    color: var(--color-secondary-lighter);
    font-size: 0.7rem; /* Slightly larger than parent, but still small */
}

#toc-panel-content h4 {
  color: var(--color-primary-dark);
  background-color: var(--color-tertiary-dark);
  padding: .5rem;
}
l
/* Dark Mode Styles */

.dark-mode #toc-panel-content h4 {
  color: var(--color-primary);
  background-color: var(--color-primary-dark);
}

.dark-mode .floating-toc-button {
    background-color: var(--color-primary-darker);
}

.dark-mode .toc-panel {
    background-color: var(--color-primary-darker);
    border-color: #555;
    color: #f0f0f0;
}

.dark-mode #dynamic-toc a {
    color: var(--color-secondary);
}

/* Optional: Hover effects for better interactivity */
#dynamic-toc a:hover {
    text-decoration: underline;
}

.dark-mode #dynamic-toc a:hover {
    color: #6bc1ff;
}


  /* Dark mode styles */


  .dark-mode #special-notes-popup{
    background: var(--color-primary-dark);
    color: #e0e0e0;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
  }

  .dark-mode #special-notes-close {
    background-color: #bb86fc;
    color: #121212;
  }

  .dark-mode:hover #special-notes-close {
    background-color: #9a67ea;
  }

  .dark-mode #special-notes-trigger {
    background-color: #03dac6;
    color: #121212;
  }

  .dark-mode:hover #special-notes-trigger {
    background-color: #018786;
  }

/* Dark Mode Styles */
body.dark-mode {
  background-color: var(--color-primary-dark);
  color: var(--color-darker-dark);
}

.dark-mode .notes article section > * {
  background-color: var(--color-primary-dark);

}

.dark-mode .notes article section section > header {
  background-color: var(--color-primary-darkest);
}

.dark-mode .notes article section > header {
  background-color: var(--color-secondary-dark);
}

.dark-mode .notes article section section section > header {
  background-color: var(--color-primary-darker);
}

.dark-mode .notes header a{
  color: var(--color-darker-dark);
}

.dark-mode .outline2 .contents {
  transition: 0.2s ease-in;
  opacity: 0;
  background-color: var(--color-secondary-dark);
  color: var(--color-darker-dark);
  border-radius: 7px;
  line-height: 2;
}

.dark-mode .outline2 .contents a{
  color: var(--color-darker-dark);
}

.dark-mode .outline2 label[for^=show] {
  background: var(--color-secondary-dark);
  color: var(--color-darker-dark);
}

.dark-mode .outline2 label[for^=hide] {
  background: var(--color-secondary-dark);
  color: var(--color-darker-dark) ;
  display: none;
  font-weight: 600;
}

.dark-mode .note-table th {
  background-color: var(--color-secondary-dark);
}

.dark-mode .caption {
  text-align: center;
  margin-top: 10px;
  color: var(--color-darker-dark);
  background-color: var(--color-secondary-dark);
  padding: 5px;
  font-size: 0.6rem;
}

