/* ============================================================
   TEXACA Shared Site Stylesheet
   This single file controls the look & layout of every page
   (index, About Us, Aquifer Conditions, and any future pages).
   Edit HERE to change the site's appearance everywhere at once.
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    width: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    background-image: url('Rice.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ---------- Logo ---------- */
.top-logo {
    display: block;
    width: 250px;
    height: 250px;
    margin: 0 auto 20px auto;
    object-fit: contain;
}

/* ---------- Generic centered page wrapper ----------
   Used by every page to center its content column. */
.content-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---------- Content panel / "card" ---------- */
.container {
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    padding: 30px 40px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    line-height: 1.6;
}

.header {
    text-align: left;
}

h1.title {
    margin-top: 0;
    font-size: 2.2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-top: 12px;
}

.affiliation {
    font-style: italic;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 8px;
}

h2 {
    font-size: 1.4rem;
    margin-top: 30px;
    color: #e0e0e0;
}

p {
    margin: 15px 0;
    opacity: 0.95;
    font-size: 1rem;
}

/* ---------- Back link ---------- */
.back-link {
    display: inline-block;
    margin-top: 25px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.35);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease;
}

.back-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ---------- Site seal (appears on every page) ---------- */
#siteseal {
    position: fixed;
    bottom: 10px;
    right: 10px;
}

/* ============================================================
   Home page layout: left tab sidebar + content area
   ============================================================ */
.page-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.tab-sidebar {
    width: 220px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.tab-button {
    background-color: transparent;
    color: #ffffff;
    border: none;
    padding: 15px 20px;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    opacity: 0.75;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}

.tab-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.tab-button.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
    opacity: 1;
    padding-left: 25px;
    border-left: 4px solid #ffffff;
}

/* When the content-wrapper sits inside the sidebar layout,
   it should grow to fill the remaining space rather than
   being a lone centered column. */
.page-container .content-wrapper {
    flex-grow: 1;
}

.tab-content {
    display: none;
    margin-top: 20px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.tab-content.active {
    display: block;
}

/* ============================================================
   Aquifer Conditions page widget
   ============================================================ */
.aquifer-widget-wrapper {
    margin-top: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aquifer-widget-label {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 15px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    text-align: center;
    width: 100%;
}

.aquifer-widget {
    border: none;
    display: block;
    width: 320px;
    height: 450px;
    margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }

    .tab-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        box-sizing: border-box;
    }

    .tab-button {
        padding: 10px 15px;
        white-space: nowrap;
    }

    .tab-button.active {
        border-left: none;
        border-bottom: 3px solid #ffffff;
        padding-left: 15px;
    }

    .container {
        padding: 20px;
    }
}
