#navcontainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  margin: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  padding: 0;
  background-color: #1c1c1c;
  border: none;
  box-sizing: border-box;
  pointer-events: auto;
  transition: transform 0.6s ease;
  box-shadow: 0 4px 10px -4px rgb(0 0 0 / .1);
  z-index: 9999;
}

#titlebox {
  position: relative;
  height: 64px;
  flex-shrink: 0;
  width: auto;
  background-color: transparent;
  white-space: nowrap;
  padding-left: 10px;
  align-items: center; 
  display: flex;
}

#navbox {
  display: flex;
  align-items: center;
  height: 64px;
  flex-shrink: 0;
  width: auto;
  overflow: visible;
  padding-right: 0px;
  pointer-events: auto;
}

@media only screen and (min-width: 1143px) {
  /* Aligned height to 64px to match navcontainer and prevent 2px gaps */
  .dropbtn {
    background-color: #fafafa;
    height: 62px; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px; /* Added padding so text isn't squished */
    margin-left: 0;
    cursor: pointer;
    border: none;
    transition: color 0.4s ease, transform 0.3s ease, background-color 0.8s ease;
  }

  .dropdown, 
  .dropdown_index {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  /* Shared hidden state for dropdown contents */
  .dropdown-content,
  .dropdown_index-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%; /* Ensures it sits perfectly below the 64px navbar */
    right: 0;
    background-color: lightpink;
    min-width: 246px;
    z-index: 1000;
    padding: 0;
    pointer-events: auto;
    box-shadow: 0 4px 10px -4px rgb(0 0 0 / 0);
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  /* FIXED: Targets the content box on hover, not the parent container */
  .dropdown:hover .dropdown-content,
  .dropdown_index:hover .dropdown_index-content {
    opacity: 1;
    visibility: visible;
  }

  /* Fixed text links inside the dropdown panels */
  .dropdown-content a,
  .dropdown_index-content a {
    font-family: 'Bebas Neue', sans-serif;
    display: block;
    font-size: 20pt;
    font-weight: 300;
    color: #1c1c1c;
    text-decoration: none;
    padding: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: lightpink;
    border-bottom: 1px solid #1c1c1c;
    box-sizing: border-box; 
  }

  .dropdown-content a:hover,
  .dropdown_index-content a:hover {
    background-color: #1c1c1c;
    color: #b2b2b2;
  }

  /* Button state changes when hovering over the parent wrappers */
  .dropdown:hover .dropbtn,
  .dropdown_index:hover .dropbtn {
    background-color: lightpink;
    color: #1c1c1c;
    transition: background-color 0.3s ease;
  }
}

@media only screen and (min-width: 469px) {
  .full {
    display: block;
  }
  .abbr {
    display: none;
  }
}