/* Dropdown Menu Styles */

/* Ensure topMenu has high z-index to appear above iframe */
#topMenu {
  /* display:flex;
  align-items: center; */
    position: relative;
    z-index: 100000;
}

.menu-bar {
    /* flex: 0 0 auto;
    white-space: nowrap;
    overflow-x: auto; */
    display: flex;
    gap: 10px;
    background-color: #333;
    padding: 10px;
    border-radius: 5px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

/* Extend the dropdown's hover area when list is shown */
.dropdown:has(.dropdown-list.show) {
    padding-bottom: 250px;
}

.dropdown-button {
    background-color: #555;
    color: white;
    padding: 10px 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
  }

.dropdown-button:hover {
    background-color: #666;
    color: var(--light);
}

.dropdown-button.active {
    background-color: #777;
}

.dropdown-list {
    display: none;
    position: fixed;
    background-color: white;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 100001;
    border-radius: 4px;
    list-style: none;
    padding: 0;
    padding-bottom:12px;
    margin: 0;
    margin-top:-5px;
    margin-left:0px;
    border: 2px solid #333;
    font-size: 0.9rem;
}

.dropdown-list.show {
    display: block;
}

.dropdown-list li {
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 0;
}

.dropdown-list li:last-child {
    border-bottom: none;
}

.dropdown-list a {
    color: #333;
    padding: 2px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.dropdown-list a:hover {
    background-color: #aaa;
    color: var(--dark);
}

.dropdown-list li:first-child a {
    border-radius: 4px 4px 0 0;
}

.dropdown-list li:last-child a {
    border-radius: 0 0 4px 4px;
}

/* #tools-drop-list {
  position: fixed;   relative to viewport
  top: 20px; right: 20px;
  z-index: 2147483647;
  display:block;
} */