

  /* Image trigger */
  .menu-trigger {
    cursor: pointer;
    overflow: hidden;
  }

content {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('https://picsum.photos/1200/800') no-repeat center center;
    background-size: cover;
  }

  .overlay {
	color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(15px);
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    z-index: 1000;
  }

  .overlay.active { opacity:1; pointer-events:auto; }

  .menu-box {
    width: 1200px;
	height: 600px;
    max-width: 95%;
    max-height: 90%;

  background: rgba(29, 24, 53, 0.19);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  border: 1px solid rgba(135, 135, 173, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);

    border-radius: 20px;
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.6);
    padding: 40px;
    overflow-y: auto;
    position: relative;
	bottom: 50px;
    text-align: center; /* Center-align content */
  }
  
  .menu-header p {
	  text-color: #9699B7;
  }

  .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
  }
  .close-btn:hover { color: #ff5555; }

  .menu-header {
    margin-bottom: 30px;
  }
  .menu-header h2 { margin:0; font-size:32px; }
  .menu-header p { margin:6px 0 18px 0; color: #aaa; }
  .divider { height:1px; background:#565672; margin-bottom:30px; border:none; }

  /* Image grid */
  .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    justify-items: center; /* center align images */
    margin-bottom: 30px;
	font-weight: bold;
  }

.image-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(83,83,119,0.2); /* keeps image container translucent */
  padding: 15px;
  width: 200px;
}

  .image-item:hover { transform: scale(1.08); box-shadow:0 8px 25px rgba(0,0,0,0.5); }
  .image-item img { width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:10px; margin-bottom:10px; }
  .image-item span { color:#ddd; font-size:15px; }
  
/* New: text background */
.text-overlay {
  background-color: rgb(4,4,17,0.5);
  color: white; /* make text readable */
  padding: 5px 10px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  margin-top: 10px; /* optional spacing from image */
}

  /* Text Grid */
  .text-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-bottom: 0;
  }

  .text-item {
    padding: 15px 25px;
    background: rgba(83,83,119,0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    width: 70%;
    text-align: center;
	font-weight: bold;
  }
  .text-item:hover { background: rgba(53,45,73,0.15); transform: scale(1.02); }
  /* Remove default link styling inside text-item */
  .text-item a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
  }

  .menu-box::-webkit-scrollbar { width: 8px; }
  .menu-box::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
  .menu-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius:4px; }