/* Toggle button */
.menu-toggled{
  font-size: 28px;
  line-height: 1;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}

/* Full-screen menu base */
#fullscreenMenud{
  position: fixed;
  inset: 0;
  background: rgba(31, 30, 30, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 2000;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity .25s ease, transform .25s ease;
}

/* Open state */
#fullscreenMenud.open{
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Menu links */
#fullscreenMenud .menu-linkd{
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  gap: 6px;
  font-size: clamp(22px, 5vw, 40px);
  letter-spacing: .5px;
  padding: 8px 16px;
  border-radius: 1px;
  cursor: pointer;
  transition: transform .15s ease;
}
#fullscreenMenud .menu-linkd:hover{
  transform: translateY(-2px);
  text-decoration: none;
}

/* Prevent background scroll while open */
body.menu-open{
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* Close (X) button inside overlay */
#menuClosed{
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  line-height: 1;
  background: transparent;
  color: #fff;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
#menuClosed:hover{ opacity: .8; }

#menuClosed:focus{ outline: 2px solid #fff; outline-offset: 2px; }

/* Glass buttons inside the overlay */
#fullscreenMenud .menu-linkd button{
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
   display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  gap: 20px 0;
  width: 110%;
  padding: 10px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
#fullscreenMenud .menu-linkd button:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
  box-shadow: 0 14px 30px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.22);
}
#fullscreenMenud .menu-linkd a#button{
  color: #fff;               /* keep links white on glass */
  text-decoration: none;
   display: flex;
}

.button-group a {
    display: flex;
  flex-wrap: wrap;
  color: #fff;
  justify-content: center;
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;
  gap: 10px;
}