@import url('https://fonts.googleapis.com/css2?family=Cabin');

/* Make page stretch full height */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Cabin;
}

/* Push page content below fixed navbar */
body {
    padding-top: 70px; /* adjust to navbar height */
}

/* Main content grows to fill available space */
main {
    flex: 1;
}

/* Text elements */
p.list {
    margin: 3px 10px 0px 20px;
}
ul.secondary {
    margin-left: auto;
}
h1 {
    text-align: center;
}
.paragraph {
    text-align: center;
    margin-top: 30px;
}

/* Containers */
.box1 .box2 {
    display: inline-block;
    vertical-align: top;
}
.box1 {
    width: 40%;
    border: 3px solid green; /* keep green border */
}
.box2 {
    width: 60%;
    border: none; /* remove old border */
}

/* Current section */
#current {
    border: 3px solid green; /* green border same width as before */
    padding: 10px;
    border-radius: 8px;
    width: 60%;           /* same as original box2 */
    box-sizing: border-box; /* ensures padding fits inside border */
    margin: 0 auto;       /* centers the section inside the card */
}

.container {
    display: flex;
    justify-content: center;
    gap: 5%;
    position: relative;
}

/* Three-column or multi-column layout */
.container.three-col {
    display: flex;
    justify-content: center;
    gap: 30px;            /* fixed gap instead of percentage */
    align-items: stretch; /* equal height columns */
}

/* Each column in multi-column container */
.container.three-col > div {
    flex: 1;             /* flexible width, fills container */
    padding: 10px;
    position: relative;
    min-width: 200px;    /* optional: prevents columns from shrinking too small */
}

/* Vertical dividers using left border (simpler) */
.container.three-col > div + div {
    border-left: 2px solid #ccc;
    padding-left: 20px; /* spacing after the line */
}

/* Responsive stacking on smaller screens */
@media (max-width: 900px) {
    .container.three-col {
        flex-direction: column;
        gap: 20px;
    }
    .container.three-col > div {
        flex: 1 1 auto;
        border-left: none; /* remove dividers when stacked */
        padding-left: 0;
    }
}

/* Fixed home button */
#homeButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

/* ===== NAVBAR STYLING ===== */
.mainBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(90deg, #004080, #0066cc);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    gap: 20px;
    box-sizing: border-box;
}

/* Logo */
.mainBar .logo {
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}
.mainBar .logo:hover {
    color: #ddd;
}

/* Search bar */
#search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 300px;
    margin: 0 auto; /* center between logo and nav links */
}
#searchBox {
    border: none;
    outline: none;
    font-size: 15px;
    padding: 6px;
    border-radius: 6px;
    flex: 1;
}

/* Nav links */
.mainBar .nav-links {
    list-style: none;
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    padding-right: 10px; /* <<< key: moves links left from scrollbar */
}
.mainBar .nav-links li a {
    background-color: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background-color 0.25s;
}
.mainBar .nav-links li a:hover {
    background-color: rgba(255,255,255,0.3);
}

/* ===== SEARCH BAR ===== */
#search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    justify-self: center; /* keeps search bar centered */
}
#searchBox {
    border: none;
    outline: none;
    font-size: 15px;
    padding: 6px;
    border-radius: 6px;
    width: 160px;
}

/* Search navigation buttons */
.search-btn {
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.search-btn:hover {
    background-color: #003d80;
}

/* Case toggle button */
#caseToggle {
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
}
#caseToggle {
    background-color: #f1c40f; /* insensitive */
    color: #000;
}
#caseToggle.sensitive {
    background-color: #4a4a4a; /* sensitive */
    color: #fff;
}

/* Footer styling */
footer {
    background-color: rgb(245, 245, 234);
    box-shadow: 0 50vh 0 50vh rgb(245, 245, 234);
    line-height: 1.2;
    padding: 6px 0;
    margin-top: auto; /* pushes footer to bottom of page */
}

#defLastUpdated, #statLastUpdated, #lastUpdate {
    display: flex;
    justify-content: space-between; /* push label left, daysAgo right */
    align-items: center;
    padding: 0 300px; /* adjust spacing from screen edges */
}

.daysAgo {
    color: rgb(17, 102, 171);
    font-weight: normal;
    text-align: right;
}

/* Highlights */
.highlight {
    background-color: yellow;
    padding: 2px;
}
.current {
    background-color: orange; /* current match */
}

/* Image containers */
.img-container {
    object-fit: contain;
    display: inline-block;
    vertical-align: top;
    gap: 16%;
    display: flex;
    justify-content: center;
}
img {
    height: 200px;
    margin: 80px 0px;
}
.graph {
    width: 60%;
    height: auto;
    display: block;
    margin: auto;
}
/* Expandable cards */
.card {
    border: 2px solid #ccc;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* The clickable header */
.card-header {
    width: 100%;
    text-align: left;
    background-color: #004080;
    color: white;
    padding: 12px 16px;
    font-size: 16px;
    border: none;
    outline: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.main-card {
    text-align: center;
    font-size: 20px;
}

.card-header:hover {
    background-color: #0066cc;
}

.card-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    background: #f9f9f9;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.card-content.open {
    padding: 12px 16px;
}

/* Expanded state */
.card.active .card-content {
    max-height: 500px; /* adjust if your text is longer */
    padding: 12px 16px;
}

.graph-indicator {
    text-align: right;
    font-size: 12px;
    font-family:'Gill Sans';
}