/* OG version

/* Base styling for dropdown items */
.quarto-navbar-tools .dropdown-item {
  font-weight: bold;
  color: #5D5D5D !important;  /* Default font color if needed */
  padding: 10px !important;
}

/* Text colors for each dropdown item (matches section headers) */
.quarto-navbar-tools .dropdown-item[href*="ideas"] {
  color: #D96C69 !important;  /* Same as ideas section */
}

.quarto-navbar-tools .dropdown-item[href*="music"] {
  color: #e29c7c!important;  /* Same as music section */
}

.quarto-navbar-tools .dropdown-item[href*="writing"] {
  color: #E6C85C !important;  /* Same as writing section */
}

.quarto-navbar-tools .dropdown-item[href*="data"] {
  color: #8DA65B !important;  /* Same as data section */
}

.quarto-navbar-tools .dropdown-item[href*="design"] {
  color: #86A8E6 !important;  /* Same as design section */
}

.quarto-navbar-tools .dropdown-item[href*="photo"] {
  color: #B290E6 !important;  /* Same as photo section */
}

/* Optional hover effect for dropdown items (changing text color slightly) */
.quarto-navbar-tools .dropdown-item:hover {
  filter: brightness(1.2);
  transition: filter 0.3s ease;
}

/* Darken the color by 80% */
function darkenColor(rgbArray, factor) {
  return rgbArray.map(value => Math.floor(value * factor));
} 

/* Section card fade in


/* Initial hidden state for section cards and post cards */
.section-card,
.quarto-grid-item.card {
  opacity: 0;
  transform: translateY(20px); /* Subtle slide effect */
  transition: opacity 1.0s ease, transform 1.0s ease; /* Smooth animation */
}

/* Visible state for section cards and post cards */
.section-card.visible,
.quarto-grid-item.card.visible {
  opacity: 1;
  transform: translateY(0); /* Return to original position */
}

/* Ensure child elements of post cards are visible */
.quarto-grid-item.card * {
  opacity: 0; /* Hide child elements initially */ 
  transition: opacity 0.5s ease; /* Smooth fade-in for child elements */
}

.quarto-grid-item.card.visible * {
  opacity: 1; /* Show child elements when parent is visible */
}

/* Scroll indicator styling */
.scroll-indicator {
  position: relative;
  text-align: center;
  margin-top: -145px; /* Position closer to the photo title */
  margin-bottom: 10px;
  transition: opacity 0.5s ease; /* Smooth fade-out effect */
}

