:root {
    --krumb-orange: #ff9900;
    --krumb-brown: #a65c00;
    --krumb-cream: #fff8e7;
    --krumb-charcoal: #2d2d2d;
}

/* Base */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--krumb-cream);
    color: var(--krumb-charcoal);
    margin: 0;
    padding: 0;
    /* Reserve space for fixed header & footer */
    padding-top: 160px; /* adjust to header+banner height */
    padding-bottom: 60px; /* adjust to footer height */
}

/* Header (fixed container for banner) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

    /* Banner inside header */
    header .banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1rem 2rem;
        background: linear-gradient(to bottom, var(--krumb-orange) 80%, var(--krumb-brown) 20%);
        color: #fff;
        font-size: 1.8rem;
        font-weight: 600;
        letter-spacing: 1px;
        text-shadow: 1px 1px var(--krumb-charcoal);
        border-bottom: 4px solid var(--krumb-brown);
    }

        header .banner img {
            max-height: 120px;
            height: auto;
            margin-right: 1rem;
        }

        header .banner h2 {
            margin: 0;
            flex: 1;
            text-align: left;
        }

/* Content wrapper */
.content-wrapper {
    position: relative;
    padding: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

    .content-wrapper::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url('krumb_banner.png') center/cover no-repeat;
        opacity: 0.3;
        z-index: 1;
    }

.main-layout {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    margin: 2rem;
}

.left-column, .right-column {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
}

.right-column {
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-left: 2px solid var(--krumb-brown);
    border-radius: 8px;
}

/* Progress/backlog */
#progress-section, #backlog-section {
    margin-bottom: 2rem;
}

progress {
    width: 100%;
    height: 20px;
    accent-color: var(--krumb-orange);
}

/* Footer / Marquee */
.marquee {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--krumb-brown);
    color: #fff;
    font-size: 1.2rem;
    padding: 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
}

    .marquee span {
        display: inline-block;
        padding-left: 100%;
        animation: marquee 15s linear infinite;
    }

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    header .banner {
        flex-direction: column;
        text-align: center;
        background: linear-gradient(to bottom, var(--krumb-orange) 60%, var(--krumb-brown) 40%);
    }

        header .banner img {
            margin: 0 0 1rem 0;
            max-height: 100px;
        }

        header .banner h2 {
            font-size: 1.4rem;
        }
}
