/* General Body Styles */
#contentBody{
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    height:100%;
    width:stretch;
    overflow-y:scroll;
    overflow-x:hidden;
}

/* Main Layout Container using Flexbox */
#contentRoot {
    display: flex;
    flex-direction: column;
    /*min-height: 50vh;*/
    width: stretch;
    height: calc(100vh - 300px); /* Example height: full viewport minus header/footer */
    /*box-sizing: border-box;*/
    padding: 0;
    background-color: #ddd;
}

    #contentRoot h3 {
        color:navy;
    }

    /* Left Panel: Navigation */
    #left-panel {
        width: 100%; /*280px;*/
        /*flex-shrink: 0;*/ /* Prevents the panel from shrinking */
        /*    background-color: #2c3e50;
    color: #ecf0f1;*/
        /*background-color: #f0f2f5;*/ /* A light background for contrast */
        background-color: #ddd;
        padding: 0;
        /*box-sizing: border-box;*/
        border-right: 1px solid #ddd;
        margin: 0px;
    }

    #left-panel h3 {
        margin-top: 0;
        /*border-bottom: 1px solid #34495e;*/
        font-size: 1em;
        color: #333;
        border-bottom: 2px solid #ccc;
        padding-bottom: 10px;
        padding-top: 5px;
    }

        #left-panel ul {
            list-style-type: none;
            list-style:none;
            display:flex;
            padding: 0;
            margin: 0;
            width: 100%;
            font-size: 1em;
            color: #333;
            border-bottom: 2px solid #ccc;
        }

        #left-panel li {
            /*width: 280px;*/
            margin-right: 10px 0;
            display:inline-block;
        }

        /*#left-panel li a {*/
        #left-panel a {
            display: block;
            padding: 5px 15px 5px;
            /*color: #ecf0f1;*/
            border-radius: 4px;
            transition: background-color 0.3s ease;
            box-sizing: border-box;
            text-decoration: none;
            color: #005a9c;
            font-size: 1em;
            border-radius: 5px;
            transition: background-color 0.2s ease-in-out;
        }

            #left-panel li a:hover {
                background-color:teal; /*#34495e;*/
                color:white /*#003366;*/
            }

            #left-panel li a:focus {
                background-color: teal;
                color: white;
            }
:target {
    background-color: teal;
    color: white;
}

/* Right Panel: Content Area */
#right-panel {
    /*flex-grow: 1; Allows the panel to take up remaining space */
    padding: 0;
    /*background-color: #f0f2f5;*/
    background-color: #ddd;
    overflow: hidden;
    width: 100%;
    height: inherit;
}

    #right-panel iframe {
        width: 100%;
        height: 100%;
        border: none;
        padding:0 0 5em 0;
    }

/* Styles for Content within the iFrame (ccrQandA.html) */
.content-container {
    padding: 0 10px 0 0;
    display: block;
    min-height: 100vh;
    box-sizing: border-box;
}

    .content-container h2 {
        color: #005a9c;
        border-bottom: 2px solid #e0e0e0;
        padding-bottom: 10px;
        margin-top: 0;
    }

/* Q&A Item Styling */
.qa-item {
    /*background-color: #fdfdfd;*/
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 20px;
    padding: 20px;
    padding-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background-color: #f0f2f5;
}

.qa-question {
    font-size: 1.2em;
    /*color: #3498db;*/
    margin-top: 0;
    color: #005a9c;
    /*margin-bottom: 10px;*/
}

.qa-answer {
    line-height: 1.6;
    width: stretch;
    background-color: inherit;
    /*height: stretch;*/
    border-color: #f4f4f9;
    font-size: 1.2em;
}

.error {
    color: #e74c3c;
    font-weight: bold;
}

.author-div {
    display: flex;
    justify-content: flex-end; /* Aligns items to the end (right) of the flex container */
    align-items: end; /* Vertically centers items if needed */
    font-size: 0.8em;
    margin:0px;
    padding:0px;
}

textarea {
    height: max-content;
    width: 100%;
    /*min-height: 10rem;*/ /* Optional: Set a minimum height */
    border-color: transparent;
    outline: none; /* Removes the default focus outline */
    font-size: .8em;
    margin-bottom:0px;
}

#ccrDocBody{
    overflow-x: hidden;
}
    #ccrDocBodyh3 {
        color: navy;
    }

    #ccrDocBodyul ul li {
        margin: 10px;
        display: inline-block;
        width: 100%;
    }

    #ccrDocBody a {
        display: block;
        padding: 5px 15px 5px;
        transition: background-color 0.3s ease;
        box-sizing: border-box;
        text-decoration: none;
        color: #005a9c;
        font-size: 1.2em;
        border-radius: 5px;
        transition: background-color 0.2s ease-in-out;
        list-style-type: none;
    }

#monoLinkBody {
    overflow-x: hidden;
}

    #monoLinkBody h3 {
        color: navy;
    }

    #monoLinkBody ul li {
        margin: 10px;
        display: inline-block;
        width: 100%;
    }

    #monoLinkBody a {
        display: block;
        padding: 5px 15px 5px;
        transition: background-color 0.3s ease;
        box-sizing: border-box;
        text-decoration: none;
        color: #005a9c;
        font-size: 1.2em;
        border-radius: 5px;
        transition: background-color 0.2s ease-in-out;
        list-style-type: none;
    }

#historyDocBody {
    overflow-x: hidden;
    margin:0;
    padding:0;
}

    #historyDocBody h3 {
        color: navy;
    }

    #historyDocBody ul li {
        margin: 10px;
        display: inline-block;
    }

    #historyDocBody a {
        display: block;
        padding: 5px 15px 5px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
        box-sizing: border-box;
        text-decoration: none;
        color: #005a9c;
        font-size: 1.2em;
        border-radius: 5px;
        transition: background-color 0.2s ease-in-out;
    }

    #historyDocBody iframe {
        width: 100%;
        height: 100%;
        border: none;
        padding: 0;
        margin:0;
    }