html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee1d6; /* Changed from #ad5d4d */
    font-family: Nunito, sans-serif;
    font-weight: 100;  /* Extra Light */
    margin: 0;
    padding: 20px;
}

/* Central Container */
.center-container {
    position: relative;
    width: min(40vmin, 90vw);
    height: min(40vmin, 90vw);
    margin: auto;
    background-image: 
        linear-gradient(to right, rgba(255, 182, 193, 0.5) 0.5px, transparent 0.5px),
        linear-gradient(to bottom, rgba(255, 182, 193, 0.5) 0.5px, transparent 0.5px);
    background-size: 2vmin 2vmin;
    background-color: #eee1d6; /* Changed from #ad5d4d */
    border: 1px solid rgba(255, 182, 193, 0.5);
}

/* Axes */
.line {
    position: absolute;
    background-color: #ff5733;
    z-index: 3;
}

.vertical {
    width: 0.5px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.horizontal {
    height: 1px;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* Project Nodes */
.project-nodes {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 4; /* Changed from 2 to be above grid lines */
}

.project-node {
    width: min(0.5rem, 2vw);
    height: min(0.5rem, 2vw);
    background-color: #ff5733;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
}

.project-node:hover {
    transform: scale(1.3);
    box-shadow: 0px 0px 10px rgba(173, 93, 77, 0.5); /* Changed shadow color from black */
    z-index: 10; /* Added to ensure hovered node is on top */
}

.project-node::after {
    content: attr(data-title);
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #eee1d6; /* Changed from #ad5d4d */
    color: #ff5733;            /* Changed to #ff5733 */
    padding: 0.2rem 0.5rem;
    font-size: min(0.8rem, 3vw);
    border-radius: 0;          /* Changed to 0 for sharp corners */
    border: 1px solid #ff5733; /* Added border */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    z-index: 11; /* Changed from 4 to ensure it's above the axis and other node elements */
}

.project-node:hover::after {
    opacity: 1;
}

/* Hide quadrants */
.quadrant {
    display: none;
}

/* Labels */
.label {
    position: absolute;
    font-weight: 100;  /* Extra Light */
    color: #ff5733;
    padding: 0.2rem 0.5rem;
    font-size: min(0.9rem, 3.5vw);
    z-index: 1;
}

.art {
    top: 0;
    left: 50%;
    transform: translate(-50%, -120%);
}

.metaphysics {
    top: 50%;
    right: 0;
    transform: translate(120%, -50%);
}

.tech {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 120%);
}

.ethics {
    top: 50%;
    left: 0;
    transform: translate(-120%, -50%);
}

/* Hide modal */
.modal {
    display: none !important;
}

.grid-container {
    width: 100%;
    height: 80vh;
    padding: 20px;
}

#post-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.grid-node {
    background: #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.grid-node:hover {
    transform: scale(1.05);
    background: #e0e0e0;
}

.category-tech { background: #e6f3ff; }
.category-blog { background: #fff0e6; }
.category-tutorials { background: #e6ffe6; }

/* Add media query for very small screens */
@media (max-width: 480px) {
    .center-container {
        margin: 2rem auto;
    }
}

/* Home Button / Back Navigation Button Styling */
.home-button {
    background-color: #eee1d6 !important; /* Changed from #ad5d4d */
    color: #ff5733 !important;            /* Text color */
    border: 1px solid #ff5733 !important; /* 1px border */
    border-radius: 0 !important;          /* Square corners */
    
    /* Retaining some potentially useful existing styles from inline */
    display: inline-block;
    padding: 0.3rem 0.6rem;
    text-decoration: none;
    margin-top: 0.5rem;
    font-weight: 400; /* As per existing inline style */
    font-size: 1.2rem;  /* As per existing inline style */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.home-button:hover {
    background-color: #ff5733 !important;
    color: #ad5d4d !important; /* Changed from #000000 */
}

/* Post Page Text Styling */
.post-container header h1,
.post-container article,
.post-container article p,
.post-container article code {
    color: #ff5733;
}

/* Styling for Horizontal Rules in posts */
.post-container article hr {
    border: none; /* Remove the default browser border */
    height: 1px; /* Define a height for the rule */
    background-color: #ff5733; /* Set the desired color */
    margin-top: 2rem; /* Add some space above the rule */
    margin-bottom: 2rem; /* Add some space below the rule */
}

/* Wrapper for grid page content to include donate button */
.grid-page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the grid and button block horizontally */
  gap: 25px; /* Provides space between the grid and the button block */
}

/* Container for action buttons (Donate, BlueSky, LinkedIn) */
.action-buttons-container {
  display: flex;
  flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
  justify-content: center; /* Centers buttons if they don't fill the width */
  margin-top: 20px; /* Space above the button block */
  gap: 3.5px; /* Space between individual buttons */
}

/* Donate Button Styling (also applies to BlueSky and LinkedIn buttons) */
.donate-button {
    display: inline-block;
    /* margin-top: 1rem; */ /* Consider removing if gap from action-buttons-container is sufficient */
    padding: 0.1rem 1.2rem;
    background-color: #eee1d6; /* Changed from #ad5d4d */
    color: #ff5733;            /* Text color (same green) */
    border: 1px solid #ff5733; /* Border (same green) */
    border-radius: 0;          /* Square corners */
    text-decoration: none;
    font-family: 'Nunito', sans-serif; /* Consistent font */
    font-weight: 100;          /* Consistent weight, similar to home-button */
    font-size:min(0.9rem, 3.5vw);          /* Adjust as needed */
    text-align: center;
    opacity: 0.2; /* Added: Set initial opacity to 20% */
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease; /* Added opacity to transition */
}

.donate-button:hover {
    background-color: #ff5733;
    color: #ad5d4d; /* Changed from #000000 */
    opacity: 1;
}

