/* =========================
   General Styles
   ========================= */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #000;
    line-height: 1.6;
}

/* =========================
   Top Navigation Bar
   ========================= */

header {
    background-color: #002b5c;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    background-color: #002b5c;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 15px 0;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin: 0 15px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

nav a.active {
    background-color: rgba(255,255,255,0.3);
}

/* =========================
   Main Content
   ========================= */

main {
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
}

/* =========================
   Result Sections
   ========================= */

.result-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    background-color: white;
    border: 5px solid black;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* =========================
   Columns
   ========================= */

.image-column {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.image-column figure {
    margin: 0;
    text-align: center;
    width: 100%;
}

.image-column img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.image-column img:hover {
    transform: scale(1.02);
}

.image-column figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
    font-style: italic;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   Text Column
   ========================= */

.text-column {
    flex: 1;
    min-width: 300px;
}

.text-column h2 {
    font-size: 25px;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.text-column p {
    font-size: 15px;
}

/* =========================
   Small Figure Layout
   ========================= */

.small-figure-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.small-figure-section .image-column {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.small-figure-section .small-figure {
    width: 340px;
    max-width: 100%;
    height: auto;
    display: block;
}

.small-figure-section .text-column {
    flex: 1;
    min-width: 200px;
}

/* =========================
   Responsive Adjustments
   ========================= */

@media(max-width: 800px) {

    .result-section,
    .small-figure-section {
        flex-direction: column;
    }

    .small-figure-section .small-figure {
        width: 80%;
        margin: 0 auto;
    }
}

/* =========================
   Wide Section Titles
   ========================= */

.result-section > .section-wide-title {
    flex: 0 0 100%;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0px;
    font-size: 25px;
}

br.tiny {
    display: block;
    line-height: 0;
    margin: 4px 0;
}

.result-section.section-wide {
    padding-top: 10px;
}

.result-section.section-wide .text-column {
    margin-top: 0;
    padding-top: 0;
}

/* =========================
   LIGHTBOX
   ========================= */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 95%;
    max-height: 95%;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}
