.body { padding-top: 56px; }
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #343a40 !important; }
.bg-hero {
 position: relative;
 background: url('/*put the header image url here*/') center center / cover no-repeat;
 /* cover makes it fill & crop to the container */
 min-height: 400px;
}

.menu {
 display: flex;
 flex-direction: row;
 justify-content: space-between;
}


.left-part{
 display: flex;
 align-items: center;
}


.right-part{
 width: 180px;
 flex: 1;
 display: flex;
 align-items: center;
 justify-content: space-between;
 margin-right: 20px;
 flex-shrink: 0;
}


/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom: 1.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }


/* footer */
footer a { color: white; font-weight: bold; text-decoration: none;}
footer a:hover { color: white; text-decoration: underline;}


/* description page */
.col {
 background-color: black;
}

    /*style for the sidebar + container, remainber to add the  layout-container after the body tag to ensure the sidebar is always on the left side*/
    /*sidebar styles*/
    .page-container{
      margin-right:0!important;
      padding:0!important;
    }
    .bg-hero{
      margin-bottom: 0 !important;
    }
    .footer{
      margin-top:0 !important;
    }
    body{
      margin: 0 !important;
      padding: 0 !important;
    }
    .main-content {
      margin-left: 0;
      margin-top: 5%;
      margin-bottom: 70px;
      flex: 1 1 0 !important;
      padding-inline: clamp(16px, 3vw, 32px);
      line-height: 1.7; 
      color: #333;           
      min-width: 0 !important; 
    }
    .layout-container {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      width: 100%;
      padding:0!important;
      margin:0!important;
      position:relative;
      top:0;
    }
    

    /* sidebar */
    .sidebar {
      position: sticky;
      left: 0 !important;
      bottom: 0;
      top: 0px; /* Initial position below navbar */
      background-color: #e3d2c3;
      padding-top: 9%;
      transition: top 0.3s ease; /* Animation for top change */
      margin: 0;
      height: 100vh; /* Full height of the viewport */
    }
    
    .sidebar-nav {
      position:sticky;
      top: 95px;
      padding-top: 5%; /* Adjust to reduce empty space at top */
      display: flex;
      justify-content: flex-start; /* Align text to the left */
      align-items: flex-start;
      flex-direction: column;
      cursor: pointer;
      margin-bottom: 100px;
    }
    
    .sidebar-nav ul {
      list-style-type: none;
      margin-top: 3%; /* Reduce margin for better formatting */
      padding: 0;
      width: 100%; /* Ensure full width of sidebar */
    }
    
    .sidebar-nav li {
      cursor: pointer;
      width: 100%;
      margin-bottom: 10px; /* Reduce spacing between items */
    }
    .sidebar a.active {
      color: #216849;
      font-weight: bold;
      border-left: 4px solid #216849;
      padding-left: 11px;
    }
    
    .sidebar a:hover {
      background-color: #64c5b0;
      color: #ffffff; /* Reverse text to white on hover */
      font-weight: bold;
      transition: all 0.3s ease-out;
      width: 100%; /* Explicitly set to full width on hover */
      box-sizing: border-box; /* Ensure padding doesn't exceed width */
    }
    /*sidebar styles end*/


    .layout-container {
    display: flex !important;
    align-items: flex-start !important;
  }

  .sidebar {
    width: 18% !important; 
    min-width: 10% !important;
    flex-shrink: 0 !important;
  }



/* nav button css*/
  .parts-nav-row{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  
    float: right;
    width: 90px;
    position: sticky;
    bottom: 10px;
    gap: 0;
    padding-right: 10px;
    z-index: 50;  
    margin-top: -14rem;
  }

  .parts-nav-button, .parts-nav-button-back{
    --btn-bg: #fab151;
    --btn-fg: #fff;

    position: relative;
    display: inline-flex;
    place-items: center;
    width: 90px;
    height: 200px; 
    margin: 4px;
    border: 0;
    border-radius: 1%;
    background: var(--btn-bg);
    color: var(--btn-fg);
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    overflow: hidden;
    z-index: 0;
    transition: 0.4s;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .parts-nav-button svg {
    position: absolute;
    width: 28px;
    fill: #fff;
    z-index: 9;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .parts-nav-button-back svg { 
    position: absolute;
    width: 28px;
    fill: #fff;
    z-index: 9;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .parts-nav-button .arr-1 {
    right: 5px;
  }

  .parts-nav-button-back .arr-1 {
    left: 5px; 
  }

  .parts-nav-button .circle {
    position: absolute;
    z-index: 1;
    inset: 0;
    top: 50%;
    left: 50%;
    transform: scale(0.001);
    transform: translate(-50%, -50%);
    width: 20px; height: 20px;
    background-color: #7d3838;
    border-radius: 100%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .parts-nav-button:hover, 
  .parts-nav-button-back:hover{
    box-shadow: 0 0 0 12px transparent;
    background-color: #fab151 !important;
    color: #fff;
    transform: scale(1.05);
  }

  .parts-nav-button:hover .arr-1 {
    right: -30%;
  }

  .parts-nav-button-back:hover .arr-1 {
    left: -30%; 
  }

  .parts-nav-button .text{
    position: relative;
    z-index: 3;
    color: #fff;
    font-size: 16px;
    transition: transform .8s cubic-bezier(.23,1,.32,1);
  }

  .parts-nav-button-back .text {
    position: relative;
    z-index: 3;
    color: #fff;
    font-size: 16px;
    transition: transform .8s cubic-bezier(.23,1,.32,1);
  }

  .parts-nav-button:hover .text,
  .parts-nav-button-back:hover .text {
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .parts-nav-button .text{ transform: translateX(-15px); }
  .parts-nav-button:hover .text{ transform: translateX(0); }
  .parts-nav-button-back .text{ transform: translateX(15px); }
  .parts-nav-button-back:hover .text{ transform: translateX(0); }

  .parts-nav-button:hover svg {
    fill: #fff;
  }

  .parts-nav-button:hover .circle {
    width: 220px;
    height: 220px;
    opacity: 1;
  }

/* above is for nav button */




/* Reference toggle */
  /* Reference toggle button */
  #references .refs-box { position: relative; }
  
  #references .refs-wrap{
    background-color:#F2F5F6;
    border-radius: 0.9px;
    padding: 1.5rem;
    overflow: hidden;
    transition: max-height .35s ease;
    /* fade the bottom so items 'disappear' */
    -webkit-mask-image: linear-gradient(to bottom, #000 75%, rgba(0,0,0,0));
    mask-image: linear-gradient(to bottom, #000 75%, rgba(0,0,0,0));
  }

  /* Expanded state removes fade/height limit */
  #references .refs-box.expanded .refs-wrap{
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Toggle button */
  #references .refs-toggle{
    margin-top: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: black;
    border: 0;
    border-radius: 1px;
    padding: .5rem .9rem;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
  }
  #references .refs-toggle:hover{ background:#0f6f67; color: white; transform: scale(1.02); }
  #references .refs-toggle .chev{ transition: transform .2s ease; }
  #references .refs-box.expanded .chev{ transform: rotate(180deg); }








  /* progress bar */
  #read-progress{
    position: fixed;
    top: 0;
    left: 0;
    height: 7px;     
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(90deg,#aef0ec 0%, #64d5d0 45%, #2fb8b1 75%, #0f6f67 100%);
    box-shadow:
      0 1px 0 rgba(255,255,255,.35) inset,
      0 3px 12px rgba(0,0,0,.12);
  }
