@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8); /* Start smaller */
  }
  50% {
    opacity: 1;
    transform: scale(1.1); /* Slightly bigger for a pop effect */
  }
  100% {
    opacity: 1;
    transform: scale(1); /* Set back to normal size */
  }
}

.search-container input[type="text"] {
    width: 50%;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #56DE93;
    border-radius: 4px;
    font-weight: bold;
    font-size: 15px;
    box-sizing: border-box;
}

#searchInput {
    background-color: #56DE93;
}

.blur {
  filter: blur(5px);
  transition: filter 0.3s ease;
  pointer-events: none; /* Prevent interaction with blurred content */
  user-select: none;    /* Optional: disable text selection */
}


.search-container {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.5s;
}

.search-container:hover {
  opacity: 1;
}

.search1 {
    display: flex;
    height: 55px;
    margin-bottom: 20px;
    flex-direction: row;
    gap: 10px;
    flex-wrap: nowrap;
    border-radius: 8px;
    padding: 10px;
    align-items: center;
    justify-content: start;
}

.search1 button {
    height: 35px;
    width: 35px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    font-size: 2em;
    justify-content: center;
    border: none;
    background-color: transparent;
    color: #2c3b50;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.9s;
}

.search1 button:hover {
    opacity: 0.8;
}

#profileButton {
    max-width: 35px;
    max-height: 35px;
    padding: 10px 20px;
    display: flex;
    background-color: #56DE93;
    color: white;
    align-items: center;
    font-size: 16px;
    z-index: 20000;
    overflow: hidden;
    justify-content: center;
    border-radius: 5px;
}


#profileButton:hover {
    color: #0e0d0c;
}

#memoryBtn {
  padding: 12px 24px; /* Add more padding for better spacing */
  border: none; /* Remove the border */
  border-radius: 10px; /* Rounded corners */
  background-color: #2c3b50; /* Soft yellow background */
  color: white; /* Dark text color for contrast */
  font-size: 16px; /* Adjust font size */
  font-weight: bold; /* Make text bolder */
  width: fit-content;
  cursor: pointer; /* Pointer cursor for clickable items */
  position: relative; /* Required for pseudo-element positioning */
  outline: none; /* Remove default outline */
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth background-color and text color transition */
}

#memoryBtn:hover {
  background-color: #56DE93;
  color: #0e0d0c;
}

.box {
    background-color: #0e0d0c;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    flex-shrink: 0;
}

.star {
    position: absolute;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* Initially hide the navCard */
#navCard {
  display: none; /* Hidden by default */
  opacity: 0;
  gap: 20px;
  margin-bottom: 30px;
  transform: scale(0.8); /* Start smaller */
  transition: opacity 1s ease, transform 1s ease; /* Smooth transition */
}

/* Class that will be added to trigger the animation */
#navCard.open {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  opacity: 1;
  transform: scale(1);
  animation: popIn 0.3s ease forwards; /* Trigger pop-in animation */
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.navBtnFlexbox {
  display: flex;
  padding: 30px;
  gap: 10px;
  flex-direction: column; /* default for small screens */
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

@media (min-width: 600px) {
  .navBtnFlexbox {
    flex-direction: row;
  }
}


  
  #navCard button {
    padding: 12px 24px; /* Add more padding for better spacing */
    border: none; /* Remove the border */
    border-radius: 10px; /* Rounded corners */
    background-color: #2c3b50; /* Soft yellow background */
    color: white; /* Dark text color for contrast */
    font-size: 30px; /* Adjust font size */
    font-weight: bold; /* Make text bolder */
    cursor: pointer; /* Pointer cursor for clickable items */
    position: relative; /* Required for pseudo-element positioning */
    outline: none; /* Remove default outline */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth background-color and text color transition */
}

#navCard button:hover {
    background-color: #56DE93; /* Change background color to orange on hover */
    color: #2c3b50; /* Change text color to white on hover */
}

#navCard button a {
  color: #101217;
  font-weight: bold;
  text-decoration: none;
}

#navCard button a:hover {
  color: #56DE93;
  text-decoration: none;
}

#navCard button:focus {
    background-color: #333; /* Change background color to orange on focus */
    color: #56DE93; /* Change text color to white on focus */
}

.navBtnFlexbox button {
  display: flex;
}

.navDescription {
  margin-top: 10px;
  padding: 10px;
  white-space: nowrap; /* Ensures text does not wrap */
  font-size: clamp(12px, 2vw, 16px); /* Adjust font size based on available space */
  overflow: hidden; /* Optional: hides overflowing text */
  text-overflow: ellipsis; /* Optional: adds ellipsis for overflow */
}

#markdownNav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  opacity: 1;
  transform: translateY(10px);
  gap: 0px;
  margin-left: 30px;
  width: 100%;
}

#markdownNav button {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background-color: #56DE93;
  color: #333;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#markdownNav button:nth-child(1) {
  margin-left: 0;
}

#markdownNav button:nth-child(2) {
  margin-left: -15px;
}

#markdownNav button:nth-child(3) {
  margin-left: -15px;
}

#markdownNav button:hover {
  background-color: #333;
  color: #56DE93;
}

/* Remove the animation from #navCard and just control its visibility */
#navCard {
  display: none; /* Hidden by default */
  opacity: 0;
  gap: 20px;
  transform: scale(0.8); /* Start smaller */
}

/* When open, display the nav container */
#navCard.open {
  opacity: 1;
  transform: scale(1);
}

/* Apply the popIn animation to each button inside the open nav */
#navCard.open button {
  opacity: 0;
  transform: scale(0.8);
  animation: popIn 0.3s ease forwards;
}

/* Stagger the animation for each button */
#navCard.open button:nth-child(1) {
  animation-delay: 0.1s;
}

#navCard.open button:nth-child(2) {
  animation-delay: 0.2s;
}

#navCard.open button:nth-child(3) {
  animation-delay: 0.3s;
}

#navCard.open button:nth-child(4) {
  animation-delay: 0.4s;
}

#navCard.open button:nth-child(5) {
  animation-delay: 0.5s;
}

