.middle {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    overflow-y: auto;
}

.content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 40px;
}

.main-heading {
    text-align: center;
    font-size: 2.5em;
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 40px;
    font-weight: 700;    /* Changed from 500 to 700 for bold */
    transform: translateY(20px);  /* Move just the text down by 20px */
}

.columns-container {
    display: flex;
    gap: 120px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;  /* Add bottom margin to prevent footer overlap */
    margin-top: 0;      /* Reset to original */
}

.column {
    flex: 1;
}

.column h3 {
    font-size: 1.5em;
    color: var(--heading-color);
    margin-bottom: 20px;
    font-weight: 500;
}

/* Active nav link */
.nav-links a.active {
    color: var(--heading-color);
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .middle {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        height: auto;
    }

    .columns-container {
        flex-direction: column;
        gap: 30px;
    }

    .content {
        padding: 20px;
        height: 100%;        /* Take full height */
        justify-content: center;  /* Center content vertically */
    }
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;  /* Space between text and icon */
}

.link-list a i {
    font-size: 1.1em;  /* Slightly larger than text */
    opacity: 0.8;      /* Slightly dimmed */
    width: 1.1em;      /* Fixed width for consistent alignment */
    text-align: center; /* Center the icon within its width */
}

.link-list a:hover {
    opacity: 0.7;
}

.custom-icon {
    width: 1.1em;
    height: 1.1em;
    opacity: 0.8;
    filter: var(--icon-filter); /* Will be defined in variables.css */
}

/* Fix Substack SVG icon color to match other icons */
.link-list a svg {
    width: 1.1em;
    height: 1.1em;
    opacity: 0.8;
    fill: currentColor;
}

.logo-link:hover {
    opacity: 0.8;
}

.circle.tumblr:hover {
    background: linear-gradient(135deg, #00cf35, #001935); /* Tumblr's blue gradient */
    color: white;
    transform: translateY(-2px);
}

.top-footer {
    padding: 15px 40px;
}

.bottom-footer {
    padding: 15px 40px;
}

/* Check for any social icon related styles */

/* Theme toggle button styles */
.theme-toggle-container {
    position: relative;
    padding-left: 28px;
    margin-left: 10px;
}

.theme-toggle-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background-color: var(--border-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px 0;
    font-size: 1.2em;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background-color: var(--border-color);
}

.theme-toggle:hover {
    opacity: 0.8;
}