@charset "utf-8";

/* =========================================================
   TROPICAL RAINFOREST THEME (Tailored for index_2.html)
   ========================================================= */

:root {
    --canopy-dark: #0f2e1b;
    --leaf-green: #2d6a4f;
    --frog-orange: #f4a261;
    --frog-blue: #00b4d8;
    --bg-light: #f4f9f4;
    --text-dark: #1b261d;
}

body {
    font: 100% 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-light);
    margin: 0; 
    padding: 0;
    text-align: center; 
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- Container for 2-column (and 1-column) layouts --- */
.twoColElsRtHdr #container,
.oneColElsCtrHdr #container { 
    width: 1100px;  
    background: #FFFFFF;
    margin: 2rem auto; 
    border: none;
    text-align: left; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

/* --- Header styling with legible text background --- */
.twoColElsRtHdr #header,
.oneColElsCtrHdr #header { 
    background-color: var(--canopy-dark);
    background-image: url('img/scranton_header_2022.jpg'); 
    background-position: center; 
    background-size: cover;
    background-repeat: no-repeat;
    height: 350px;
    width: 100%; 
    box-sizing: border-box;
    padding: 0;  
    position: relative;
    border-bottom: 5px solid var(--frog-orange);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* --- Header Text Box Centering & Margin Fix --- */
.twoColElsRtHdr #header h1,
.oneColElsCtrHdr #header h1 {
    margin: 0; /* This removes the default invisible margins causing the white spaces */
    padding: 12px 20px; 
    color: var(--canopy-dark); 
    background-color: rgba(244, 249, 244, 0.92); 
    display: inline-block;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%); 
    text-align: center;
    width: max-content;
    max-width: 90%; 
    border-radius: 6px;
    font-size: 1.6rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15); 
}
/* --- Sidebar Styling --- */
.twoColElsRtHdr #sidebar1 {
    float: right; 
    width: 310px; 
    background: var(--bg-light);
    padding: 20px 10px; 
    margin: 20px 15px 20px 0;
    border-left: 4px solid var(--frog-blue);
    border-radius: 8px;
}

.twoColElsRtHdr #sidebar1 p {
    margin-left: 10px; 
    margin-right: 10px;
    font-size: 0.95rem;
}

.twoColElsRtHdr #sidebar1 h3 {
    color: var(--leaf-green);
    margin-left: 10px;
}

.twoColElsRtHdr #sidebar1 img {
    border: 4px solid var(--frog-orange);
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

/* --- Navigation & Rainforest Buttons --- */
.twoColElsRtHdr #navcontainer,
.oneColElsCtrHdr #navcontainer {
    background-color: var(--leaf-green);
    width: 100%;
    padding: 10px 0;
}

/* Flexbox converts the vertical list into horizontal centered items */
.twoColElsRtHdr #navcontainer ul,
.oneColElsCtrHdr #navcontainer ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-left: 0;
    margin: 0;
    list-style-type: none;
}

.twoColElsRtHdr #navcontainer ul li a,
.oneColElsCtrHdr #navcontainer ul li a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--leaf-green);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    margin: 0.25rem;
    transition: background 0.3s, color 0.3s;
}

.twoColElsRtHdr #navcontainer ul li a:hover,
.oneColElsCtrHdr #navcontainer ul li a:hover { 
    color: var(--canopy-dark); 
    background-color: var(--frog-orange); 
} 

/* --- Main Content --- */
.twoColElsRtHdr #mainContent {
    margin: 20px 360px 20px 20px;
    background: #FFFFFF;
    padding: 15px;
}

#mainContent img {
    border-radius: 8px;
    margin: 15px;
}

#mainContent table img {
    border-radius: 0;
    margin: 0;
}

.oneColElsCtrHdr #mainContent {
    margin: 20px; 
    background: #FFFFFF;
    padding: 15px;
}

#mainContent a {
    color: var(--leaf-green);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

#mainContent a:hover {
    color: var(--frog-orange);
}

#mainContent h2, #mainContent h3 {
    color: var(--leaf-green);
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 5px;
    clear: both; /* Forces the heading to start below any floating images */
    padding-top: 20px; /* Adds breathing room above the new section */
}
.hangingindent {
    text-indent: -40px;
    padding-left: 40px;
    margin-bottom: 15px;
}

/* --- Footer --- */
.twoColElsRtHdr #footer,
.oneColElsCtrHdr #footer { 
    background-color: #FFFFFF; /* Blends seamlessly with the image's white edges */
    background-image: url('img/footer3.jpg'); 
    background-position: center center; 
    background-size: contain; /* Scales the image proportionally without cropping */
    background-repeat: no-repeat;
    color: var(--text-dark); /* Changed to dark text to remain visible on the white background */
    width: 100%; 
    min-height: 400px; /* Forces the container tall enough to show the full 370px image without HTML line breaks */
    box-sizing: border-box; 
    padding: 20px; 
    text-align: center; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pushes your "Last updated" text to the very bottom */
    align-items: center;
    border-top: 5px solid var(--frog-blue);
    clear: both;
}

.twoColElsRtHdr #footer p,
.oneColElsCtrHdr #footer p {
    margin: 0; 
    padding: 10px 0;
    font-weight: bold; /* Makes the text slightly easier to read at the bottom */
}

/* --- Utilities --- */
.fltrt { 
    float: right;
    margin-left: 15px;
}
.fltlft { 
    float: left;
    margin-right: 15px;
}
.clearfloat { 
    clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
}
