* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


.top-bar {
  background-color: #707c34; /* olive green background */
  padding: 8px 0;
  color: white;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  z-index: 300;
}

.message {
  font-weight: bold;
}

.divider {
  color: #ddd;
}

.contact {
  color: white;
  text-decoration: none;
}

.contact:hover {
  text-decoration: underline;
}


body {
  font-family: "Poppins", sans-serif;
}

.nav-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  position: fixed;
  background-color: black;
  padding: 12px 20px;
  height: 80px;
  z-index: 300;
  background-color: white;
}

.nav-bar, .top-bar {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-bar.scrolled, .top-bar.scrolled {
  opacity: 0;
  transform: translateY(-100%);
}

.nav-bar.scrolled .menu li a {
  color:white;
}

.nav-bar.scrolled .menu li a::after {
  background-color: black;
}

.logo img {
  width: 80px;
}

.menu {
  display: flex;
}

.menu li {
  padding-left: 30px;

}

.menu li a {
  display: inline-block;
  text-decoration: none;
  color:#707c34;
  text-align: center;
  transition: 0.15s ease-in-out;
  position: relative;
  text-transform: uppercase;

}



.menu li a:hover:after {
  width: 100%;
}

.open-menu,
.close-menu {
  position: absolute;
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
  display: none;
}

.open-menu {
  color: black;
}

.open-menu {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.close-menu {
  top: 25px;
  right: 25px;
}

#check {
  display: none;
}


@media(max-width: 610px) {
  .menu {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 100;
    background-color: black;
    transition: right 0.3s ease-in-out;
  }
  

  .menu li {
    margin-top: 40px;
  }

  .menu li a {
    padding: 10px;
    color: white;
  }

  .open-menu,
  .close-menu {
    display: block;
  }

  #check:checked~.menu {
    right: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    align-items: center;
  }

  .nav-bar .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 65%;
    height: 100vh;
    background-color: #707c34;
    transition: right 0.3s ease-in-out; /* Slide-in animation */
  }
  

  .nav-bar .menu li {
    text-align: center;
    margin: 10px 0;
  }

  .nav-bar input[type="checkbox"]:checked ~ .menu {
    right: 0; /* Slide in when checked */
  }

  .open-menu, .close-menu {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
  }

  .open-menu {
    color: #707c34;
  }

  .close-menu {
    color: white;
    align-self: flex-end;
  }

  .message {
    font-size: smaller;
    padding: 3px;
  }

  .contact {
    font-size: smaller;
    padding: 3px;
  }

  .logo img {
    height: 120px;
    width: 120px;
    padding-top: 1.5vh;
  }

  .nav-bar {
    justify-content: center;
  }
}
body.menu-open {
  overflow: hidden;
}