:root {
    --color-1: #0f1016;
    --text-color: #f0f0f0;
    --accent-color: #006aff;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 12pt;
    font-family: Arial, Helvetica, sans-serif;
}

nav {
    height: 60px;
    background-color: var(--color-1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.links-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

nav a {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color)
}

nav a:hover {
    background-color: var(--accent-color)
}

nav .home-link {
    margin-right: auto;
}

nav svg {
    fill: var(--text-color);
}

#sidebar-active {
    display: none;
}

.open-sidebar-button,
.close-sidebar-button {
    display: none;
}

@media(max-width:450px) {
    .links-container {
        flex-direction: column;
        align-items: flex-start;

        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 300px;
        background-color: var(--color-1);
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: 0.75s ease-out;
    }

    nav a {
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }

    .open-sidebar-button,
    .close-sidebar-button {
        padding: 20px;
        display: flex;
    }

    #sidebar-active:checked~.links-container {
        right: 0;
    }

    #sidebar-active:checked~#overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
    }
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: #160000;
    color: #f5f5f5;
    text-align: center;
}

.logo {
    margin-top: 20px;
    width: 120px;
}

h1 {
    font-size: 48px;
    margin: 10px 0;
}

.tagline {
    color: #ccc;
    margin-bottom: 30px;
}

.buttons button {
    background: #ff1f1f;
    color: white;
    border: none;
    margin: 10px;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

h2 {
    margin-top: 40px;
    font-size: 28px;
}

.stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px auto;
    max-width: 700px;
}

.card {
    background: #1a1a1a;
    border: 2px solid red;
    padding: 20px;
    width: 120px;
    border-radius: 10px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 50px auto;
    justify-items: center;
}

/* Consolidate common styles for members */
.elders,
.second {
    border: 3px solid #d41313;
    width: 200px;
    background-color: #0f1016;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
    /* center text inside cards */
}

.elders img,
.second img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hover effects */
.elders:hover,
.second:hover {
    border-color: #dd0303d3;
    transform: scale(1.05);
}

.elders img,
.second img {
    height: 200px;
    object-fit: cover;
}

/* Responsive: 1 column on small screens */
@media (max-width: 600px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}