.navigation {
  top:0;
  z-index:9999;
  min-height: 60px;
  background: #0b0b0b;
}

/* *****TOP NAV BAR***** */
.topnav {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    align-items: center;
    padding: 12px;
    justify-content: center;
    background-color:#0b0b0b;
}

  /* links */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a,
.dropbtn {
    background: none;
    color: #f5e6c8;
    text-shadow: 1px 1px 4px #a678c3;
    text-decoration: none;
    font-family: "Merriweather", sans-serif; 
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 10px 14px;
    border-radius: 6px;
    border: none;
    transition: background-color 0.3s ease;
}

.nav-links a:hover 
.dropbtn a:hover {
    background-color: #8c6a1c;
}

.dropdown {

    position: relative;
}

  /* dropdown menu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}



/* *****HAMBURGER***** */

  /* off-screen-menu */
.off-screen-menu {
    background-color: rgba(106, 52, 88, 0.5);
    height: 100vh;
    width: 70%;
    max-width: 450px;
    position: fixed;
    top: 0;
    right: -450px;
    display: flex;
    flex-direction: column;
    align-items: left;    
    justify-content: center;
    text-align: left;
    font-size: 2rem;
    transition: .3s ease;
}
.off-screen-menu.active {
    right: 0;
    background-color: #0b0b0b;
    opacity: 100%;
}


/* nav */
nav {
    padding: 0.5rem;
    display: flex;
    background-color: rgba(11, 11, 11, 0.9);
    width: 3%;
    min-width: 40px;
    position: absolute;
    right: 0;
    top: 0;
}




/* HAMBURGER APPEARANCE */
.ham-menu {
    height: 35px;
    width: 50px;
    margin-left: auto;
    position: relative;
    background-color: rgba(11, 11, 11, 0.1);
}
.ham-menu span {
    height: 5px;
    width: 100%;
    background-color: #8c6a1c;
    border-radius: 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
}
.ham-menu span:nth-child(1) {
    top: 25%;
}
.ham-menu span:nth-child(3) {
    top: 75%;
}


/* MAKES THE LINES ROTATE TO AN X BUT THE EXIT FUNCTION NEEDS FIXED
.ham-menu.active span {
    background-color: #ffffff;
}

.ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
    opacity: 0;
}
.ham-menu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}
    */



/* *****SUBMENU***** */

/* Hide menus by default */
.menu, .submenu {
  display: none;
  list-style: none;
  padding: 10px;
}


/* Show main menu when hamburger is clicked */
#menu-toggle:checked ~ .menu {
  display: block;
}

/* Show submenu when parent label/checkbox is clicked */
#sub-toggle:checked ~ .submenu {
  display: block;
  padding-left: 20px; /* Indent for visual nesting */
} 

#about-toggle:checked ~ .submenu {
  display: block;
  padding-left: 20px; /* Indent for visual nesting */
} 

#community-toggle:checked ~ .submenu {
  display: block;
  padding-left: 20px; /* Indent for visual nesting */
} 



/* Hide the actual checkboxes */
.menu-toggle, .sub-toggle {
  display: none;
}

ul {
  list-style-type: none;
}

li {
  margin-bottom: 10px;
  font-size: 1.8rem;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  z-index: 5;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.off-screen-menu {
  z-index: 10;
}


.ham-menu,
.has-submenu label {
  cursor: pointer;
}

.navbuttons {
  padding: 4px;
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  font-family:"Merriweather", serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  color:#f5e6c8;
  transition: background-color 0.3s ease;
}

.navbuttons:hover{
  background-color: rgba(106, 52, 88, 1);
}

.dropbtn:hover {
  background-color: rgba(106, 52, 88, 1);
}

.navLinks:hover {
  background-color: rgba(106, 52, 88, 1);
}

@media (max-width: 700px) {
    .ham-menu span {
        display: block;
    }
    .nav-links {
        display: none;
    }
}

@media (min-width: 700px) {
    .ham-menu span {
        display: none;
    }
    .nav-links {
        display: flex;
    }
    .ham-menu {
        display: none;
    }
}