<style>

.dropbtn {
    height: 25px;
    width: 235px;
    background-color: none;
    color: black;
    padding: 3px 5px;
    font-size: 14px;
    font-style: bold;
    border: none;
    cursor: pointer;
    background-size: cover; 
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center; 
 }

.dropbtn:hover, .dropbtn:focus {
    background-color: white;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    padding: 3px 5px;
    width: 100%;    
    min-width: 160px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 3px 5px;
    text-decoration: none;
    display: block;
    text-align:left;
}

.dropdown a:hover {background-color: #f1f1f1}

.show {display:block;}
</style>

<script>
/* When the user clicks on the button, 
toggle between hiding and showing the dropdown content */
function TOC_Function() {
    document.getElementById("myDropdown").classList.toggle("show");
}

// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
  if (!event.target.matches('.dropbtn')) {

    var dropdowns = document.getElementsByClassName("dropdown-content");
    var i;
    for (i = 0; i < dropdowns.length; i++) {
      var openDropdown = dropdowns[i];
      if (openDropdown.classList.contains('show')) {
        openDropdown.classList.remove('show');
      }
    }
  }
}
</script>

