:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --link-color: #a1cdff;
    --header-color: #e0e0e0;
    --border-color: #333333;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    font-family: Arial, sans-serif;
    line-height: 1.4;
    font-size: 0.875rem; /* This is equivalent to 14px */
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    color: var(--header-color);
    text-align: center;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.content {
    flex: 1;
    order: 1;
    margin-top: -10px;
}


#social-links ul {
    list-style-type: none;
    padding: 0;
}

#social-links li {
    display: inline-block;
    margin-right: 1rem;
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.member-card {
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
}

.member-card h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.member-card p {
    color: #999;
    font-size: 0.9rem;
    margin: 0.1rem 0;
}


/* Map Container */
.map-container {
    margin-top: 1rem;
    width: 100%;
}

/* Section Spacing */
section {
    margin-bottom: 3rem;
}

h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

h5 {
    font-size: 1rem;
    text-align: center;
}

/* Lists */
ul {
    line-height: 1.8;
}

/* Supporters Section */
.supporters-list {
    margin-top: 1.5rem;
}

.supporter-item {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
}

.supporter-item h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--header-color);
    font-size: 1.1rem;
    text-align: left;
}

.supporter-item p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Other Spaces Section */
.space-list {
    margin-top: 1.5rem;
}

.space-item {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
}

.space-item h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--header-color);
    font-size: 1.1rem;
    text-align: left;
}

.space-item p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* For narrow screens, adjust sizes but maintain layout */
@media (max-width: 640px) {
    .container {
        flex-direction: column;
        align-items: center;
        gap: 0rem; /* Reduce gap between image and text */
    }

    .content {
        order: 2;
        text-align: left;
        margin-top: -10px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem; /* Reduce space below the heading */
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }
}