body {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 2rem; /* Add padding to prevent footer from sticking to bottom */
}

header {
    margin-top: 1rem; /* Reduce from 2rem */
    padding: 1rem; /* Reduce from 2rem */
}

header p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

header p em {
    color: #808080;
    font-size: 0.9rem;
}

main {
    padding: 1rem; /* Reduce from 2rem */
    width: 100%;
    max-width: 800px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    color: #4a9eff;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* Reduce from 1rem for tighter spacing on mobile */
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

a {
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

footer {
    margin-top: 1rem; /* Reduce from auto to fixed margin */
    padding: 1rem; /* Reduce from 2rem */
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.fsf-badge {
    margin-top: 1rem; /* Reduce from 2rem */
}

.fsf-badge img {
    max-width: 100%;
    height: auto;
}

/* Add media query for better mobile spacing */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem; /* Slightly smaller on mobile */
    }

    .social-links img {
        height: 2.5rem; /* Slightly smaller badges on mobile */
    }
}

.ai-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

.ai-note:first-of-type {
    font-style: italic;
}

.main-nav {
    width: 100%;
    background-color: #2a2a2a;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #4a9eff;
}

.about-content {
    text-align: left;
    padding: 0 1rem;
}

.about-content ul {
    list-style-type: none;
    padding-left: 1rem;
}

.about-content ul li {
    margin-bottom: 0.5rem;
}

.about-content h2 {
    margin-top: 2rem;
}