body {
    font-family: 'Poppins', sans-serif;
    font-weight: lighter;
    color: rgb(21, 26, 13);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: lightsteelblue;
}

#container {
    background-color: rgb(205, 218, 183);
    padding: 30px;
    border-radius: 8px;
    border: 20px solid chocolate;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-image:
        linear-gradient(to bottom,
            rgba(205, 218, 183, 0.85) 0%,
            rgba(205, 218, 183, 0.7) 50%,
            rgba(205, 218, 183, 0.9) 100%
        ),
        url('nationalpark bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

nav {
    font-weight: bold;
    display: flex;
    background-color: darkolivegreen;
    border: 3px solid rgb(58, 73, 32);
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

nav a:hover {
    background-color: rgb(58, 73, 32);
}

nav a.active {
    background-color: rgb(58, 73, 32);
    border-bottom: 3px solid chocolate;
}

header {
    background-color: darkolivegreen;
    border: 3px solid rgb(58, 73, 32);
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer {
    background-color: darkolivegreen;
    border: 3px solid rgb(58, 73, 32);
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 14px;
}

footer a {
    color: white;
    text-decoration: underline;
}

footer a:hover {
    color: lightskyblue;
}

h1 {
    margin: 0 0 20px 0;
}

h2 {
    color: white;
    margin: auto;
    font-weight: lighter;
    padding-bottom: 10px;
}

h3 {
    color: white;
    margin-top: 30px;
    padding-bottom: 10px;
    background-color: darkolivegreen;
    border: 3px solid rgb(58, 73, 32);
    padding: 15px;
    border-radius: 5px;
    display: inline-block;
    width: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ── Overview page ── */
.overview-content {
    background-color: white;
    border: 3px solid rgb(58, 73, 32);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.overview-content p {
    margin: 0 0 15px 0;
}

.overview-content p:last-child {
    margin-bottom: 0;
}

.overview-content a {
    color: rgb(58, 73, 32);
    font-weight: bold;
}

.overview-content a:hover {
    color: rgb(21, 26, 13);
}

.donation-line {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    margin-top: 20px !important;
}

/* ── Resources page ── */
.resource-list {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.resource-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.resource-list a {
    color: rgb(58, 73, 32);
    font-weight: bold;
}

.resource-list a:hover {
    color: rgb(21, 26, 13);
}

/* ── Overview excerpt tables ── */
.excerpt-tables {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.excerpt-block {
    flex: 1;
    min-width: 280px;
    background-color: white;
    border: 3px solid rgb(58, 73, 32);
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.excerpt-block h4 {
    margin: 0 0 12px 0;
    color: darkolivegreen;
    font-size: 16px;
    font-weight: bold;
}

.excerpt-block table {
    border: none;
    box-shadow: none;
}

.excerpt-block th {
    font-size: 14px;
    padding: 10px 8px;
}

.excerpt-block td {
    font-size: 14px;
    padding: 8px;
}

/* ── Data Table page ── */
#message-box {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 450px;
    height: 200px;
    padding: 5px 0px 40px 5px;
    margin: auto;
    text-align: center;
    border-radius: 5px;
}

#output {
    font-size: 16px;
    line-height: 1.6;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 10px;
    border-radius: 5px;
    border: 3px solid rgb(58, 73, 32);
    margin: auto;
    background-color: white;
    color: rgb(21, 26, 13);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tooltip {
    position: absolute;
    background-color: rgb(213, 208, 142);
    color: rgb(21, 26, 13);
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
    max-width: 350px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: none;
    line-height: 1.5;
}

th {
    background-color: darkolivegreen;
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: bold;
    border: 1px solid darkolivegreen;
}

td {
    padding: 12px 10px;
    border: 1px solid darkolivegreen;
}

td:first-child {
    background-color: #fff9e6;
    color: rgb(21, 26, 13);
    cursor: pointer;
    font-weight: bold;
}

td:first-child:hover {
    text-decoration: underline;
}

tbody tr:hover {
    background-color: rgb(229, 225, 166) !important;
}

tbody tr:hover td:first-child {
    background-color: darkkhaki !important;
    color: white !important;
}

.underline {
    text-decoration: underline;
}

/* ── Glossary page ── */
#glossary {
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

#glossary h2 {
    color: rgb(21, 26, 13);
    margin-top: 0;
}

dl {
    margin: 0;
}

dt {
    font-weight: bold;
    color: rgb(21, 26, 13);
    font-size: 18px;
    cursor: pointer;
    padding: 15px 10px;
    margin-top: 10px;
    background-color: white;
    border-left: 4px solid darkolivegreen;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

dt:hover {
    background-color: rgb(229, 225, 166);
    padding-left: 15px;
    transition: all 0.3s ease;
}

dd {
    margin-left: 30px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 2px solid darkolivegreen;
    display: none;
    font-size: 16px;
    line-height: 1.6;
}
