﻿  #bwt-toc-container {
    font-family: Arial, sans-serif;
    z-index: 1000;
    border: 1px solid rgba(127, 127, 127, 1);
    background-color : #f4f4f4 ;
background: -webkit-linear-gradient(top,rgba(255, 255, 255, 1) 0%, rgba(200, 200, 200, 1) 100%);    
-moz-border-radius:20px 20px 20px 20px;
-webkit-border-radius:20px 20px 20px 20px;
border-radius: 20px 20px 20px 20px;
    -webkit-box-shadow: inset 2px 2px 2px #B2B3B5, 0px 1px 0 #fff;
	-moz-box-shadow: inset 2px 2px 2px #B2B3B5, 0px 1px 0 #fff;
	-o-box-shadow: inset 2px 2px 2px #B2B3B5, 0px 1px 0 #fff;
	-khtml-box-shadow: inset 2px 2px 2px #B2B3B5, 0px 1px 0 #fff;
	box-shadow: inset 2px 2px 2px #B2B3B5, 0px 1px 0 #fff;
	box-shadow:2px 2px 2px #999, 0px 1px 0 #000;
    padding: .1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    align: middle;
    max-height: 500px;
    overflow-y: auto;
  }

   #toc-toggle:hover {
    text-decoration: underline;
    font-size:1.05em;
  }

  #toc-toggle {
    background: none;
    border: none;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    padding: 0, 10px;
    margin-bottom: 0.5em;
    color: #003388;
    width: 100%;
    text-align: middle;
  }
/*
  #toc-toggle:hover {
    text-decoration: underline;
    font-size:1.05em;
    color:red;
  }
*/
  #toc-content ul {
    list-style-type: none;
    padding-left: .2em;
    margin: 0;
    line-height:1em;
  }

  #toc-content li {
    margin-bottom: 0.15em;
  }

  #toc-content a {
    text-decoration: none;
    color: #0077cc;
  }

    #toc-content a:hover {
    text-decoration: underline;
    font-size:1em;
  }

  #toc-content a.active {
    font-weight: bold;
    color: #0055aa;
  }

  html {
    scroll-behavior: smooth;
  }

  /* Desktop layout */
  @media (min-width: 768px) {
    #bwt-toc-container {
      position: fixed;
            top: 1em;
      right: 1em
      max-width: 300px;
    }
  }

  /* Mobile layout */
  @media (max-width: 767px) {
    #bwt-toc-container {
      position: fixed;
      bottom: 1em;
      right: 1em;
      max-width: 80vw;
      padding: 0.8em;
    }

    #toc-content {
      max-height: 60vh;
      overflow-y: auto;
      margin-top: 0.5em;
      transform: translateY(20px);
      opacity: 0;
    }

    #toc-content.show {
      transform: translateY(0);
      opacity: 1;
    }
  }