:root {
    --primary-color: #03202F; /* Texans Navy */
    --accent-color: #E31837;  /* Texans Red */
    --background-color: #f4f4f9;
    --card-background: #ffffff;
    --text-color: #333;
    --header-footer-bg: var(--primary-color);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0 0 80px 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

main {
    padding: 1rem; /* This restores the left/right padding */
}

header {
    background-color: var(--header-footer-bg);
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.header-logo {
    height: 50px;
    width: 50px;
    border-radius: 8px;
}

/* This block ensures the text block aligns correctly */
header div {
    text-align: left;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

header .sub-header {
    margin: 0;
    font-weight: normal;
    color: #ddd;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--header-footer-bg);
    color: white;
}

nav {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
}

nav button {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
}

.card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    margin-bottom: 1rem;
}

.roster-card {
    cursor: pointer;
}

.roster-card .parent-info {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.view { display: none; }
.view.active { display: block; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}

.fab {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    font-size: 24px;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
}

.location-link {
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

/* --- Lightbox Styles --- */
#lightbox.hidden {
    display: none;
}

#lightbox {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.close-button:hover {
    color: #bbb;
}