/* Style for the arrow in the scroll indicator */
.scroll-indicator .arrow {
  font-size: 2em;
  color: var(--dynamic-color, #000); /* Dynamic color or fallback to black */
  animation: blink 2.5s infinite; /* Blinking animation */
}

@keyframes blink {
  0%, 50% {
    opacity: 1; /* Fully visible */
  }
  100% {
    opacity: 0; /* Fade out */
  }
}


/* Ensure section-card is relatively positioned */
a.section-card {
  position: relative !important;  
  width: 115px !important;  
  height: 115px !important;  
  display: inline-block !important;  
  margin: 7.5px !important;  
  margin-bottom: 66px !important; /* Add space below the section cards */
  background-color: #ddd !important;  
  font-size: 1.0em !important;
  color: white !important;
  font-weight: bold !important;
  text-align: left !important;  
  padding: 0 !important;  
  line-height: 1.2 !important; 
  text-decoration: none !important; 
}

/* Target the text inside the anchor tags and position it */
a.section-card span {
  position: absolute !important;
  bottom: 10px !important;  
  left: 10px !important;    
  font-size: 1.0em !important;
  font-weight: bold !important;
  color: inherit !important; /* Inherit color from background */
}

/* Background colors for the cards and darken the text color by 80% */
a.section-card.ideas { 
  background-color: #e99289 !important; /* 12% lighter red */
  color: rgb(110, 30, 30) !important; /* Deeper contrast */
}
a.section-card.music { 
  background-color: #e29c7c !important; /* 12% lighter orange */
  color: rgb(115, 50, 30) !important; /* Deeper contrast */
}
a.section-card.writing { 
  background-color: #f3ce6b !important; /* 12% lighter yellow */
  color: rgb(130, 70, 20) !important; /* Deeper contrast */
}
a.section-card.data { 
  background-color: #99c56c !important; /* 12% lighter green */
  color: rgb(40, 80, 35) !important; /* Deeper contrast */
}
a.section-card.design { 
  background-color: #96c3f3 !important; /* 12% lighter blue */
  color: rgb(40, 65, 120) !important; /* Deeper contrast */
}
a.section-card.photo { 
  background-color: #bc9af3 !important; /* 12% lighter purple */
  color: rgb(70, 40, 115) !important; /* Deeper contrast */
}


/* Optional: Spacer for additional control */
.spacer {
  height: 150px;
  width: 100%;
}

/* Hover effect for visual feedback on links */
a.section-card:hover {
  filter: brightness(0.85) !important; 
  transition: filter 0.7s ease !important; 
}

/* Remove outline/border for the category tags */
.listing-category {
  padding: 5px;
  border-radius: 4px;
  background-color: transparent !important;
  border: none !important;
  font-weight: bold !important;
}

/* Color styles for post cards based on category */
[data-categories~="ideas"] .card-body.post-contents {
  background-color: #e99289 !important;
  h5 {
   color:  rgb(110, 30, 30) !important;
  }.listing-date {
  color:  rgb(110, 30, 30) !important;
  } .listing-category {
  color: rgb(110, 30, 30) !important; 
  }
} 

[data-categories~="music"] .card-body.post-contents {
  background-color: #e29c7c !important; 
  h5 {
   color:  rgb(115, 50, 30)!important;
  }.listing-date {
  color: rgb(115, 50, 30)!important;
  } .listing-category {
  color: rgb(115, 50, 30)!important; 
  }
} 


[data-categories~="writing"] .card-body.post-contents {
  background-color: #f3ce6b !important; 
  h5 {
   color: rgb(130, 70, 20) !important;
  }.listing-date {
  color: rgb(130, 70, 20) !important;
  } .listing-category {
  color: rgb(130, 70, 20) !important; 
  }
} 

[data-categories~="data"] .card-body.post-contents {
  background-color: #99c56c !important;
  h5 {
   color: rgb(40, 80, 35) !important;
  }.listing-date {
  color: rgb(40, 80, 35) !important;
  } .listing-category {
  color: rgb(40, 80, 35) !important; 
  }
} 

[data-categories~="design"] .card-body.post-contents {
  background-color: #96c3f3 !important;
  h5 {
   color: rgb(40, 65, 120) !important;
  }.listing-date {
  color: rgb(40, 65, 120) !important;
  } .listing-category {
  color: rgb(40, 65, 120) !important; 
  }
} 

[data-categories~="photo"] .card-body.post-contents {
  background-color: #bc9af3 !important;
  h5 {
   color: rgb(70, 40, 115)  !important;
  }.listing-date {
  color: rgb(70, 40, 115)  !important;
  } .listing-category {
  color:rgb(70, 40, 115) !important; 
  }
} 


/* Optional hover effect */
.card-body.post-contents:hover {
  filter: brightness(0.85);
  transition: filter 0.7s ease;
}

.photo_container {
  margin-bottom: 150px; /* Adjust this value to increase or decrease the space */
  margin-top: 0px; /
}

.scroll-indicator {
  position: relative; /* Ensure proper positioning */
/*  z-index: 10; */
  text-align: center;
  margin-top: -145px; /* Fine-tune to position closer to the photo title */
  margin-bottom: 40px;
  transition: opacity 0.5s ease; /* Smooth fade-out effect */
}

/* Style for the arrow */
.scroll-indicator .arrow {
  font-size: 2em; /* Adjust the size of the arrow */
  color: var(--dynamic-color, #000); /* Dynamic color or fallback to black */
  animation: blink 2.5s infinite; /* Blinking animation */
}

/* Keyframes for blinking animation */
@keyframes blink {
  0%, 50% {
    opacity: 1; /* Fully visible */
  }
  100% {
    opacity: 0; /* Fade out */
  }
}


/* Default positioning */
.section-cards-container {
    margin-top: 50px; /* Add space above section cards initially */
    transition: transform 0.5s ease; /* Smooth transition for repositioning */
}

.main-content {
    transition: margin-top 0.5s ease; /* Smooth transition for repositioning */
}

/* Sticky positioning: Bring section cards to the top */
.section-cards-container.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white; /* Optional: Add background color to avoid overlap */
    z-index: 10; /* Ensure it appears above other elements */
    margin-top: 0; /* Reset margin */
    padding: 7.5px; /* Optional: Add some padding */
}

/* Push main content below the sticky section cards */
.main-content.pushed-up {
    margin-top: 100px; /* Adjust based on the height of the section cards */
}


#navbar-logo {
  width: 66px;
  height: 66px;
}


#navbar-title {
  color: var(--dynamic-color) !important;
  font-size: 24px; /* Adjust font size as needed */
}

#photo_text {
  color: var(--dynamic-color) !important;
  margin-top: 30px; /* Adjust the gap as needed */
}


/* Active state for the section card */
a.section-card.active {
  border: 4px solid; /* Border width */
  filter: brightness(1.0); /* Slight highlight effect */
  transition: filter 0.3s ease, border-color 0.3s ease;
}

}



