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

:root {
    color-scheme: light;
    
    --bt-blue: #3469b3;
    --bt-blue-accent-dk: #1d4f8d;
    --bt-blue-accent-lt: #468ee1;
    --bt-gold: #f6c343;
    --bt-gold-accent-dk: #a8842b;
    --bt-gold-accent-lt: #daac3a;
    --bt-orange: #f19937;
    --bt-orange-accent-dk: #a46823;
    --bt-orange-accent-lt: #f2a442;
    --bt-dk-blue: #001cc2;
    --bt-dk-blue-accent-dk: #020d74;
    --bt-dk-blue-accent-lt: #3a42e3;
    --bt-font: #585858;
    --bt-edge: #3a3a3a;
    --bt-silver: #c9c9c9;
    --bt-ivory: #fcfcee;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* navbar */
.navbar {
    background-color: var(--bt-edge);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
    position: relative;
}

.nav-links ul {
    display: flex;
    list-style: none;
    justify-content: center; 
    align-items: center;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
}

.nav-links a:hover {
    color: #dfdfdf;
}

/* hamburger  */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* two column layout */
.container {
    display: flex;
    flex: 1;
    padding: 2rem;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.main-content {
    flex: 3; /* Takes up 75% of space */
}


.main-content ul, ol {
    list-style-type: revert;
    padding-inline-start: revert;
    margin-block-start: revert;
    margin-block-end: revert;
}

.main-content ul {
    list-style-type: square;
}

body .container li {
    display: revert;
    line-height: 1.5;
}

.main-content p {
    padding-inline-start: revert;
    margin-block-start: revert;
    margin-block-end: revert;
}

.sidebar {
    flex: 1; /* Takes up 25% of space */
}

.sidebar-container {
    background: #f4f4f4;
    padding: 1.5rem;
    border-radius: 18px;
}

.sidebar ul {
    margin-left: 1rem;
    list-style-type: square;
}

/* footer */
.footer {
    background-color: var(--bt-edge);
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    margin-top: auto;
}

.headerContainer {
    display: grid;
    grid-template-columns: 1fr 250px;
}

/* mobile support */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide standard menu on mobile */
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #333;
        text-align: center;
        z-index: 9999;
    }

    .nav-links.active {
        display: block; /* Show menu when active */
    }

    .nav-links ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: block; /* Show hamburger button on mobile */
    }

    .container {
        flex-direction: column; /* Stack columns vertically on small screens */
        padding: 1rem;
    }

    .headerContainer {
        display: flex;
        flex-direction: column-reverse;
    }
    .checkInContainer {
        margin-bottom: 10px;
    }
}

/* reset for markdown (inside jelly dialog) or other use */
.reset-div, .reset-div * {
    all: revert;
    box-sizing: border-box; /* Optional: keeps layout box model predictable */
}

/* general styling */
a {
    color: var(--bt-blue);
}

a:hover {
    color: var(--bt-blue-accent-dk);
}

.bt-container {
    border: 1px solid var(--bt-silver);
    border-radius: 18px;
    padding: 24px;
    font-size: 13.5px;
}

.bt-container-dark {
    color: #FFFFFF;
    background: oklch(0.2514 0.0163 264.22);
}

.bt-table {
    border-collapse: collapse;
    text-align: left;
    width: 100%;
}

.bt-table thead tr {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.bt-table th,
.bt-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eeeeee;
}

.bt-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.bt-table tbody tr:hover {
    background-color: #f1f3f5;
}

.bt-table .text-right {
    text-align: right;
}

.svg-status {
    display: inline-block;
    height: 12px;
    width: 12px;
    background-color: currentColor;

    -webkit-mask-image: url('/img/status_indicator.svg');
    mask-image: url('/img/status_indicator.svg');

    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.status-image-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 200px));
    gap: 8px;
    padding: 16px;
}

.status-image-grid-container .status-grid-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-image-grid-container .image-label {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.status-image-grid-container .status-grid-item img {
    width: 100%;
    min-height: 110px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
}

/* image gallery, loading, and lightbox */
.gallery img {
    cursor: pointer;
}
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    -webkit-user-select: none;
}
.lb-btn {
    position: absolute;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
}
#lb-close { top: 1rem; right: 1rem; font-size: 2.5rem; }
#lb-prev { left: 1rem; }
#lb-next { right: 1rem; }

.loading-image-container {
    min-height: 150px;
}
.loading-image-container .spinner {
    height: 100%;
    width: 100%;
    text-align: center;
}
.loading-image-container.loaded .spinner {
    display: none;
}

.loading-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-image-container.loaded img {
    opacity: 1;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
    gap: 8px;
    padding: 16px;
}

.grid-container .grid-item {
    display: block;
    flex-direction: column;
    gap: 8px;
}

.grid-container .grid-item img {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* custom jelly-ui styling */
.custom-jelly {
    --jelly-fill: var(--bt-blue);
}
.custom-jelly a {
    color: #ffffff;
}

.custom-jelly a:hover {
    color: #dfdfdf;
}

.custom-jelly-red {
    --jelly-fill: #ff0000;
}

.custom-jelly-red a:hover {
    color: #dfdfdf;
}

.linkButton a {
    color: #ffffff;
    text-decoration: none;
}

.linkButton a:hover {
    color: #ffffff;
}

jelly-divider {
    --jelly-divider: var(--bt-silver);
    --jelly-divider-font-size: 16px;
}

select.jelly-like {
    height: 39px;
    padding: 6px 40px 6px 10px;
    
    font-size: 14.5px;
    border: 1px solid #dadada;
    border-radius: 14px;
    color: #000000;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* reset browser appearance */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fbfcfd;;

    /* drop down button */
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    cursor: pointer;
    margin: 3px;
}


select.jelly-like:focus {
    outline: none;
    border: 4px solid #99bae2;
}