.home-navbar-interactive {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
  top:0;
  position: fixed;
  align-items: center;
  background: white;
  padding: 1.5rem 2.5rem;
}

.logo {
  font-family: 'Space Mono', monospace;
  font-size: 1.5rem; /* 1.5 times the root font size */
  text-decoration: none;
  color: black;
  margin-right: auto;
}

/* off-screen menu */
.off-screen-menu {
  background: #7edace;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  height: 100%;
  width: 30rem;
  padding-top: 3rem;
  position: fixed;
  top: 0;
  right: -700rem;
  display: flex;  
  flex-direction: column;

  font-size: 1rem;
  transition: 1.3s ease;
  z-index: 1000;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.off-screen-menu.active {
  right: 0;
}

.off-screen-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
    height: 100%;
}

@media (max-width: 900px) {
  .off-screen-menu {
    width: 100%;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
}
.profile-pic-menu {
  z-index: 1001;
  cursor: pointer;
}

.profile-pic-menu img {
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  border: 2px solid #DCDCDC;
  z-index: 100;
  cursor: pointer;
  object-fit: cover;

}

.navlink1 {
  text-decoration: none;
  display: flex;
  font-size: 1.5rem;
  color: white;
  text-align: left;
  align-items: center;
  margin: 8rem auto 20px 7rem;
}

.navlink2, .navlink4, .Sign-out {
  margin: 20px auto 20px 7rem;
  display: flex;
  font-size: 1.5rem;
  color: white;
}

.navlink1 i, .navlink2 i, .navlink4 i, .Sign-out i {
  margin-right: 20px;
  display: flex;
  font-size: 1.5rem;;
  width: 2.5rem;
  color: white;
}
.header-end-link {
    margin: auto 0 10px 0;
    display: flex;
    flex-direction: row;

}

.navlink3 {
  font-size: 0.7rem;
  color: white;
  font-style: italic;
  display: flex;
  text-align: left;
  margin-right: 10px;
  text-decoration: underline;
}


.chat-toggle-btn {
  cursor: pointer;
  z-index: 1000;
}

.chat-toggle-btn img {
  width: 2rem;
  height: 2rem;
}

@media screen and (min-width:901px) {
  .chat-toggle-btn{
    display: none;
  }
}

/* Container that slides in from the right */
#friend-list-container-2 {
  position: fixed;
  top: 0rem; /* Adjust based on header height */
  right: 0;  /* Align container to the right */
  height: 100%;
  width: auto; /* We'll let the content define width */
  z-index: 100;
  
  /* Initially hidden off-screen to the right */
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  
  display: flex;
  justify-content: flex-end; /* Align content to the right inside container */
}

/* When open, slide the container into view */
#friend-list-container-2.open {
  transform: translateX(0);
}

/* Friend list content styling */
.friend-list-content {
  background: white;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  width: auto;
  max-width: 400px;
  height: 100%;
  overflow-y: auto;
  padding: 10rem 1rem 1rem 1rem;
  border-radius: 10px;
  margin-right: 0;  /* Ensure no extra margin on the right */
}
  

/* //////////  NOTIFICATION BELL  ////////////////  */
.notification-bell-container {
  z-index: 1000;
}

#notification-bell {
  width: 2rem;
  height: 2rem;
  position: relative;
  cursor: pointer;
  margin: 0 2rem;
  z-index: 1000;
}

#notification-bell-excl {
  width: 2rem;
  height: 2rem;
  margin: 0 2rem;
  z-index: 1000;
}

#notification-bell-excl img{
  z-index: 1000 !important;
}

.notification-list {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.notification-list .notification {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

.notification-list .notification img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}


.notification-list .notification a {
    text-decoration: none;
    color: inherit;
}




  /* Container for the notification list */
  #notificationList {
    margin-top: 40px;
    gap: 10px;
    width: 28rem;
    max-height: auto;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  }

  .time-ago {
    margin-left: auto; 
  }

  /* Notification item */
  .notification {
    display: flex;
    align-items: center;
    width: auto;
    margin-bottom: 0.75rem;
    border-radius: 5px;
    transition: background-color 0.2s ease;
  }

  .notification:hover {
    background-color: #f9f9f9;
  }

  /* Notification profile image */
  .notification img {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    margin-right: 0.2rem;
    object-fit: cover;
  }

  /* Notification link and text */
  .notification a {
    color: #333;
    font-size: 0.8rem;
    text-decoration: none;
    flex-grow: 1;
  }

  .notification a:hover {
    color: #007bff;
  }

  /* Time ago text */
  .notification .time-ago {
    font-size: 0.75rem;
    color: #777;
    margin-left: auto;
  }

  /* Scrollbar customization */
  #notificationList::-webkit-scrollbar {
    width: 0.3rem;
  }

  #notificationList::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }

  #notificationList::-webkit-scrollbar-thumb:hover {
    background: #aaa;
  }

  #notifcationList.notification-list { 
    width: 2rem;
  }


  .notification.viewed {
    opacity: 0.5; /* Makes the notification 20% transparent */
    transition: opacity 5s ease; /* Smooth transition when marking as viewed */
  }

  .notification.new {
    opacity: 1; /* Ensure new notifications are fully opaque */
  }


  