html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: large;
    line-height: 30px;
    display: flex;
    flex-direction: column; /* stack header, main, footer vertically */
    height: 100%;
}

header {
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    display: flex;
    flex: 1 1 100%;
    align-items: center;
    color: ghostwhite;
    padding: 1rem;
    text-align: center;
    justify-content: center;
    font-style: italic;
    background-image: url(BlueBackground.jpg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    box-sizing: border-box;
}

footer {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: .5rem;
    text-align: center;
    color: black;
    background-image: url(BlueBackground.jpg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    box-sizing: border-box;
}

.light-part {
    font-weight: lighter;
    color: #035096;
}

header img {
    height: auto;
    width: auto;
    margin-right: 25px;
    max-width: 120px;
    max-height: 120px;
}

.banner {
    height: 15px;
    text-align: right;
    background-color: whitesmoke;
    padding: 1rem;
    box-shadow: 0 10px 5px rgba(0,0,0,0.19);
    z-index: 10;
}

article img {
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

main {
    display: flex;
    flex: 1 1 0%;
    flex-direction: row;
    justify-content: space-between;
    background-color: #f0f0f0;
    width: 100%;
    flex-wrap: wrap;    /* lets items move to next line instead of overflowing */
}

.column {
    padding: 1rem;
    box-sizing: border-box;
    min-width: 0;       /* allows shrinking instead of overflowing */
}

.left {
    flex: 1 1 0%;
    background-color: #f0f0f0;
}

.center {
    flex: 2 1 0%;
    background-color: white;
}

.right {
    flex: 1 1 0%;
    background-color: #f0f0f0;
}

article {
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.div-raised {
    display: inline-block;
    text-align: center;
    background-color: whitesmoke;
    padding: 1rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    z-index: 10;
    width: 80%;
}

.toc {
    position: sticky;
    top: 1rem;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.19);
    z-index: 10;
    width: auto;
}

    .toc ul {
        list-style-type: none;
        padding: 0;
    }

    .toc li {
        margin: 0.5rem 0;
        border-bottom: 1px solid #ccc;
    }

        .toc li:last-child {
            border-bottom: none; /* remove line after last item */
        }

        .toc li:first-child {
            border-bottom: none; /* remove line after TOC */
        }

    .toc a {
        text-decoration: none;
        color: #1a73e8;
    }

        .toc a:hover {
            text-decoration: underline;
        }

.toc-link {
    display: block;
    margin: 5px 0;
    text-decoration: none;
    color: #333;
}

    .toc-link.active {
        font-weight: bold;
        color: #007acc;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        background-color: #f2f3f4;
    }

h1 {
    font-size: clamp(20px, 5vw, 48px);
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

h2 {
    color: #30637c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

/* Adjust sizes for tablets */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(20px, 6vw, 32px);
    }

    h2 {
        font-size: clamp(12px, 6vw, 20px);
    }

    header img {
        max-width: 100px;
        max-height: 100px;
    }

    body {
        font-size: medium;
    }

    .right {
        max-width: 2rem;
    }
}

/* Adjust sizes for cell phones */
@media (max-width: 480px) {
    h1 {
        font-size: clamp(18px, 7vw, 24px);
    }

    h2 {
        font-size: clamp(10px, 6vw, 15px);
    }

    header img {
        max-width: 75px;
        max-height: 75px;
    }

    body {
        font-size: small;
    }

    .right {
        max-width: 1rem;
    }
}

.story-container {
    margin: 0 auto;
    padding: 15px;
    font-family: 'Segoe UI', sans-serif;
}

.story {
    margin-bottom: 10px;
}

.story-content {
    display: none;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 3px solid #30637c;
}

.story-title {
    width: 100%;
    text-align: left;
    padding: 10px;
    font-size: 1.1em;
    background-color: #e0e0e0;
    border: none;
    outline: none;
}

    .story-title:hover {
        background-color: #d0d0d0;
    }
