html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;  /* Prevent horizontal scroll */
  width: 100%;
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
}

ul {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;         /* keeps it above other elements */
  background-color: #333; /* keep background so content doesn't show through */
  border-radius: 0;       /* remove rounding if you want full width */
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}


li {
  /* No float needed with flexbox */
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover {
  background-color: #111;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 2px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  overflow-y: auto; /* Allows full-page scroll if needed */
  background-color: rgba(0,0,0,0.8);
  
}

.modal-content {
  background-color: #fff;
  margin: 50px auto;
  padding: 30px;
  width: 90%;
  max-width: 1200px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  max-height: 90vh;
  overflow-y: auto;
}


#modal-body-content ul {
  color: black !important;
  background: white !important;
  padding-left: 20px !important;
  margin-top: 10px !important;
}


.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/*
body.modal-open,
html.modal-open {
  overflow: hidden;

  position: fixed;
  width: 100%; 
  height: 100%;
}*/
